/* Home redesign — exact design specs: scherpe hoeken, shadow 141°, wit bg */

.page-home {
    font-family: "Poppins", sans-serif;
    background: #fff;
    margin: 0;
    min-height: 100vh;
    color: #000;
}
body.page-home::before { display: none !important; }
body.page-home { background: #fff; }

/* Geen border-radius op de hele site (home) */
.page-home *,
.page-home *::before,
.page-home *::after {
    border-radius: 0 !important;
}

/* Shadow 141° (licht van 141°), shadow valt richting 321°, distance 5px, opacity 67%, blur 0, spread 0 */
/* 321°: cos(321°)=0.777, sin(321°)=-0.629 → CSS y down: 3.88px 3.14px */

/* ——— Sectie 1: Sticky header ——— */
.home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f3fb66;
    box-shadow: none;
}
.home-header > .container {
    position: relative;
    z-index: 101;
}
.home-nav__link {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 15pt;
}
.home-nav__link:hover {
    color: #000;
    text-decoration: underline;
}

/* Hamburger-knop (tablet/mobiel) */
.home-nav__toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.home-nav__toggler-icon {
    position: absolute;
    width: 24px;
    height: 20px;
}
.home-nav__toggler-icon--menu {
    display: block;
    width: 24px;
    height: 3px;
    background: #000;
    position: relative;
    top: 0;
    left: 0;
}
.home-nav__toggler-icon--menu::before,
.home-nav__toggler-icon--menu::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #000;
}
.home-nav__toggler-icon--menu::before {
    top: -7.5px;
}
.home-nav__toggler-icon--menu::after {
    top: 7.5px;
}
.home-nav__toggler-icon--close {
    display: none;
    width: 24px;
    height: 24px;
    background: transparent;
}
.home-nav__toggler-icon--close::before,
.home-nav__toggler-icon--close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 3px;
    background: #000;
    margin-left: -12px;
    margin-top: -1.5px;
}
.home-nav__toggler-icon--close::before {
    transform: rotate(45deg);
}
.home-nav__toggler-icon--close::after {
    transform: rotate(-45deg);
}
.home-nav--open .home-nav__toggler-icon--menu {
    display: none;
}
.home-nav--open .home-nav__toggler-icon--close {
    display: block;
}

/* Overlay en sidebar (tablet/mobiel) */
.home-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.home-nav__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #f3fb66;
    z-index: 99;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}
