@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #1b4332;
    --accent-color: #9b1b22; /* donkerrood */
    --text-color: #2b2d42;
    --bg-color: #fdfaf6; /* subtiel sepia/vintage */
    --card-bg: #fffcf8;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 50px rgba(230, 57, 70, 0.15);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --heading-font: 'Merriweather', serif;
}

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body.preload * {
    transition: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}
h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #b52129; /* Iets lichter/feller rood op hover */
    border-color: #b52129;
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

#btn-bekijk-route:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 12px 30px rgba(27, 67, 50, 0.35); /* Green shadow */
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    background-color: white;
    color: var(--primary-color);
    border-color: white; /* Expliciet witte rand terugzetten */
    box-shadow: 0 14px 32px rgba(0,0,0,0.2); /* Neutrale schaduw ipv rood */
}

.link-arrow {
    color: var(--accent-color);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--primary-color);
    transform: translateY(-5px) translateX(8px);
    opacity: 1;
}

/* ─── HEADER ──────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 250, 246, 0.93); /* licht beige ipv wit */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 3000;
    height: 80px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* groter worden van hele logo text+svg */
}

.logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.4s ease;
}

.logo:hover svg {
    transform: rotate(15deg); /* SVG extra draaien */
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    font-family: 'Outfit', system-ui, sans-serif; /* moderne font voor logo behouden */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover { color: var(--accent-color); }
nav a:hover::after { width: 100%; }

.nav-tickets {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600; /* niet meer extra dik gedrukt */
    transition: all 0.3s ease;
}
.nav-tickets::after { display: none !important; }
.nav-tickets:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

/* ─── HERO ────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;       /* tekst in het midden */
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 5% 4rem;         /* top=header hoogte, rest compact */
    background: linear-gradient(160deg, #eaf4ee 0%, #f8f8f6 60%, #fff5f5 100%);
}

/* Animated bike paths overlay */
.bg-fietspad {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    height: 100%;
    min-height: 100vh;
    min-width: 100vw;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1; /* Completely opaque */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

.bg-fietspad svg {
    width: 100%;
    height: 100%;
}

.pad-rood {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 160; /* Slightly thicker */
    opacity: 1;
}

.pad-wit {
    fill: none;
    stroke: rgba(255,255,255,0.9);
    stroke-width: 8;
    stroke-dasharray: 40 40;
    /* geanimeerd via vloeibare css + JS parallax scroll. */
    animation: loopFietspad 2s linear infinite;
}

@keyframes loopFietspad {
    to { stroke-dashoffset: -80; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 860px;
}

.hero h2 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(27, 67, 50, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollBounce 1.8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50%       { transform: translateX(-50%) translateY(10px); opacity: 0.15; }
}

/* ─── SECTION UTILITIES ───────────────────────── */
.section {
    padding: 7rem 10%;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-dark .section-label {
    color: rgba(255,255,255,0.6);
}

.section-sub {
    font-size: 1.15rem;
    color: #666;
    max-width: 640px;
    margin: 0.5rem auto 3rem;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-light { background-color: #faf8f5; border-top: 2px solid rgba(27, 67, 50, 0.07); }
.section-dark  { background: var(--primary-color); }

.section-dark h2 { color: white; }

/* ─── REVIEWS ────────────────────────────────── */
/* Zacht groen-getint off-white voor duidelijk onderscheid met hero — anders dan partners-sectie */
.reviews {
    border-top: 1px solid rgba(27, 67, 50, 0.08);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.reviews.section-dark h2 {
    color: white;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.stars { color: #ffc107; font-size: 1.2rem; margin-bottom: 1.2rem; }
.quote { font-style: italic; font-size: 1.05rem; color: #555; margin-bottom: 1.5rem; line-height: 1.7; }
.reviewer-name { font-weight: 800; color: var(--primary-color); margin-top: auto; }
.reviewer-name span { font-weight: 400; color: #888; }

/* Glassmorphism voor kaarten in donkere secties (minder contrast, meer diepte) */
.section-dark .review-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Terug naar wit lijntje */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
}

.section-dark .quote {
    color: rgba(255, 255, 255, 0.85);
}

.section-dark .reviewer-name {
    color: white;
}

.section-dark .reviewer-name span {
    color: rgba(255, 255, 255, 0.5);
}

.section-dark .review-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
}

/* ─── PARTNERS ───────────────────────────────── */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-item {
    background: rgba(250, 248, 245, 0.8); /* Beige glass stijl */
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(230, 57, 70, 0.15); /* Rood accent lijntje */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.partner-item:hover { 
    transform: translateY(-8px); /* Zelfde hover als reviews */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    background: #f0ede8; /* Iets donkerder ipv wit op hover */
}

.partner-item span { font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
    background: #111;
    color: rgba(255,255,255,0.65);
    padding: 3rem 5%;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-brand svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    width: 100%;
    text-align: center;
}

/* ─── TOUR PAGE ───────────────────────────────── */
.tour-container {
    display: flex;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
}

.tour-content {
    flex: 1;
    overflow-y: auto;
    background: #f8fbf9;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.tour-map-window {
    flex: 1.25;
    height: 100%;
    padding: 2rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-left: 40px solid var(--accent-color); /* Het rode fietspad */
}

.tour-map-window::before {
    content: '';
    position: absolute;
    top: 0; left: -24px; bottom: 0;
    width: 8px; /* Zelfde dikte als witte lijn homepage */
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.9) 50%, transparent 50%);
    background-size: 100% 80px; /* Precies 40px gestreept, 40px gap, net als dasharray 40 40 op homepage */
    background-position: 0 calc(var(--scroll-y, 0px) * -1); /* Ietsjes snellere animatie */
    z-index: 10;
}

#map {
    height: 100% !important;
    width: 100% !important;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 8px solid white;
    overflow: hidden;
}

.stop-card {
    min-height: calc(100vh - 80px);
    padding: 4rem 10%; /* gecorrigeerde padding voor betere witruimte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stop-card:nth-child(even) { background: var(--card-bg); }

.stop-card-img-wrap {
    width: 100%;
    max-height: 40vh; /* voorkom dat foto te groot is */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 40px;
    margin-bottom: 2rem; /* was 3rem */
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.stop-card img   { width: 100%; height: 100%; object-fit: cover; }
.stop-card h2    { font-size: 3.2rem; font-weight: 800; margin-bottom: 2rem; }
.stop-card p     { font-size: 1.4rem; line-height: 1.8; color: #444; }

/* ─── SUBPAGES ───────────────────────────────── */
.page-header { padding: 6rem 10% 2rem; text-align: center; }
.container   { max-width: 1200px; margin: 0 auto; padding: 4rem 5%; }
.ticket-mockup { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* ─── ADMIN ───────────────────────────────────── */
.admin-container { padding: 4rem 5%; margin-top: 80px; }
.admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; height: 75vh; }
#admin-map  { height: 100%; border-radius: 30px; }
.admin-panel { background: white; padding: 3rem; border-radius: 30px; box-shadow: var(--shadow-soft); overflow-y: auto; }
