/* ─── Design tokens ─────────────────────────────── */
:root {
    --blue-deep:   #02294f;
    --blue-mid:    #005b96;
    --blue-light:  #b3cde0;
    --adriatic:    #0077b6;
    --gold:        #c9a84c;
    --gold-light:  #e8cc80;
    --sand:        #fdf8f0;
    --coral:       #e07b54;
    --teal:        #00b4d8;
    --pebble:      #94a3b8;
    --card-bg:     #ffffff;
    --text:        #1a1a2e;
    --text-muted:  #6b7280;
    --radius-lg:   16px;
    --radius-md:   10px;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:   0 8px 32px rgba(0,0,0,0.11);
    --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
    --shadow-glow: 0 0 0 3px rgba(201,168,76,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove iOS tap highlight flash on all interactive elements */
* { -webkit-tap-highlight-color: transparent; }

/* Remove 300ms tap delay on interactive elements (older Android) */
a, button, .day-row, .tab-btn, .booking-check, .booking-filter-btn,
.drawer-close, .plan-toggle-pill, .pill, .budget-row {
    touch-action: manipulation;
}

/* scroll-behavior: handled by Lenis */

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--sand);
    color: var(--text);
    line-height: 1.7;
}

/* ─── Scroll progress bar ───────────────────────── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;           /* always full width — scaleX does the progress */
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--gold), var(--teal), var(--adriatic));
    z-index: 1000;
    will-change: transform;
}

/* ─── Sticky nav ────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 41, 79, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    transition: transform 0.45s cubic-bezier(0.32, 0, 0.15, 1);
}

nav.nav-hidden { transform: translateY(-110%); }

.nav-brand {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--blue-light);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(179,205,224,0.3);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--gold);
    color: var(--blue-deep);
    border-color: var(--gold);
}

/* ─── Tab system ────────────────────────────────── */
.tab-bar {
    display: flex;
    background: rgba(2, 41, 79, 0.97);
    padding: 0 24px;
    border-top: 1px solid rgba(179,205,224,0.15);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--blue-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 22px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.tab-btn:hover { color: white; }

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Hero ──────────────────────────────────────── */
.hero {
    min-height: 100vh;    /* fallback for browsers without dvh */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 120px;
    background: none;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Separate GPU-composited parallax layer — GSAP animates this with translateY only */
.hero-bg {
    position: absolute;
    inset: -20% 0;        /* oversized vertically so translateY has room */
    background:
        linear-gradient(160deg, rgba(2,41,79,0.88) 0%, rgba(0,91,150,0.72) 55%, rgba(0,180,216,0.45) 100%),
        url('https://images.unsplash.com/photo-1555990793-da11153b2473?w=1600&q=80') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
}

/* Push all hero content above the bg layer — exclude the bg itself */
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--sand));
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    opacity: 0;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.12;
    margin-bottom: 14px;
    opacity: 0;
    max-width: 800px;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SplitType word gradient support — each word inherits gradient */
.hero h1 .word {
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-sub {
    font-size: 0.92rem;
    color: var(--blue-light);
    margin-bottom: 24px;
    opacity: 0;
}

.hero-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
}

.hero-download-btn {
    background: rgba(201,168,76,0.18);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}

.hero-download-btn:hover {
    background: var(--gold);
    color: #0a0e1a;
    transform: translateY(-2px);
}

.hero-download-btn:active {
    transform: translateY(0);
}

.pill {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}

.pill:hover {
    background: rgba(201,168,76,0.25);
    border-color: var(--gold-light);
}

/* ─── Shared section labels ─────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--blue-deep);
    margin-bottom: 4px;
}

/* ─── Overview cards ────────────────────────────── */
.overview {
    max-width: 1080px;
    margin: 60px auto;
    padding: 0 24px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.overview-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gold);
    opacity: 0;
    transform: translateY(30px);
}

.overview-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.overview-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--blue-deep);
    margin-bottom: 8px;
}

.overview-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Budget bars ───────────────────────────────── */
.budget-section {
    max-width: 1080px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.budget-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.budget-row { margin-bottom: 18px; }

.budget-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.budget-bar-track {
    height: 8px;
    background: #e8edf2;
    border-radius: 99px;
    overflow: hidden;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--adriatic), var(--teal));
}

.budget-total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8edf2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-total span:first-child { font-weight: 600; }
.budget-total span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--blue-mid);
}

/* ─── Hub sections ──────────────────────────────── */
.hub-section {
    max-width: 1080px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.hub-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dde3eb;
    position: relative;
}

