/* ─────────────────────────────────────────────
   Cartolina — Reisdagboek Napels 2026
   Design: "Italiaans Zomers"
───────────────────────────────────────────── */

/* ── Custom properties ── */
:root {
    --bg-warm:          #FDF6EC;
    --bg-card:          #FFFFFF;
    --bg-dark:          #1A1612;
    --terracotta:       #D4572A;
    --terracotta-light: #E8845F;
    --terracotta-dim:   #D4572A33;
    --olive:            #5C6B3C;
    --olive-light:      #8A9A64;
    --olive-dim:        #5C6B3C15;
    --sea-blue:         #2D6A8F;
    --lemon:            #F4D44E;
    --text-dark:        #2C2420;
    --text-light:       #F5F0E8;
    --text-muted:       #8C8078;
    --text-faint:       #B0A898;
    --border:           #E8E0D8;
    --border-input:     #E0D8D0;
    --bg-input:         #FAFAF6;
    --shadow-sm:        0 1px 4px rgba(44,36,32,.08);
    --shadow-md:        0 2px 12px rgba(44,36,32,.10);
    --shadow-lg:        0 4px 24px rgba(44,36,32,.12);
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        20px;
    --font-serif:       'Playfair Display', Georgia, serif;
    --font-sans:        'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Mono', monospace;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-warm);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    touch-action: pan-x pan-y; /* voorkom pinch-to-zoom op paginaniveau */
}

/* ── App wrapper ── */
.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ── Background watermark ── */
.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    background-image:
        radial-gradient(circle at 20% 50%, #F4D44E 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, #D4572A 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    z-index: 0;
}

/* ── Header ── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-warm) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 0;
}
.app-header--admin { padding-bottom: 12px; }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon { font-size: 22px; flex-shrink: 0; }
.brand-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1px;
}

.day-status {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: right;
}

/* ── Dag-tabs ── */
.day-tabs {
    display: flex;
    gap: 5px;
    padding-bottom: 12px;
}
.day-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: var(--radius-md);
    border: none;
    background: #F5F0E8;
    color: #5C554E;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-sans);
    white-space: nowrap;
    overflow: hidden;
}
.day-tab-emoji { font-size: 14px; }
.day-tab-label { font-size: 10px; }
.day-tab[aria-selected="true"],
.day-tab.active {
    background: linear-gradient(135deg, var(--terracotta), #B8441E);
    color: white;
    box-shadow: 0 2px 8px rgba(212,87,42,.25);
}

/* ── Main content ── */
.app-main {
    padding: 14px 16px 80px;
    position: relative;
    z-index: 1;
}

/* ── Day hero ── */
.day-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #D4572A08, #5C6B3C08);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.day-hero-emoji { font-size: 28px; flex-shrink: 0; }
.day-hero-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}
.day-hero-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── Section ── */
.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olive);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
.live-dot.hidden { display: none; }

/* ── Map ── */
.map-section { margin-bottom: 24px; }
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 180px;
    touch-action: pinch-zoom; /* kaart mag wel ingezoomd worden */
}
#leaflet-map { width: 100%; height: 100%; }
.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E8E0D8;
    z-index: 10;
}
.map-overlay.hidden { display: none; }
.map-overlay-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #B0A898;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; opacity: .6;
}
.map-overlay-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.map-footer {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 6px;
    min-height: 16px;
}

/* ── Leaflet overrides ── */
.leaflet-container { background: #d4d8c8; font-family: var(--font-sans); }
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-content { font-family: var(--font-sans); font-size: 13px; }

/* Custom marker */
.loc-marker {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--terracotta);
    border: 3px solid white;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 12px rgba(212,87,42,.4);
    animation: pulse 2s ease-in-out infinite;
}
.loc-marker--stale { background: #8C8078; animation: none; }
.plane-marker {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.hotel-marker {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--olive);
    border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
}

/* Flight map overlay */
.flight-info-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}
.flight-info-bar .flight-label {
    font-size: 13px; font-weight: 700; color: white;
    font-family: var(--font-sans);
}
.flight-info-bar .flight-sub {
    font-size: 11px; color: rgba(255,255,255,.7);
}
.flight-info-bar .flight-stats {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,.8);
}

