/* Dynamic additions for the WordPress build. */

/* Website screenshots + initials fallback */
.sz-shot { position: relative; overflow: hidden; }
.sz-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-panel) 100%);
}
.listing-preview .sz-initials { top: 22px; }
.shaped-card__media.sz-shot { padding: 0; }
.shaped-card__media.sz-shot > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top center; }
.shaped-card__media.sz-shot .shaped-card__check { z-index: 2; }
.hero__card-media.sz-shot > img { padding: 0; object-fit: cover; object-position: top center; }
.sz-hero-shot { position: relative; display: block; width: 100%; max-width: 460px; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--color-cream); box-shadow: var(--shadow-lift); }
.sz-hero-shot > img { position: absolute; top: 22px; left: 0; width: 100%; height: calc(100% - 22px); object-fit: cover; object-position: top center; }
.sz-hero-shot .sz-initials { top: 22px; }

/* Business name link */
.sz-name { margin: -4px 0 10px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.sz-name a, .listing-row__text a, .listing-hero__title a { color: inherit; }
.sz-name a:hover, .listing-row__text a:hover, .listing-hero__title a:hover { color: var(--color-green); }

/* WordPress pagination */
.sz-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.sz-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: 999px; font-family: var(--font-display); font-size: 14px; color: var(--color-heading); }
.sz-pager .page-numbers.current, .sz-pager a.page-numbers:hover { border-color: var(--color-green); background: var(--color-green); color: var(--color-white); }
.sz-pager .dots { border-color: transparent; }

.directory-empty.is-visible { display: block; }
.widget-list a.is-active { color: var(--color-green); }

/* Post content */
.sz-content > * + * { margin-top: 1em; }
.sz-content h2, .sz-content h3 { margin-top: 1.5em; }
.sz-content ul, .sz-content ol { padding-left: 1.3em; }
.sz-content ul { list-style: disc; }
.sz-content ol { list-style: decimal; }
.sz-content a { color: var(--color-green); text-decoration: underline; }
.sz-content img { height: auto; }
.sz-post-faq { margin-top: 50px; }
.sz-post-faq h2 { margin-bottom: 18px; }
.sz-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.sz-share a { padding: 6px 16px; border: 1px solid var(--color-line); border-radius: 999px; font-size: 14px; color: var(--color-heading); }
.sz-share a:hover { border-color: var(--color-green); color: var(--color-green); }

/* Privacy */
.legal-content h3 { margin-top: 1.2em; }

/* Listing page */
.sz-badge--closed { background: #fdecea; color: #b3261e; }
.sz-stars { color: var(--color-orange); letter-spacing: 2px; }
.sz-reviews { display: grid; gap: 16px; margin-top: 24px; }
.sz-review { padding: 20px 22px; border: 1px solid var(--color-line); border-radius: var(--radius-xs); background: var(--color-white); }
.sz-review p { margin: 12px 0 0; }
.sz-video { position: relative; aspect-ratio: 16 / 9; }
.sz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; }
