/* ═══════════════════════════════════════════════════════
   GRAND TOUR 2026 — Styles
   Mobile-first, cream/gold luxury aesthetic
   ═══════════════════════════════════════════════════════ */

/* --- TOKENS --- */
:root {
    --bg:          #0D0D0D;
    --bg-raised:   #151515;
    --text:        #E8E4DE;
    --text-dim:    rgba(232, 228, 222, 0.5);
    --gold:        #C9A84C;
    --gold-dim:    rgba(201, 168, 76, 0.2);
    --casino-bg:   #000000;
    --casino-red:  #C0392B;
    --pw-bg:       #0D0D0D;
    --font-serif:  'Outfit', -apple-system, sans-serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   PASSWORD SCREEN
   ═══════════════════════════════════════════════════════ */
#password-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--pw-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

#password-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.password-content {
    text-align: center;
}

/* Emblem */
.emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.emblem-gt {
    font-family: var(--font-serif);
    font-weight: 200;
    font-size: clamp(1.4rem, 8vw, 2.4rem);
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.emblem-year {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.25em;
    margin-top: 0.6rem;
}

.emblem-invite {
    font-family: var(--font-sans);
    font-weight: 300;
    font-style: italic;
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    margin-top: 1.2rem;
    display: block;
}

/* Password input */
.password-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    padding-bottom: 0.3rem;
}

.password-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.08em;
    width: 280px;
    padding: 0.4rem 0;
    text-align: center;
}

.password-wrapper input::placeholder {
    color: rgba(201, 168, 76, 0.55);
}

.password-wrapper button {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: transform 0.2s;
}
.password-wrapper button:hover {
    transform: translateX(3px);
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-12px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.4s ease-in-out;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
#main-content {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease 0.2s;
}
#main-content.visible {
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}

body.locked {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   HERO SLIDESHOW
   ═══════════════════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg);
}

#map {
    position: absolute;
    inset: 0;
}

/* Leaflet controls below our overlays */
.leaflet-control-container {
    display: none;
}

/* Map markers */
.map-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 13px;
    border: 2px solid var(--gold);
}

/* Timeline map link */
.timeline-map-link {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0 0;
    margin-left: -9px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-route-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    animation: map-pulse 2.5s ease-in-out infinite;
    transition: background 0.3s, transform 0.3s;
}

.hero-route-link:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: scale(1.1);
    animation: none;
    opacity: 1;
}

@keyframes map-pulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.3); }
    50%      { opacity: 1;   box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}


/* ═══════════════════════════════════════════════════════
   IMPRESSIONEN (inline gallery)
   ═══════════════════════════════════════════════════════ */
#impressionen {
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.impressionen-title {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Top Bar */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.top-bar-center {
    font-family: var(--font-serif);
    font-weight: 200;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.top-bar-left,
.top-bar-right {
    position: absolute;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
}

.top-bar-left {
    left: 1.5rem;
}

.top-bar-right {
    right: 1.5rem;
}

/* Date: short on mobile, full on desktop */
.date-full { display: none; }
.date-short { display: inline; }

/* Scroll arrow */
.scroll-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    z-index: 500;
    animation: pulse-down 2.5s ease-in-out infinite;
    text-decoration: none;
}
.scroll-arrow:hover {
    opacity: 1;
}

@keyframes pulse-down {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 1;   transform: translateX(-50%) translateY(10px); }
}

/* Meta dot (reusable) */
.meta-dot {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════ */
#timeline {
    background: var(--bg);
    padding: 4rem 1.5rem;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Track — left on mobile, center on desktop */
.timeline-track {
    position: absolute;
    left: 1.2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold-dim);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform-origin: top center;
    transform: scaleY(0);
}

/* Stop — mobile: left-aligned timeline */
.timeline-stop {
    position: relative;
    padding: 2.5rem 0 2rem;
    padding-left: 3rem;
    text-align: left;
}

/* Dot — left-aligned */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--bg);
    position: absolute;
    left: 1.2rem;
    top: 3rem;
    transform: translateX(-50%);
    z-index: 4;
}

/* Card */
.stop-card {
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}
.stop-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stop-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.4rem;
}

.stop-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.stop-image {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
}
.stop-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.stop-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(232, 228, 222, 0.7);
}

.stop-detail {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.stop-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.stop-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   CASINO SECTION (Special Treatment)
   ═══════════════════════════════════════════════════════ */
.casino-stop {
    position: relative;
}

/* Full-width glow background */
.casino-bg {
    display: none;
}

.casino-stop .timeline-dot {
    border-color: var(--bg);
    z-index: 3;
}

.casino-card {
    position: relative;
    z-index: 3;
}

.casino-card h3 {
    color: #fff;
}

.casino-label {
    color: var(--casino-red);
}

.casino-card p {
    color: rgba(255, 255, 255, 0.7);
}

.casino-card .stop-links a {
    color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   DESKTOP LAYOUT (min-width: 768px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {

    /* Top Bar */
    .top-bar-left {
        left: 3rem;
    }
    .top-bar-right {
        right: 3rem;
    }

    /* Date: full format on desktop */
    .date-full { display: inline; }
    .date-short { display: none; }

    /* Timeline — desktop: reset to center line */
    #timeline {
        padding: 6rem 2rem;
    }

    .timeline-track {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-stop {
        padding: 2.5rem 0;
        padding-left: 0;
        display: flex;
        text-align: left;
    }

    .timeline-stop.right {
        justify-content: flex-start;
    }
    .timeline-stop.left {
        justify-content: flex-end;
    }

    .timeline-stop.right .stop-card {
        margin-left: calc(50% + 2.5rem);
        width: calc(50% - 2.5rem);
    }
    .timeline-stop.left .stop-card {
        margin-right: calc(50% + 2.5rem);
        width: calc(50% - 2.5rem);
        text-align: right;
    }
    .timeline-stop.left .stop-links {
        justify-content: flex-end;
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        top: 2.8rem;
        width: 14px;
        height: 14px;
        margin: 0;
        transform: translateX(-50%);
    }

    .stop-card h3 {
        font-size: 2rem;
    }

    /* Casino */
    .casino-stop .stop-links {
        justify-content: flex-end;
    }

    /* Map link — align to center line */
    .timeline-map-link {
        justify-content: center;
    }


    .top-bar-center {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
    }

    .emblem-gt {
        font-size: 3rem;
    }
    .emblem-year {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════
   LARGE SCREENS (min-width: 1200px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
}