.hub-header::before {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border-radius: 2px;
}

.hub-thumb-wrap {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;              /* clips the scale without layout shift */
    box-shadow: var(--shadow-md);
}

.hub-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: box-shadow 0.4s ease;
}

.hub-thumb-wrap:hover {
    box-shadow: var(--shadow-lg);
}

.hub-number { display: none; }

/* ─── Timeline ──────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-light), transparent);
}

.day-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(179,205,224,0.3);
    opacity: 0;
    transform: translateX(-20px);
    transition: box-shadow 0.3s, transform 0.3s;
}

.day-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(0) translateY(-2px) !important;
}

.day-card::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-mid);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--blue-light);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.day-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--blue-deep);
    line-height: 1.3;
}

.day-date {
    background: linear-gradient(135deg, var(--blue-mid), var(--adriatic));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hotel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fb);
    color: var(--blue-mid);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(0,91,150,0.15);
}

ul { padding-left: 0; list-style: none; }

li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.92rem;
    color: #374151;
}

li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-weight: 700;
}

li strong { color: var(--blue-deep); }

.flight-info {
    background: linear-gradient(135deg, #f0f7ff, #e6f3fa);
    border: 1px solid rgba(0,91,150,0.18);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.8;
}

.flight-info strong {
    color: var(--blue-deep);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ─── Bookings tab ──────────────────────────────── */
.bookings-page {
    max-width: 1080px;
    margin: 48px auto 64px;
    padding: 0 24px;
}

.flight-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.flight-option {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.flight-option:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.flight-option.recommended { border-color: var(--gold); }

.flight-option-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.airline-emirates .flight-option-header { background: #cc0000; color: white; }
.airline-etihad  .flight-option-header  { background: #8b6914; color: white; }

.airline-name { font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }

.rec-badge {
    background: var(--gold);
    color: var(--blue-deep);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.flight-body { padding: 24px 20px; }

.flight-route {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.flight-time { text-align: center; }

.flight-time .time {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--blue-deep);
    line-height: 1;
}

.flight-time .airport {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.flight-duration { flex: 1; text-align: center; }

.duration-line {
    height: 2px;
    background: linear-gradient(90deg, var(--blue-light), var(--adriatic));
    position: relative;
    margin-bottom: 6px;
}

.duration-line::after {
    content: '›';
    position: absolute;
    right: -4px;
    top: -9px;
    color: var(--adriatic);
    font-size: 1.1rem;
}

.duration-text { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.stop-badge {
    font-size: 0.72rem;
    background: #fff0e6;
    color: #c05621;
    border: 1px solid #fed7aa;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    display: inline-block;
}

.flight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

.flight-price-pp { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--blue-mid); }
.flight-price-total { font-size: 0.78rem; color: var(--text-muted); }
.flight-departs { font-size: 0.82rem; color: var(--text-muted); text-align: right; }

/* Booking checklist */
.booking-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

/* ─── Booking filter bar ───────────────────────── */
.booking-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.booking-filter-btn {
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid #d0dae6;
    background: white;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.booking-filter-btn:hover {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
}

.booking-filter-btn.active {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    color: white;
    box-shadow: 0 2px 8px rgba(10,45,80,0.18);
}

/* ─── Day group inside Pending section ─────────── */
.booking-day-group {
    margin-bottom: 8px;
}

.booking-day-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: #f4f7fb;
    border-radius: 6px;
    padding: 5px 12px;
    margin-bottom: 4px;
}

.booking-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--blue-deep);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf2;
}

.booking-section-title .icon { font-size: 1.3rem; }

.booking-list { list-style: none; padding: 0; }

.booking-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 0.9rem;
}

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

.booking-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--blue-light);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: background 0.2s, border-color 0.2s;
}

.booking-check.checked {
    background: var(--adriatic);
    border-color: var(--adriatic);
    color: white;
}

.booking-check.checked::after { content: '✓'; font-size: 0.75rem; font-weight: 700; }

.booking-info { flex: 1; }

.booking-info strong {
    display: block;
    color: var(--blue-deep);
    font-weight: 600;
    margin-bottom: 2px;
}

.booking-info span { color: var(--text-muted); font-size: 0.82rem; }