/* ── Timeline ── */
.timeline-section { margin-top: 4px; }
.timeline { display: flex; flex-direction: column; }

.timeline-item {
    display: flex;
    gap: 14px;
    transition: opacity .3s ease;
}
.timeline-item--future { opacity: .4; }
.timeline-item--active { opacity: 1; }
.timeline-item--past   { opacity: 1; }

.timeline-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 34px;
    flex-shrink: 0;
}
.timeline-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #D0C8C0;
    transition: all .3s ease;
    z-index: 1;
    flex-shrink: 0;
}
.timeline-dot--active {
    width: 16px; height: 16px;
    border: 3px solid var(--terracotta-dim);
    box-shadow: 0 0 14px rgba(212,87,42,.5);
}
.timeline-dot--past   { background: var(--terracotta); }
.timeline-dot--travel { background: var(--sea-blue); }
.timeline-dot--flight { background: var(--sea-blue); }
.timeline-dot--food   { background: var(--terracotta); }
.timeline-dot--activity { background: var(--olive); }
.timeline-dot--free   { background: #C9A83E; }
.timeline-dot--logistics { background: var(--text-muted); }

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    min-height: 24px;
}

.timeline-body {
    flex: 1;
    padding-bottom: 20px;
    min-width: 0;
}
.timeline-item:last-child .timeline-body { padding-bottom: 0; }

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -2px;
}
.timeline-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.now-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    background: var(--terracotta);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}
.timeline-location {
    font-size: 11px;
    color: #A09890;
    font-family: var(--font-sans);
}
.timeline-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.timeline-icon { flex-shrink: 0; }

/* ── Photo carousel ── */
.carousel {
    margin-top: 10px;
    width: 100%;
    user-select: none;
    touch-action: pan-y;
}
.carousel-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    cursor: grab;
}
.carousel-card:active { cursor: grabbing; }
.carousel-img-wrap {
    position: relative;
    line-height: 0;
}
.carousel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.carousel-counter {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,.5);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-mono);
    backdrop-filter: blur(4px);
}
.carousel-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}
.carousel-arrow--prev { left: 6px; }
.carousel-arrow--next { right: 6px; }

.carousel-caption-wrap { padding: 10px 12px; }
.carousel-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}
.carousel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.carousel-dot {
    height: 7px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: var(--terracotta-dim);
    transition: all .25s ease;
    padding: 0;
}
.carousel-dot--active {
    width: 18px;
    background: var(--terracotta);
}
.carousel-dot--inactive { width: 7px; }

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 999;
}
.lightbox-backdrop[hidden] { display: none; }
.lightbox-content {
    position: relative;
    z-index: 1001;
    max-width: 100%;
    max-height: 90vh;
    text-align: center;
    touch-action: pinch-zoom; /* foto's mogen ingezoomd worden */
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-caption {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    margin-top: 10px;
    font-family: var(--font-sans);
}
.lightbox-close {
    position: fixed;
    top: 16px; right: 16px;
    z-index: 1002;
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    z-index: 1002;
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ── Pull-to-refresh ── */
.ptr-indicator {
    position: fixed;
    top: 0; left: 50%; transform: translateX(-50%);
    background: var(--terracotta);
    color: white;
    border-radius: 0 0 12px 12px;
    padding: 8px 16px;
    font-size: 13px;
    z-index: 200;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.ptr-indicator.visible { opacity: 1; }
.ptr-icon { display: inline-block; }
.ptr-indicator.spinning .ptr-icon { animation: spin .6s linear infinite; }

/* ── Bottom bar ── */
.bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(0deg, var(--bg-warm) 60%, transparent);
    padding: 16px 16px 10px;
    text-align: center;
    pointer-events: none;
    z-index: 50;
}
.bottom-bar-text {
    font-size: 10px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    letter-spacing: .04em;
}

/* ── Loading / empty states ── */
.loading-state, .empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 32px 16px;
}

/* ── Alerts ── */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}
.alert.hidden { display: none; }
.alert--error {
    background: #FDECEA; border: 1px solid #F5C6C0; color: #B71C1C;
}
.alert--success {
    background: #F0F7EC; border: 1px solid #B8D9A0; color: #2E5016;
}

