/* ============================================
   TRAVUNET PREMIUM UPGRADE
   Refined typography, motion, depth, and polish
   ============================================ */

/* --- Design tokens --- */
:root {
    --tv-primary: #0db3ea;
    --tv-primary-dark: #0a8fbc;
    --tv-primary-light: #e6f7fb;
    --tv-accent: #f59e0b;
    --tv-ink: #0f172a;
    --tv-muted: #64748b;
    --tv-line: #e2e8f0;
    --tv-surface: #ffffff;
    --tv-soft: #f8fafc;
    --tv-success: #10b981;
    --tv-radius-sm: 8px;
    --tv-radius-md: 14px;
    --tv-radius-lg: 20px;
    --tv-radius-pill: 999px;
    --tv-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --tv-shadow-md: 0 4px 16px rgba(15,23,42,.08);
    --tv-shadow-lg: 0 12px 40px rgba(15,23,42,.1);
    --tv-shadow-xl: 0 20px 60px rgba(15,23,42,.14);
    --tv-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* --- Smooth scroll & selection --- */
html { scroll-behavior: smooth; }
::selection { background: rgba(13,179,234,.14); color: var(--tv-ink); }

/* --- Centered, compact header layout --- */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-actions > li {
    display: flex;
    align-items: center;
}

.navbar > .container,
.premium-nav > .container {
    padding-top: 0 !important;
}

/* --- Scroll-reveal animation --- */
@keyframes tvReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tv-reveal {
    opacity: 0;
    transform: translateY(24px);
}
.tv-reveal.tv-visible {
    animation: tvReveal .6s var(--tv-transition) forwards;
}

/* --- Premium navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(226,232,240,.6);
    padding: .48rem 0;
    transition: background var(--tv-transition), box-shadow var(--tv-transition), padding var(--tv-transition);
}
.navbar.tv-scrolled {
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 8px rgba(15,23,42,.06);
    padding: .36rem 0;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}
.nav-menu a {
    position: relative;
    color: var(--tv-muted);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--tv-transition);
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tv-ink);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--tv-primary);
}

@media (max-width: 768px) {
    .premium-nav .nav-menu,
    .nav-menu {
        gap: 4px;
    }

    .premium-nav .nav-menu li,
    .nav-menu li {
        margin: 0;
    }

    .premium-nav .nav-menu a,
    .nav-menu a {
        padding-top: 9px;
        padding-bottom: 9px;
        line-height: 1.25;
    }
}
.sign-in-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .46rem .95rem;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-pill);
    background: var(--tv-surface);
    color: var(--tv-ink) !important;
    font-weight: 700;
    transition: all var(--tv-transition);
}

@media (min-width: 769px) {
    .premium-home .premium-nav,
    body:not(.premium-home) .premium-nav,
    body:not(.premium-home) .navbar {
        padding: .38rem 0;
    }

    .premium-logo .logo-img,
    .logo-img,
    body:not(.premium-home) .logo-img,
    .premium-home .premium-logo .logo-img {
        width: 48px;
    }

    .premium-nav .nav-wrapper,
    .nav-wrapper {
        display: grid;
        grid-template-columns: minmax(178px, auto) minmax(0, 1fr) minmax(154px, auto);
        align-items: center;
    }

    .premium-nav .nav-menu,
    .nav-menu {
        justify-content: center;
        justify-self: center;
        gap: .82rem;
        margin: 0;
        padding: 0;
    }

    .premium-nav .nav-actions,
    .nav-actions {
        justify-self: end;
    }

    .premium-nav .btn-primary,
    .premium-nav .sign-in-pill,
    .premium-nav .user-menu {
        min-height: 40px;
        padding: .38rem .86rem;
    }
}
.sign-in-pill:hover {
    border-color: var(--tv-primary);
    background: var(--tv-primary-light);
}

/* --- Premium buttons --- */
.btn-primary,
.btn-search,
.btn-book,
.primary-search-button,
.flt-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--tv-radius-sm);
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, var(--tv-primary), var(--tv-primary-dark));
    color: #fff;
    font-weight: 750;
    font-size: .92rem;
    cursor: pointer;
    transition: all var(--tv-transition);
    box-shadow: 0 2px 8px rgba(13,179,234,.25);
}
.btn-primary:hover,
.btn-search:hover,
.btn-book:hover,
.primary-search-button:hover,
.flt-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,179,234,.35);
    filter: brightness(1.06);
}
.btn-primary:active,
.btn-search:active,
.btn-book:active,
.primary-search-button:active,
.flt-book:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13,179,234,.2);
}

/* --- Service hero polish --- */
.service-hero {
    position: relative;
    overflow: hidden;
}
.service-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--tv-soft), transparent);
    pointer-events: none;
}
.service-hero.compact-hero::after {
    height: 88px;
}
.service-hero .eyebrow {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Search panel glass --- */
.service-search-panel {
    background: var(--tv-surface);
    border: 1px solid rgba(226,232,240,.7);
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-lg);
    padding: 28px;
    position: relative;
    z-index: 2;
}

/* --- Input fields --- */
.field-shell {
    border-radius: var(--tv-radius-sm);
    border: 1px solid var(--tv-line);
    background: var(--tv-surface);
    transition: border-color var(--tv-transition), box-shadow var(--tv-transition);
}
.field-shell:focus-within {
    border-color: var(--tv-primary);
    box-shadow: 0 0 0 4px rgba(13,179,234,.08);
}

/* --- Result cards --- */
.service-result-card {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-sm);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
}
.service-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tv-shadow-lg);
}

/* --- Hotel cards --- */
.hotel-result-card {
    border-radius: var(--tv-radius-md);
    overflow: hidden;
}
.hotel-result-img img {
    transition: transform .4s ease;
}
.hotel-result-card:hover .hotel-result-img img {
    transform: scale(1.04);
}
.hotel-result-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}
.service-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.service-result-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tv-ink);
    line-height: 1.3;
}
.service-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--tv-radius-pill);
    background: #fef3c7;
    color: #92400e;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
    flex-shrink: 0;
}
.service-rating i { color: #f59e0b; }
.service-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--tv-muted);
    font-size: .82rem;
    font-weight: 600;
}
.service-meta-list i {
    color: var(--tv-primary);
    margin-right: 4px;
    font-size: .75rem;
}
.service-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--tv-line);
}
.service-price .from {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--tv-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.service-price .amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--tv-ink);
    line-height: 1.2;
}
.service-price small {
    font-size: .75rem;
    color: var(--tv-muted);
    font-weight: 600;
}

/* --- Flight cards --- */
.flt-card {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    background: var(--tv-surface);
    overflow: hidden;
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
    margin-bottom: 16px;
}
.flt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tv-shadow-lg);
}
.flt-main {
    padding: 22px 24px 14px;
}
.flt-logo {
    border-radius: var(--tv-radius-sm);
    border: 1px solid var(--tv-line);
    background: var(--tv-soft);
}
.flt-logo-icon {
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary-light);
    color: var(--tv-primary);
}
.flt-time {
    color: var(--tv-ink);
}
.flt-line {
    height: 2px;
    background: var(--tv-line);
    flex: 1;
    margin: 6px 0;
    border-radius: 2px;
    position: relative;
}
.flt-line span:first-child,
.flt-line span:last-child {
    background: var(--tv-primary);
    border-radius: 50%;
}
.flt-stop-dot {
    background: var(--tv-accent);
    border: 2px solid var(--tv-surface);
    border-radius: 50%;
}
.flt-tag {
    border-radius: var(--tv-radius-pill);
    font-size: .74rem;
    font-weight: 650;
    padding: 4px 10px;
    background: var(--tv-soft);
    color: var(--tv-muted);
    border: 1px solid var(--tv-line);
}
.flt-tag.cabin {
    background: var(--tv-primary-light);
    color: var(--tv-primary-dark);
    border-color: transparent;
}
.flt-tag.good {
    background: #ecfdf5;
    color: #059669;
    border-color: transparent;
}
.flt-tag.warn {
    background: #fffbeb;
    color: #b45309;
    border-color: transparent;
}
.flt-footer {
    padding: 16px 24px;
    background: var(--tv-soft);
    border-top: 1px solid var(--tv-line);
}
.flt-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--tv-ink);
}
.flt-book {
    border-radius: var(--tv-radius-sm);
    padding: 11px 26px;
}
.flt-duffel-card {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transform: none;
}
.flt-duffel-card:hover {
    transform: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}