.booking-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-urgent  { background: #fee2e2; color: #b91c1c; }
.tag-soon    { background: #fef3c7; color: #92400e; }
.tag-anytime { background: #d1fae5; color: #065f46; }
.tag-done    { background: #d1fae5; color: #065f46; }

/* ─── Collapsible flight panel ──────────────────── */
.flight-panel {
    display: none;
    padding: 4px 0 16px;
    border-top: 1px dashed #dde3eb;
    margin-top: 4px;
    animation: fadeSlideDown 0.25s ease;
}

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

.flight-expand-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
    margin-left: 4px;
}

/* ─── Shimmer title animation ───────────────────── */
@keyframes shimmer-gold {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero h1.shimmer-active,
.hero h1.shimmer-active .word {
    background: linear-gradient(
        120deg,
        #ffffff 20%,
        var(--gold-light) 40%,
        #ffffff 55%,
        var(--gold-light) 75%,
        #ffffff 90%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-gold 3.5s linear infinite;
}

/* ─── Plan & Budget combined tab ────────────────── */

/* Gradient band on the tab — dark navy at top fades to sand */
#tab-plan {
    background: var(--sand);
    transition: background 0.4s ease;
}

#tab-plan.budget-visible {
    background: linear-gradient(
        to bottom,
        var(--blue-deep) 0px,
        #0d3b6e     80px,
        var(--sand) 600px
    );
}

/* View toggle pills */
.plan-view-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.plan-toggle-pill {
    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fallback colour when budget is hidden (pills sit on sand) */
#tab-plan:not(.budget-visible) .plan-toggle-pill {
    border-color: #d0dae6;
    background: white;
    color: var(--text-muted);
}

#tab-plan:not(.budget-visible) .plan-toggle-pill:hover {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
}

#tab-plan:not(.budget-visible) .plan-toggle-pill.active {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    color: white;
}

.plan-toggle-pill:hover {
    border-color: rgba(255,255,255,0.55);
    color: white;
    background: rgba(255,255,255,0.14);
}

.plan-toggle-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-deep);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(201,168,76,0.35);
}

.plan-budget-hero {
    background: linear-gradient(135deg, var(--blue-deep) 0%, #0d3b6e 60%, #071e34 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.plan-budget-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(201,168,76,0.18), transparent 68%);
    pointer-events: none;
}

.plan-budget-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(0,180,216,0.12), transparent 68%);
    pointer-events: none;
}

.plan-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.plan-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.plan-stat-primary {
    grid-column: span 2;
    background: rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.3);
}

.plan-stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.plan-stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    color: white;
    line-height: 1.15;
}

.plan-stat-primary .plan-stat-value {
    font-size: 2.1rem;
    color: var(--gold-light);
}

.plan-stat-confirmed { color: #6ee7b7 !important; }

/* Budget card overrides inside the dark hero */
.plan-budget-hero .budget-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.plan-budget-hero .budget-label-row { color: rgba(255,255,255,0.82); }
.plan-budget-hero .budget-bar-track { background: rgba(255,255,255,0.12); }
.plan-budget-hero .budget-total     { border-top-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.82); }

/* Plan section divider */
.plan-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 28px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.plan-section-divider::before,
.plan-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0dae6, transparent);
}

@media (max-width: 768px) {
    .plan-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-stat-primary { grid-column: span 2; }
    .plan-budget-hero { padding: 24px 20px; }
}