.home-nav__sidebar-link {
    display: block;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 15pt;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.home-nav__sidebar-link:hover {
    text-decoration: underline;
    color: #000;
}
@media (min-width: 992px) {
    .home-nav__overlay,
    .home-nav__sidebar {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    .home-nav__overlay,
    .home-nav__sidebar {
        display: block;
    }
    .home-nav--open .home-nav__overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .home-nav--open .home-nav__sidebar {
        transform: translateX(0);
    }
}

/* Knoppen: scherpe hoeken, zwarte tekst, shadow 141° 5px 67% */
.btn-home {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.4rem;
    font-size: 15pt;
    color: #000;
    box-shadow: 3.88px 3.14px 0 0 rgba(0, 0, 0, 0.67);
    transition: box-shadow 0.15s ease;
}
.btn-home:hover {
    box-shadow: 4.66px 3.77px 0 0 rgba(0, 0, 0, 0.67);
}
.btn-home--primary {
    background: #53db9a;
    color: #000;
}
.btn-home--primary:hover {
    background: #45c586;
    color: #000;
}
.btn-home:not(.btn-home--primary):not(.btn-home--orange) {
    background: #f3fb66;
    color: #000;
}
.btn-home:not(.btn-home--primary):not(.btn-home--orange):hover {
    background: #e0eb5a;
    color: #000;
}
.btn-home--orange {
    background: #fba33b;
    color: #000;
}
.btn-home--orange:hover {
    background: #e8922e;
    color: #000;
}
/* Ruimte 60px boven knoppen in secties (niet de header-knop) */
.home-hero .btn-home--spaced,
.home-crowdfunding .btn-home--spaced,
.home-news .btn-home--spaced {
    margin-top: 60px;
}

/* ——— Sectie 2: Hero ——— */
.home-hero {
    padding: 50px 0 150px;
    background: #fff;
}
.home-hero__row .col-lg-4 {
    max-width: 100%;
}
.home-hero__title {
    font-size: 55pt;
    font-weight: 600;
    color: #4d4d4d;
    line-height: 1.15;
    margin-bottom: 1rem;
    margin-left: -0.15em; /* negatieve marge: header steekt links uit t.o.v. tekst eronder */
}
.home-hero__title .title-line2 {
    padding-left: 0.15em; /* één spatie voor "Tour" */
}
.home-hero__title-date {
    font-size: 37px;
    margin-left: 20px;
}
.home-hero__text {
    color: #000;
    font-size: 15pt;
    margin-bottom: 0.75rem;
    max-width: 32rem;
}
.home-hero__text--cta {
    font-size: 15pt;
}
.home-hero__link {
    color: #ff5039;
    font-weight: 600;
    text-decoration: underline;
}
.home-hero__link:hover {
    color: #e04530;
}

/* Kaart: witte achtergrond, oranje NL-vorm; verhouding 447:524 (viewBox) strikt behouden */
.home-flat-map-wrap {
    background: #fff;
    padding: 0.5rem;
    max-width: 100%;
    margin-left: auto;
}
@media (min-width: 992px) {
    .home-hero__row {
        position: relative;
    }
    .home-flat-map-wrap {
        position: absolute;
        height: 660px;
        width: 560px;
        margin-top: 100px;
        right: 0;
        top: 0;
    }
}
.home-flat-map {
    display: block;
    width: 100%;
    overflow: visible;
}
/* SVG vult breedte, hoogte volgt viewBox-verhouding (400/280) → geen uitrekken */
.flat-map-svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* ——— Sectie 3: Crowdfunding (blauw) ——— */
.home-crowdfunding {
    background: #5caaf6;
    margin-top: 100px;
    padding-bottom: 100px;
    margin-bottom: 100px;
    padding-top: 50px;
}
.home-crowdfunding__row {
    --bs-gutter-x: 4rem;
}
@media (min-width: 992px) {
    .home-crowdfunding__row {
        --bs-gutter-x: 5rem;
    }
}
.home-crowdfunding__head {
    font-size: 30pt;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.75rem;
}
.home-crowdfunding__text {
    color: #000;
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.home-vdk-card {
    display: block;
    background: #fbffe6;
    border-radius: 0;
    border-top-right-radius: 30px !important;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    box-shadow: none;
    margin-top: -150px;
}
.home-vdk-card:hover {
    color: #000;
}
.home-vdk-card__image {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.home-vdk-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-vdk-card__discipline {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.6rem;
    border-radius: 0;
}
.home-vdk-card__content {
    padding: 1.25rem;
}
.home-vdk-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}
.home-vdk-card__desc,
.home-vdk-card__meta {
    font-size: 20px;
    color: #000;
    margin-bottom: 0.5rem;
}
.home-vdk-card .progress {
    background: #e0e0e0;
    border-radius: 0;
}
.home-vdk-card .progress-bar {
    background: #53db9a;
    border-radius: 0;
}
.home-vdk-card .small {
    color: #000;
    font-size: 20px;
}
.home-vdk-card__avatar {
    border-radius: 50% !important;
    object-fit: cover;
}

/* ——— Sectie 4: Nieuws (wit) ——— */
.home-news {
    padding: 50px 0;
    background: #fff;
}
.home-news__title {
    font-size: 30pt;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25rem;
}
.home-news__date,
.home-news__body {
    font-size: 20px;
    color: #000;
    margin-bottom: 0.75rem;
}
.home-news__body {
    max-width: 40rem;
    margin-bottom: 1.25rem;
}

/* Tekst overlapt kaartvlak iets: kolom mag iets over de kaart heen komen */
.home-hero .row {
    align-items: flex-start;
}
.home-hero .col-lg-8.order-1.order-lg-1 {
    margin-right: -2%;
    position: relative;
    z-index: 2;
}
@media (max-width: 991.98px) {
    .home-hero .col-lg-8.order-1.order-lg-1 { margin-right: 0; }
    .home-hero__title { margin-left: 0; font-size: 2.5rem; }
}
@media (max-width: 575.98px) {
    .home-hero__title { font-size: 2rem; }
    .home-crowdfunding__head,
    .home-news__title { font-size: 1.5rem; }
    .home-hero,
    .home-crowdfunding,
    .home-news { padding: 50px 0; }
}
/* Kleine schermen: geen horizontale scroll */
@media (max-width: 991.98px) {
    .page-home,
    body.page-home {
        overflow-x: hidden;
    }
}

/* ——— Pin-prikken pagina (zelfde layout als homepage) ——— */
.btn-home--gray {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-home--gray:not(:disabled):hover {
    background: #f3fb66 !important;
    color: #000 !important;
    cursor: pointer;
    box-shadow: 3.88px 3.14px 0 0 rgba(0, 0, 0, 0.67);
}
.home-hero--pin-prikken .home-hero__title--pin {
    font-size: 30pt;
    margin-left: 0;
}
/* Oranje melding boven header (ongeldige link / pin al geprikt) */
.home-hero__notice {
    color: #fba33b;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
/* Nog geen pin: sectie minstens zo hoog als kaart + 100px (voorkomt dat kaart onder blauwe sectie schuift) */
.home-hero--no-pin .home-hero__row {
    min-height: 500px;
}
@media (min-width: 992px) {
    /* col-lg-4 ≈ 33%: kaarthoogte ≈ 380 * 524/447 ≈ 446px */
    .home-hero--no-pin .home-hero__row {
        min-height: 560px;
    }
}

.home-flat-map-wrap--pin {
    background: #fff;
    min-height: 400px;
    overflow: visible;
}
.map-pin-container {
    width: 100%;
    min-height: 400px;
    height: 50vh;
    overflow: hidden;
}
.home-flat-map-wrap--pin .form-control {
    border-radius: 0;
}
/* Zoekveld plaats: 60% van kolom, min 450px; op kleine schermen max 80% breedte */
.home-hero--pin-prikken #place-search {
    width: 60%;
    min-width: 450px;
}
@media (max-width: 767.98px) {
    .home-hero--pin-prikken #place-search {
        width: 100%;
        max-width: 80%;
        min-width: 0;
    }
    /* Code-invoer (geen pin): max 80% breedte */
    .page-home #code-invoer {
        max-width: 80% !important;
    }
}
/* WEL pin: kaart even groot als homepage (660px), geen afsnijding */
@media (min-width: 992px) {
    .home-hero--pin-prikken .home-flat-map-wrap--pin .map-pin-container {
        width: 100%;
        min-width: 0;
        height: 660px;
        min-height: 660px;
    }
    .home-hero--pin-prikken .home-flat-map-wrap--pin {
        min-height: 660px;
        overflow: visible;
    }
}
.place-search-tooltip {
    background: #fff;
    color: #000;
    border: 1px solid #fba33b;
    border-radius: 0;
    padding: 0.35rem 0.5rem;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
}
/* Pin op pin-prikken: zelfde uiterlijk als homepage-pin (geen gradient), gele paletkleur */
.page-home .leaflet-pin-icon-form {
    background: none !important;
    border: none !important;
    filter: drop-shadow(1.73px 1px 2px rgba(0, 0, 0, 0.67));
}
.page-home .leaflet-pin-icon-form .pin-marker {
    display: block;
    width: 32px !important;
    height: 32px !important;
    margin: -16px 0 0 -16px;
    background: #f3fb66 !important;
    border: none;
    border-radius: 50% !important;
    box-sizing: border-box;
}