.flt-duffel-summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1.6fr) minmax(120px, .7fr) minmax(120px, .7fr);
    gap: 22px;
    align-items: center;
    padding: 28px 28px 26px;
}
.flt-duffel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flt-duffel-logo .flt-logo,
.flt-duffel-logo .flt-logo-icon {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.flt-duffel-time,
.flt-duffel-stat {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.flt-duffel-time strong,
.flt-duffel-stat strong {
    color: #100827;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}
.flt-duffel-time span,
.flt-duffel-stat span {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.45;
}
.flt-duffel-details {
    border-top: 1px solid #e5e7eb;
    padding: 0 28px 24px;
}
.flt-duffel-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #100827;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}
.flt-duffel-details summary::-webkit-details-marker {
    display: none;
}
.flt-duffel-details summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    margin-left: 8px;
    color: #64748b;
}
.flt-duffel-details[open] summary::after {
    transform: rotate(180deg);
}
.flt-timeline {
    display: grid;
    gap: 14px;
    padding-top: 6px;
}
.flt-timeline-segment {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 16px;
}
.flt-timeline-line {
    display: grid;
    grid-template-rows: 16px 1fr 16px;
    justify-items: center;
    padding-top: 3px;
}
.flt-timeline-line i {
    width: 14px;
    height: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
}
.flt-timeline-line b {
    width: 1px;
    min-height: 54px;
    background: repeating-linear-gradient(to bottom, #cbd5e1 0 3px, transparent 3px 7px);
}
.flt-timeline-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.flt-timeline-point {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1fr);
    gap: 20px;
    color: #100827;
}
.flt-timeline-point strong {
    font-weight: 900;
}
.flt-timeline-point span {
    line-height: 1.45;
}
.flt-timeline-body p {
    margin: 0;
    color: #100827;
    font-size: .88rem;
}
.flt-segment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #4b5563;
    font-size: .76rem;
}
.flt-segment-meta span {
    width: 1px;
    min-height: 14px;
    background: #e5e7eb;
}
.flt-segment-meta i {
    color: #4b5563;
    margin-right: 4px;
}
.flt-estimated-note {
    color: #64748b;
    font-size: .76rem;
}
.flt-layover-pill {
    justify-self: start;
    border-radius: 999px;
    background: #f1f5f9;
    color: #374151;
    padding: 5px 14px;
    font-size: .84rem;
}
.flt-duffel-card .flt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 18px 28px;
}
.flt-duffel-card .flt-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.flt-duffel-card .flt-per {
    color: #6b7280;
    font-size: .82rem;
}
.flt-duffel-card .flt-price {
    color: #050505;
    font-size: 1.35rem;
    font-weight: 950;
}
.flt-duffel-card .flt-book {
    min-width: 88px;
    justify-content: center;
    border-radius: 8px;
    background: #050505;
    color: #fff;
    padding: 11px 20px;
    font-weight: 900;
}
.flt-duffel-card .flt-book:hover {
    background: #1f2937;
}
.flt-duffel-card .tv-card-actions {
    margin-left: auto;
}

/* --- Premium footer --- */
.footer {
    background: var(--tv-ink);
    color: #cbd5e1;
    border-top: none;
    padding: 64px 0 24px;
    margin-top: 0;
}
.footer-content {
    gap: 40px;
}
.footer-section h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}
.footer-section h4 {
    color: #e2e8f0;
    font-size: .85rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}
.footer-section p {
    color: #94a3b8;
    font-size: .9rem;
    line-height: 1.7;
}
.footer-section ul li a {
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 500;
    transition: color var(--tv-transition), padding-left var(--tv-transition);
}
.footer-section ul li a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.08);
    color: #94a3b8;
    border-radius: var(--tv-radius-sm);
    transition: all var(--tv-transition);
}
.footer .social-links a:hover {
    background: var(--tv-primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    color: #64748b;
    padding-top: 24px;
    margin-top: 48px;
    font-size: .84rem;
}
.footer-logo-img {
    width: 36px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 8px;
}

/* --- Empty state --- */
.empty-results-state {
    border: 1px dashed var(--tv-line);
    border-radius: var(--tv-radius-md);
    background: var(--tv-surface);
}
.empty-results-state i {
    background: var(--tv-primary-light);
    color: var(--tv-primary);
}
.empty-results-state.error-state i {
    background: #fef2f2;
    color: #ef4444;
}

/* --- Loading shimmer --- */
.service-loading {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 78px;
    padding: 22px 26px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,249,255,.92)),
        var(--tv-surface);
    border: 1px solid rgba(14,165,233,.18);
    box-shadow: 0 16px 38px rgba(15,23,42,.08);
}
.service-loading[hidden] {
    display: none !important;
}
.service-loading i,
.service-loading p {
    position: relative;
    z-index: 1;
}
.service-loading i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7 !important;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(14,165,233,.15);
}
.service-loading p {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    font-weight: 750;
}
@keyframes tvShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.service-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 30%, rgba(13,179,234,.10) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: tvShimmer 1.8s ease infinite;
    pointer-events: none;
}

/* --- Dropdown polish --- */
.dropdown-menu {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    box-shadow: var(--tv-shadow-xl);
    padding: 6px;
}
.dropdown-menu a {
    border-radius: var(--tv-radius-sm);
    font-size: .88rem;
    font-weight: 600;
    padding: 10px 14px;
}
.dropdown-menu a:hover {
    background: var(--tv-soft);
    color: var(--tv-primary);
}

/* --- Currency select --- */
.currency-select {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-pill);
    padding: 6px 12px;
    font-size: .82rem;
    font-weight: 700;
    background: var(--tv-surface);
    color: var(--tv-ink);
    transition: border-color var(--tv-transition);
}
.currency-select:hover,
.currency-select:focus {
    border-color: var(--tv-primary);
    outline: none;
}

/* --- Toast polish --- */
.toast-container .toast {
    border-radius: var(--tv-radius-sm);
    box-shadow: var(--tv-shadow-lg);
    font-weight: 600;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- Focus ring --- */
:focus-visible {
    outline: 2px solid var(--tv-primary);
    outline-offset: 2px;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    .service-search-panel { padding: 20px; }
    .flt-main { grid-template-columns: 1fr; gap: 14px; }
    .flt-main { padding: 18px; }
    .flt-details { padding: 0 18px 14px; }
    .flt-footer { padding: 14px 18px; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
    .flt-book { width: 100%; justify-content: center; }
    .service-result-footer { flex-direction: column; align-items: stretch; }
}

/* --- Homepage premium sections --- */

/* Trust section */
.trust-section {
    padding: 72px 0;
    background: var(--tv-soft);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.trust-grid article {
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--tv-radius-lg);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
}
.trust-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow-lg);
}
.trust-grid article i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
    font-size: 1.3rem;
}
.trust-grid article h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tv-ink);
}
.trust-grid article p {
    color: var(--tv-muted);
    font-size: .9rem;
    line-height: 1.65;
}

/* App band — see style.css for full implementation */

/* Flight deals grid */
.flight-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.flight-deal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    background: var(--tv-surface);
    text-decoration: none;
    color: var(--tv-ink);
    transition: all var(--tv-transition);
}
.flight-deal:hover {
    border-color: var(--tv-primary);
    box-shadow: var(--tv-shadow-md);
    transform: translateY(-2px);
}
.flight-deal i {
    color: var(--tv-primary);
    font-size: .85rem;
}
.flight-deal strong {
    display: block;
    font-size: .92rem;
    font-weight: 800;
}
.flight-deal small {
    display: block;
    color: var(--tv-muted);
    font-size: .78rem;
    font-weight: 600;
}

/* Hotel grid */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.product-card {
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow-lg);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover img {
    transform: scale(1.04);
}
.product-card h3 {
    padding: 14px 16px 4px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--tv-ink);
}
.product-card p {
    padding: 0 16px 16px;
    color: var(--tv-muted);
    font-size: .82rem;
}
.product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 0;
    font-size: .88rem;
    font-weight: 800;
    color: var(--tv-ink);
}
.product-meta span { color: var(--tv-muted); font-weight: 600; }
.product-meta .rating { margin-left: auto; }
.product-meta .rating i { color: #f59e0b; }

/* Promo card */
.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 280px;
}
.promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.promo-card:hover img { transform: scale(1.06); }
.promo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
}
.promo-card span,
.promo-card strong {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}
.promo-card span { font-size: .9rem; font-weight: 600; }
.promo-card strong {
    display: inline-block;
    margin: 8px 20px 20px;
    padding: 8px 18px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary);
    font-size: .85rem;
    font-weight: 750;
    width: fit-content;
}

/* Tour grid */
.tour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 14px;
}
.tour-card {
    position: relative;
    min-height: 220px;
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    transition: transform var(--tv-transition);
}
.tour-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%);
}
.tour-card:hover { transform: translateY(-3px); }
.tour-card span,
.tour-card small {
    position: relative;
    z-index: 1;
}
.tour-card span { font-size: 1.05rem; font-weight: 800; }
.tour-card small { font-size: .75rem; }
.tour-card.wide { grid-column: span 2; }

/* Car grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.car-card-premium {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background: var(--tv-surface);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
}
.car-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--tv-shadow-lg);
}
.car-card-premium img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.car-card-premium h3 {
    padding: 14px 16px 4px;
    font-size: .92rem;
    font-weight: 800;
}
.car-card-premium p {
    padding: 0 16px 8px;
    color: var(--tv-muted);
    font-size: .82rem;
}
.car-card-premium div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--tv-line);
}
.car-card-premium div:last-child strong {
    font-size: 1rem;
    font-weight: 900;
}
.car-card-premium div:last-child a {
    padding: 8px 16px;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--tv-transition);
}
.car-card-premium div:last-child a:hover {
    background: var(--tv-primary-dark);
}

/* Section headings */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.section-heading h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--tv-ink);
}
.section-heading p {
    color: var(--tv-muted);
    font-size: .92rem;
    margin-top: 4px;
}
.section-heading a {
    color: var(--tv-primary);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--tv-transition);
}
.section-heading a:hover { gap: 10px; }