/* ─── Budget Accordion ────────────────────────── */
.budget-hero-note {
    color: rgba(255,255,255,0.48);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.budget-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.budget-accordion {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.budget-accordion.open {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
}

.budget-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 12px;
    text-align: left;
}

.budget-accordion-header:hover { background: rgba(255,255,255,0.04); }

.bac-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bac-emoji { font-size: 1.35rem; flex-shrink: 0; }

.bac-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.bac-title {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.bac-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.bac-booked  { background: rgba(110,231,183,0.16); color: #6ee7b7; border: 1px solid rgba(110,231,183,0.28); }
.bac-partial { background: rgba(251,191,36,0.14);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.24); }
.bac-est     { background: rgba(148,163,184,0.13); color: rgba(255,255,255,0.46); border: 1px solid rgba(148,163,184,0.18); }

.bac-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bac-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    white-space: nowrap;
}

.bac-chevron {
    color: rgba(255,255,255,0.35);
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    font-style: normal;
}

.budget-accordion.open .bac-chevron { transform: rotate(90deg); }

/* thin progress bar — % of category that is confirmed booked */
.budget-accordion-track {
    height: 2px;
    background: rgba(255,255,255,0.08);
    margin: 0 18px 0;
    border-radius: 99px;
    overflow: hidden;
}

.budget-accordion-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* collapsible body */
.budget-accordion-body {
    height: 0;
    overflow: hidden;
}

/* breakdown table inside body */
.budget-breakdown {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 12px;
}

.bb-row {
    display: grid;
    grid-template-columns: 86px 1fr 100px 80px;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.bb-row:last-child { border-bottom: none; }

.bb-header {
    font-weight: 600;
    color: rgba(255,255,255,0.38);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.bb-date   { color: rgba(255,255,255,0.48); font-size: 0.76rem; }
.bb-item   { color: rgba(255,255,255,0.8); }
.bb-amount { font-family: 'Playfair Display', serif; font-size: 0.88rem; color: rgba(255,255,255,0.88); text-align: right; }
.bb-status { text-align: right; }

.bb-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.bb-booked { background: rgba(110,231,183,0.14); color: #6ee7b7; }
.bb-est    { background: rgba(148,163,184,0.13); color: rgba(255,255,255,0.44); }

.bb-subtotal {
    font-weight: 700;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    border-bottom: none !important;
}

.bb-subtotal .bb-item   { color: rgba(255,255,255,0.9); font-weight: 700; }
.bb-subtotal .bb-amount { color: var(--gold-light); font-size: 0.95rem; }

/* grand total footer row */
.budget-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 14px;
    margin-top: 4px;
}

.bgt-label {
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.bgt-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold-light);
}

@media (max-width: 600px) {
    .bb-row { grid-template-columns: 1fr 90px; }
    .bb-date, .bb-status { display: none; }
    .bac-amount { font-size: 0.95rem; }
}

/* ─── Budget bar gradient colors ────────────────── */
.overview-card:nth-child(2) { border-top-color: var(--teal); }
.overview-card:nth-child(3) { border-top-color: var(--coral); }
.overview-card:nth-child(4) { border-top-color: var(--adriatic); }

/* ─── Footer ────────────────────────────────────── */
footer {
    background: var(--blue-deep);
    color: var(--blue-light);
    text-align: center;
    padding: 40px 24px;
    font-size: 0.88rem;
}

footer strong {
    display: block;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 640px) {
    /* Nav — horizontal scroll instead of stacking into multiple rows */
    nav { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nav-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        padding-bottom: 2px;
    }
    .nav-links::-webkit-scrollbar { display: none; }

    /* Timeline */
    .timeline { padding-left: 20px; }
    .timeline::before { left: 4px; }
    .day-card::before { left: -16px; }
    .day-header { flex-direction: column; }

    /* Hub thumbnail — smaller on mobile */
    .hub-thumb-wrap { width: 80px; height: 55px; }

    /* Drawer — hide resize handle (drawer is full-width here) */
    .drawer-resize-handle { display: none; }

    /* Drawer body — tighter padding on mobile, preserve min-height:0 and safe-area */
    .drawer-body { padding: 16px; min-height: 0; padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); }

    /* Booking section — reduce padding */
    .booking-section { padding: 18px 16px; }

    /* Budget card — reduce padding */
    .budget-card { padding: 20px 16px; }

    /* Plan budget hero — reduce padding */
    .plan-budget-hero { padding: 20px 16px; }

    /* Budget grand total value */
    .bgt-value { font-size: 1.2rem; }
}

/* Very small screens — hide hub thumbnail entirely */
@media (max-width: 400px) {
    .hub-thumb-wrap { display: none; }
}

/* Tablet / large mobile — tab bar, stat grid, flight font */
@media (max-width: 480px) {
    /* Tab bar — reduce padding so buttons have more room */
    .tab-btn { padding: 10px 14px; font-size: 0.8rem; }

    /* Flight time font */
    .flight-time .time { font-size: 1.3rem; }

    /* Budget grand total value */
    .bgt-value { font-size: 1.15rem; }
}

/* Narrow screens — plan stat grid collapses to single column */
@media (max-width: 420px) {
    .plan-stat-grid { grid-template-columns: 1fr; }
    .plan-stat-primary { grid-column: span 1; }
    .plan-stat-primary .plan-stat-value { font-size: 1.6rem; }
}

/* ─── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero h1, .hero-sub, .hero-pills, .hero-actions,
    .overview-card, .day-card, .day-row { opacity: 1 !important; transform: none !important; }
    .hero-bg { transform: none !important; }
    .hub-thumb { transform: none !important; }
    #progress-bar { display: none; }
    #preloader { display: none !important; }
    .hero-scroll-hint { display: none; }
    .scroll-line { animation: none; }
}

/* ─── Days list (compact clickable rows) ─────────── */
.days-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(179,205,224,0.35);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    opacity: 0;
    transform: translateY(12px);
    will-change: transform;
}

