/* Dynamic additions for the WordPress build. */

/* Website screenshots + initials fallback */
.am-shot { position: relative; overflow: hidden; }
.am-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.am-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--plum) 0%, var(--orange) 100%);
}
.story-card.am-shot .am-initials { z-index: 0; }
.am-summary-shot { display: block; width: 220px; aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: 0 10px 30px rgba(44, 10, 41, 0.15); }
.am-name-link { color: inherit; }
.am-name-link:hover { color: var(--orange); }

/* Stars: lit ones in orange */
.am-stars svg { color: var(--dot-yellow); }
.am-stars svg.is-off { color: #dcd6db; }

/* Category photos in the design's icon / list slots */
.iconbox__icon.am-cat-photo { border-radius: 12px; object-fit: cover; }
.az-list .am-thumb { width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; object-fit: cover; vertical-align: middle; flex-shrink: 0; }
.az-list li a { display: flex; align-items: center; }
.az-list li a svg { margin-left: auto; }

/* Pagination (WordPress markup) */
.am-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 50px; }
.am-pager .page-numbers {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
}
.am-pager .page-numbers.is-current, .am-pager a.page-numbers:hover { border-color: var(--orange); background: var(--orange); color: #ffffff; }
.am-pager .dots { border-color: transparent; }

/* Listing details */
.panel p + p { margin-top: 14px; }
.review-bars__track { position: relative; overflow: hidden; }
.am-fill { position: absolute; inset: 0 auto 0 0; background: var(--orange); border-radius: inherit; }
.am-reviews { display: grid; gap: 14px; margin: 26px 0 12px; }
.am-review { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.am-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink); }
.am-review__head small { margin-left: auto; color: var(--muted); }
.am-review p { margin: 8px 0 0; }
.am-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.am-dir { display: inline-block; margin-top: 16px; }
.am-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-gallery .gallery__item { aspect-ratio: 4 / 3; }
.am-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hours__status.is-open { color: var(--dot-green); }
.hours__status.is-closed { color: var(--dot-red); }
.info-list a { word-break: break-word; }

/* Blog post FAQ + share */
.am-post-faq { margin: 44px 0 20px; }
.am-post-faq h2 { margin-bottom: 18px; }
.am-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0; }
.am-share span { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.am-share a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; }
.am-share a:hover { border-color: var(--orange); color: var(--orange); }

/* Sitemap listings */
.am-sitemap-wide { grid-column: 1 / -1; }
.am-sitemap-wide ul { columns: 3 220px; column-gap: 30px; }
.legal section + section { margin-top: 10px; }

@media (max-width: 767px) {
    .am-summary-shot { width: 100%; }
    .am-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
