/* ==========================================================
   Cookiebanner en -instellingen (js/cookie-consent.js)
   Huisstijl Ellimmo: Playfair Display + Poppins, goudbruin #9f8054,
   licht #ebcfa7, donkere knoppen #26282b, zachte goudkleurige schaduw.
   ========================================================== */

.cc-banner,
.cc-dialog-backdrop,
.cc-map-placeholder {
    font-family: "Poppins", sans-serif;
    color: #26282b;
    box-sizing: border-box;
}
.cc-banner *,
.cc-dialog-backdrop *,
.cc-map-placeholder * {
    box-sizing: border-box;
}
.cc-banner[hidden],
.cc-dialog-backdrop[hidden] {
    display: none !important;
}

/* ---------- Banner ---------- */
.cc-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 100000;
    width: calc(100% - 48px);
    max-width: 560px;
    background: #fff;
    border-top: 4px solid #9f8054;
    box-shadow: 0 10px 30px rgba(159, 128, 84, 0.25), 0 2px 6px rgba(159, 128, 84, 0.12);
    animation: cc-in 0.4s ease-out;
}
.cc-banner-inner {
    padding: 28px 30px 26px;
}
@keyframes cc-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.cc-title {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 1.25;
    color: #9f8054;
    margin: 0 0 12px;
}
.cc-banner p,
.cc-dialog p {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
    color: #4a4a4a;
}
.cc-banner a,
.cc-dialog a {
    color: #9f8054;
    text-decoration: underline;
}
.cc-banner a:hover,
.cc-dialog a:hover {
    color: #26282b;
}

/* ---------- Knoppen (zelfde stijl als "Verzenden") ---------- */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.cc-btn {
    height: 48px;
    padding: 0 26px;
    border: 2px solid #26282b;
    border-radius: 0;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease-in-out;
}
/* Weigeren en accepteren zien er bewust hetzelfde uit (even makkelijk) */
.cc-btn-primary {
    background: #26282b;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.cc-btn-primary:hover,
.cc-btn-primary:focus {
    background: #9f8054;
    border-color: #9f8054;
    color: #fff;
}
.cc-btn-outline {
    background: #fff;
    color: #26282b;
}
.cc-btn-outline:hover,
.cc-btn-outline:focus {
    border-color: #9f8054;
    color: #9f8054;
}
.cc-link {
    background: none;
    border: 0;
    padding: 6px 4px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #9f8054;
    text-decoration: underline;
    cursor: pointer;
}
.cc-link:hover,
.cc-link:focus {
    color: #26282b;
}
.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-close:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid #9f8054;
    outline-offset: 3px;
}

/* ---------- Instellingenvenster ---------- */
html.cc-dialog-open {
    overflow: hidden;
}
.cc-dialog-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(38, 40, 43, 0.55);
}
.cc-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-top: 4px solid #9f8054;
    padding: 34px 34px 30px;
    box-shadow: 0 10px 30px rgba(159, 128, 84, 0.25), 0 2px 6px rgba(159, 128, 84, 0.12);
}
.cc-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    font-size: 30px;
    line-height: 1;
    color: #9f8054;
    cursor: pointer;
}
.cc-close:hover {
    color: #26282b;
}
.cc-cat {
    border-top: 1px solid #ebe3d6;
    padding: 16px 0 2px;
}
/* Lijn tussen de laatste categorie en de knoppen */
.cc-dialog .cc-actions {
    border-top: 1px solid #ebe3d6;
    padding-top: 22px;
}
.cc-cat p {
    margin: 6px 0 12px 62px;
    font-size: 13px;
}
.cc-cat code {
    font-size: 12px;
    color: #9f8054;
    background: #f7f2ea;
    padding: 1px 5px;
}
.cc-cat-title {
    font-weight: 600;
    font-size: 15px;
}
.cc-cat-title em {
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    color: #9f8054;
}

/* Schakelaar */
.cc-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    cursor: pointer;
}
.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.cc-slider {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px;
    background: #cbc0ab;
    border-radius: 26px;
    transition: 0.2s;
}
.cc-slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.cc-switch input:checked + .cc-slider {
    background: #9f8054;
}
.cc-switch input:checked + .cc-slider:before {
    transform: translateX(22px);
}
.cc-switch input:disabled + .cc-slider {
    opacity: 0.6;
    cursor: default;
}

/* ---------- Vervangblok voor kaarten zonder toestemming ---------- */
.cc-map-blocked {
    background: #f7f2ea;
}
.cc-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 260px;
    padding: 30px 24px;
    text-align: center;
    background: #f7f2ea;
    border: 1px solid #ebcfa7;
}
.cc-map-placeholder i {
    font-size: 34px;
    color: #9f8054;
}
.cc-map-placeholder p {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* ---------- Cookieoverzicht op de privacypagina ---------- */
.cc-table-wrap {
    overflow-x: auto;
    margin: 10px 0 20px;
}
.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.cc-table th,
.cc-table td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid #ebe3d6;
}
.cc-table th {
    color: #9f8054;
    font-weight: 600;
    border-bottom: 2px solid #9f8054;
}

/* Footerlink */
.footer .creation .cc-footer-link {
    color: inherit;
    cursor: pointer;
}

/* ---------- Gsm ---------- */
@media (max-width: 575px) {
    .cc-banner {
        left: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
    }
    .cc-banner-inner {
        padding: 22px 20px 20px;
    }
    .cc-title {
        font-size: 21px;
    }
    .cc-dialog {
        padding: 30px 20px 22px;
    }
    .cc-actions .cc-btn {
        flex: 1 1 100%;
    }
    .cc-cat p {
        margin-left: 0;
    }
}

/* Kaart op de detailpagina (te-koop): de onderste 100px vallen onder de
   volgende sectie (margin-bottom: -100px), dus de tekst bovenaan zetten */
#map2.cc-map-blocked .cc-map-placeholder {
    justify-content: flex-start;
    padding-top: 40px;
}

/* Knop onder het cookieoverzicht: ruimte tot het adresblok van de footer */
.cc-privacy-actions {
    margin: 10px 0 70px;
}

/* ---------- Kaarten (Leaflet + OpenStreetMap) ---------- */
/* Eigen stapelvolgorde, zodat de kaartlagen niet over menu/banner komen */
#map,
#map2 {
    position: relative;
    z-index: 0;
}
.leaflet-container {
    font-family: "Poppins", sans-serif;
    background: #f7f2ea;
}
.cc-pin {
    background: none;
    border: 0;
    filter: drop-shadow(0 4px 6px rgba(38, 40, 43, 0.35));
}
.leaflet-bar a,
.leaflet-bar a:hover {
    color: #26282b;
}
.leaflet-bar a:hover {
    background: #f7f2ea;
    color: #9f8054;
}
.leaflet-container .leaflet-control-attribution a {
    color: #9f8054;
}

/* Link "Route plannen" boven de kaart (detailpagina) */
.map-route {
    margin: 35px 0 10px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}
.map-route a {
    color: #9f8054;
}
.map-route a:hover {
    color: #26282b;
    text-decoration: none;
}
.map-route i {
    margin-right: 8px;
}
.map-route + #map2 {
    margin-top: 0;
}
