/* =========================================
   1. CSS VARIABELEN & RESET
   ========================================= */
:root {
    --primary-color: #0a1f35;  /* Donkerblauw */
    --accent-color: #d4af37;   /* Goud */
    --text-color: #333;        /* Donkergrijs tekst */
    --light-bg: #f4f4f4;       /* Lichtgrijze achtergrond */
    --white: #ffffff;
    --radius: 12px;
    --header-height: 80px;
}

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

/* =========================================
   2. ALGEMENE STIJLEN & TYPOGRAFIE
   ========================================= */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER & NAVIGATIE
   ========================================= */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo span { color: var(--accent-color); }
.logo img { height: 50px; width: auto; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin-bottom: 0;
    align-items: center; 
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-color); }

.nav-links a.current { 
    color: var(--accent-color); 
    font-weight: bold;
}

/* --- VLAGGETJES DROPDOWN (Desktop Dropdown / Mobiel Rij) --- */

/* Basis instellingen wrapper */
.lang-dropdown-wrapper {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    z-index: 1100;
}

/* Standaard vlag styling */
.lang-options img,
.lang-trigger img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: block;
}

/* --- DESKTOP SPECIFIEK (Dropdown effect) --- */
@media (min-width: 769px) {
    /* De trigger knop (huidige taal + pijltje) */
    .lang-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    .arrow-down {
        font-size: 0.7rem;
        color: var(--white);
        transition: transform 0.3s;
    }

    /* Draai pijltje bij hover */
    .lang-dropdown-wrapper:hover .arrow-down {
        transform: rotate(180deg);
        color: var(--accent-color);
    }

    /* De lijst met vlaggen (standaard verborgen) */
    .lang-options {
        position: absolute;
        top: 100%; /* Direct onder de header */
        right: -10px; /* Rechts uitlijnen */
        background-color: var(--white);
        padding: 10px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none; /* Verberg standaard */
        flex-direction: column;
        gap: 10px;
        min-width: 60px;
        align-items: center;
        border-top: 3px solid var(--accent-color);
    }

    /* Laat menu zien bij hover over de wrapper */
    .lang-dropdown-wrapper:hover .lang-options {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* Linkjes in dropdown */
    .lang-options a {
        opacity: 0.6;
        transition: 0.3s;
    }
    
    .lang-options a:hover,
    .lang-options a.active-lang {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animatie voor dropdown */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background-color: var(--white); transition: 0.3s; }

/* =========================================
   4. HERO SECTIE
   ========================================= */
.hero {
    height: 60vh; 
    /* WebP afbeelding gebruiken! */
    background: linear-gradient(rgba(10,31,53,0.7), rgba(10,31,53,0.7)), url('../images/slowfox.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height); 
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

/* =========================================
   5. KNOPPEN (BUTTONS)
   ========================================= */
.btn-main {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    border-radius: var(--radius);
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.btn-main:hover { 
    background-color: var(--white); 
    transform: translateY(-2px); 
    color: var(--primary-color);
}
.card .btn-main:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =========================================
   6. SECTIES & GRID LAYOUT
   ========================================= */
section { padding: 60px 0; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title .line { width: 60px; height: 3px; background-color: var(--accent-color); margin: 0 auto; border-radius: 2px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* =========================================
   7. CARDS (ARRANGEMENTEN)
   ========================================= */
.card {
    background: var(--white);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: var(--radius); 
    border-top: 5px solid var(--accent-color); 
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card:hover { transform: translateY(-5px); }

.card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
    flex-grow: 1;
}
.card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}
.card li:last-child { border-bottom: none; }

.price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 15px 0;
}

/* =========================================
   8. FORMULIEREN
   ========================================= */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background-color: #f9f9f9;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); background-color: #fff; }

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    border-radius: var(--radius);
    transition: background 0.3s;
}
button[type="submit"]:hover { background-color: var(--accent-color); color: var(--primary-color); }

/* =========================================
   9. CONTACT PAGINA
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form-card { background: var(--white); padding: 30px; border-radius: var(--radius); border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.contact-info { color: inherit; text-align: left; padding-top: 0; }
.contact-info h3 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.8rem; margin-top: 0; }
.contact-info p { margin-bottom: 25px; font-size: 1rem; opacity: 0.9; }

.info-item { margin-bottom: 30px; }
.info-item h4 { color: var(--accent-color); font-family: 'Montserrat', sans-serif; font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.info-item a { color: inherit; text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: var(--accent-color); }

.address-lines p { margin-bottom: 5px; }
.address-lines p:last-child { margin-bottom: 25px; }

.map-container { margin-top: 30px; width: 100%; height: 250px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* =========================================
   10. EXTRA INFO BOXEN (CTA)
   ========================================= */
.info-box, .cta-box {
    background-color: #eef2f5;
    padding: 30px;
    border-left: 5px solid var(--accent-color); 
    margin-top: 50px;
    border-radius: var(--radius);
}
.cta-box.centered { text-align: center; }

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

.social-icons {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: fill 0.3s, transform 0.3s;
}

.social-icons a:hover svg {
    fill: var(--accent-color); 
    transform: scale(1.2);
}

/* =========================================
   12. RESPONSIVE (MOBIEL)
   ========================================= */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        background-color: var(--primary-color);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        padding: 40px 0;
        transition: 0.3s;
        overflow-y: auto;
    }
    
    .nav-links.active { right: 0; }
    
    .hero h1 { font-size: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { order: -1; text-align: center; }

    /* Taalkiezer specifiek voor mobiel:
       Hier overschrijven we de dropdown logica zodat het weer een rij is */
    
    /* Verberg de desktop trigger (enkele vlag) */
    .lang-trigger {
        display: none;
    }

    /* Reset de wrapper marges voor mobiel menu */
    .lang-dropdown-wrapper {
        margin-left: 0;
        margin-top: 30px;
        justify-content: center;
        width: 100%;
    }

    /* Toon alle opties gewoon naast elkaar */
    .lang-options {
        display: flex;
        flex-direction: row;
        gap: 15px;
        position: static; /* Geen absolute positie */
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
    }

    .lang-options a {
        opacity: 0.5;
    }

    .lang-options a.active-lang {
        opacity: 1;
        transform: scale(1.1);
        border: 1px solid var(--accent-color); /* Extra highlight mobiel */
        border-radius: 3px;
    }
}

/* =========================================
   13. HAPJES & MENUKAART
   ========================================= */
.menu-content { max-width: 800px; margin: 0 auto; }
.menu-intro { text-align: center; margin-bottom: 40px; font-size: 1.1rem; }
.menu-category-title { margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid var(--accent-color); display: inline-block; }
.menu-category-title.spacing-top { margin-top: 60px; }
.menu-item { display: flex; justify-content: space-between; border-bottom: 1px dotted #ccc; padding: 15px 0; margin-bottom: 10px; }
.menu-description { display: block; font-size: 0.9rem; color: #666; margin-top: 5px; font-style: italic; }
.lunch-box { background-color: #eef2f5; padding: 30px; border-left: 5px solid var(--accent-color); margin-top: 50px; border-radius: var(--radius); }


/* =========================================
   14. ONS SCHIP (SPECIFICATIES & GALERIJ)
   ========================================= */
.intro-text { text-align: center; max-width: 800px; margin: 0 auto 50px auto; font-size: 1.1rem; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 60px; }
.spec-card { background: var(--white); padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: var(--radius); border-left: 5px solid var(--accent-color); }
.spec-card h3 { margin-bottom: 20px; }
.spec-item { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.spec-item:last-child { border-bottom: none; }
.spec-label { font-weight: bold; color: var(--primary-color); display: block; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 3px; }
.spec-value { color: #555; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* =========================================
   15. LIGHTBOX (POPUP) MET NAVIGATIE
   ========================================= */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95); 
    justify-content: center; 
    align-items: center;
    flex-direction: column; 
}

.lightbox img { 
    max-width: 85%; 
    max-height: 80vh; 
    border-radius: 5px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    user-select: none; 
}

.close-btn { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: white; 
    font-size: 40px; 
    cursor: pointer; 
    font-weight: bold; 
    z-index: 2001;
    transition: color 0.3s;
}
.close-btn:hover { color: var(--accent-color); }

/* Navigatie Pijltjes */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Mobiele aanpassingen voor lightbox */
@media (max-width: 768px) {
    .lightbox img {
        max-width: 95%;
    }
    /* VERBERG PIJLTJES OP MOBIEL (alleen swipen) */
    .prev, .next {
        display: none !important;
    }
}

/* =========================================
   16. WHATSAPP KNOP (FIXED)
   ========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp groen */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1900; /* Onder de lightbox (2000), boven de rest */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Iets groter bij hover */
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* =========================================
   17. COOKIE POPUP (MODAL)
   ========================================= */
/* De donkere achtergrond (Overlay) */
.cookie-overlay {
    display: none; /* Standaard verborgen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Zwart met 60% doorzichtigheid */
    z-index: 10000; /* Bovenop alles */
    justify-content: center; /* Horizontaal centreren */
    align-items: center; /* Verticaal centreren */
    padding: 20px;
    backdrop-filter: blur(5px); /* Luxe effect: de achtergrond vervaagt */
}

/* Het witte kaartje */
.cookie-popup {
    background-color: #fff;
    width: 100%;
    max-width: 500px; /* Niet breder dan dit */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out; /* Kleine animatie */
}

/* Tekst styling */
.cookie-popup h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.cookie-popup p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Knoppen container */
.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Knoppen styling */
.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accept:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-decline {
    background-color: transparent;
    border: 1px solid #ccc !important;
    color: #888;
}

.btn-decline:hover {
    background-color: #f0f0f0;
    color: #333;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   18. FAQ PAGINA (ACCORDION)
   ========================================= */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    display: block; 
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* =========================================
   19. ROUTES PAGINA
   ========================================= */
.route-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.route-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 5px solid var(--accent-color);
}
.route-info {
    padding: 20px;
}
.route-duration {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: 10px;
    display: block;
}
.click-hint {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

/* =========================================
   20. BOEKING POPUP (MODAL)
   ========================================= */
.booking-overlay {
    display: none; /* Standaard verborgen */
    position: fixed;
    z-index: 3000; /* Boven lightbox (2000) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 31, 53, 0.85); /* Donkerblauw transparant */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
    overflow-y: auto; /* Zorgt dat je kunt scrollen op kleine schermen */
}

.booking-popup {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--accent-color);
    animation: slideUp 0.4s ease;
    margin: auto; /* Centreren bij scrollen */
}

.close-booking {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.close-booking:hover { color: var(--accent-color); }

.booking-popup h3 { margin-top: 0; color: var(--primary-color); margin-bottom: 10px; }
.booking-popup p { font-size: 0.9rem; color: #666; margin-bottom: 20px; }

/* Formulier Layout in Popup */
.form-row { display: flex; gap: 15px; }
.form-group.half { flex: 1; }
.booking-form textarea { resize: vertical; }

/* Mobiele aanpassing */
@media (max-width: 600px) {
    .booking-popup { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
}

/* =========================================
   21. DIVERSEN
   ========================================= */
/* Verberg de Google reCAPTCHA badge */
.grecaptcha-badge { 
    visibility: hidden; 
}

/* =========================================
   22. FORMULIER VALIDATIE (FEEDBACK)
   ========================================= */
.validation-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 1.2em; /* Voorkomt verspringen */
}
.validation-feedback.loading {
    color: #666;
    font-style: italic;
}
.validation-feedback.valid {
    color: #25D366;
    font-weight: 600;
}
.validation-feedback.invalid {
    color: #d32f2f;
}

/* Input classes die we met JS schakelen */
input.input-valid {
    border-color: #25D366 !important;
    background-color: #f0fff4 !important;
}
input.input-invalid {
    border-color: #d32f2f !important;
    background-color: #fff0f0 !important;
}

/* Animatie om aandacht te trekken bij foutieve submit */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}