/* Premium sections spacing */
.premium-section {
    padding: 56px 0;
}
.premium-section:nth-child(even) {
    background: var(--tv-soft);
}

/* Responsive homepage grids */
@media (max-width: 1024px) {
    .flight-deals-grid { grid-template-columns: repeat(2, 1fr); }
    .hotel-grid { grid-template-columns: repeat(2, 1fr); }
    .tour-grid { grid-template-columns: repeat(2, 1fr); }
    .tour-card.wide { grid-column: span 2; }
    .car-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .flight-deals-grid,
    .hotel-grid,
    .tour-grid,
    .car-grid,
    .trust-grid { grid-template-columns: 1fr; }
    .tour-card.wide { grid-column: span 1; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- Flight results sidebar layout --- */
.flt-results-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.flt-sidebar {
    position: sticky;
    top: 80px;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    padding: 22px;
    box-shadow: var(--tv-shadow-sm);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.flt-sidebar::-webkit-scrollbar { width: 4px; }
.flt-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.flt-trip-summary {
    background: #f8f7fb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
    color: #111827;
}
.flt-trip-summary h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 900;
}
.flt-trip-summary p {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.45;
}
.flt-trip-summary button {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    border: 1px solid #d8dbe3;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-weight: 850;
    cursor: pointer;
}
.flt-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #111827;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}
.flt-radio input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: #111827;
    flex: 0 0 auto;
}
.flt-filter-select,
.flt-filter-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8dbe3;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 650;
    padding: 0 12px;
}
.flt-time-filter {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}
.flt-time-filter:last-child {
    margin-bottom: 0;
}
.flt-time-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #4b5563;
    font-weight: 750;
}
.flt-time-filter-head small {
    color: #9ca3af;
    font-weight: 700;
}
.flt-time-filter input[type="range"] {
    width: 100%;
    accent-color: #111827;
}
.flt-time-scale {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: .78rem;
}

.flt-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tv-line);
}
.flt-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--tv-ink);
}
.flt-clear-btn {
    background: none;
    border: none;
    color: var(--tv-primary);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--tv-transition);
}
.flt-clear-btn:hover { background: var(--tv-primary-light); }

.flt-filter-group {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tv-line);
}
.flt-filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.flt-filter-group h4 {
    font-size: .82rem;
    font-weight: 800;
    color: var(--tv-ink);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.flt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    transition: color var(--tv-transition);
}
.flt-check:hover { color: var(--tv-ink); }
.flt-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    accent-color: var(--tv-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.flt-check span { flex: 1; }

.flt-filter-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.flt-filter-logo-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
    border-radius: 4px;
    font-size: .6rem;
    flex-shrink: 0;
}

.flt-price-range { padding: 4px 0; }
.flt-price-range input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--tv-line);
    border-radius: 4px;
    outline: none;
}
.flt-price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tv-primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    cursor: pointer;
}
.flt-price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--tv-muted);
}

/* Results bar */
.flt-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
}
.flt-results-bar span {
    font-size: .88rem;
    font-weight: 750;
    color: var(--tv-ink);
}
.flt-results-bar select {
    padding: 6px 12px;
    border: 1px solid var(--tv-line);
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--tv-ink);
    background: var(--tv-surface);
    cursor: pointer;
}

/* Responsive sidebar */
@media (max-width: 900px) {
    .flt-results-layout {
        grid-template-columns: 1fr;
    }
    .flt-sidebar {
        position: static;
        max-height: none;
    }
    .flt-duffel-summary {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
        padding: 22px;
    }
    .flt-duffel-stat {
        grid-column: 2;
    }
    .flt-duffel-details {
        padding: 0 22px 22px;
    }
    .flt-timeline-point {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .flt-duffel-card .flt-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 18px 22px;
    }
    .flt-duffel-card .flt-price-block {
        justify-content: center;
    }
    .flt-duffel-card .tv-card-actions {
        margin-left: 0;
        justify-content: center;
    }
}

/* --- Make entire date input clickable for calendar picker --- */
.field-shell input[type="date"] {
    cursor: pointer;
    position: relative;
}
.field-shell input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.field-shell:has(input[type="date"]) {
    cursor: pointer;
}

/* --- Sidebar placeholder state --- */
.flt-sidebar-placeholder .flt-filter-group {
    opacity: .45;
}
.flt-placeholder-text {
    color: var(--tv-muted);
    font-size: .82rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

/* --- Load more button --- */
.tv-load-more {
    text-align: center;
    padding: 20px 0 8px;
}
.tv-load-more-full {
    grid-column: 1 / -1;
}
.tv-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface);
    color: var(--tv-primary);
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
    transition: all var(--tv-transition);
}
.tv-load-more-btn:hover {
    background: var(--tv-primary-light);
    border-color: var(--tv-primary);
    transform: translateY(-1px);
}
.tv-load-more-btn i {
    font-size: .75rem;
    transition: transform var(--tv-transition);
}
.tv-load-more-btn:hover i {
    transform: translateY(2px);
}

/* --- Hotel single-column results list --- */
.htl-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.htl-wide-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.htl-wide-card .hotel-result-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
}
.htl-wide-card .hotel-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.htl-wide-card .hotel-result-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.htl-wide-card .service-result-footer {
    margin-top: auto;
}
@media (max-width: 700px) {
    .htl-wide-card {
        grid-template-columns: 1fr;
    }
    .htl-wide-card .hotel-result-img {
        height: 200px;
        min-height: auto;
    }
}

/* --- Premium date picker / calendar styling --- */

/* Chrome, Edge, Safari date picker */
input[type="date"]::-webkit-datetime-edit {
    color: var(--tv-ink);
    font-weight: 700;
    font-size: .92rem;
    padding: 2px 0;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}
input[type="date"]::-webkit-datetime-edit-text {
    color: var(--tv-muted);
    padding: 0 3px;
}
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--tv-ink);
    font-weight: 750;
}
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background: var(--tv-primary);
    color: #fff;
    border-radius: 3px;
    outline: none;
}

/* Calendar picker indicator — brand colored icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0;
    cursor: pointer;
}

/* Placeholder when empty */
input[type="date"]:invalid::-webkit-datetime-edit,
input[type="date"][value=""]::-webkit-datetime-edit {
    color: var(--tv-muted);
}

/* --- Calendar popup (Chromium browsers) --- */
::-webkit-calendar-picker-indicator:hover {
    cursor: pointer;
}

/* Style the date picker dropdown via color-scheme */
input[type="date"] {
    color-scheme: light;
}

/* Accent color for calendar selection — uses brand color */
input[type="date"],
input[type="time"] {
    accent-color: var(--tv-primary);
}

/* --- Firefox date input --- */
@supports (-moz-appearance: none) {
    input[type="date"] {
        font-weight: 700;
        color: var(--tv-ink);
    }
    input[type="date"]:focus {
        color: var(--tv-ink);
    }
}

/* --- Field shell date enhancements --- */
.field-shell:has(input[type="date"]) {
    position: relative;
}
.field-shell:has(input[type="date"])::after {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tv-primary);
    font-size: .85rem;
    pointer-events: none;
    opacity: .7;
    transition: opacity var(--tv-transition), color var(--tv-transition);
}
.field-shell:has(input[type="date"]):focus-within::after {
    opacity: 1;
    color: var(--tv-primary);
}
.field-shell:has(input[type="date"]):hover::after {
    opacity: 1;
}

/* Hide the native calendar icon since we have our own */
.field-shell input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* --- Premium focus ring on date fields --- */
.field-shell:has(input[type="date"]):focus-within {
    border-color: var(--tv-primary);
    box-shadow: 0 0 0 4px rgba(13, 179, 234, .1);
}

/* --- Skeleton loaders --- */
@keyframes tvShimmerSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.tv-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tv-skel-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background: var(--tv-surface);
}
.tv-skel-img {
    background: var(--tv-soft);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.tv-skel-img::after,
.tv-skel-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    animation: tvShimmerSlide 1.5s ease infinite;
}
.tv-skel-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tv-skel-line {
    height: 14px;
    border-radius: 6px;
    background: var(--tv-soft);
    position: relative;
    overflow: hidden;
}
.tv-skel-line.w60 { width: 60%; }
.tv-skel-line.w40 { width: 40%; }
.tv-skel-line.w80 { width: 80%; }
.tv-skel-line.w30 { width: 30%; }
.tv-skel-line.thick { height: 22px; }
.tv-skel-row {
    display: flex;
    gap: 10px;
}
/* Flight skeleton */
.tv-skel-flt {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background: var(--tv-surface);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 700px) {
    .tv-skel-card { grid-template-columns: 1fr; }
    .tv-skel-img { min-height: 160px; }
}