/* ── Admin body ── */
.admin-body { background: #F5F0E8; }

/* ── Auth card ── */
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-icon { font-size: 36px; text-align: center; margin-bottom: 10px; }
.auth-title {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

/* ── Form elements ── */
.form-group { margin-bottom: 14px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.form-label-note {
    font-weight: 400;
    text-transform: none;
    font-style: italic;
    font-size: 10px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    font-size: 14px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    appearance: none;
    -webkit-appearance: none;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8078' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}
.form-input--mono { font-family: var(--font-mono); }
.form-input--auto, .form-select--auto {
    border-color: rgba(92,107,60,.3);
    background-color: rgba(92,107,60,.05);
}
.form-textarea { resize: vertical; line-height: 1.5; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.form-check-label { font-size: 13px; color: var(--text-muted); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: opacity .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary {
    background: linear-gradient(135deg, var(--terracotta), #B8441E);
    color: white;
    box-shadow: 0 4px 16px rgba(212,87,42,.25);
}
.btn--full { width: 100%; }
.btn--publish { padding: 14px; font-size: 15px; }
.btn--disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-header-link {
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color .15s;
}
.btn-header-link:hover { color: var(--text-dark); }

/* ── Admin cards ── */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 14px;
}
.admin-card-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

/* ── Tracking toggle ── */
.tracking-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tracking-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tracking-icon { font-size: 18px; }
.tracking-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-sans);
}
.tracking-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.toggle-switch {
    width: 48px; height: 26px;
    border-radius: 13px;
    border: none;
    background: #C0B8B0;
    position: relative;
    cursor: pointer;
    transition: background .25s ease;
    flex-shrink: 0;
}
.toggle-switch.on { background: var(--olive); }
.toggle-knob {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px; left: 3px;
    transition: left .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch.on .toggle-knob { left: 25px; }

/* ── File drop zone ── */
.file-drop-zone {
    border: 2px dashed var(--terracotta-dim);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(212,87,42,.03);
    transition: border-color .2s, background .2s;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: var(--terracotta);
    background: rgba(212,87,42,.06);
}
.file-placeholder-icon { font-size: 28px; margin-bottom: 4px; }
.file-placeholder-text { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.file-placeholder-sub  { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.photo-preview-wrap { position: relative; display: none; }
.photo-preview-wrap.visible { display: block; }
.photo-preview-wrap img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}
.photo-remove-btn {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0,0,0,.5);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ── Location info ── */
.location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: #F5F0E8;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.location-info strong { color: var(--text-dark); }

/* ── Recent posts ── */
.recent-post-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    border: 1px solid var(--border);
}
.recent-post-thumb {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.recent-post-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--border);
    font-size: 18px;
}
.recent-post-meta { flex: 1; min-width: 0; }
.recent-post-caption {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-post-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: var(--font-mono);
}
.delete-post-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: rgba(212,87,42,.4);
    padding: 4px;
    flex-shrink: 0;
    transition: color .15s;
}
.delete-post-btn:hover { color: var(--terracotta); }

/* ── Countdown ── */
.countdown-banner {
    text-align: center;
    padding: 20px 16px;
    font-family: var(--font-serif);
    color: var(--text-dark);
}
.countdown-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--terracotta);
    line-height: 1;
}
.countdown-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Responsive ── */
@media (min-width: 640px) {
    .app-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .day-hero, .timeline-section { grid-column: 1 / -1; }
    .map-section { grid-column: 2; grid-row: 2; }
    .timeline-section { grid-column: 1; grid-row: 2; margin-top: 0; }
}

@media (min-width: 1024px) {
    .app-wrapper { max-width: 1200px; }
    .app-main { grid-template-columns: 200px 1fr 360px; }
    .day-hero  { grid-column: 1 / -1; }
    .map-section  { grid-column: 3; grid-row: 2 / 4; }
    .timeline-section { grid-column: 2; grid-row: 2; }
}

/* ── Animations ── */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: .8; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-in { animation: fadeIn .3s ease both; }