.day-row:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) !important;
    border-color: var(--gold);
}

.day-row:hover .day-row-num {
    color: var(--teal);
}

.day-row-num {
    flex-shrink: 0;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 48px;
}

.day-row-body {
    flex: 1;
    min-width: 0;
}

.day-row-body strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 5px;
}

.day-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.day-row-tags span {
    font-size: 0.73rem;
    background: rgba(0,91,150,0.07);
    color: var(--blue-mid);
    border: 1px solid rgba(0,91,150,0.18);
    border-radius: 20px;
    padding: 2px 9px;
    font-weight: 500;
    white-space: nowrap;
}

.day-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.day-row-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.day-row-arrow {
    font-size: 1.4rem;
    color: var(--blue-mid);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s;
}

.day-row:hover .day-row-arrow {
    transform: translateX(4px);
}

/* ─── Side Drawer ────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,28,46,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    /* GSAP drives opacity — no CSS transition */
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(520px, 100vw);
    height: 100vh;        /* fallback for browsers without dvh */
    height: 100dvh;
    background: var(--card-bg);
    z-index: 1000;
    overflow: hidden;     /* layout shell only — body handles scroll */
    box-shadow: -12px 0 60px rgba(0,0,0,0.28), -1px 0 0 rgba(201,168,76,0.18);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    /* GSAP drives all motion — no CSS transition */
}

.drawer.active {
    transform: translateX(0);
}

/* ─── Drawer resize handle ───────────────────────── */
.drawer-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-resize-handle::before {
    content: '';
    width: 3px;
    height: 36px;
    border-radius: 3px;
    background: rgba(201,168,76,0.3);
    transition: background 0.2s, height 0.2s, width 0.2s;
}

.drawer-resize-handle:hover::before,
.drawer-resize-handle.dragging::before {
    background: var(--gold);
    height: 56px;
    width: 4px;
}

.drawer-header {
    position: sticky;
    top: 0;
    background: linear-gradient(160deg, var(--blue-deep) 0%, #024177 100%);
    color: white;
    padding: 22px 24px 20px;
    /* Push content below status bar / notch on iPhone X+ */
    padding-top: max(22px, calc(env(safe-area-inset-top) + 12px));
    z-index: 1;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    overflow: hidden;
}

/* Gold accent strip across top of header */
.drawer-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--teal), var(--adriatic));
}

.drawer-header .drawer-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}

.drawer-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.22;
    margin: 0;
    padding-right: 48px;
}

.drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 0.95rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer-close:hover {
    background: rgba(255,255,255,0.26);
    transform: rotate(90deg) scale(1.1);
}

.drawer-body {
    padding: 28px;
    flex: 1;
    min-height: 0;        /* CRITICAL: allows flex child to shrink so overflow-y activates */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
    overscroll-behavior-y: contain;   /* stop scroll chaining to page */
    touch-action: pan-y;
    /* Safe-area: clear iPhone X+ home indicator */
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
}

/* Weather strip */
.drawer-weather {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(0,91,150,0.07), rgba(0,180,216,0.04));
    border: 1px solid rgba(0,91,150,0.14);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Ambient radial glow */
.drawer-weather::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 130px; height: 130px;
    background: radial-gradient(circle, rgba(0,180,216,0.14), transparent 70%);
    pointer-events: none;
}

.drawer-weather-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.drawer-weather-details {
    flex: 1;
}

.drawer-weather-temp {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 2px;
}

.drawer-weather-vibe {
    font-size: 0.8rem;
    color: #0369a1;
    line-height: 1.4;
}

/* Info chips row */
.drawer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.drawer-chip {
    font-size: 0.76rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid;
}

.chip-hotel {
    background: rgba(0,91,150,0.06);
    color: var(--blue-mid);
    border-color: rgba(0,91,150,0.2);
}

.chip-sunset {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.chip-done {
    background: rgba(16,185,129,0.08);
    color: #065f46;
    border-color: rgba(16,185,129,0.3);
}

/* Activities list */
.drawer-activities h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.drawer-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-activities ul li {
    font-size: 0.9rem;
    line-height: 1.68;
    color: #374151;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid rgba(179,205,224,0.35);
    border-radius: 12px;
    position: relative;
}

/* Suppress global › bullet inside drawer */
.drawer-activities ul li::before { display: none; }

.drawer-activities ul li strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-mid);
    margin-bottom: 3px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--adriatic);
    background: rgba(0,150,136,0.08);
    border: 1px solid rgba(0,150,136,0.25);
    border-radius: 12px;
    padding: 2px 9px;
    text-decoration: none;
    margin-top: 5px;
    transition: background 0.2s, color 0.2s;
}
.map-link:hover {
    background: var(--adriatic);
    color: #fff;
}

