﻿/* Algemene typografie en responsiviteit */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    margin-bottom: 60px;
    background-color: #f5f5f5;
    color: #1a1a1a;
    font-family: 'Segoe UI', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    min-width: 0;
    flex-shrink: 1;
}

/* Input/knop-focus styling */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Navigatie / hoofdmenu – basis kleuren */
.custom-navbar {
    background-color: #00205b;
}

.navbar a,
.navbar-brand {
    color: #FFFF00 !important;
    font-weight: bold;
    transition: color 0.2s ease;
}

    .navbar a:hover,
    .navbar-brand:hover {
        color: white !important;
    }

/* Dropdown styling passend bij custom-navbar */
.navbar .dropdown-menu {
    background-color: #00163a;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

    .navbar .dropdown-menu .dropdown-item {
        color: #FFFF00; /* #dafd01;*/
        padding: 10px 20px;
        font-weight: bold;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .navbar .dropdown-menu .dropdown-item:hover {
            color: white;
            background-color: #00205b;
        }

.custom-navbar .nav-link {
    color: #FFFF00 !important;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .custom-navbar .nav-link:hover {
        color: white !important;
    }

.custom-navbar .dropdown-menu .dropdown-item {
    color: white;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .custom-navbar .dropdown-menu .dropdown-item:hover {
        background-color: #00205b;
        color: #FFFF00;
    }

.navbar-nav .nav-link.dropdown-toggle {
    cursor: default;
}

/* ======= MTR Header Layout (geconsolideerd) ======= */
:root {
    --logo-size: 100px; /* desktop logo */
    --brand-top: 8px; /* afstand van bovenrand navbar tot logo */
    --logo-gap: 10px; /* ruimte tussen logo en rest */
    --nav-xpad: 20px; /* overeenkomend met horizontale navbar padding */
}

/* 1) Één enkele .navbar-regel (samengevoegd) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 6px var(--nav-xpad); /* 6px verticaal, 20px horizontaal */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    min-height: calc(var(--logo-size)/2 + var(--brand-top));
}

    /* 2) Één enkele .container-fluid-regel (samengevoegd) */
    .navbar .container-fluid {
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: wrap; /* zodat collapse kan wrappen */
        overflow: visible;
        padding-left: calc(var(--logo-size) + var(--logo-gap));
    }

/* 3) Brand en logo */
.navbar-brand {
    position: absolute;
    left: var(--nav-xpad);
    top: var(--brand-top);
    width: var(--logo-size);
    height: var(--logo-size);
    padding: 0;
    margin: 0;
    z-index: 2;
    display: block;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}

/* 4) Toggler/menu rechts */
.navbar-toggler {
    margin-left: auto;
}

.navbar-nav {
    margin-left: auto;
}

/* 5) Contentafstand onder header (tegen overlap met overhang) */
header + .container {
    padding-top: calc(var(--logo-size)/2 + 12px);
}

/* Slideshow moet juist tegen de navbar aan liggen */
#slideshow {
    margin-top: calc(-1 * (var(--logo-size)/2 + 12px));
}

/* ===== Mobiel: kleiner logo, menu onder logo, full-width ===== */
@media (max-width: 576px) {
    :root {
        --logo-size: 80px;
        --brand-top: 6px;
        --logo-gap: 12px;
    }

    /* container hoeft links geen ruimte meer te reserveren */
    .navbar .container-fluid {
        padding-left: 0;
    }

    /* logo uitlijnen met horizontale navbar padding */
    .navbar-brand {
        left: var(--nav-xpad);
    }

    /* menu onder logo laten beginnen */
    #mainNavbar {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: calc(var(--logo-size)/2 + 6px);
        padding-left: var(--nav-xpad);
        padding-right: var(--nav-xpad);
    }

    /* contentafstand volgt automatisch door var(--logo-size) */
    header + .container {
        padding-top: calc(var(--logo-size)/2 + 12px);
    }

    /* slideshow blijft strak tegen de navbar */
    #slideshow {
        margin-top: calc(-1 * (var(--logo-size)/2 + 12px));
    }
}
/* ======= Einde MTR Header Layout ======= */

