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

/* Initials tile when a listing has no website screenshot */
.rl-initials { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; font-size: 52px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f7931e 0%, #d9480b 100%); }
.browser-frame__screen .rl-initials { position: absolute; inset: 0; }

/* Website screenshots fill their boxes from the top */
.browser-frame__screen img, .listing-row__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.listing-row__media { display: block; }
.listing-card h3 a, .listing-row h3 a, .listing-head h1 a { color: inherit; }
.rl-cover { display: flex; }
.rl-cover .browser-frame { width: 100%; height: 100%; display: flex; flex-direction: column; }

/* Category tiles: photo in the icon slot */
.category-tile__icon.rl-cat-photo { overflow: hidden; padding: 0; }
.category-tile__icon.rl-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.category-tile .rl-cat-count { display: block; margin-top: 6px; font-size: 14px; opacity: 0.7; }

/* Pagination + empty states */
.rl-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.rl-pager .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid rgba(42, 28, 22, 0.15); border-radius: 999px; font-weight: 600; color: var(--ink); }
.rl-pager .page-numbers.is-current, .rl-pager a.page-numbers:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.rl-empty { padding: 40px 24px; text-align: center; }
.rl-news-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Listing content, reviews */
.rl-content p + p { margin-top: 14px; }
.rl-reviews { display: grid; gap: 14px; margin-top: 20px; }
.rl-review { padding: 16px 18px; border: 1px solid rgba(42, 28, 22, 0.12); border-radius: 14px; }
.rl-review p { margin: 6px 0 0; }
.rl-stars { color: #f5b301; letter-spacing: 2px; }
.side-card .btn + .btn { margin-top: 10px; }

/* Single post: body + FAQ (+ / −) */
.rl-post-body > * + * { margin-top: 16px; }
.rl-post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rl-post-faq { margin-top: 36px; }
.rl-faq { border-bottom: 1px solid rgba(42, 28, 22, 0.12); }
.rl-faq summary { position: relative; padding: 16px 40px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: var(--brand); }
.rl-faq[open] summary::after { content: "\2212"; }
.rl-faq__a { padding-bottom: 16px; }

/* Reveals must never widen the page; grid children may shrink */
html, body { overflow-x: clip; }
.with-sidebar > *, .listing-layout > *, .legal > * { min-width: 0; }
@media (max-width: 767px) { .rl-news-2 { grid-template-columns: 1fr; } }