/* ─── Food Tips Tile ─────────────────────────────── */
.food-tips-tile {
    margin: 16px 0;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.food-tips-tile .food-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.food-tips-tile.collapsed .food-tips-header {
    margin-bottom: 0;
}

.food-tips-tile .food-tips-header h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #92400e;
    margin: 0;
}

.food-toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s;
}

.food-toggle-btn:hover { background: #fde68a55; }

.food-toggle-chevron {
    display: inline-block;
    transition: transform 0.22s ease;
    font-style: normal;
    font-size: 0.65rem;
}

.food-tips-tile.collapsed .food-toggle-chevron {
    transform: rotate(-90deg);
}

.food-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    overflow: hidden;
    transition: opacity 0.18s ease;
}

.food-tips-tile.collapsed .food-tips-grid {
    display: none;
}

.food-tip-item {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.food-tip-item .food-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.food-tip-item .food-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #78350f;
    font-family: 'Playfair Display', serif;
}

.food-tip-item .food-desc {
    font-size: 0.72rem;
    color: #92400e;
    line-height: 1.45;
}

.food-tip-item .food-where {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .day-row { flex-wrap: wrap; }
    .day-row-right { flex-direction: row; gap: 6px; align-items: center; }
    .drawer { width: 100vw; }
}

/* ─── Cinematic Preloader ────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deep);
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
}

.preloader-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.preloader-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-track {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border-radius: 999px;
}

.preloader-curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--blue-deep);
    z-index: 1;
}

.preloader-curtain--left  { left: 0; }
.preloader-curtain--right { right: 0; }

/* ─── Custom Cursor (desktop only) ──────────────── */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }

    #cursor-ring {
        position: fixed;
        top: 0; left: 0;
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(201, 168, 76, 0.75);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10002;
        opacity: 0;
        transition: opacity 0.5s;
        will-change: transform;
    }

    #cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 5px;
        height: 5px;
        background: var(--gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10003;
        opacity: 0;
        transition: opacity 0.5s;
        will-change: transform;
    }

    body:hover #cursor-ring,
    body:hover #cursor-dot { opacity: 1; }
}

/* ─── Atmospheric Grain Overlay ─────────────────── */
#grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/></filter><rect width='256' height='256' filter='url(%23f)'/></svg>");
    background-size: 256px 256px;
    background-repeat: repeat;
}

/* ─── Hero Scroll Hint ───────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-scroll-hint span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--gold));
    transform-origin: top center;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.3); }
    50%       { opacity: 1;    transform: scaleY(1);   }
}


/* ─── Day Drawer — Leaflet Route Map ───────────────── */
.day-map-wrap {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    background: #eae8e0;
    flex-shrink: 0;
}

#day-map-canvas {
    width: 100%;
    height: 100%;
}

/* Leaflet overrides — blend with the itinerary UI */
.leaflet-container {
    font-family: 'Inter', sans-serif !important;
    background: #eae8e0;
}
.leaflet-control-zoom a {
    font-size: 16px !important;
    line-height: 28px !important;
}
.leaflet-control-attribution {
    font-size: 9px !important;
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(4px);
}
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    padding: 2px 4px !important;
}
.leaflet-popup-content {
    margin: 8px 12px !important;
}
.leaflet-popup-tip-container {
    display: none;
}

/* Map legend row (🔵 Start · 🟡 Stop · 🔴 End) */
.day-map-legend {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 2px;
    font-family: 'Inter', sans-serif;
}
.day-map-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.day-map-legend .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.8);
    display: inline-block;
}
.dot-start  { background: #2c7be5; }
.dot-stop   { background: #c9a96e; }
.dot-end    { background: #dc3545; }
.dot-hotel  { background: #16a34a; }
.dot-plane  { background: #7c3aed; }
.dot-train  { background: #1d4ed8; }
.dot-bus    { background: #ea580c; }
.dot-ferry  { background: #0891b2; }

/* Leaflet hover tooltip */
.day-map-tooltip {
  background: rgba(20, 20, 30, 0.88);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.day-map-tooltip::before { display: none; }
