/**
 * Search results UI — loaded after main.css (and kept across Barba nav).
 * Location row uses map navigation blue tint (#3943e7).
 */

.ttms-guest-taste-modal__eyebrow {
    display: none !important;
}

.search-result-business-group.is-open {
    background: linear-gradient(180deg, rgba(236, 253, 245, .2) 0%, rgba(255, 255, 255, .94) 42%, rgba(240, 253, 244, .9) 100%);
    border-color: rgba(16, 185, 129, .28);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 8px 28px rgba(6, 95, 70, .07);
}

.search-result-business-group.is-open:hover {
    border-color: rgba(16, 185, 129, .42);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 32px rgba(6, 95, 70, .1);
}

.search-result-business-group.is-open .search-result-business-header-wrap {
    border-bottom-color: rgba(16, 185, 129, .14);
}

.search-result-business-group.is-open .status-badge.open {
    background: rgba(16, 185, 129, .16);
    color: rgba(4, 120, 87, .98);
    border: 1px solid rgba(52, 211, 153, .45);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, .08), 0 1px 0 rgba(255, 255, 255, .45) inset;
}

.search-result-business-group.is-featured {
    position: relative;
    border-color: rgba(245, 166, 24, .42);
    background: linear-gradient(180deg, rgba(255, 248, 230, .98) 0%, rgba(255, 255, 255, .96) 46%, rgba(255, 250, 240, .94) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px rgba(180, 100, 10, .1);
    animation: searchFeaturedIn .45s ease-out both;
}

.search-result-business-group.is-featured::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7rem;
    bottom: .7rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #f8c14a 0%, #f5a618 45%, #e8890c 100%);
    pointer-events: none;
}

.search-result-business-group.is-featured:hover {
    border-color: rgba(245, 166, 24, .58);
    transform: translateY(-1px);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-result-business-group.is-featured.is-open {
    background: linear-gradient(180deg, rgba(255, 248, 230, .98) 0%, rgba(240, 253, 244, .9) 55%, rgba(236, 253, 245, .92) 100%);
    border-color: rgba(245, 166, 24, .4);
}

.featured-business-badge {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .28em .7em;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd36a 0%, #f5a618 48%, #e8890c 100%);
    color: #1a1206;
    border: 1px solid rgba(180, 100, 10, .35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 2px 8px rgba(180, 100, 10, .22);
}

.featured-business-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: searchFeaturedBadgeShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.search-result-business-group.is-featured .search-result-item:nth-child(-n+3) {
    animation: searchFeaturedItemIn .4s ease-out both;
}

.search-result-business-group.is-featured .search-result-item:nth-child(1) { animation-delay: .05s; }
.search-result-business-group.is-featured .search-result-item:nth-child(2) { animation-delay: .1s; }
.search-result-business-group.is-featured .search-result-item:nth-child(3) { animation-delay: .15s; }

@keyframes searchFeaturedIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes searchFeaturedItemIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes searchFeaturedBadgeShine {
    0%, 65% { transform: translateX(-120%); }
    85%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .search-result-business-group.is-featured,
    .search-result-business-group.is-featured .search-result-item:nth-child(-n+3),
    .featured-business-badge::after {
        animation: none;
    }

    .search-result-business-group.is-featured:hover {
        transform: none;
    }
}

/* Filters panel: no chrome — sit flush in the hero */
#search-filters-panel.search-filters-panel,
#search-filters-panel.search-filters-panel.is-open,
[data-theme="dark"] #search-filters-panel.search-filters-panel,
[data-theme="dark"] #search-filters-panel.search-filters-panel.is-open {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.search-result-item .status-badge.open,
.search-result-business-group .status-badge.open {
    background: rgba(16, 185, 129, .14);
    color: rgba(4, 120, 87, .95);
    border: 1px solid rgba(52, 211, 153, .35);
}

.search-result-business-group .result-location-row {
    margin-bottom: 0;
    padding: .55em .7em;
    border-radius: 12px;
    background: rgba(57, 67, 231, .07) !important;
    border: 1px solid rgba(57, 67, 231, .14) !important;
    box-shadow: none;
}

.search-result-business-group .result-location,
.search-result-business-group .result-location a,
.search-result-business-group .result-location__link,
.search-result-business-group .result-location__text {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    color: #3943e7 !important;
}

.search-result-business-group .result-location .result-location__pin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 18px;
    flex-shrink: 0;
}

.search-result-business-group .result-location .result-location__icon,
.search-result-business-group .result-location .icon.locations {
    position: relative;
    z-index: 1;
    width: 14px !important;
    height: 16px !important;
    min-width: 14px;
    fill: currentColor;
    color: inherit;
    transform-origin: 50% 100%;
    animation: result-location-pin-bob 1.6s ease-in-out infinite;
}

.search-result-business-group .result-location .result-location__pin-pulse {
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    transform: translateX(-50%) scale(.55);
    animation: result-location-pin-pulse 1.6s ease-out infinite;
    pointer-events: none;
}

.search-result-business-group.is-open .result-location .result-location__icon,
.search-result-business-group.is-open .result-location .result-location__pin-pulse {
    animation-duration: 1.35s;
}

@keyframes result-location-pin-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-3px);
    }

    70% {
        transform: translateY(-1px);
    }
}

