/* Web Listings: styles for the dynamic (WordPress) markup. */

/* Initials tile when a listing has no website screenshot */
.wl-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; font-family: var(--font-title, inherit); font-size: 34px; font-weight: 700; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, #1b3fa0 0%, #2f7cf6 100%); }
.wl-initials--card { position: absolute; inset: 0; font-size: 64px; }
.wl-initials--mq { width: 114px; height: 64px; border-radius: 8px; font-size: 20px; }
.wl-initials--preview { height: 320px; font-size: 72px; }

/* Featured listing card: screenshot cover + name link to the business website */
.listing-card::after { pointer-events: none; }
.listing-card .wl-cover { position: absolute; inset: 0; display: block; }
.listing-card .wl-cover img.cover { object-position: top; }
.listing-card h3 a { color: inherit; }
.listing-card h3 a:hover { text-decoration: underline; }
.listing-card .content { z-index: 2; }
.listing-card .view { z-index: 2; }

/* Result rows, nearby cards, detail logo: screenshots fill their boxes from the top */
.listing-row .thumb img, .nearby-card .img-box img { object-position: top; }
.listing-row h3 a, .nearby-card h4 a { color: inherit; }
.single-brand .wl-logo-box { padding: 0; overflow: hidden; }
.single-brand .wl-logo-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.single-brand .wl-logo-box .wl-initials { font-size: 30px; }
.single-brand h2 a { color: inherit; }
.chips a.chip:hover { color: var(--blue); }

/* Featured businesses marquee: website screenshots in colour */
.marquee-track .wl-mq img { width: 114px; height: 64px; max-width: none; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); filter: none; opacity: 1; }

/* Category card listing count (the design's icon slot) */
.cat-card .wl-cat-count { display: block; margin: -8px 0 18px; font-size: 14px; font-weight: 500; color: var(--text); }

/* FAQ: + when closed, − when open */
.faq-item.open .faq-q i { transform: none; }
.faq-item.open .faq-q i::before { content: "\f63b"; }

/* Listing content, reviews, video */
.wl-content p + p { margin-top: 14px; }
.wl-reviews { display: grid; gap: 16px; margin-top: 24px; }
.wl-review { padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; }
.wl-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.wl-review-head .stars { color: #f5b301; letter-spacing: 1px; }
.wl-review-head small { color: var(--text); }
.rating-summary .stars { color: #f5b301; }
.wl-video { position: relative; aspect-ratio: 16 / 9; height: auto; }
.wl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Single post */
.wl-post-body > * + * { margin-top: 18px; }
.wl-post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.wl-post-faq { margin-top: 40px; }
.wl-post-faq h2 { margin-bottom: 20px; }
.wl-post-faq .faq-a p { margin: 0; }

/* Footer top: logo + button */
.footer-top .btn { flex-shrink: 0; }

@media (max-width: 767px) {
    .search .blog-grid, .blog .blog-grid, .archive .blog-grid { grid-template-columns: 1fr !important; }
}

/* Flex/grid children must be allowed to shrink, or long content widens the page on phones */
.brand-strip .marquee { min-width: 0; max-width: 100%; }
.layout-sidebar > * { min-width: 0; }
.filter-bar .filter-input { max-width: 100%; }