/* --- Recently viewed searches --- */
.tv-recent-searches {
    margin-bottom: 20px;
}
.tv-recent-title {
    font-size: .82rem;
    font-weight: 750;
    color: var(--tv-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.tv-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tv-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-pill);
    background: var(--tv-surface);
    color: var(--tv-ink);
    font-size: .84rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--tv-transition);
}
.tv-recent-chip:hover {
    border-color: var(--tv-primary);
    background: var(--tv-primary-light);
    color: var(--tv-primary);
}
.tv-recent-chip i {
    color: var(--tv-primary);
    font-size: .75rem;
}
.tv-recent-chip .tv-recent-remove {
    color: var(--tv-muted);
    font-size: .7rem;
    margin-left: 2px;
    cursor: pointer;
}
.tv-recent-chip .tv-recent-remove:hover { color: #ef4444; }

/* --- Page transition --- */
.tv-page-enter {
    animation: tvPageIn .35s ease forwards;
}
@keyframes tvPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
main { animation: tvPageIn .3s ease; }

/* --- Blur-up image loading --- */
.tv-blur-img {
    position: relative;
    overflow: hidden;
    background: var(--tv-soft);
}
.tv-blur-img img {
    transition: filter .4s ease, opacity .4s ease;
}
.tv-blur-img img[data-src] {
    filter: blur(12px);
    opacity: .6;
}
.tv-blur-img img.tv-loaded {
    filter: blur(0);
    opacity: 1;
}

/* --- Footer trust badges --- */
.footer-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 650;
    color: var(--tv-muted);
}
.footer-trust-badges i { font-size: 1rem; }
[data-theme="dark"] .footer-trust-badges span { color: #64748b; }

/* --- "People viewing" badge --- */
.tv-viewing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--tv-radius-pill);
    background: #fef3c7;
    color: #92400e;
    font-size: .74rem;
    font-weight: 700;
}
.tv-viewing-badge i { font-size: .65rem; animation: tvPulse 2s ease infinite; }
@keyframes tvPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
[data-theme="dark"] .tv-viewing-badge { background: #451a03; color: #fbbf24; }

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* Skip to content link */
.tv-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--tv-primary);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}
.tv-skip-link:focus {
    top: 0;
}

/* --- Compare bar (sticky bottom) --- */
.tv-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--tv-surface);
    border-top: 1px solid var(--tv-line);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 12px 0;
    animation: tvSlideUp .3s ease;
}
@keyframes tvSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tv-compare-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.tv-compare-items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.tv-compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--tv-radius-pill);
    background: var(--tv-primary-light);
    color: var(--tv-primary);
    font-size: .82rem;
    font-weight: 700;
}
.tv-compare-chip-x {
    background: none;
    border: none;
    color: var(--tv-primary);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.tv-compare-hint { color: var(--tv-muted); font-size: .78rem; font-weight: 600; }
.tv-compare-actions { display: flex; gap: 8px; align-items: center; }
.tv-compare-btn {
    padding: 10px 22px;
    border: none;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary);
    color: #fff;
    font-weight: 750;
    font-size: .88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.tv-compare-btn:hover { filter: brightness(1.1); }
.tv-compare-clear {
    background: none;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-sm);
    padding: 10px 16px;
    color: var(--tv-muted);
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
}
.tv-compare-clear:hover { color: #ef4444; border-color: #ef4444; }

/* Compare modal */
.tv-compare-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: tvFadeIn .2s ease;
}
@keyframes tvFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tv-compare-modal {
    background: var(--tv-surface);
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-xl);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tv-compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tv-line);
}
.tv-compare-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tv-compare-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--tv-muted);
    cursor: pointer;
    padding: 4px 8px;
}
.tv-compare-table-wrap { overflow: auto; flex: 1; }
.tv-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.tv-compare-table th {
    padding: 14px 18px;
    text-align: center;
    font-weight: 800;
    background: var(--tv-soft);
    border-bottom: 1px solid var(--tv-line);
    position: sticky;
    top: 0;
}
.tv-compare-table td {
    padding: 12px 18px;
    text-align: center;
    border-bottom: 1px solid var(--tv-line);
    font-weight: 600;
}
.tv-compare-label {
    text-align: left !important;
    font-weight: 750 !important;
    color: var(--tv-muted);
    white-space: nowrap;
}

/* Wishlist & compare buttons on cards */
.tv-card-actions {
    display: flex;
    gap: 6px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}
/* On flight cards, move to bottom-right of the main section */
.flt-card .tv-card-actions {
    position: static;
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.tv-card-action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--tv-muted);
    font-size: .82rem;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(4px);
}
.tv-card-action-btn:hover { background: #fff; color: var(--tv-primary); }
.tv-card-action-btn.tv-wishlisted { color: #ef4444; }
.tv-card-action-btn.tv-compared { background: var(--tv-primary); color: #fff; }

@media (max-width: 640px) {
    .tv-compare-bar-inner { flex-direction: column; }
    .tv-compare-modal { max-height: 90vh; }
}

/* --- Trip type tabs --- */
.tv-trip-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--tv-soft);
    border-radius: var(--tv-radius-pill);
    width: fit-content;
}
.tv-trip-tab {
    padding: 8px 18px;
    border: none;
    border-radius: var(--tv-radius-pill);
    background: transparent;
    color: var(--tv-muted);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.tv-trip-tab.active {
    background: var(--tv-surface);
    color: var(--tv-ink);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tv-trip-tab:hover:not(.active) { color: var(--tv-ink); }

/* Multi-city legs */
.tv-multi-leg {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    background: var(--tv-soft);
    position: relative;
}
.tv-multi-leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tv-multi-leg-header span {
    font-size: .82rem;
    font-weight: 800;
    color: var(--tv-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tv-multi-leg-remove {
    background: none;
    border: none;
    color: var(--tv-muted);
    cursor: pointer;
    font-size: .85rem;
    padding: 4px 8px;
    border-radius: 6px;
}
.tv-multi-leg-remove:hover { color: #ef4444; background: #fef2f2; }
.tv-multi-actions { margin-bottom: 16px; }
.tv-add-leg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px dashed var(--tv-line);
    border-radius: var(--tv-radius-sm);
    background: transparent;
    color: var(--tv-primary);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.tv-add-leg-btn:hover { background: var(--tv-primary-light); border-style: solid; }

/* --- Price alert card --- */
.tv-price-alert-wrap {
    margin-top: 20px;
}
.tv-price-alert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px dashed var(--tv-primary);
    border-radius: var(--tv-radius-md);
    background: var(--tv-primary-light);
}
.tv-price-alert-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tv-primary);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}
.tv-price-alert-text { flex: 1; }
.tv-price-alert-text strong {
    display: block;
    font-size: .92rem;
    font-weight: 800;
    color: var(--tv-ink);
    margin-bottom: 2px;
}
.tv-price-alert-text p {
    font-size: .82rem;
    color: var(--tv-muted);
    margin: 0;
}
.tv-price-alert-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary);
    color: #fff;
    font-size: .86rem;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .2s;
}
.tv-price-alert-btn:hover { filter: brightness(1.1); }
@media (max-width: 640px) {
    .tv-price-alert-card { flex-direction: column; text-align: center; }
}

/* --- Homepage premium-field date inputs clickable --- */
.premium-field input[type="date"] {
    cursor: pointer;
    position: relative;
}
.premium-field input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.premium-field:has(input[type="date"]) {
    cursor: pointer;
}

/* --- Homepage light footer override --- */
.premium-footer {
    background: #fff;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}
.premium-footer .footer-section h3,
.premium-footer .footer-section h4 { color: #111827; }
.premium-footer .footer-section p,
.premium-footer .footer-section ul li a { color: #4b5563; }
.premium-footer .footer-section ul li a:hover { color: var(--tv-primary); }
.premium-footer .social-links a { background: rgba(13,179,234,.08); color: var(--tv-primary); }
.premium-footer .social-links a:hover { background: var(--tv-primary); color: #fff; }
.premium-footer .footer-bottom { border-top-color: #e5e7eb; color: #64748b; }
.premium-footer .footer-trust-badges span { color: #64748b; }

/* --- Enhanced flight card details --- */
.flt-airport-name {
    font-size: .72rem;
    color: var(--tv-muted);
    font-weight: 600;
    margin-top: 2px;
    max-width: 140px;
    line-height: 1.3;
}
.flt-terminal {
    font-size: .68rem;
    color: var(--tv-primary);
    font-weight: 700;
    margin-top: 1px;
}
.flt-seats-warn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: var(--tv-radius-pill);
    background: #fef2f2;
    color: #dc2626;
    font-size: .78rem;
    font-weight: 700;
}
.flt-seats-warn i {
    font-size: .7rem;
    animation: tvPulse 1.5s ease infinite;
}
[data-theme="dark"] .flt-seats-warn {
    background: #450a0a;
    color: #fca5a5;
}

/* --- Mobile bottom navigation --- */
.tv-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: var(--tv-surface);
    border-top: 1px solid var(--tv-line);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    padding: 6px 0 env(safe-area-inset-bottom, 4px);
}
.tv-mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.tv-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--tv-muted);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 700;
    transition: color .2s;
    position: relative;
}
.tv-mobile-nav a.active,
.tv-mobile-nav a:hover { color: var(--tv-primary); }
.tv-mobile-nav a i { font-size: 1.15rem; }
.tv-mobile-nav .tv-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
}
@media (max-width: 768px) {
    .tv-mobile-nav { display: block; }
    body { padding-bottom: 68px; }
    .tv-compare-bar { bottom: 62px; }
}

/* --- Notification bell --- */
.tv-notif-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tv-notif-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tv-line);
    border-radius: 8px;
    background: transparent;
    color: var(--tv-muted);
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
    position: relative;
}
.tv-notif-btn:hover { background: var(--tv-primary-light); color: var(--tv-primary); }
.tv-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    border: 2px solid var(--tv-surface);
}
.tv-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    box-shadow: var(--tv-shadow-xl);
    z-index: 60;
}
.tv-notif-dropdown.open { display: block; }
.tv-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tv-line);
    font-weight: 800;
    font-size: .9rem;
}
.tv-notif-header button {
    background: none;
    border: none;
    color: var(--tv-primary);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.tv-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tv-line);
    transition: background .15s;
    cursor: pointer;
}
.tv-notif-item:hover { background: var(--tv-soft); }
.tv-notif-item.unread { background: var(--tv-primary-light); }
.tv-notif-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tv-soft);
    color: var(--tv-primary);
    font-size: .8rem;
    flex-shrink: 0;
}
.tv-notif-text { flex: 1; font-size: .84rem; line-height: 1.4; }
.tv-notif-text strong { font-weight: 750; }
.tv-notif-time { font-size: .72rem; color: var(--tv-muted); margin-top: 2px; }
.tv-notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--tv-muted);
    font-size: .88rem;
}