@keyframes result-location-pin-pulse {
    0% {
        opacity: .4;
        transform: translateX(-50%) scale(.45);
    }

    70% {
        opacity: 0;
        transform: translateX(-50%) scale(2.1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(2.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-result-business-group .result-location .result-location__icon,
    .search-result-business-group .result-location .icon.locations,
    .search-result-business-group .result-location .result-location__pin-pulse {
        animation: none;
    }
}

.search-result-business-group .result-location a:hover,
.search-result-business-group .result-location__link:hover {
    color: #2c34c4 !important;
    text-decoration: underline;
}

.search-result-business-group.is-closed .result-location-row {
    background: rgba(107, 114, 128, .1) !important;
    border-color: rgba(107, 114, 128, .18) !important;
    box-shadow: none;
}

.search-result-business-group.is-closed .result-location,
.search-result-business-group.is-closed .result-location a,
.search-result-business-group.is-closed .result-location__link,
.search-result-business-group.is-closed .result-location__text {
    color: rgba(55, 65, 81, .78) !important;
}

[data-theme="dark"] .search-result-business-group.is-open {
    background: linear-gradient(180deg, rgba(16, 185, 129, .14) 0%, rgba(255, 255, 255, .05) 45%, rgba(16, 185, 129, .08) 100%);
    border-color: rgba(52, 211, 153, .32);
}

[data-theme="dark"] .search-result-business-group.is-open:hover {
    border-color: rgba(52, 211, 153, .48);
}

[data-theme="dark"] .search-result-business-group.is-featured {
    border-color: rgba(245, 166, 24, .42);
    background: linear-gradient(180deg, rgba(245, 166, 24, .16) 0%, rgba(255, 255, 255, .05) 48%, rgba(245, 166, 24, .08) 100%);
}

[data-theme="dark"] .search-result-business-group.is-featured.is-open {
    background: linear-gradient(180deg, rgba(245, 166, 24, .14) 0%, rgba(16, 185, 129, .1) 55%, rgba(255, 255, 255, .04) 100%);
}

[data-theme="dark"] .search-result-business-group.is-open .status-badge.open {
    background: rgba(16, 185, 129, .2);
    color: rgba(167, 243, 208, .98);
    border-color: rgba(52, 211, 153, .45);
}

[data-theme="dark"] .search-result-business-group .result-location-row {
    background: rgba(91, 99, 240, .12) !important;
    border-color: rgba(91, 99, 240, .22) !important;
}

[data-theme="dark"] .search-result-business-group .result-location,
[data-theme="dark"] .search-result-business-group .result-location a,
[data-theme="dark"] .search-result-business-group .result-location__link {
    color: #8b93ff !important;
}

[data-theme="dark"] .search-result-business-group .result-location a:hover,
[data-theme="dark"] .search-result-business-group .result-location__link:hover {
    color: #aeb4ff !important;
}

[data-theme="dark"] .search-result-business-group.is-closed .result-location-row {
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}

[data-theme="dark"] .search-result-business-group.is-closed .result-location,
[data-theme="dark"] .search-result-business-group.is-closed .result-location a,
[data-theme="dark"] .search-result-business-group.is-closed .result-location__link,
[data-theme="dark"] .search-result-business-group.is-closed .result-location__text {
    color: rgba(255, 255, 255, .55) !important;
}
