/* Business Listing Local: styles for the dynamic (WordPress) markup. */

/* Initials tile when a listing has no website screenshot */
.bll-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: "Saira Condensed", sans-serif; font-size: 56px; font-weight: 800; color: #fff; background: var(--gradient-brand); }

/* Website screenshots fill their boxes from the top */
.listing-card__bg img, .listing-row__media img { object-position: top; }
.listing-card__bg .bll-initials { position: absolute; inset: 0; }
.listing-row__media .bll-initials { position: absolute; inset: 0; }
.listing-card__title a { position: relative; z-index: 3; color: inherit; }
.listing-row__title a, .page-hero__title a { color: inherit; }
.listing-head__logo.bll-logo { overflow: hidden; padding: 0; }
.listing-head__logo.bll-logo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bll-preview { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.08); }
.bll-preview img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: top; }
.bll-preview .bll-initials { height: 260px; }

/* Listing content, reviews */
.bll-content p + p { margin-top: 14px; }
.bll-reviews { display: grid; gap: 14px; margin-top: 20px; }
.bll-review { padding: 16px 18px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; }
.bll-review p { margin: 6px 0 0; }
.bll-stars { color: #f5b301; letter-spacing: 2px; }

/* Pagination + empty state */
.bll-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bll-pager .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 8px; font-weight: 600; }
.bll-pager .page-numbers.is-current, .bll-pager a.page-numbers:hover { color: #fff; background-color: var(--color-red); border-color: var(--color-red); }
.bll-empty { padding: 50px 30px; text-align: center; }

/* Single post FAQ (+ / −) */
.bll-post-faq { margin-top: 36px; }
.bll-faq { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.bll-faq summary { position: relative; padding: 16px 40px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.bll-faq summary::-webkit-details-marker { display: none; }
.bll-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; }
.bll-faq[open] summary::after { content: "\2212"; }
.bll-faq__a { padding-bottom: 16px; }
.bll-legal { grid-template-columns: 1fr; }

/* Reveals must never widen the page; grid children may shrink */
html, body { overflow-x: clip; }
.directory > *, .listing-layout > *, .article-layout > * { min-width: 0; }