/* --- Social proof toast --- */
.tv-social-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    box-shadow: var(--tv-shadow-lg);
    font-size: .86rem;
    font-weight: 600;
    color: var(--tv-ink);
    animation: tvSlideInLeft .4s ease;
    max-width: 360px;
}
@keyframes tvSlideInLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.tv-social-toast-exit { animation: tvSlideOutLeft .3s ease forwards; }
@keyframes tvSlideOutLeft {
    to { transform: translateX(-120%); opacity: 0; }
}
.tv-social-toast-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    font-size: .9rem;
    flex-shrink: 0;
}
.tv-social-toast-close {
    background: none;
    border: none;
    color: var(--tv-muted);
    cursor: pointer;
    font-size: .8rem;
    padding: 4px;
    margin-left: auto;
}
@media (max-width: 768px) {
    .tv-social-toast { bottom: 76px; left: 12px; right: 12px; max-width: none; }
    .tv-notif-dropdown { width: calc(100vw - 32px); right: -60px; }
}

/* --- Flexible date price calendar --- */
.tv-flex-dates {
    margin-top: 16px;
}
.tv-flex-dates-title {
    font-size: .82rem;
    font-weight: 750;
    color: var(--tv-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tv-flex-dates-title i { color: var(--tv-primary); }
.tv-flex-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.tv-flex-day {
    padding: 8px 4px;
    border: 1px solid var(--tv-line);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: var(--tv-surface);
}
.tv-flex-day:hover { border-color: var(--tv-primary); background: var(--tv-primary-light); }
.tv-flex-day.cheapest { border-color: #10b981; background: #ecfdf5; }
.tv-flex-day.cheapest .tv-flex-price { color: #10b981; }
.tv-flex-day.selected { border-color: var(--tv-primary); background: var(--tv-primary); color: #fff; }
.tv-flex-day.selected .tv-flex-price { color: #fff; }
.tv-flex-date { font-size: .7rem; font-weight: 700; color: var(--tv-muted); }
.tv-flex-price { font-size: .72rem; font-weight: 800; color: var(--tv-ink); margin-top: 2px; }
.tv-flex-dow { font-size: .62rem; font-weight: 700; color: var(--tv-muted); text-transform: uppercase; text-align: center; padding: 4px; }

/* --- Newsletter popup --- */
.tv-newsletter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 85;
    background: var(--tv-ink);
    color: #fff;
    padding: 16px 0;
    animation: tvSlideUp .4s ease;
    display: none;
}
.tv-newsletter-bar.tv-show { display: block; }
.tv-newsletter-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tv-newsletter-inner p { flex: 1; font-size: .9rem; font-weight: 600; min-width: 200px; }
.tv-newsletter-inner p strong { color: var(--tv-primary); }
.tv-newsletter-form {
    display: flex;
    gap: 8px;
}
.tv-newsletter-form input {
    padding: 10px 16px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    min-width: 220px;
}
.tv-newsletter-form input::placeholder { color: #64748b; }
.tv-newsletter-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--tv-primary);
    color: #fff;
    font-weight: 750;
    font-size: .86rem;
    cursor: pointer;
    white-space: nowrap;
}
.tv-newsletter-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}
@media (max-width: 768px) {
    .tv-newsletter-bar { bottom: 62px; }
    .tv-newsletter-form { width: 100%; }
    .tv-newsletter-form input { flex: 1; min-width: 0; }
}

/* --- Loyalty points badge --- */
.tv-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--tv-radius-pill);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
    font-size: .72rem;
    font-weight: 800;
}
.tv-points-badge i { font-size: .65rem; }

/* --- Dashboard extras: countdown + chart --- */
.tv-dash-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.tv-dash-countdown, .tv-dash-chart {
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-md);
    padding: 22px;
}
.tv-dash-countdown h3, .tv-dash-chart h3 {
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tv-dash-countdown h3 i, .tv-dash-chart h3 i { color: var(--tv-primary); }
.tv-dash-empty { color: var(--tv-muted); font-size: .88rem; }
.tv-dash-empty a { color: var(--tv-primary); font-weight: 700; }
.tv-countdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tv-line);
}
.tv-countdown-item:last-child { border-bottom: none; }
.tv-countdown-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
    font-size: .9rem;
    flex-shrink: 0;
}
.tv-countdown-info { flex: 1; }
.tv-countdown-info strong { display: block; font-size: .88rem; font-weight: 750; }
.tv-countdown-info small { color: var(--tv-muted); font-size: .78rem; }
.tv-countdown-days {
    text-align: center;
    min-width: 50px;
}
.tv-countdown-days span {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--tv-primary);
    line-height: 1;
}
.tv-countdown-days small { font-size: .68rem; color: var(--tv-muted); font-weight: 700; }

/* Spending chart */
.tv-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding-top: 10px;
}
.tv-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.tv-chart-bar {
    width: 100%;
    max-width: 40px;
    min-height: 4px;
    background: linear-gradient(to top, var(--tv-primary), var(--tv-primary-dark, #0a8fbc));
    border-radius: 4px 4px 0 0;
    transition: height .4s ease;
}
.tv-chart-label { font-size: .68rem; font-weight: 700; color: var(--tv-muted); margin-top: 6px; }
.tv-chart-val { font-size: .65rem; font-weight: 800; color: var(--tv-ink); }
@media (max-width: 768px) {
    .tv-dash-extras { grid-template-columns: 1fr; }
}

/* --- Pull to refresh indicator --- */
.tv-pull-indicator {
    text-align: center;
    padding: 14px;
    color: var(--tv-primary);
    font-size: .86rem;
    font-weight: 700;
    animation: tvFadeIn .2s ease;
}
.tv-pull-indicator i { margin-right: 6px; }

/* --- Deals of the Day --- */
.tv-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tv-deal-card {
    position: relative;
    border-radius: var(--tv-radius-md);
    overflow: hidden;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    text-decoration: none;
    color: var(--tv-ink);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition);
}
.tv-deal-card:hover { transform: translateY(-4px); box-shadow: var(--tv-shadow-lg); }
.tv-deal-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.tv-deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--tv-radius-pill);
    background: #ef4444;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    z-index: 2;
}
.tv-deal-body { padding: 14px 16px; }
.tv-deal-body strong { display: block; font-size: .92rem; font-weight: 800; margin-bottom: 6px; }
.tv-deal-old { text-decoration: line-through; color: var(--tv-muted); font-size: .82rem; margin-right: 6px; }
.tv-deal-price { font-size: 1.1rem; font-weight: 900; color: #10b981; }
.tv-deal-body small { display: block; color: var(--tv-muted); font-size: .76rem; margin-top: 4px; }
.tv-deals-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--tv-radius-pill);
    background: #fef2f2;
    color: #ef4444;
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}
@media (max-width: 1024px) { .tv-deals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tv-deals-grid { grid-template-columns: 1fr; } }

/* --- Flight search single-row layout --- */
.tv-flight-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.tv-flight-field {
    position: relative;
    flex: 1;
    min-width: 0;
}
.tv-flight-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.tv-field-route { flex: 1.4; }
.tv-field-dates { flex: 1.3; }
.tv-field-pax { flex: 1.2; }

