:root {
    --bg: #ffffff;
    --muted: #f4f6f8;
    --accent: #2b8a3e;
    --text: #111827;
    --card-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    --radius: 12px;
    --gap: 1rem;
    --max-width: 1100px;
    --container-padding: 1rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
    background: var(--muted);
    color: var(--text);
}

/* ----------------- BADGES ----------------- */

.new-badge {
    background: #ff3b30;
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: bold;
}

.card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ----------------- STRUCTURE ----------------- */

.site {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
}

/* ----------------- HEADER + NAV ----------------- */

.site-header {
    position: relative;
    margin-bottom: .75rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.logo img {
    height: 75px;
}

/* ----------------- HAMBURGER ----------------- */

.hamburger {
    border: none;
    background: none;
    padding: .4rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 4px;
}

/* ----------------- NAVIGATION (MOBIEL) ----------------- */

.main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 75%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 320px;
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 999;
}

.main-nav.open {
    display: flex;
}

.main-nav .nav-link {
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.main-nav .nav-link:last-child {
    border-bottom: none;
}

/* ----------------- DESKTOP MENU ----------------- */

@media (min-width: 700px) {

    .hamburger {
        display: none;
    }

    .header-inner {
        flex-wrap: nowrap;
        padding: 0 1rem;
        align-items: center;
        /* behouden hoogte zoals origineel */
    }

    .main-nav {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row;
        gap: 2rem;
        background: #fff;
        padding: .5rem 1rem;
        /* behoud originele padding */
        border-radius: var(--radius);
        box-shadow: var(--card-shadow);
        max-width: 47%;
        /* volledige beschikbare breedte */
        flex: 1;
        /* nav neemt beschikbare ruimte naast logo */
        overflow-x: auto;
        /* horizontaal scrollen indien nodig */
    }

    .main-nav::-webkit-scrollbar {
        display: none;
        /* scrollbar verbergen */
    }

    .main-nav .nav-link {
        padding: .25rem 0;
        /* originele hoogte behouden */
        font-size: 1rem;
        font-weight: 500;
        white-space: nowrap;
        border-bottom: none;
    }
}

/* ----------------- MAP + TOGGLE ----------------- */

.map-wrap {
    margin-top: .75rem;
}

#mapToggleBar {
    width: 100%;
    background: #f1f1f1;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    user-select: none;
}

#mapToggleArrow {
    transition: transform 0.3s ease;
}

#mapContainer {
    height: 260px;
    overflow: hidden;
    transition: height .35s ease, border .25s ease;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--card-shadow);
}

#mapContainer.collapsed {
    height: 0 !important;
    border-width: 0 !important;
}

#map {
    width: 100%;
    height: 100%;
}

/* ----------------- FILTERS ----------------- */

.filters {
    margin: 1rem 0;
}

.filter-row {
    display: flex;
    gap: .5rem;
}

.filter-row input,
.filter-row select {
    padding: .6rem .75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: white;
    font-size: .95rem;
}

.filter-row input[type="search"] {
    flex: 1;
}

/* ----------------- GALLERY ----------------- */

