/* ===========================================
   TBG Search v4.0.0 - Thuisbatterijgids.net
   Warm editorial design tokens
   =========================================== */

.tbg-search-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

/* -------------------------------------------
   Search Form
   ------------------------------------------- */
.tbg-search-form-wrap {
    margin-bottom: 2rem;
}

.tbg-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1.5px solid #eee8e0;
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbg-search-input-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.tbg-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.tbg-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.0625rem;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

.tbg-search-input::placeholder {
    color: #94a3b8;
}

.tbg-search-input::-webkit-search-cancel-button,
.tbg-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.tbg-search-clear {
    color: #94a3b8;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s;
}

.tbg-search-clear:hover {
    color: #475569;
}

/* -------------------------------------------
   Results Count & Empty State
   ------------------------------------------- */
.tbg-search-count {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
}

.tbg-search-count strong {
    color: #475569;
    font-weight: 600;
}

.tbg-search-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.tbg-search-empty .tbg-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #ddd6c8;
}

.tbg-search-empty a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

.tbg-search-empty a:hover {
    color: #059669;
}

/* -------------------------------------------
   Section Headers
   ------------------------------------------- */
.tbg-section {
    margin-bottom: 2.5rem;
}

.tbg-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #eee8e0;
}

.tbg-section-header h2 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #10b981;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}

.tbg-section-count {
    background: #ecfdf5;
    color: #166534;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
}

/* -------------------------------------------
   Brand Cards - 3 column grid
   ------------------------------------------- */
.tbg-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.tbg-brand-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbg-brand-card:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tbg-brand-logo {
    width: 40px;
    height: 40px;
    background: #faf8f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tbg-brand-logo img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.tbg-brand-info {
    min-width: 0;
}

.tbg-brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tbg-brand-card:hover .tbg-brand-name {
    color: #10b981;
}