/* Uitklapmenuutje */
@media (min-width: 768px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.navbar .dropdown-menu.show {
    display: block;
}

/* Accordion, content, etc. (ongewijzigd) */
.accordion-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    padding: 0;
    transition: box-shadow 0.3s ease;
}

    .accordion-section.open {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.accordion-header {
    color: #00205b;
    font-weight: bold;
    margin: 0;
    padding: 18px 20px;
    position: relative;
    cursor: pointer;
}

    .accordion-header::after {
        content: "+";
        position: absolute;
        right: 20px;
        font-size: 20px;
        color: #00205b;
        transition: transform 0.3s ease;
    }

.accordion-section.open .accordion-header::after {
    content: "−";
    transform: rotate(180deg);
}

.accordion-preview {
    padding: 0 20px 18px 20px;
    color: #1a1a1a;
}

.accordion-full-content {
    display: none;
    padding: 0 20px 20px 20px;
    color: #1a1a1a;
}

.accordion-section.open .accordion-preview {
    display: none;
}

.accordion-section.open .accordion-full-content {
    display: block;
}

/* Koppen */
h1, h2, h3 {
    color: #00205b;
    font-weight: 700;
    margin-top: 20px;
}

h1 {
    margin-left: 30px;
}

.last-modified {
    margin-left: 30px;
}

.read-more-link {
    text-align: right;
}

    .read-more-link::after {
        content: " \2794";
        margin-left: 8px;
    }

tr.clickable:hover,
td.clickable:hover {
    background-color: #f5f5f5;
    font-weight: bold;
}

.avb-section img {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.avb-section iframe {
    max-width: 800px;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

img, iframe {
    border-radius: 12px;
}

.header-img {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    width: 100vw;
    display: block;
}

main .header-img {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 2rem;
    max-width: 100%;
    width: 100vw;
    display: block;
    height: 10vh;
    object-fit: cover;
}
html {
    overflow-x: hidden;
}

#slideshow {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 30vh;
    overflow: hidden;
    max-width: 100vw;
}

    #slideshow img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 30vh;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: block;
        z-index: 0;
        pointer-events: none;
    }

        #slideshow img.active {
            opacity: 1;
            z-index: 1;
        }

.review-card {
    font-size: 1rem;
    line-height: 1.6;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.review-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    font-size: .85rem;
    color: #6c757d;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: .15rem;
    color: #f4b400;
    margin: .35rem 0 .75rem;
}

.review-badge {
    display: inline-block;
    padding: .15rem .4rem;
    border-radius: .35rem;
    background: #f1f3f5;
    color: #212529;
    font-size: .7rem;
    font-weight: 600;
    margin-left: .5rem;
}

.review-text p {
    margin-bottom: .75rem;
}

.review-card.border {
    border-color: #e9ecef !important;
}

.google-logo-link {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

    .google-logo-link svg {
        height: 28px;
        width: 28px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .google-logo-link:hover svg {
        transform: scale(1.1);
        opacity: 0.9;
    }

/* ---------- CONTAINER ---------- */
.container, main, section {
    background-color: transparent;
    color: inherit;
}

main {
    padding: 20px;
    padding-top: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.content-block {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 60px;
}

    footer a {
        color: #cccccc;
        text-decoration: underline;
    }

/* Gele knopstijl */
a.button-yellow, .btn-yellow {
    background-color: #dafd01;
    color: #00205b;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

a.button-yellow:hover, .btn-yellow:hover {
    background-color: #18648e;
    color: #00163a;
}

/* Taalvlaggen */
.language-switcher img {
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
    vertical-align: middle;
    border: none;
}

    .language-switcher img:hover {
        transform: scale(1.2);
    }

/* Tekst opmaak */
.text-lowercase {
    text-transform: lowercase;
}

/* About blokken */
.about-flex {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 40px;
}

.about-image {
    width: 50%;
}

    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

.about-text {
    width: 50%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-image,
.about-text {
    display: flex;
    flex-direction: column;
}

    .about-image img {
        flex-grow: 1;
        height: 100%;
    }

@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
    }

    .about-image, .about-text {
        width: 100%;
    }

        .about-image img {
            height: auto;
        }
}