/* Dates combined in one shell */
.tv-dates-shell {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tv-dates-shell input[type="date"] {
    flex: 1;
    min-width: 0;
}
.tv-date-sep {
    color: var(--tv-muted);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    padding: 0 2px;
}

/* Swap button inline */
.tv-flight-row .route-swap {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 9px;
}

/* Search button */
.tv-flight-search-btn {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--tv-radius-sm);
    background: var(--tv-primary);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .2s;
    align-self: flex-end;
}
.tv-flight-search-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
    .tv-flight-row {
        flex-wrap: wrap;
    }
    .tv-field-route { flex: 1 1 200px; }
    .tv-flight-row .route-swap { margin-bottom: 4px; }
    .tv-field-dates { flex: 1 1 220px; }
    .tv-field-pax { flex: 1 1 200px; }
    .tv-flight-search-btn { width: 100%; height: 50px; flex: 1 1 100%; }
}
@media (max-width: 640px) {
    .tv-flight-row { flex-direction: column; align-items: stretch; }
    .tv-flight-row .route-swap {
        align-self: center;
        margin: 0;
        transform: rotate(90deg);
    }
    .tv-flight-field { flex: none; }
}

/* --- Custom dual-month date picker --- */
.tv-dp {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: min(720px, calc(100vw - 32px));
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius-lg);
    box-shadow: var(--tv-shadow-xl);
    animation: tvFadeIn .2s ease;
    overflow: hidden;
}
.tv-dp-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--tv-line);
}
.tv-dp-selected {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tv-dp-sel-date {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tv-muted);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}
.tv-dp-sel-date.tv-dp-active {
    color: var(--tv-ink);
    border-bottom-color: var(--tv-primary);
}
.tv-dp-arrow { color: var(--tv-muted); font-size: .9rem; }
.tv-dp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 8px;
}
.tv-dp-nav-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tv-line);
    border-radius: 50%;
    background: transparent;
    color: var(--tv-primary);
    cursor: pointer;
    font-size: .8rem;
    transition: all .15s;
}
.tv-dp-nav-btn:hover { background: var(--tv-primary-light); }
.tv-dp-months-title {
    display: flex;
    gap: 80px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--tv-ink);
}
.tv-dp-calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 8px 24px 16px;
}
.tv-dp-month { min-width: 0; }
.tv-dp-dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
}
.tv-dp-dow {
    font-size: .7rem;
    font-weight: 750;
    color: var(--tv-muted);
    padding: 6px 0;
    text-transform: uppercase;
}
.tv-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.tv-dp-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: .85rem;
    font-weight: 650;
    color: var(--tv-ink);
    border-radius: 50%;
    cursor: pointer;
    transition: all .12s;
    position: relative;
    line-height: 1.05;
}
.tv-dp-day-num {
    display: block;
}
.tv-dp-price {
    display: block;
    margin-top: 4px;
    font-size: .66rem;
    font-weight: 800;
    color: var(--tv-muted);
}
.tv-dp-has-price {
    border-radius: 10px;
}
.tv-dp-start .tv-dp-price,
.tv-dp-end .tv-dp-price {
    color: #fff;
}
.tv-dp-price-note {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 220px;
    margin-right: auto;
    color: var(--tv-muted);
    font-size: .8rem;
    font-weight: 750;
}
.tv-dp-price-note i {
    color: var(--tv-primary);
}
.tv-dp-day:hover:not(.tv-dp-disabled):not(.tv-dp-empty):not(.tv-dp-start):not(.tv-dp-end) {
    background: var(--tv-soft);
}
.tv-dp-empty { cursor: default; }
.tv-dp-disabled { color: #cbd5e1; cursor: not-allowed; }
.tv-dp-today { font-weight: 900; box-shadow: inset 0 0 0 2px var(--tv-primary); }
.tv-dp-start, .tv-dp-end {
    background: var(--tv-primary) !important;
    color: #fff !important;
    font-weight: 800;
}
.tv-dp-in-range {
    background: var(--tv-primary-light);
    border-radius: 0;
}
.tv-dp-start { border-radius: 50% 0 0 50%; }
.tv-dp-end { border-radius: 0 50% 50% 0; }
.tv-dp-start.tv-dp-end { border-radius: 50%; }
.tv-dp-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--tv-line);
}
.tv-dp-clear {
    padding: 10px 20px;
    border: 1px solid var(--tv-line);
    border-radius: 8px;
    background: transparent;
    color: var(--tv-muted);
    font-weight: 700;
    font-size: .86rem;
    cursor: pointer;
}
.tv-dp-clear:hover { color: #ef4444; border-color: #ef4444; }
.tv-dp-done {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    background: var(--tv-primary);
    color: #fff;
    font-weight: 750;
    font-size: .86rem;
    cursor: pointer;
}
.tv-dp-done:hover { filter: brightness(1.1); }

/* Trigger display */
.tv-dp-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--tv-ink);
    font: inherit;
    font-weight: 750;
    font-size: .92rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
}
.tv-dp-trigger-text { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .tv-dp {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: var(--tv-radius-lg) var(--tv-radius-lg) 0 0;
    }
    .tv-dp-calendars { grid-template-columns: 1fr; gap: 16px; }
    .tv-dp-months-title { gap: 0; flex-direction: column; text-align: center; }
}

/* --- Inline search row (hotels, cars, tours) --- */
.tv-search-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.tv-search-row .form-group {
    min-width: 0;
}
.tv-search-row .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .03em;
}
@media (max-width: 768px) {
    .tv-search-row {
        flex-wrap: wrap;
    }
    .tv-search-row .form-group {
        flex: 1 1 100% !important;
    }
    .tv-search-row .tv-flight-search-btn {
        width: 100%;
        height: 50px;
    }
}

/* --- Mobile homepage app-style search --- */
.mobile-save-band {
    display: none;
}

.package-form-row {
    grid-template-columns: 1.4fr 1fr 1fr .72fr .72fr 120px;
}

.tour-form-row {
    grid-template-columns: 1.5fr 1fr 1fr 120px;
}

.planner-form-row {
    grid-template-columns: 1.4fr .9fr .9fr .9fr 120px;
}

.package-check {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tv-ink);
    font-weight: 800;
}

.package-check input {
    width: 22px;
    height: 22px;
    accent-color: var(--tv-primary);
}

