/* ========================================================= */
/* 1. FONT DEFINITIES */
/* ========================================================= */
@font-face {
    font-family: "Yanone Kaffeesatz";
    font-style: wide;
    src: local("Yanone Kaffeesatz"), local("YanoneKaffeesatz"), url(/yanone.woff) format("woff");
}
@font-face {
    font-family: 'RoGSanSrfStd-UB';
    src:url('/RoGSanSrfStd-UB.ttf.woff') format('woff'),
        url('/RoGSanSrfStd-UB.ttf.svg#RoGSanSrfStd-UB') format('svg'),
        url('/RoGSanSrfStd-UB.ttf.eot'),
        url('/RoGSanSrfStd-UB.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: 1000;
    font-style: normal;
    transform: scale(0, 20);
}

/* ========================================================= */
/* 2. BASIS LAYOUT & TYPOGRAFIE (Uit 'opmaak' en 'index') */
/* ========================================================= */
body {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    background: linear-gradient(white, grey);
    background-attachment: fixed;
    margin: auto;
    padding: 20px;
    max-width: 1100px;
    font-weight: 400;
}

h1 {
    font-family: 'RoGSanSrfStd-UB', sans-serif;
    color: #333;
    font-size: 2.2em;
    letter-spacing: 0px;
    border-bottom: 2px solid #999;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-weight: 900;
}

h2 {
    font-family: 'RoGSanSrfStd-UB', sans-serif;
    margin: 1% 1% 1% 1%;
    font-size: 1.8em;
    color: #000;
    font-weight: 900;
    letter-spacing: 0px;
}

/* Algemene tekststijlen */
p { margin: 1em 1% 1em 1%; }
ul, ol { margin: 1em 1% 1em 4%; }
strong { font-weight: 900; color: #CC0000; }

/* Introductie: 24px en 900 weight (Dezelfde stijl in beide bestanden) */
#intro-text {
    font-family: "Yanone Kaffeesatz", "Arial Narrow", Sans-Serif;
    font-size: 20px;
    font-weight: 900;
    width: 95%;
    letter-spacing: 2px;
    line-height: 1.5em;
    margin: 1% 1% 1% 1%;
}

/* ========================================================= */
/* 3. ALGEMENE CONTENT BLOKKEN (Uit 'opmaak.css') */
/* ========================================================= */
.content-box {
    border: 1px solid #CCC;
    padding: 15px;
    margin: 30px 1% 30px 1%;
    background-color: #FAFAFA;
}

/* Tekst in boxen en lijsten (Hoge font-size en line-height) */
.content-box ul, .content-box ol, .content-box p, table {
    font-size: 20px;
    line-height: 1.8em;
    margin-left: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Ontbrekende regels in stijl.css (maar wel in index.html) */
.content-box ol li ul {
    margin-top: 0;
    padding-top: 0;
    margin-left: 20px;
}
.content-box ol li {
    padding-bottom: 5px;
}

.note {
    font-size: 18px;
    line-height: 1.6em;
    margin: 25px 1% 1% 1%;
    padding-top: 10px;
    border-top: 1px solid #DDD;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Tabelstijlen */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}
th, td {
    border: 1px solid #AAA;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #EEE;
    font-weight: 900;
    color: #333;
}

/* ========================================================= */
/* 4. FORMULIER STYLING (Uit 'opmaak.css') */
/* ========================================================= */
.contact-form-box {
    background-color: #EFEFEF;
    border: 2px solid #CC0000; /* Rode rand om op te laten vallen */
    padding: 25px;
    margin: 40px 1% 40px 1%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-box p {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.8em;
    letter-spacing: 0px;
}

.contact-form-box h2 {
     margin: 0 0 15px 0;
}

/* ========================================================= */
/* 5. CARD STYLING VOOR AANBIEDINGEN (Uit 'index.css') */
/* ========================================================= */
.listing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
}

.listing-link {
    text-decoration: none;
    color: inherit;
}

.listing-card {
    width: 100%;
    max-width: 450px;
    border: 2px solid #333;
    background-color: #FAFAFA;
    padding: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.3);
}

.card-header h2 {
    margin: 0 0 10px 0;
    color: #CC0000;
    border-bottom: 1px solid #CCC;
    padding-bottom: 5px;
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #CCC;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #AAA;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 100%;
}

.card-intro {
    font-size: 20px;
    line-height: 1.5em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 15px 0;
}

.card-specs {
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px dashed #DDD;
    border-bottom: 1px dashed #DDD;
}

.card-specs p {
    font-size: 18px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.5px;
}
.card-specs strong {
    font-weight: 700;
    color: #333;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.card-price {
    font-family: 'RoGSanSrfStd-UB', sans-serif;
    font-size: 2.5em;
    color: #000;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.view-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #FFF;
    text-decoration: none;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    border: none;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.listing-link:hover .view-button {
    background-color: #CC0000;
}

/* Media Query voor kleinere schermen (Listing cards) */
@media (max-width: 500px) {
    .listing-card {
        max-width: 100%;
        margin: 0 5px;
        padding: 15px;
    }
    .card-image {
        height: 200px;
    }
    .card-price {
        font-size: 2em;
    }
    .view-button {
        font-size: 20px;
        padding: 8px 15px;
    }
}

/* ========================================================= */
/* 6. FOTOGALERIJ & LIGHTBOX (Uit 'opmaak.css') */
/* ========================================================= */
.image-gallery {
    max-width: 1100px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
}

.image-gallery h2 {
    text-align: left;
    margin-bottom: 25px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-left: -10px;
    margin-right: -10px;
}

.image-wrapper {
    width: calc(33.333% - 20px);
    min-width: 280px;
    margin-bottom: 30px;
    border: 1px solid #DDD;
    background-color: #FAFAFA;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}
.image-wrapper a {
    text-decoration: none;
    display: block;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border: 1px solid #CCC;
}

.image-caption {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    line-height: 1.6em;
    letter-spacing: 1px;
    font-weight: 600;
    color: #555;
    margin: 0;
}
/* Media query voor fotogalerij */
@media (max-width: 900px) {
    .image-wrapper {
        width: calc(50% - 20px);
        min-width: unset;
    }
}

/* LIGHTBOX/MODAL STYLING (Standaard) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-in-out;
    z-index: 9999;
    text-decoration: none;
}

.lightbox:target {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    pointer-events: none;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    background-color: #FFF;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    text-align: center;
    pointer-events: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh; /* Uw voorkeur */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ULTRA-AGRESSIEVE MOBIELE FIX VOOR LIGHTBOX (640px) */
@media (max-width: 640px) {
    .lightbox-content-wrapper {
        /* NEGEER de 90% max-width en de centrering op mobiel */
        max-width: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        padding: 0;
    }
    .lightbox-content {
        /* Gebruik een kleine padding voor het witte frame */
        padding: 10px;
    }
    .lightbox-content img {
        /* Geef de foto maximale ruimte (98% van de viewport hoogte) */
        max-height: 98vh !important;
    }
}