.gallery-section {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.gallery-section h2 {
    margin: 0 0 .75rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.gallery-item h3 {
    margin: 10px 0 5px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    padding: 10px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.card:hover {
    background-color: #f3f4f6;
}

.thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.card .meta {
    padding: .5rem .6rem;
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}

.more-row {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    background: var(--accent);
    color: white;
    padding: .6rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 138, 62, .2);
}

/* ----------------- FOOTER ----------------- */

.site-footer {
    margin: 1rem 0;
    text-align: center;
    color: #6b7280;
    font-size: .9rem;
}

/* ----------------- MODAL ----------------- */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    max-width: 960px;
    width: calc(100% - 2rem);
    position: relative;
}

.modal-close {
    border: none;
    background: none;
    font-size: 1.3rem;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.modal-body img,
.modal-body iframe {
    width: 100%;
    border-radius: 8px;
}

/* ----------------- RESPONSIVE ----------------- */

@media (min-width: 600px) {
    #mapContainer {
        height: 360px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    #mapContainer {
        height: 475px;
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ----------------- OVERIGE PAGINAS ----------------- */

.content-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 1rem 0;
}

.content-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ----------------- CONTACT FORMULIER ----------------- */

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    padding: .6rem .75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .1);
    font-size: 1rem;
    background: white;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    padding: .6rem 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* Maak select-velden dezelfde hoogte en stijl als input/textarea */
.contact-form select {
    padding: .6rem .75rem;
    /* zelfde padding als input */
    border-radius: 12px;
    /* ronde hoeken */
    border: 1px solid rgba(0, 0, 0, .1);
    /* zelfde border */
    font-size: 1rem;
    /* zelfde font als input */
    background: white;
    /* achtergrond gelijk aan input */
    height: 2.5rem;
    /* optioneel: vaste hoogte zodat het gelijk is aan input */
    box-sizing: border-box;
    width: 100%;
    /* neemt volledige breedte van form-row */
}

/* ----------------- WEBCAM TOEVOEGEN ----------------- */

.success-message {
    background-color: #2b8a3e;
    /* groene achtergrond */
    color: white;
    /* witte tekst */
    padding: 12px 16px;
    /* ruimte binnenin */
    border-radius: 12px;
    /* afgeronde hoeken */
    margin: 1rem 0;
    /* ruimte boven en onder */
    font-weight: 500;
    /* iets vetter */
    box-shadow: 0 4px 12px rgba(43, 138, 62, 0.2);
    /* subtiele schaduw */
}

/* ----------------- TIJDELIJKE MEDEDELING ----------------- */

.domain-banner {
    background-color: #fff8e1;
    /* zachte gele achtergrond */
    border: 1px solid #ffd700;
    /* subtiele accentlijn */
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    color: #333;
    font-family: sans-serif;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.domain-banner a {
    color: #d97706;
    /* oranje linkkleur passend bij geel */
    text-decoration: underline;
}

.domain-banner .banner-message {
    font-size: 16px;
    margin-bottom: 15px;
}

.domain-banner .bookmark-instructions p {
    margin-bottom: 8px;
    font-weight: bold;
}

.domain-banner .bookmark-instructions ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.domain-banner .bookmark-instructions li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* Mobiel */
@media (max-width: 700px) {
    .domain-banner {
        padding: 15px;
        font-size: 14px;
    }
}

/* =====================================================
   LIVE ZOEK / ADRES ZOEK RESULTATEN (OPSCHOOND)
===================================================== */

.form-row {
    position: relative;
}

/* Input – stabiel, geen open-snijden */
#webcamSearch,
#adressenZoeken {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    padding: .6rem .75rem;
    font-size: 1rem;

    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.1);
    background-color: #fff;
    background-clip: padding-box;

    outline: none;
    box-shadow: none !important;
}

/* Focus blijft identiek (geen rand-trucs) */
#webcamSearch:focus,
#adressenZoeken:focus {
    border-color: rgba(0,0,0,.25);
}

/* Dropdown container */
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);

    max-height: 280px;
    overflow-y: auto;

    z-index: 500;
    padding: 4px 0;

    border: none; /* 🔥 voorkomt de streep */
}

/* Result item */
.search-result {
    padding: 12px 14px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    gap: 4px;

    transition: background .15s ease;
}

/* Divider */
.search-result:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Hover */
.search-result:hover {
    background: #f3f4f6;
}

/* Titel */
.search-result strong {
    font-weight: 600;
    color: var(--text);
}

/* Plaats / subtekst */
.search-result .plaats {
    font-size: .85rem;
    color: #6b7280;
}

/* Highlight */
mark {
    background: #fff2c6;
    padding: 0 2px;
    border-radius: 2px;
}

.form-row.search-row {
    margin-bottom: 0.25rem; /* i.p.v. 1rem */
}

.search-results:empty {
    display: none;
}

input[type="search"] {
    line-height: normal;
    margin: 0;
}
