/* ============================================
   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); }

/* --- 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: .7rem 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: .5rem 0;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.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);
}
.sign-in-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .55rem 1.1rem;
    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);
}
.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 .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;
}

/* --- 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 {
    border-radius: var(--tv-radius-md);
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow-sm);
}
@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,.04) 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-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;
    }
}

/* --- 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;
    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;
}
.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;
    }
}