@media (max-width: 768px) {
    body.premium-home {
        background: #fff;
    }

    .premium-home .navbar {
        position: static;
        padding: 14px 0 8px;
        border-bottom: 0;
        background: #fff;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .premium-home .navbar .container,
    .premium-home .premium-hero .container,
    .premium-home .mobile-save-band .container,
    .premium-home main .container {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }

    .premium-home .premium-logo {
        gap: 10px;
    }

    .premium-home .premium-logo .logo-img {
        width: 38px;
        height: 38px;
    }

    .premium-home .premium-logo span {
        font-size: 1.7rem;
        line-height: 1;
        color: var(--tv-ink);
    }

    .premium-home .premium-logo small {
        display: none;
    }

    .premium-home .mobile-toggle {
        display: none;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--tv-ink);
        font-size: 0;
    }

    .premium-home .mobile-toggle i::before {
        content: "\f2bd";
        font-size: 1.72rem;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .premium-home .nav-actions {
        display: flex;
        margin-left: auto;
    }

    .premium-home .sign-in-pill {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--tv-ink) !important;
    }

    .premium-home .sign-in-pill > span:not(.guest-avatar) {
        display: none;
    }

    .premium-home .sign-in-pill .guest-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .premium-home .premium-hero {
        min-height: auto;
        padding: calc(var(--navbar-h, 56px) + 16px) 0 32px;
        background: #fff;
    }

    .premium-home .hero-shade,
    .premium-home .premium-hero .eyebrow,
    .premium-home .premium-hero .hero-title,
    .premium-home .premium-hero .hero-subtitle {
        display: none;
    }

    .premium-home .premium-search {
        max-width: none;
        width: 100%;
    }

    .premium-home .premium-tabs {
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 0 22px;
        padding: 0 0 12px;
        border: 0;
        border-bottom: 1px solid #dfe4ea;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .premium-home .premium-tabs::-webkit-scrollbar {
        display: none;
    }

    .premium-home .premium-tabs .tab-btn {
        min-width: 82px;
        flex: 0 0 82px;
        scroll-snap-align: start;
        display: grid;
        justify-items: center;
        gap: 9px;
        padding: 0 0 16px;
        border-radius: 0;
        background: transparent;
        color: var(--tv-ink);
        font-size: 1.02rem;
        font-weight: 850;
        line-height: 1;
        box-shadow: none;
        white-space: normal;
    }

    .premium-home .premium-tabs .tab-btn i {
        width: 62px;
        height: 62px;
        display: grid;
        place-items: center;
        border-radius: 18px;
        background: #e9f7fd;
        color: #256f94;
        font-size: 2rem;
    }

    .premium-home .premium-tabs .tab-btn.active {
        color: #1d6ed8;
        background: transparent;
        box-shadow: inset 0 -3px 0 #1d6ed8;
    }

    .premium-home .premium-tabs .tab-btn.active i {
        color: #1d6ed8;
        background: #eff8ff;
    }

    .premium-home .premium-search .search-content {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .premium-home .trip-options {
        display: none;
    }

    .premium-home .premium-form-row,
    .premium-home .package-form-row {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .premium-home .premium-field {
        min-height: 64px;
        height: auto;
        max-height: none;
        border-radius: 14px;
        padding: 12px 16px;
        gap: 2px;
        overflow: visible;
        display: grid;
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 10px;
    }

    .premium-home .premium-field span {
        grid-column: 2;
        grid-row: 1;
        display: block;
        color: #72727d;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .premium-home .premium-field span i {
        display: none; /* icon shown via grid column 1 instead */
    }

    /* Icon in column 1, spanning both rows */
    .premium-home .premium-field::before {
        display: none; /* handled per-field via the <i> inside span — keep span i visible on desktop */
    }

    /* Re-show the icon inside span on mobile by using the grid layout differently */
    .premium-home .premium-field span {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 0;
        color: #72727d;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .premium-home .premium-field span i {
        display: inline-block;
        width: 20px;
        color: #0db3ea;
        font-size: 0.9rem;
        margin-right: 5px;
        flex-shrink: 0;
    }

    .premium-home .premium-field input,
    .premium-home .premium-field select,
    .premium-home .traveler-trigger {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 4px 0 0 0;
        color: var(--tv-ink);
        font-size: 1.1rem;
        font-weight: 700;
        border: 0;
        background: transparent;
        width: 100%;
        min-width: 0;
    }

    /* Date picker trigger button */
    .premium-home .premium-field .tv-dp-trigger {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 4px 0 0 0;
        color: var(--tv-ink);
        font-size: 1.1rem;
        font-weight: 700;
        text-align: left;
        background: transparent;
        border: 0;
        width: 100%;
    }

    .premium-home .premium-field input::placeholder {
        color: #7b7b88;
        opacity: 1;
    }

    .premium-home #hotels-form .premium-field:has(input[name="checkOut"]) {
        display: none;
    }

    .premium-home #hotels-form .premium-field:has(input[name="checkIn"]) span {
        font-size: 0.78rem;
    }

    .premium-home #hotels-form .premium-field:has(input[name="checkIn"]) input,
    .premium-home #hotels-form .premium-field:has(input[name="checkIn"]) .tv-dp-trigger {
        font-size: 1.1rem;
    }

    .premium-home .package-check {
        min-height: 38px;
        font-size: 1rem;
    }

    .premium-home .premium-submit,
    .premium-home .package-submit {
        width: 100%;
        height: 56px;
        margin-top: 4px;
        border-radius: 14px;
        background: #1d6ed8;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .premium-home .premium-submit i {
        display: none;
    }

    .premium-home .premium-submit:not(.package-submit)::after {
        content: "Search";
    }

    .premium-home .mobile-save-band {
        display: block;
        background: #c8deeb;
        border-top: 1px solid #dfe6ef;
        border-bottom: 1px solid #dfe6ef;
    }

    .premium-home .mobile-save-content {
        padding: 24px 0;
        text-align: center;
        color: var(--tv-ink);
    }

    .premium-home .mobile-save-content strong {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 1.22rem;
        font-weight: 900;
    }

    .premium-home .mobile-save-content p {
        margin: 10px 0 8px;
        font-size: 1rem;
    }

    .premium-home .mobile-save-content a {
        color: var(--tv-ink);
        font-size: 1rem;
        font-weight: 800;
        text-decoration: underline;
    }

    .premium-home .premium-section {
        padding: 42px 0 0;
        background: #fff;
    }

    .premium-home .premium-section .section-heading h2 {
        font-size: 1.8rem;
        line-height: 1.08;
    }

    .premium-home .premium-section .section-heading p {
        font-size: 1.02rem;
        line-height: 1.35;
    }
}

/* --- Mobile booking search pages --- */
.mobile-service-tabs {
    display: none;
}

@media (max-width: 768px) {
    body.mobile-booking-page {
        background: #fff;
    }

    body.mobile-booking-page .navbar {
        position: static;
        padding: 14px 0 8px;
        border-bottom: 0;
        background: #fff;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.mobile-booking-page .navbar .container,
    body.mobile-booking-page .service-search-section .container,
    body.mobile-booking-page .service-results-section .container {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }

    body.mobile-booking-page .premium-logo {
        gap: 10px;
    }

    body.mobile-booking-page .premium-logo .logo-img {
        width: 38px;
        height: 38px;
    }

    body.mobile-booking-page .premium-logo span {
        font-size: 1.7rem;
        line-height: 1;
        color: var(--tv-ink);
    }

    body.mobile-booking-page .premium-logo small {
        display: none;
    }

    body.mobile-booking-page .mobile-toggle {
        display: none;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--tv-ink);
        font-size: 0;
    }

    body.mobile-booking-page .mobile-toggle i::before {
        content: "\f2bd";
        font-size: 1.72rem;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    body.mobile-booking-page .nav-actions {
        display: flex;
        margin-left: auto;
    }

    body.mobile-booking-page .sign-in-pill {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--tv-ink) !important;
    }

    body.mobile-booking-page .sign-in-pill > span:not(.guest-avatar) {
        display: none;
    }

    body.mobile-booking-page .sign-in-pill .guest-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    body.mobile-booking-page .service-hero {
        display: none;
    }

    body.mobile-booking-page .service-search-section {
        padding: 28px 0 26px;
        background: #fff;
    }

    body.mobile-booking-page .service-search-panel {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.mobile-booking-page .panel-heading {
        display: none;
    }

    .mobile-service-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin: 0 0 22px;
        padding: 0 0 12px;
        border-bottom: 1px solid #dfe4ea;
    }

    .mobile-service-tabs a {
        display: grid;
        justify-items: center;
        gap: 9px;
        padding: 0 0 16px;
        color: var(--tv-ink);
        font-size: 1.02rem;
        font-weight: 850;
        line-height: 1;
        text-decoration: none;
    }

    .mobile-service-tabs a i {
        width: 62px;
        height: 62px;
        display: grid;
        place-items: center;
        border-radius: 18px;
        background: #e9f7fd;
        color: #256f94;
        font-size: 2rem;
    }

    .mobile-service-tabs a.active {
        color: #1d6ed8;
        box-shadow: inset 0 -3px 0 #1d6ed8;
    }

    .mobile-service-tabs a.active i {
        color: #1d6ed8;
        background: #eff8ff;
    }

    body.mobile-booking-page .tv-trip-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 14px;
        padding: 5px;
        border-radius: 999px;
        background: #f3f6fa;
    }

    body.mobile-booking-page .tv-trip-tab {
        min-height: 42px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #687385;
        font-size: 0.92rem;
        font-weight: 850;
    }

    body.mobile-booking-page .tv-trip-tab.active {
        background: #fff;
        color: var(--tv-ink);
        box-shadow: 0 4px 14px rgba(15,23,42,.08);
    }

    body.mobile-booking-page .tv-flight-row,
    body.mobile-booking-page .tv-search-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
    }

    body.mobile-booking-page .tv-flight-field,
    body.mobile-booking-page .tv-search-row .form-group,
    body.mobile-booking-page #multiCityForm .form-group {
        width: 100%;
        flex: none !important;
        min-width: 0;
    }

    body.mobile-booking-page .tv-flight-field label,
    body.mobile-booking-page .tv-search-row .form-group label,
    body.mobile-booking-page #multiCityForm .form-group label {
        display: none;
    }

    body.mobile-booking-page .field-shell {
        min-height: 64px;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        border: 1.5px solid #8f929a;
        border-radius: 14px;
        background: #fff;
        padding: 13px 18px;
        box-shadow: none;
    }

    body.mobile-booking-page .field-shell i {
        grid-row: 1 / span 2;
        color: var(--tv-ink);
        font-size: 1.45rem;
        text-align: center;
    }

    body.mobile-booking-page .field-shell input,
    body.mobile-booking-page .field-shell select,
    body.mobile-booking-page .traveler-trigger,
    body.mobile-booking-page .tv-dp-trigger {
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        color: var(--tv-ink);
        font-size: 1.2rem;
        font-weight: 650;
        line-height: 1.2;
        padding: 0;
    }

    body.mobile-booking-page .field-shell input::placeholder {
        color: #7b7b88;
        opacity: 1;
    }

    body.mobile-booking-page .field-shell::before {
        content: attr(data-mobile-label);
        display: block;
        grid-column: 2;
        margin-bottom: 4px;
        color: #72727d;
        font-size: .82rem;
        font-weight: 800;
        line-height: 1;
    }

    body.mobile-booking-page .traveler-popover {
        display: none;
        left: 0;
        right: 0;
        width: 100%;
    }

    body.mobile-booking-page .traveler-popover.open {
        display: block;
    }

    body.mobile-booking-page .route-swap {
        align-self: center;
        width: 42px;
        height: 42px;
        margin: -3px 0;
        border: 1px solid #dfe6ef;
        border-radius: 50%;
        background: #eff8ff;
        color: #1d6ed8;
        transform: rotate(90deg);
    }

    body.mobile-booking-page #multiCityForm {
        display: block;
    }

    body.mobile-booking-page #multiCityForm[hidden] {
        display: none;
    }

    body.mobile-booking-page #multiCityLegs {
        display: grid;
        gap: 14px;
    }

    body.mobile-booking-page .tv-multi-leg {
        margin: 0;
        padding: 18px;
        border: 1px solid #dce6f2;
        border-radius: 20px;
        background: #f8fbff;
        box-shadow: 0 8px 22px rgba(15,23,42,.04);
    }

    body.mobile-booking-page .tv-multi-leg-header {
        margin-bottom: 14px;
    }

    body.mobile-booking-page .tv-multi-leg-header span {
        color: #12aeea;
        font-size: 1rem;
        letter-spacing: .04em;
    }

    body.mobile-booking-page #multiCityForm .service-form-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        align-items: stretch !important;
    }

    body.mobile-booking-page .tv-multi-actions {
        margin: 18px 0 14px;
    }

    body.mobile-booking-page .tv-add-leg-btn {
        width: auto;
        min-height: 52px;
        padding: 0 18px;
        border-color: #cfe2f3;
        border-radius: 14px;
        background: #fff;
        color: #0ea5e9;
        font-size: 1rem;
        font-weight: 850;
        text-transform: none;
    }

    body.mobile-booking-page .tv-flight-search-btn,
    body.mobile-booking-page .primary-search-button {
        width: 100%;
        height: 62px !important;
        min-height: 62px !important;
        flex: 0 0 62px !important;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-top: 4px;
        border-radius: 999px;
        background: #1d6ed8;
        color: #fff;
        font-size: 1.18rem;
        font-weight: 900;
        box-shadow: 0 10px 24px rgba(29,110,216,.22);
    }

    body.mobile-booking-page .tv-flight-search-btn i {
        display: none;
    }

    body.mobile-booking-page .tv-flight-search-btn::after {
        content: "Search";
    }

    body.mobile-booking-page .service-results-section {
        padding-top: 18px;
    }

    body.mobile-booking-page .flt-results-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.mobile-booking-page .flt-sidebar {
        position: static;
        max-height: none;
        border-radius: 14px;
    }
}

