/* ═══════════════════════════════════════════════════════
   Hero Search — dropdown results under search bar
   ═══════════════════════════════════════════════════════ */

/* ── Popular searches carousel — horizontal strip under search bar ── */
.popular-carousel {
    display: none;
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.popular-carousel--visible {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: carouselFadeIn 0.3s ease;
}

/* ── Arrow buttons ── */
.popular-carousel__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.popular-carousel__arrow:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transform: scale(1.08);
}

.popular-carousel__arrow:active {
    transform: scale(0.95);
    box-shadow: none;
}

.popular-carousel__arrow svg {
    width: 14px;
    height: 14px;
}

@keyframes carouselFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popular-carousel__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding: 4px 2px 6px;
    align-items: center;
}

.popular-carousel__track::-webkit-scrollbar {
    display: none;
}

.popular-carousel__item {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.popular-carousel__item:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.popular-carousel__item:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Dark mode */
.dark .popular-carousel__item {
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.25);
}

.dark .popular-carousel__item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #93c5fd;
}

/* Mobile */
@media (max-width: 560px) {
    .popular-carousel {
        margin-top: 5px;
        max-width: 92%;
    }

    .popular-carousel--visible {
        gap: 3px;
    }

    .popular-carousel__track {
        gap: 5px;
        padding: 2px 0 3px;
    }

    .popular-carousel__item {
        padding: 4px 10px;
        font-size: 0.65rem;
        border-width: 1px;
    }

    .popular-carousel__arrow {
        width: 22px;
        height: 22px;
    }

    .popular-carousel__arrow svg {
        width: 11px;
        height: 11px;
    }
}

