/* Top Business Finder dynamic additions */

/* WordPress admin bar */
.admin-bar .site-header.is-sticky { top: 32px; }
.admin-bar .search-overlay { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .site-header.is-sticky { top: 46px; }
    .admin-bar .search-overlay { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar .site-header.is-sticky { top: 0; }
}

/* Topbar links in place of the sample social icons */
.tb-topbar-links a { font-size: 14px; }

/* Website screenshots and initials fallback */
.tb-shot { background: #eef1f5; }
.tb-shot > img { object-fit: cover; object-position: top center; }
.tb-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b1730 0%, #0f2142 60%, #f15a22 160%);
    color: #ffffff;
    font-family: var(--font);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.listing-card__media.tb-shot,
.portfolio-item__media.tb-shot { min-height: 200px; }
.listing-card__media.tb-shot > img { position: absolute; inset: 0; }
.portfolio-item__media.tb-shot > img { position: absolute; top: 0; left: 0; }

/* Single listing: screenshot in the logo box */
.listing-hero__logo.tb-hero-shot {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #eef1f5;
}
.listing-hero__logo.tb-hero-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: top center;
}
.listing-hero h1 a { color: inherit; transition: color 0.3s; }
.listing-hero h1 a:hover { color: var(--accent); }
.listing-hero .rating { text-decoration: none; }
.listing-hero__actions .action-btn svg { color: var(--accent); }
.tb-content > :first-child { margin-top: 0; }
.tb-content img { height: auto; }
.info-item strong a { color: inherit; word-break: break-word; }
.info-item strong a:hover { color: var(--accent); }
.contact-list a, .contact-list span { word-break: break-word; }

/* Sidebar listing thumbnails */
.widget-post .tb-thumb {
    position: relative;
    display: block;
    width: 82px;
    height: 82px;
    overflow: hidden;
    background: #eef1f5;
}
.widget-post .tb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.widget-post .tb-thumb .tb-initials { font-size: 22px; }

/* Reviews from Google */
.tb-reviews { display: grid; gap: 18px; margin: 30px 0; }
.tb-review { padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
.tb-review__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-review__head > div { flex: 1; min-width: 140px; }
.tb-review__head strong { display: block; color: var(--heading); font-weight: 500; }
.tb-review__head small { color: var(--text); font-size: 13px; }
.tb-review__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 500;
}
.tb-review p { margin: 14px 0 0; }

/* Search filter links (design styles them as buttons) */
.filter-bar a {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--heading);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter-bar a:hover,
.filter-bar a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Pagination */
.pagination .tb-prev svg { transform: rotate(180deg); }
.pagination .tb-dots { border-color: transparent; background: transparent; }

/* Category counts */
.widget-links a span { color: var(--text); }
.category-tile > img { background: #eef1f5; }

/* Empty states */
.tb-empty {
    padding: 50px 36px;
    border: 1px dashed var(--line);
    background: var(--bg-soft);
    text-align: center;
}
.tb-empty h3 { margin: 0 0 10px; }
.tb-empty p { margin: 0 0 20px; }
.tb-empty p:last-child { margin-bottom: 0; }

/* Blog post FAQ inside the article body */
.article__body .tb-post-faq { margin: 20px 0 10px; }
.article__body .tb-post-faq .faq__question { text-align: left; }
.article__body .tb-post-faq .faq__answer p:last-child { margin-bottom: 0; }

/* Banner title used as a label on listing pages */
p.page-banner__title { margin: 0; font-family: var(--font); color: var(--heading); }

/* Feed images from third-party sites */
.rss-card__media img { background: #1a2a48; }