.tbg-brand-count {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* -------------------------------------------
   Battery Cards - full width rows
   ------------------------------------------- */
.tbg-battery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.tbg-battery-card {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbg-battery-card:hover {
    border-color: #ddd6c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tbg-battery-img {
    width: 100px;
    height: 100px;
    background: #faf8f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tbg-battery-img img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.tbg-battery-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tbg-battery-brand {
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tbg-battery-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tbg-battery-card:hover .tbg-battery-name {
    color: #10b981;
}

.tbg-battery-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
    flex-wrap: wrap;
}

.tbg-battery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.tbg-battery-meta-item svg {
    width: 14px;
    height: 14px;
    color: #10b981;
    flex-shrink: 0;
}

.tbg-battery-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ddd6c8;
    flex-shrink: 0;
}

.tbg-battery-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.tbg-battery-tag {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #166534;
    background: #ecfdf5;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

.tbg-battery-tag--neutral {
    color: #475569;
    background: #f5f3ee;
    border-color: #eee8e0;
}

/* Right column: score + chevron */
.tbg-battery-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tbg-battery-score {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    background: #10b981;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tbg-battery-arrow {
    color: #ddd6c8;
    transition: color 0.15s, transform 0.15s;
}

.tbg-battery-card:hover .tbg-battery-arrow {
    color: #10b981;
    transform: translateX(2px);
}

/* -------------------------------------------
   Comparison Cards - list style
   ------------------------------------------- */
.tbg-comparisons-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tbg-comparison-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.875rem;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f5f3ee;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.tbg-comparison-item:first-child {
    padding-top: 0;
}

.tbg-comparison-item:last-child {
    border-bottom: none;
}

.tbg-comparison-item:hover {
    background: #faf8f4;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 8px;
}

.tbg-comparison-icon {
    width: 36px;
    height: 36px;
    background: #ecfdf5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

.tbg-comparison-info {
    min-width: 0;
}

.tbg-comparison-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.tbg-comparison-item:hover .tbg-comparison-title {
    color: #10b981;
}

.tbg-comparison-vs {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.125rem;
    display: block;
}

.tbg-comparison-arrow {
    color: #ddd6c8;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.tbg-comparison-item:hover .tbg-comparison-arrow {
    color: #10b981;
    transform: translateX(2px);
}

/* -------------------------------------------
   Article Cards - 2 column with thumbnails
   ------------------------------------------- */
.tbg-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tbg-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbg-post-card:hover {
    border-color: #ddd6c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tbg-post-img {
    width: 100%;
    aspect-ratio: 1200 / 628;
    overflow: hidden;
    background: #faf8f4;
}

.tbg-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.tbg-post-card:hover .tbg-post-img img {
    transform: scale(1.03);
}

.tbg-post-content {
    padding: 0.875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tbg-post-card--no-img .tbg-post-content {
    padding: 1rem;
}

.tbg-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.tbg-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.tbg-post-card:hover .tbg-post-title {
    color: #10b981;
}

/* -------------------------------------------
   Section Footer
   ------------------------------------------- */
.tbg-section-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.tbg-section-footer a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s;
}

.tbg-section-footer a:hover {
    color: #059669;
}

/* -------------------------------------------
   Suggestions (empty state chips)
   ------------------------------------------- */
.tbg-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tbg-suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #faf8f4;
    border: 1px solid #eee8e0;
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.tbg-suggestion-chip:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #0f172a;
}

/* -------------------------------------------
   Quick Links (empty state grid)
   ------------------------------------------- */
.tbg-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.tbg-quick-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: #faf8f4;
    border: 1px solid #eee8e0;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: border-color 0.15s;
}

.tbg-quick-link:hover {
    border-color: #10b981;
}

.tbg-quick-link svg {
    color: #10b981;
    flex-shrink: 0;
}

/* -------------------------------------------
   Responsive
   ------------------------------------------- */
@media (max-width: 700px) {
    .tbg-search-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    /* Brands: 2 cols on mobile */
    .tbg-brand-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Battery cards: smaller image */
    .tbg-battery-card {
        grid-template-columns: 72px 1fr auto;
        gap: 0.875rem;
        padding: 0.875rem 1rem;
    }

    .tbg-battery-img {
        width: 72px;
        height: 72px;
    }

    .tbg-battery-img img {
        max-width: 56px;
        max-height: 56px;
    }

    .tbg-battery-name {
        font-size: 0.9375rem;
    }

    .tbg-battery-score {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
        border-radius: 8px;
    }

    /* Articles: horizontal cards */
    .tbg-posts-grid {
        grid-template-columns: 1fr;
    }

    .tbg-post-card {
        flex-direction: row;
    }

    .tbg-post-img {
        width: 120px;
        aspect-ratio: auto;
        min-height: 100%;
    }

    .tbg-post-content {
        padding: 0.75rem 0.875rem;
        justify-content: center;
    }

    .tbg-post-title {
        font-size: 0.875rem;
    }

    .tbg-post-card--no-img {
        flex-direction: column;
    }

    /* Quick links */
    .tbg-quick-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tbg-brand-grid {
        grid-template-columns: 1fr;
    }

    .tbg-battery-card {
        grid-template-columns: 60px 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tbg-battery-img {
        width: 60px;
        height: 60px;
    }

    .tbg-battery-img img {
        max-width: 44px;
        max-height: 44px;
    }

    .tbg-battery-meta-item {
        font-size: 0.75rem;
    }
}


/* ===========================================
   TBG Search v5.0.0 - Additions
   Hero, fuzzy hint, empty state sections,
   chips, batteries-list, post excerpts
   =========================================== */

/* -------------------------------------------
   Fuzzy hint banner
   ------------------------------------------- */
.tbg-fuzzy-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.5;
}

.tbg-fuzzy-hint svg {
    flex-shrink: 0;
    color: #b45309;
    margin-top: 0.125rem;
}

.tbg-fuzzy-hint a {
    color: #78350f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tbg-fuzzy-hint a:hover {
    color: #422006;
}

/* -------------------------------------------
   Hero (primary result)
   ------------------------------------------- */
.tbg-hero {
    background: #fff;
    border: 1.5px solid #ddd6c8;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}

.tbg-hero:hover {
    border-color: #c4b8a0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tbg-hero-link {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.tbg-hero-content {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Hero: Brand variant */
.tbg-hero--brand {
    background: linear-gradient(135deg, #fefdfb 0%, #faf8f4 100%);
}

.tbg-hero-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tbg-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tbg-hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.tbg-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tbg-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.tbg-hero-desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.tbg-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    background: #10b981;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    align-self: flex-start;
}

.tbg-hero-cta:hover {
    background: #059669;
    color: #fff;
    transform: translateX(2px);
}

/* Hero: Battery variant */
.tbg-hero--battery {
    border-color: #c7d2fe;
}

.tbg-hero--battery:hover {
    border-color: #818cf8;
}

.tbg-hero-img {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: #faf8f4;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.tbg-hero-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tbg-hero-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.tbg-hero-spec {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.tbg-hero-spec:not(:last-child)::after {
    content: '';
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-left: 1rem;
}

.tbg-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.tbg-hero-score {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border-left: 1px solid #eee8e0;
    margin-left: auto;
    min-width: 80px;
}

.tbg-hero-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.tbg-hero-score-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* -------------------------------------------
   Section h3 (subordinate to hero)
   ------------------------------------------- */
.tbg-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tbg-section h4.tbg-post-title,
.tbg-section h4.tbg-comparison-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

/* -------------------------------------------
   Batteries list (flat vertical, not grid)
   ------------------------------------------- */
.tbg-batteries-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tbg-batteries-list .tbg-battery-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tbg-batteries-list .tbg-battery-card:hover {
    border-color: #ddd6c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tbg-batteries-list .tbg-battery-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #faf8f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
}

.tbg-batteries-list .tbg-battery-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tbg-batteries-list .tbg-battery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

/* -------------------------------------------
   Post excerpts
   ------------------------------------------- */
.tbg-post-excerpt {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0.25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------
   Empty state (no query yet)
   ------------------------------------------- */
.tbg-empty-state {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tbg-empty-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tbg-empty-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.tbg-empty-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* -------------------------------------------
   Chips (primary = brand, secondary = topic)
   ------------------------------------------- */
.tbg-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: #fff;
    border: 1.5px solid #ddd6c8;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tbg-chip:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}

.tbg-chip--secondary {
    border-color: #eee8e0;
    background: #faf8f4;
    color: #475569;
    font-weight: 500;
}

.tbg-chip--secondary:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

/* -------------------------------------------
   Quick links
   ------------------------------------------- */
.tbg-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tbg-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.tbg-quick-link:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}

.tbg-quick-link svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.tbg-quick-link:hover svg {
    color: #10b981;
}

/* -------------------------------------------
   No results state (with chips)
   ------------------------------------------- */
.tbg-search-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1rem 0 0.5rem;
}

.tbg-search-empty p {
    color: #64748b;
    margin: 0 0 1rem;
}

.tbg-search-empty .tbg-empty-chips {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tbg-search-empty .tbg-quick-links {
    justify-content: center;
}

/* -------------------------------------------
   Mobile responsive
   ------------------------------------------- */
@media (max-width: 640px) {
    .tbg-hero-content,
    .tbg-hero-link {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .tbg-hero-logo,
    .tbg-hero-img {
        width: 100%;
        max-width: 200px;
        height: 120px;
    }

    .tbg-hero-title {
        font-size: 1.25rem;
    }

    .tbg-hero-score {
        border-left: none;
        border-top: 1px solid #eee8e0;
        padding-top: 1rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
        margin-left: 0;
    }

    .tbg-hero-score-value {
        font-size: 1.5rem;
    }

    .tbg-posts-grid {
        grid-template-columns: 1fr;
    }
}



/* ===========================================
   TBG Search v5.5 - Finetune
   - Load-more hover: green fill + white text
   - Mobile fully polished
   - CTA text: "Bekijk alles van [brand]"
   =========================================== */

/* Transparent page (achtergrond komt van site) */
.tbg-search-page {
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 860px;
    margin: 0 auto;
}

/* -------------------------------------------
   Brand hero: full card clickable
   ------------------------------------------- */
.tbg-hero--brand {
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tbg-hero--brand .tbg-hero-content {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem 2.25rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.tbg-hero--brand .tbg-hero-content:hover {
    background-color: #faf8f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.tbg-hero--brand .tbg-hero-logo {
    width: 96px;
    height: 96px;
    background: #faf8f4;
    border: 1px solid #eee8e0;
    border-radius: 14px;
    padding: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbg-hero--brand .tbg-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tbg-hero--brand .tbg-hero-body {
    flex: 1;
    min-width: 0;
}

.tbg-hero-title {
    font-family: inherit;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    transition: color 0.15s;
    word-break: break-word;
}

.tbg-hero--brand .tbg-hero-content:hover .tbg-hero-title {
    color: #10b981;
}

.tbg-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 18px;
}

.tbg-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.tbg-hero-trust-item svg {
    flex-shrink: 0;
}

.tbg-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #10b981;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.tbg-hero--brand .tbg-hero-content:hover .tbg-hero-cta {
    background: #059669;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* -------------------------------------------
   Section headers
   ------------------------------------------- */
.tbg-section {
    margin-top: 2rem;
}

.tbg-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee8e0;
    margin-bottom: 16px;
}

.tbg-section-header h3 {
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0;
    /* Voorkom overflow op mobiel bij lange brand-naam in title */
    overflow-wrap: anywhere;
    min-width: 0;
    flex: 1;
}

.tbg-section-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

/* -------------------------------------------
   Shared card base: batteries + comparisons
   ------------------------------------------- */
.tbg-batteries-list,
.tbg-comparisons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tbg-batteries-list .tbg-battery-card,
.tbg-comparison-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    min-height: 88px;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tbg-batteries-list .tbg-battery-card:hover,
.tbg-comparison-item:hover {
    border-color: #ddd6c8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* -------------------------------------------
   Battery list
   ------------------------------------------- */
.tbg-batteries-list .tbg-battery-img,
.tbg-comparison-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #faf8f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.tbg-batteries-list .tbg-battery-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.tbg-batteries-list .tbg-battery-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tbg-batteries-list .tbg-battery-brand {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tbg-batteries-list .tbg-battery-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tbg-batteries-list .tbg-battery-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.tbg-batteries-list .tbg-battery-meta-sep {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

.tbg-batteries-list .tbg-battery-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tbg-batteries-list .tbg-battery-score {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: #10b981;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.tbg-battery-score--high {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.tbg-battery-score--mid {
    background: #84cc16;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25);
}

.tbg-battery-score--low {
    background: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.tbg-batteries-list .tbg-battery-arrow {
    color: #94a3b8;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.tbg-batteries-list .tbg-battery-card:hover .tbg-battery-arrow {
    color: #10b981;
    transform: translateX(3px);
}

/* -------------------------------------------
   Comparison list
   ------------------------------------------- */
.tbg-comparison-icon {
    color: #10b981;
}

.tbg-comparison-icon svg {
    width: 20px;
    height: 20px;
}

.tbg-comparison-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tbg-comparison-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.tbg-comparison-arrow {
    color: #94a3b8;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.tbg-comparison-item:hover .tbg-comparison-arrow {
    color: #10b981;
    transform: translateX(3px);
}

/* -------------------------------------------
   Article cards (posts grid)
   ------------------------------------------- */
.tbg-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tbg-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tbg-post-card:hover {
    border-color: #ddd6c8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.tbg-post-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #faf8f4;
    overflow: hidden;
}

.tbg-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbg-post-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tbg-post-date {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tbg-post-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s;
    overflow-wrap: anywhere;
}

.tbg-post-card:hover .tbg-post-title {
    color: #10b981;
}

.tbg-post-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------
   Load-more button: green fill on hover
   ------------------------------------------- */
.tbg-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 8px;
}

.tbg-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: #fff;
    color: #10b981;
    border: 1.5px solid #10b981;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tbg-load-more:hover:not(:disabled),
.tbg-load-more:focus:not(:disabled) {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.tbg-load-more:disabled {
    opacity: 0.6;
    cursor: wait;
}

.tbg-load-more svg {
    transition: transform 0.15s;
}

.tbg-load-more:hover:not(:disabled) svg {
    transform: translateY(2px);
}

/* -------------------------------------------
   Search form
   ------------------------------------------- */
.tbg-search-form-wrap {
    margin-bottom: 1.5rem;
}

.tbg-search-input-wrap {
    background: #fff;
    border: 1.5px solid #eee8e0;
    border-radius: 12px;
    padding: 14px 18px;
}

.tbg-search-input-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.tbg-search-input {
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
}

/* -------------------------------------------
   MOBILE: finetune
   Tablet ≤768px, phone ≤640px, narrow ≤480px
   ------------------------------------------- */

/* Tablet */
@media (max-width: 768px) {
    .tbg-hero--brand .tbg-hero-content {
        padding: 1.5rem 1.75rem;
        gap: 1.25rem;
    }

    .tbg-hero--brand .tbg-hero-logo {
        width: 80px;
        height: 80px;
    }

    .tbg-section {
        margin-top: 1.5rem;
    }

    .tbg-section-header {
        margin-bottom: 12px;
    }
}

/* Phone */
@media (max-width: 640px) {
    .tbg-hero--brand {
        margin-bottom: 1.5rem;
    }

    .tbg-hero--brand .tbg-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .tbg-hero--brand .tbg-hero-logo {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .tbg-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tbg-hero-trust {
        gap: 10px 16px;
        margin-bottom: 14px;
    }

    .tbg-hero-trust-item {
        font-size: 12px;
    }

    .tbg-hero-cta {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
    }

    .tbg-section-header h3 {
        font-size: 17px;
    }

    .tbg-batteries-list .tbg-battery-card,
    .tbg-comparison-item {
        padding: 12px 14px;
        gap: 12px;
        min-height: 76px;
    }

    .tbg-batteries-list .tbg-battery-img,
    .tbg-comparison-icon {
        width: 48px;
        height: 48px;
        padding: 4px;
    }

    .tbg-batteries-list .tbg-battery-name {
        font-size: 14px;
    }

    .tbg-batteries-list .tbg-battery-meta {
        font-size: 12px;
        gap: 6px;
    }

    .tbg-batteries-list .tbg-battery-right {
        gap: 8px;
    }

    .tbg-batteries-list .tbg-battery-score {
        width: 40px;
        height: 40px;
        font-size: 14px;
        border-radius: 8px;
    }

    .tbg-batteries-list .tbg-battery-arrow {
        display: none; /* arrow weg op smal scherm, ruimte voor score */
    }

    .tbg-comparison-arrow {
        width: 16px;
        height: 16px;
    }

    .tbg-comparison-title {
        font-size: 14px;
    }

    /* Posts: 1 kolom op mobiel */
    .tbg-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tbg-post-content {
        padding: 12px 14px 14px;
    }

    .tbg-post-title {
        font-size: 14px;
    }

    /* Load more: full-width op mobiel */
    .tbg-load-more-wrap {
        margin-top: 18px;
    }

    .tbg-load-more {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Super narrow */
@media (max-width: 380px) {
    .tbg-hero--brand .tbg-hero-content {
        padding: 1rem 1rem 1.25rem;
    }

    .tbg-hero-title {
        font-size: 22px;
    }

    .tbg-batteries-list .tbg-battery-card,
    .tbg-comparison-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .tbg-batteries-list .tbg-battery-img,
    .tbg-comparison-icon {
        width: 42px;
        height: 42px;
    }

    .tbg-batteries-list .tbg-battery-score {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}


/* ===========================================
   TBG Search v5.6 - Mobile padding fixes
   - Search input: force no theme styles
   - Section headers: padding match cards
   - Hero margin tighter on mobile
   - Wrapper has consistent inner padding
   =========================================== */

/* Force-reset op de input zodat theme-styles niet doorlekken */
.tbg-search-input,
input.tbg-search-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: 16px;
    line-height: 1.5;
    color: #0f172a;
    font-family: inherit;
    border-radius: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

.tbg-search-input:focus,
input.tbg-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Wrapper geeft de visuele border en padding, niet de input */
.tbg-search-input-wrap {
    padding: 14px 18px;
}

/* Mobile padding/margin consistency */
@media (max-width: 640px) {
    /* Section headers: lijn uit met card-padding */
    .tbg-section {
        margin-top: 1.5rem;
    }

    .tbg-section-header {
        padding-left: 4px;
        padding-right: 4px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }

    /* Hero: iets minder margin onderaan, meer ademruimte daarboven */
    .tbg-hero--brand {
        margin-bottom: 1.25rem;
    }

    /* Search-input form wat compacter op mobiel */
    .tbg-search-form-wrap {
        margin-bottom: 1.25rem;
    }

    .tbg-search-input-wrap {
        padding: 12px 14px;
        gap: 0.625rem;
    }

    .tbg-search-icon {
        width: 18px;
        height: 18px;
    }

    .tbg-search-input {
        font-size: 16px; /* voorkomt iOS auto-zoom bij focus */
    }

    /* Battery-card meer "ademruimte" rechts (arrow weg) */
    .tbg-batteries-list .tbg-battery-card {
        padding-right: 14px;
    }

    .tbg-batteries-list .tbg-battery-right {
        margin-left: auto;
    }
}

/* Super narrow: verder krimpen */
@media (max-width: 380px) {
    .tbg-section-header {
        padding-left: 2px;
        padding-right: 2px;
    }

    .tbg-section-header h3 {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------
   FIX (v5.12.0): artikelkaarten op mobiel altijd met titel/tekst.
   De stylesheet bevatte dubbele, conflicterende regels waardoor de
   kaart op mobiel tot alleen een afbeelding kon inklappen. Deze blok
   staat bewust als laatste zodat hij wint.
   ------------------------------------------------------------- */
@media (max-width: 700px) {
    .tbg-posts-grid { grid-template-columns: 1fr; }
    .tbg-post-card { flex-direction: row; align-items: stretch; }
    .tbg-post-img {
        width: 112px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        min-height: 100%;
        height: auto;
    }
    .tbg-post-img img { width: 100%; height: 100%; object-fit: cover; }
    .tbg-post-card--no-img { flex-direction: column; }
    .tbg-post-card--no-img .tbg-post-img { display: none; }
    .tbg-post-content {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 12px 14px;
    }
    .tbg-post-title { font-size: 0.9rem; }
}


/* ===========================================
   TBG Search v5.17.0
   - Zoekmodal en inline zoekbalk verhuisd uit
     de inline PHP-blokken (een bron van waarheid)
   - Warme huisstijl-borders (#eee8e0) in plaats
     van slate (#e2e8f0)
   - Autocomplete-dropdown (combobox)
   - Load-more fouttoestand
   =========================================== */

/* -------------------------------------------
   Zoekmodal
   ------------------------------------------- */
.tbg-sm {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.tbg-sm.is-open {
    display: block;
}

.tbg-sm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.tbg-sm.is-open .tbg-sm__backdrop {
    opacity: 1;
}

.tbg-sm__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.2);
    padding: 16px;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tbg-sm.is-open .tbg-sm__panel {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.tbg-sm__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbg-sm__field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee8e0;
    border-radius: 10px;
    padding: 0 12px;
    transition: border-color 0.15s ease;
}

.tbg-sm__field:focus-within {
    border-color: #10b981;
}

.tbg-sm__icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.tbg-sm__input {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 11px 0;
    color: #0f172a;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    line-height: 1.3;
}

.tbg-sm__input::placeholder {
    color: #94a3b8;
}

.tbg-sm__submit {
    flex-shrink: 0;
    border: none;
    background: #10b981;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tbg-sm__submit:hover {
    background: #059669;
}

.tbg-sm__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 6px;
    cursor: pointer;
    line-height: 0;
    border-radius: 8px;
    transition: color 0.15s ease;
}

.tbg-sm__close:hover {
    color: #0f172a;
}

body.tbg-sm-open {
    overflow: hidden;
}

/* -------------------------------------------
   Inline zoekbalk (shortcode tbg_search_box)
   ------------------------------------------- */
.tbg-sb {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tbg-sb__field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #eee8e0;
    border-radius: 10px;
    padding: 0 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tbg-sb__field:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.tbg-sb__icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.tbg-sb__input {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 11px 0;
    color: #0f172a;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    line-height: 1.3;
}

.tbg-sb__input::placeholder {
    color: #94a3b8;
}

.tbg-sb__btn {
    flex-shrink: 0;
    border: none;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tbg-sb__btn:hover {
    background: #059669;
}

/* -------------------------------------------
   Autocomplete dropdown (combobox)
   De dropdown hangt absoluut onder het veld:
   modal, inline zoekbalk en zoekpagina.
   ------------------------------------------- */
.tbg-search-input-wrap {
    position: relative;
}

.tbg-ac {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100000;
    display: none;
    background: #fff;
    border: 1px solid #eee8e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 4px 0 0;
    text-align: left;
}

.tbg-ac.is-open {
    display: block;
}

.tbg-ac__group {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 10px 14px 4px;
}

.tbg-ac__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.35;
}

.tbg-ac__opt.is-active,
.tbg-ac__opt:hover {
    background: #faf8f4;
}

.tbg-ac__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbg-ac__hl {
    background: transparent;
    color: #10b981;
    font-weight: 700;
}

.tbg-ac__count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.tbg-ac__all {
    border-top: 1px solid #f5f3ee;
    margin-top: 4px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-weight: 600;
    color: #10b981;
}

.tbg-ac__all.is-active,
.tbg-ac__all:hover {
    background: #ecfdf5;
}

/* -------------------------------------------
   Load-more fouttoestand
   ------------------------------------------- */
.tbg-load-more--error {
    border-color: #f97316;
    color: #c2410c;
}

.tbg-load-more--error:hover:not(:disabled),
.tbg-load-more--error:focus:not(:disabled) {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