.hero-search--with-suggest {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-search__bar {
    width: 100%;
    box-sizing: border-box;
}

/* ── Compact search bar on results page ── */
.search-page .search-box {
    padding: 2px 2px 2px clamp(0.6rem, 1.2vw, 0.9rem);
    min-height: clamp(32px, 3vw, 38px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-page .search-input {
    font-size: 0.85rem !important;
}

.search-page .search-icon-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ── Filter chips (dynamic, centered) ── */
.hero-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 0 2px;
    justify-content: center;
    animation: chipsSlideIn 0.3s ease;
}

@keyframes chipsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section chips: slightly different accent to stand out */
.hero-filter-chip[data-filter^="sec_"] {
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.hero-filter-chip[data-filter^="sec_"]:hover {
    border-color: #10b981;
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
}

.hero-filter-chip[data-filter^="sec_"].hero-filter-chip--active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hero-filter-chip[data-filter="verified"] {
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.hero-filter-chip[data-filter="verified"]:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: rgba(245, 158, 11, 0.08);
}

.hero-filter-chip[data-filter="verified"].hero-filter-chip--active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.hero-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.hero-filter-chip:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.hero-filter-chip--active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hero-filter-chip--active:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

/* Sort chips (price) — amber accent */
.hero-filter-chip--sort {
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400e;
}
.hero-filter-chip--sort:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: rgba(245, 158, 11, 0.08);
}
.hero-filter-chip--sort.hero-filter-chip--active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.hero-filter-chip--sort.hero-filter-chip--active:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* City chips — teal accent */
.hero-filter-chip--city {
    border-color: rgba(20, 184, 166, 0.25);
    color: #0f766e;
}
.hero-filter-chip--city:hover {
    border-color: #14b8a6;
    color: #0d9488;
    background: rgba(20, 184, 166, 0.08);
}
.hero-filter-chip--city.hero-filter-chip--active {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}
.hero-filter-chip--city.hero-filter-chip--active:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

/* Tooltip for filter chips */
.hero-filter-chip[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.68rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-filter-chip[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
    pointer-events: none;
    z-index: 50;
}

/* ── Results container ── */
.hero-search-results {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
}

.hero-search-results--open {
    display: block;
}

.hero-search-results__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

/* ── Card ─ individual block ── */
.hero-search-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: #1a1a1a;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    position: relative;
    text-align: left;
}

.hero-search-card:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

/* ── Verified card — green left accent ── */
.hero-search-card--verified {
    border-left: 3px solid #10b981;
}

.hero-search-card__verified {
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
}

/* ── Thumbnail — 20% larger (90→108px) ── */
.hero-search-card__img {
    flex-shrink: 0;
    width: 113px;
    height: 113px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* ── Rating overlay — bottom-right on photo ── */
.hero-search-card__rating-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Body ── */
.hero-search-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    text-align: left;
}

/* Title row: title + score inline */
.hero-search-card__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Title */
.hero-search-card__title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.25;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

.hero-search-card__title mark,
.hero-search-card__desc mark {
    background: rgba(59, 130, 246, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: inherit;
    min-width: 0;
}

/* Score — stays on the right of the title */
.hero-search-card__score-inline {
    flex-shrink: 0;
    padding: 1px 7px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Description snippet */
.hero-search-card__desc {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row — now merged into __bottom for continuous chip flow */
.hero-search-card__meta {
    display: none;
}

/* Bottom area: all chips + price in one continuous flow */
.hero-search-card__bottom {
    margin-top: auto;
    padding-top: 4px;
    overflow: hidden;
    /* clearfix for floated price */
    line-height: 1.9;
}

.hero-search-card__section {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    white-space: nowrap;
    margin: 1px 2px;
    vertical-align: middle;
}

.hero-search-card__location {
    display: inline-block;
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    margin: 1px 4px 1px 2px;
    vertical-align: middle;
}

.hero-search-card__price {
    float: right;
    font-weight: 800;
    color: #059669;
    font-size: 1.35rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-left: 12px;
    margin-top: 4px;
    padding-left: 4px;
}

/* Feature tags — inline for continuous flow */
.hero-search-card__tags {
    display: inline;
}

.hero-search-card__tag {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 5px;
    white-space: nowrap;
    margin: 1px 2px;
    vertical-align: middle;
}

/* Options (driver, excursion etc.) — inline for continuous flow */
.hero-search-card__options {
    display: inline;
}

.hero-search-card__opt {
    display: inline-block;
    padding: 2px 7px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 5px;
    white-space: nowrap;
    margin: 1px 2px;
    vertical-align: middle;
}

/* Footer — removed (rating moved to photo) */
.hero-search-card__footer {
    display: none;
}

/* Arrow */
.hero-search-card__arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    align-self: center;
}

.hero-search-card:hover .hero-search-card__arrow {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ── Match score pill (old, hidden) ── */
.hero-search-card__score {
    display: none;
}

/* ── Empty & loading ── */
.hero-search-results__summary {
    padding: 8px 14px 6px;
    font-size: 0.8125rem;
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-search-results__popular-label {
    padding: 10px 14px 6px;
    font-size: 0.8125rem;
    color: #64748b;
}

.hero-search-results__popular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 14px 12px;
}

.hero-search-results__popular-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.hero-search-results__popular-btn:hover {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.2);
}

/* ── Автокомплит (suggest) при вводе ── */
.hero-search-results__suggest {
    padding: 0;
}

.hero-search-results__suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.hero-search-results__suggest-item:hover {
    background: #f8fafc;
}

.hero-search-results__suggest-title {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-search-results__suggest-cat {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 8px;
    flex-shrink: 0;
}

.hero-search-results__suggest-all {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #2563eb;
    background: #f1f5f9;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.15s;
}

.hero-search-results__suggest-all:hover {
    background: #e2e8f0;
}

.hero-search-results__suggest-empty {
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ── «Вы имели в виду?» ── */
.hero-search-results__corrected {
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8fafc;
}

.hero-search-results__corrected-btn {
    margin-left: 4px;
    padding: 2px 6px;
    font-size: inherit;
    font-weight: 600;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.hero-search-results__corrected-btn:hover {
    color: #1d4ed8;
}

/* ── «По вашему запросу ничего не нашли. Похожие заведения ниже.» ── */
.hero-search-results__similar-fallback {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #475569;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    margin: 0 12px 10px;
}

.hero-search-results__empty {
    padding: 24px 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

/* ── Animated search loading ── */
.hero-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 40px;
    gap: 16px;
    animation: searchLoadFadeIn 0.3s ease;
}

@keyframes searchLoadFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-search-loading__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3EBF2, #7AB6D9);
    color: #496275;
    animation: searchIconPulse 1.8s ease-in-out infinite;
}

@keyframes searchIconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(73, 98, 117, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 12px rgba(73, 98, 117, 0);
    }
}

.hero-search-loading__icon svg {
    animation: searchIconRotate 2.5s ease-in-out infinite;
}

@keyframes searchIconRotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

.hero-search-loading__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #496275;
    letter-spacing: 0.02em;
}

.hero-search-loading__dots span {
    display: inline-block;
    animation: dotBounce 1.4s ease-in-out infinite;
    font-weight: 800;
    color: #EE6D8A;
    font-size: 1.3em;
}

.hero-search-loading__dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-search-loading__dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.hero-search-loading__bar {
    width: 180px;
    height: 4px;
    border-radius: 4px;
    background: #E3EBF2;
    overflow: hidden;
    position: relative;
}

.hero-search-loading__bar-fill {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #7AB6D9, #EE6D8A, #496275, transparent);
    animation: barSlide 1.5s ease-in-out infinite;
}

@keyframes barSlide {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* ── Load more — plain text link ── */
.hero-search-results__more {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.hero-search-results__more:hover:not(:disabled) {
    text-decoration: underline;
    opacity: 0.85;
}

.hero-search-results__more:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ══════ Dark mode ══════ */
.dark .hero-search-results__inner {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dark .hero-search-card {
    color: #f1f5f9;
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark .hero-search-card:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.25);
}

.dark .hero-search-card__title {
    color: #f1f5f9;
}

.dark .hero-search-card__desc {
    color: #94a3b8;
}

.dark .hero-search-card__score-inline {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.dark .hero-search-card__section {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.dark .hero-search-card__location {
    color: #94a3b8;
}

.dark .hero-search-card__price {
    color: #34d399;
}

.dark .hero-search-card__tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.08));
    color: #93c5fd;
}

.dark .hero-search-card__opt {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.08));
    color: #6ee7b7;
}

.dark .hero-filter-chip {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.25);
    color: #94a3b8;
}

.dark .hero-filter-chip:hover {
    color: #93c5fd;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.dark .hero-filter-chip--active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: transparent;
}

/* Dark mode: section chips */
.dark .hero-filter-chip[data-filter^="sec_"] {
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.dark .hero-filter-chip[data-filter^="sec_"]:hover {
    border-color: #10b981;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.dark .hero-filter-chip[data-filter^="sec_"].hero-filter-chip--active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

/* Dark mode: verified chip */
.dark .hero-filter-chip[data-filter="verified"] {
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.dark .hero-filter-chip[data-filter="verified"]:hover {
    border-color: #f59e0b;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
}

.dark .hero-filter-chip[data-filter="verified"].hero-filter-chip--active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.dark .hero-search-results__more {
    color: #93c5fd;
}

/* ══════ Mobile ══════ */
@media (max-width: 560px) {

    /* Reduce hero side padding so cards sit closer to screen edges */
    .hero {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-search--with-suggest {
        max-width: 98vw !important;
    }

    .hero-filter-chips {
        gap: 5px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .hero-filter-chip {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Card: block flow with floated photo, minimal padding */
    .hero-search-card {
        display: block;
        padding: 5px 4px 18px 4px;
        border-radius: 10px;
        text-align: left;
        overflow: hidden;
    }

    .hero-search-results {
        margin-top: 4px;
    }

    .hero-search-results__inner {
        gap: 11px;
        padding: 0 2px;
    }

    /* Photo floats left, smaller for compact height */
    .hero-search-card__img {
        float: left;
        width: 56px;
        height: 56px;
        border-radius: 8px;
        margin: 0 8px 4px 0;
    }

    .hero-search-card__rating-overlay {
        font-size: 0.55rem;
        padding: 1px 4px;
        bottom: 3px;
        right: 3px;
    }

    /* Body: no longer flex child, just flows naturally */
    .hero-search-card__body {
        display: block;
        overflow: visible;
    }

    .hero-search-card__title-row {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .hero-search-card__title {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .hero-search-card__verified {
        font-size: 0.7rem;
    }

    .hero-search-card__score-inline {
        font-size: 0.55rem;
        padding: 1px 5px;
    }

    .hero-search-card__desc {
        font-size: 0.68rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* Bottom chip area — block flow so badges wrap around floated photo */
    .hero-search-card__bottom {
        display: block;
        overflow: visible;
        /* override desktop BFC so content wraps around float */
        padding-top: 2px;
        line-height: 1.25;
    }

    .hero-search-card__price {
        position: absolute;
        bottom: 6px;
        right: 10px;
        float: none;
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    /* Inline flow so badges fill space under photo too */
    .hero-search-card__tags,
    .hero-search-card__options {
        display: inline;
    }

    .hero-search-card__section {
        font-size: 0.55rem;
        padding: 0 4px;
        border-radius: 4px;
    }

    .hero-search-card__location {
        font-size: 0.6rem;
    }

    .hero-search-card__tag {
        font-size: 0.55rem;
        padding: 0 3px;
        border-radius: 4px;
    }

    .hero-search-card__opt {
        font-size: 0.55rem;
        padding: 0 3px;
        border-radius: 4px;
    }

    .hero-search-card__arrow {
        display: none;
    }

    .hero-search-results__summary {
        font-size: 0.75rem;
    }

    .hero-search-results__similar-fallback {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin: 0 8px 8px;
    }
}

/* ══════ Hide homepage sections when search is active ══════ */
body.search-active .hero-stats {
    display: none !important;
}

/* Reduce gap between search results and next sections on desktop */
body.search-active .hero {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.search-active .hero-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.search-active .promo-banners-section {
    margin-top: 20px !important;
    padding-top: 10px !important;
}

body.search-active .section {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

/* ═══════════════════════════════════════════════════════
   Search Auth Gate — shown after 5 guest searches
   ═══════════════════════════════════════════════════════ */
.search-auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 32px;
    animation: searchAuthGateFadeIn 0.4s ease;
}

@keyframes searchAuthGateFadeIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-auth-gate__icon {
    font-size: 2.4rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.search-auth-gate__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.search-auth-gate__text {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 380px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.search-auth-gate__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.search-auth-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.search-auth-gate__btn--login {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.search-auth-gate__btn--login:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.search-auth-gate__btn--register {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.search-auth-gate__btn--register:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.search-auth-gate__hint {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 560px) {
    .search-auth-gate {
        padding: 24px 16px 20px;
    }
    .search-auth-gate__icon {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }
    .search-auth-gate__title {
        font-size: 1.05rem;
    }
    .search-auth-gate__text {
        font-size: 0.82rem;
    }
    .search-auth-gate__btn {
        padding: 9px 22px;
        font-size: 0.85rem;
    }
}

/* ── Premium variant (golden star) ── */
.search-auth-gate--premium .search-auth-gate__icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18);
}

.search-auth-gate__btn--premium {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.search-auth-gate__btn--premium:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   Bla Bla Chat — Premium Gate (in-chat upsell)
   ═══════════════════════════════════════════════════════ */
.blabla-premium-gate {
    text-align: center;
    padding: 20px 16px !important;
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.25) !important;
    border-radius: 14px !important;
}

.blabla-premium-gate__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.blabla-premium-gate__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 6px;
}

.blabla-premium-gate__text {
    font-size: 0.82rem;
    color: #78716c;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blabla-premium-gate__btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.25s ease;
    margin-bottom: 8px;
}

.blabla-premium-gate__btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.blabla-premium-gate__hint {
    font-size: 0.72rem;
    color: #a8a29e;
    font-weight: 500;
}