/* =========================================
   1. GLOBAL & CONTAINER SETUP
   ========================================= */
.steen-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #3b4252;
    font-family: 'Work Sans', sans-serif;
    box-sizing: border-box;
}

.steen-wrapper * {
    box-sizing: border-box;
}

/* =========================================
   2. DESKTOP LAYOUT (Split Screen)
   ========================================= */
@media (min-width: 992px) {
    .steen-wrapper {
        flex-direction: row;
        height: 100vh;
        max-height: 900px;
        overflow: hidden;
    }

    /* Linkerkant: De Kaart (70%) */
    .steen-map-container {
        flex: 1;
        width: auto;
        position: relative;
        background-color: #dfcdb5; 
        overflow: hidden;
    }

    /* Rechterkant: Slider Sidebar (30%) */
    .steen-slider-container {
        flex: 0 0 576px; 
        width: 576px;
        
        /* CRUCIAAL: Dit voorkomt dat de slider verdwijnt/uitbreekt */
        min-width: 0; 
        
        display: flex;
        flex-direction: column;
        padding: 30px 0px 30px 30px;
        background-color: #4d576a;
        position: relative;
        overflow-x: hidden; 
        overflow-y: auto; 
        height: 100%;
    }
}

/* =========================================
   3. MOBILE LAYOUT
   ========================================= */
@media (max-width: 991px) {
    .steen-map-container {
        width: 100%;
        background-color: #e5e0d4;
    }
    
        .steen-slider-container {
        width: 100%;
        padding: 20px;
        background-color: #3b4252;
        overflow-x: hidden;
    }
    
    .tab-content.active {
    height: auto!important;
    min-height: 350px!important;
}

.swiper-slide.steen-card.swiper-slide-active {
    padding-bottom: 0px!important;
}
}

/* =========================================
   4. SITUATIETEKENING (INTERACTIEF / PANZOOM)
   ========================================= */

/* De hoofdcontainer van de kaart (het frame) */
.steen-map-container {
    position: relative; /* Nodig voor de positionering van de knoppen */
    background-color: #dfcdb5;
    overflow: hidden; /* DIT IS HET 'FRAME': Knipt alles af wat buiten beeld valt */
    /* Op mobiel en desktop wordt de hoogte/breedte geregeld in Blok 2 & 3 */
}

/* De wrapper die direct om de afbeelding zit */
.steen-map-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Het element dat daadwerkelijk beweegt en zoomt */
.panzoom-element {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Zorgt ervoor dat de browser niet probeert te scrollen als je op de kaart sleept op mobiel */
    touch-action: none; 
}

/* De afbeelding zelf */
.steen-map-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Zorgt dat de kaart initieel helemaal past */
    pointer-events: none; /* Voorkomt dat je de afbeelding zelf 'vastpakt' in de browser */
}

/* --- ZOOM CONTROLS (De knoppen rechtsonder) --- */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10; /* Zorg dat ze bovenop de kaart liggen */
}

.map-controls button {
    width: 40px;
    height: 40px;
    background-color: #fff; /* Witte cirkels zoals in voorbeeld */
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 13px; /* Kleine correctie om het plusje/minnetje te centreren */
    transition: background-color 0.2s;
}

.map-controls button:hover {
    background-color: #f0f0f0;
}

/* =========================================
   5. CARD STYLING & GELIJKE HOOGTES (VEILIGE METHODE)
   ========================================= */

/* De container */
.steen-main-swiper {
    width: 100%;
    position: relative;
    /* FLEX 1 is de sleutel: Dit duwt de scrollbar naar beneden en vult de ruimte */
    flex: 1; 
    min-height: 0; /* Voorkomt flexbox bugs */
    display: block; 
    padding-bottom: 10px;
}

/* De Slide: Moet 'auto' hoog zijn om mee te rekken met de wrapper */
.swiper-slide.steen-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    height: auto; 
    max-height: 100%; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.swiper-slide.steen-card.swiper-slide-active {
    padding-bottom: 40px;
}

/* Scrollbar styling voor Webkit (Chrome/Safari) */
.swiper-slide.steen-card::-webkit-scrollbar {
    width: 6px;
}
.swiper-slide.steen-card::-webkit-scrollbar-track {
    background: transparent; 
}
.swiper-slide.steen-card::-webkit-scrollbar-thumb {
    background-color: #ccc; 
    border-radius: 3px;
}

/* De Wrapper: Zorg dat hij flex is (standaard in swiper) en stretch items */
.steen-main-swiper .swiper-wrapper {
    height: 100%;
    align-items: flex-start; /* Start bovenaan, niet uitrekken */
}