/* --- Overrides --- */
.premium-home .premium-submit {
    width: 60px;
    height: 54px;
    border-radius: 7px;
}

@media (min-width: 769px) {
    .premium-nav .btn-primary,
    .premium-nav .sign-in-pill,
    .premium-nav .user-menu {
        min-height: 40px;
        padding: .38rem .86rem;
        text-decoration: none;
    }
}

.service-search-panel,
.content-card,
.planner-side-stack .preview-card {
    min-width: 0;
    z-index: 1;
}

/* --- Fixed navbar offset --- */
/* The navbar is position:fixed, so every page needs top clearance.
   Hero sections already have large padding-top values that cover this.
   For non-hero pages we add a safe minimum via body padding.
   mobile-booking-page sets navbar to position:static so it's excluded. */

:root {
    --navbar-h: 62px;
}

/* Anchor scroll offset so links don't hide behind the fixed navbar */
html {
    scroll-padding-top: var(--navbar-h);
}

@media (max-width: 768px) {
    :root {
        --navbar-h: 56px;
    }

    /* Pages that have no hero section need explicit top clearance.
       We target the direct child of body that wraps page content. */
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .admin-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .dashboard-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .profile-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .notifications-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .wishlist-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .trips-container,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .bookings-page,
    body:not(.mobile-booking-page):not(.premium-home):not(.auth-screen) .checkout-page {
        padding-top: var(--navbar-h);
    }

    /* Hero sections already have their own large padding-top — just make sure
       it's at least enough to clear the navbar */
    body:not(.mobile-booking-page) .service-hero {
        padding-top: max(calc(var(--navbar-h) + 36px), 96px);
    }

    body:not(.mobile-booking-page) .service-hero.compact-hero {
        padding-top: max(calc(var(--navbar-h) + 30px), 90px);
    }

    body:not(.mobile-booking-page) .content-hero {
        padding-top: max(calc(var(--navbar-h) + 36px), 96px);
    }

    body:not(.mobile-booking-page) .page-header {
        padding-top: max(calc(var(--navbar-h) + 36px), 96px);
    }

    /* Premium home hero */
    body.premium-home .premium-hero {
        padding-top: max(calc(var(--navbar-h) + 24px), 88px);
    }
}

/* ============================================================
   MOBILE FLIGHT RESULTS — Filter sheet, flex dates, trip details
   ============================================================ */

/* --- Mobile filter bar (replaces sidebar on mobile) --- */
.flt-mobile-filter-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the sidebar on mobile — content moves to bottom sheet */
    body.mobile-booking-page .flt-sidebar {
        display: none !important;
    }

    body.mobile-booking-page .flt-results-layout {
        grid-template-columns: 1fr;
    }

    /* Show the sticky filter bar */
    .flt-mobile-filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
        padding: 10px 0 8px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 14px;
    }

    .flt-mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        padding: 0 18px;
        border: 1.5px solid #d1d5db;
        border-radius: 999px;
        background: #fff;
        color: #111827;
        font-size: .92rem;
        font-weight: 800;
        cursor: pointer;
        transition: border-color .2s, background .2s;
    }

    .flt-mobile-filter-btn:hover,
    .flt-mobile-filter-btn.has-filters {
        border-color: #0db3ea;
        background: #e6f7fb;
        color: #0a8fbc;
    }

    .flt-mobile-result-count {
        color: #6b7280;
        font-size: .84rem;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* --- Filter bottom sheet --- */
.flt-filter-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0);
    transition: background .25s;
}

.flt-filter-sheet-overlay.open {
    display: block;
    background: rgba(0, 0, 0, .45);
}

.flt-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .14);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.flt-filter-sheet-overlay.open .flt-filter-sheet {
    transform: translateY(0);
}

.flt-filter-sheet-handle {
    width: 40px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: #d1d5db;
    flex-shrink: 0;
}

.flt-filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.flt-filter-sheet-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: #111827;
}

.flt-filter-sheet-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: .9rem;
    cursor: pointer;
}

.flt-filter-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

/* Clone the sidebar filter groups inside the sheet */
.flt-filter-sheet-body .flt-filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.flt-filter-sheet-body .flt-filter-group:last-child {
    border-bottom: none;
}

.flt-filter-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: #fff;
}

.flt-filter-sheet-clear {
    flex: 1;
    height: 48px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
}

.flt-filter-sheet-apply {
    flex: 2;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #0db3ea;
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s;
}

.flt-filter-sheet-apply:hover {
    background: #0a8fbc;
}

/* --- Flexible date tiles (horizontal scroll) --- */
.tv-flex-dates {
    margin-bottom: 16px;
}

.tv-flex-dates-label {
    font-size: .8rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.tv-flex-dates-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    /* hide scrollbar but keep scroll */
    scrollbar-width: none;
}

.tv-flex-dates-track::-webkit-scrollbar {
    display: none;
}

.tv-flex-date-tile {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    text-align: center;
}

.tv-flex-date-tile:hover {
    border-color: #0db3ea;
    background: #f0fbff;
}

.tv-flex-date-tile.active {
    border-color: #0db3ea;
    background: #e6f7fb;
    box-shadow: 0 0 0 3px rgba(13, 179, 234, .15);
}

.tv-flex-date-tile .tile-day {
    font-size: .72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.tv-flex-date-tile .tile-date {
    font-size: .88rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}

.tv-flex-date-tile .tile-price {
    font-size: .78rem;
    font-weight: 800;
    color: #0db3ea;
    margin-top: 2px;
}

.tv-flex-date-tile .tile-price.tile-best {
    color: #16a34a;
}

.tv-flex-date-tile .tile-price.tile-loading {
    color: #d1d5db;
}

/* ============================================================
   GLOBAL MOBILE HEADER — all pages (not just mobile-booking-page)
   Keeps the navbar row compact when logged in
   ============================================================ */
@media (max-width: 768px) {

    /* Hide the full nav-menu behind the hamburger on all pages
       (mobile-booking-page handles its own nav separately) */
    body:not(.mobile-booking-page) .navbar .nav-menu {
        display: none;
    }
    body:not(.mobile-booking-page) .navbar .nav-menu.active {
        display: flex;
    }

    /* Show the hamburger on all pages except mobile-booking-page */
    body:not(.mobile-booking-page) .navbar .mobile-toggle {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--tv-ink, #111827);
        font-size: 1.2rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Compact nav-actions row */
    body:not(.mobile-booking-page) .navbar .nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    /* Collapse user-menu to icon + short name, no wrapping */
    body:not(.mobile-booking-page) .navbar .user-menu {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: 120px;
        height: 36px;
        padding: 0 10px;
        border-radius: 999px;
        border: 1px solid #c4ecf5;
        background: #e6f7fb;
        color: #111827 !important;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
    }

    body:not(.mobile-booking-page) .navbar .user-menu i {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    /* Collapse sign-in pill to icon only */
    body:not(.mobile-booking-page) .navbar .sign-in-pill {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    body:not(.mobile-booking-page) .navbar .sign-in-pill > span:not(.guest-avatar) {
        display: none;
    }

    body:not(.mobile-booking-page) .navbar .sign-in-pill .guest-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Notification bell — keep compact */
    body:not(.mobile-booking-page) .navbar .tv-notif-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    /* Dropdown stays positioned correctly */
    body:not(.mobile-booking-page) .navbar .dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 200px;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    body.mobile-booking-page .service-search-section {
        padding: 28px 0 26px;
        background: #fff;
        margin-top: 20px;
    }
}