/* BREEDTE BEPALING */
@media (max-width: 991px) {
    .swiper-slide.steen-card {
        width: 100%; 
    }
}

@media (min-width: 992px) {
    .swiper-slide.steen-card {
        width: 320px; 
        max-width: 90%;
        margin-right: 30px !important;
    }
}

.steen-card-body {
    flex: 1; /* Duwt footer naar beneden */
    display: flex;
    flex-direction: column;
    /* Zorgt dat de content de volledige hoogte pakt */
    height: 100%; 
}

/* Typography */
.unit-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    color: #000;
    font-family: serif; 
    padding: 10px 20px;
}

.unit-price {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
    color: #000;
    padding: 0px 20px;
}

.unit-desc {
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.2;
    }
.unit-desc p {
    margin-bottom: 10px;
}

/* =========================================
   6. HEADER SLIDER (Binnenin de kaart)
   ========================================= */
.steen-card-header {
    width: 100%;
    position: relative;
    background: #fff;
    flex-shrink: 0; 
}

.steen-header-swiper {
    width: 100%;
    height: 100%;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: solid #fff;
    border-width: 20px 20px 0px 20px;
}

.header-nav-next, .header-nav-prev {
    background-color: #fff;
    border-radius: 50%;
    width: 30px !important;
    height: 30px !important;
    color: #000 !important;
    top: auto !important;
    bottom: 5px !important;
}

.header-nav-next:after, .header-nav-prev:after {
    font-size: 12px !important;
    font-weight: bold;
}

.header-nav-next { right: 25px !important; }
.header-nav-prev { right: 65px !important; left: auto !important; }

/* =========================================
   7. TABS & CONTENT
   ========================================= */
.steen-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    background: #e6e6e6;
    padding-left: 20px;
    gap: 10px;
}

.tab-btn {
    flex: 0 0 auto;
    width: auto;
    border: none;
    background: transparent;
    padding: 10px 5px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    border-bottom: none;
    white-space: nowrap;
    color: #000;
    text-transform: none;
}

.tab-btn:hover {
  background: transparent !important;
  border: none !important;
  border-radius: 0px;
  text-decoration: underline;
  color: #000;
  text-transform: none;
}


.tab-btn.active {
  background: transparent !important;
  border: none !important;
  border-radius: 0px;
  text-decoration: underline;
  color: #000;
  text-transform: none;
}

.tab-content {
    display: none;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
    padding: 0px 20px 10px 20px;
    max-height: none; 
    overflow: visible;
    height: 350px;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.specs-table td {
    padding: 5px;
    border-bottom: 1px solid #000;
    font-size: 13px;
}
.specs-table td:first-child {
    color: #000;
    width: 40%;
}

.specs-table, .specs-table td {
  border-color: #ddd;
}

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

.gallery-grid img {
    width: 100%;
    height: auto; /* Hoogte schaalt mee */
    border-radius: 2px;
    cursor: pointer;
    display: block; /* Voorkomt witte randjes onder img */
}
.gallery-grid img:hover {
    opacity: 0.8;
}

/* =========================================
   8. CUSTOM SCROLLBAR (STYLING)
   ========================================= */
.steen-scrollbar-container {
    width: 100%;
    height: 12px; 
    margin-top: 25px;    
    margin-bottom: 25px; 
    position: relative;
    display: block;
    z-index: 10;
    min-height: 12px;
}

/* Selector is aangepast voor de structuur waarbij de scrollbar BUITEN de swiper staat */
.steen-slider-container .swiper-scrollbar {
    background: #1f252e !important;
    opacity: 1 !important;
    height: 12px !important; 
    border-radius: 6px !important;
    position: relative !important; 
    bottom: auto !important;
    left: auto !important;
    width: calc(100% - 20px) !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
}

.steen-slider-container .swiper-scrollbar-drag {
    background: #ffffff !important;
    border-radius: 6px !important;
    cursor: grab;
    top: -2px;
    left: 10px;
    height: 16px !important;
    }

/* =========================================
   9. FOOTER (Knoppen)
   ========================================= */
.steen-footer-actions {
    padding-top: 0;
    text-align: left;
    flex-shrink: 0;
    padding-bottom: 0px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-contact,
.btn-prijslijst {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 800;
    text-transform: lowercase;
    font-size: 16px;
    transition: background 0.2s;
    position: relative;
    z-index: 5;
}

.btn-contact:hover,
.btn-prijslijst:hover {
    background: #f0f0f0;
}