/* =========================================================
   PORTAL.CSS - FINAL CLEAN VERSION
   ========================================================= */

:root {
    --primary: #2E2621;
    --accent: #003366;      /* Goud/Brons */
    --accent-hover: #a66a3b;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --text-main: #333333;
    --text-muted: #64748b;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}

/* Zorg dat de bolletjes OP de foto staan */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #007bff !important; /* Of jouw merkkleur */
    opacity: 1;
}
.swiper {
    touch-action: pan-y; /* Staat verticaal scrollen van de pagina toe, maar vangt horizontaal swipen op */
}

.swiper-slide img {
    pointer-events: auto; /* Zorg dat de afbeelding de aanraking doorgeeft */
    -webkit-user-drag: none; /* Voorkom dat je de afbeelding 'vastpakt' zoals op een desktop */
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    #zoomTrigger {
        display: none !important;
    }
}

* { box-sizing: border-box; }

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-light); 
    color: var(--text-main); 
    margin: 0; padding: 0; 
    height: 100vh; 
    display: flex; 
    overflow: hidden; 
    -webkit-font-smoothing: antialiased;
}

.unread-dot-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444; /* Fel rood */
    border-radius: 50%;
    border: 2px solid white; /* Wit randje zodat het afsteekt tegen de knop */
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Container instellen voor de slider overlay */
.progress-container {
    position: relative;
    padding: 10px 0 25px 0; /* Ruimte voor de tekst onderaan */
}



/* De onzichtbare slider die de interactie regelt */
#stageSlider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Hoogte van het hele interactieve gebied */
    background: transparent;
    cursor: pointer;
    z-index: 10;
    margin: 0;
}

/* De 'thumb' (het schuifje) moet even breed zijn als de stappen voor precisie */
#stageSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20%; /* 100% gedeeld door 5 stappen */
    height: 40px;
    background: transparent;
}

#stageSlider::-moz-range-thumb {
    width: 20%;
    height: 40px;
    background: transparent;
    border: none;
}

/* Kleur van de stappen (standaard en actief) */
.step {
    color: #94a3b8; /* Standaard grijs/blauw */
    transition: all 0.3s ease;
}

.step.active {
    color: #003366 !important; /* Jouw oranje/bruine kleur */
}

/* Verwijder de blauwe oplichting bij klikken op mobiel (tap-highlight) */
.progress-container, #stageSlider {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* De vulling van de balk (progFill) */
.progress-fill {
    background: #003366 !important;
    box-shadow: 0 0 8px rgba(186, 122, 70, 0.4); /* Subtiele gloed */
}

/* Voor het geval je de slider thumb (het onzichtbare schuifje) focus geeft */
#stageSlider:focus {
    outline: none;
    border: none;
}

.admin-pool-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
/* De kleuren zoals in je admin */
.admin-pool-btn.pool-yes { background: #2563eb !important; color: #fff !important; }
.admin-pool-btn.pool-no { background: #ef4444 !important; color: #fff !important; }

.reset-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.filter-tab.active {
    color: #1e293b;
    border-bottom: 2px solid #003366;
}

/* --- EMOJI PICKER STYLING (NIEUW) --- */
emoji-picker {
    --background: #ffffff;
    --border-color: #e2e8f0;
    --button-hover-background: #f1f5f9;
    --indicator-color: #003366;
}
@media (prefers-color-scheme: dark) {
    header img { display: none !important; }
    emoji-picker {
        --background: #1e293b;
        --border-color: #334155;
    }
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--primary); margin-top: 0; }
a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-hover); }
.hidden { display: none !important; }

/* IMPERSONATE BAR */
#impersonation-bar {
    background-color: #003366; color: white; text-align: center; padding: 10px;
    font-size: 14px; font-weight: 600; position: fixed; top: 0; left: 0; width: 100%;
    z-index: 20000; display: flex; justify-content: center; align-items: center; gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#impersonation-bar button {
    background: white; color: #003366; border: none; padding: 4px 12px;
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 12px;
}
body.impersonating { padding-top: 50px; }

/* --- LAYOUT STRUCTURE --- */
.wrapper { display: flex; width: 100%; height: 100%; }

aside { 
    width: 240px; background: #0f172a; display: flex; flex-direction: column; 
    color: #94a3b8; flex-shrink: 0; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* --- FIX VOOR KAART MARKERS --- */

/* 1. Zorg dat de Leaflet container geen rare randen heeft */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* 2. De pin zelf: Forceer grootte en zichtbaarheid */
.portal-map-pin {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 30px !important; /* Grootte van het icoon */
    
    /* Zorgt voor een schaduw zodat ze loskomen van de kaart */
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.5));
    
    /* Correctie zodat de punt op de locatie staat */
    margin-top: -15px !important; 
}

/* De visuele dropzone */
#userDocDropZone {
    border: 2px dashed #cbd5e1 !important; /* Forceer de stippellijn */
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

/* Als er gesleept wordt over de zone */
#userDocDropZone.drag-over {
    border-color: #003366 !important;
    background-color: #fff7ed !important;
    transform: scale(1.01);
}

/* De melding in het midden tijdens slepen */
#dropOverlay {
    display: none; /* Standaard uit */
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 10px;
}

.brand { 
    height: 80px; display: flex; align-items: center; padding: 0 25px; 
    color: white; font-weight: 700; border-bottom: 1px solid #1e293b; 
    font-size: 18px; letter-spacing: 1px;
}

.nav-menu { padding: 20px 0; flex: 1; overflow-y: auto; }

.nav-item { 
    display: block; width: 100%; padding: 12px 25px; background: transparent; 
    border: none; color: inherit; text-align: left; cursor: pointer; 
    border-left: 3px solid transparent; font-weight: 500; font-size: 14px; 
    font-family: var(--font-body); transition: all 0.2s;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item.active { color: white; background: rgba(186,122,70,0.1); border-left-color: var(--accent); }
.nav-item i { width: 25px; text-align: center; margin-right: 10px; }

main { flex: 1; display: flex; flex-direction: column; position: relative; background: #f3f4f6; }

header { 
    height: 80px; background: white; border-bottom: 1px solid var(--border); 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 30px; flex-shrink: 0; 
}
header img { height: 50px !important; width: auto !important; object-fit: contain; }

.content-scroll { padding: 30px; overflow-y: auto; flex: 1; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

.view-section { display: none; max-width: 1100px; width: 90%; margin-right: auto; padding-bottom: 150px; }
.view-section.active { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    header img { display: none !important; }
    body { flex-direction: column; }
    body.impersonating { padding-top: 0; }
    #impersonation-bar { position: relative; }
    .wrapper { flex-direction: column; overflow: hidden; }
    aside { 
        position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; 
        background: white; border-top: 1px solid var(--border); flex-direction: row; 
        justify-content: space-around; z-index: 50; padding: 0; color: #64748b;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .brand { display: none; }
    .nav-menu { display: flex; width: 100%; padding: 0; overflow: hidden; }
    .nav-item { 
        flex: 1; display: flex; flex-direction: column; align-items: center; 
        justify-content: center; padding: 5px; font-size: 10px; text-align: center; 
        border-left: none; border-top: 3px solid transparent; 
    }
    .nav-item i { margin: 0 0 4px 0; font-size: 18px; }
    .nav-item.active { border-left-color: transparent; border-top-color: var(--accent); background: transparent; color: var(--accent); }
    header { padding: 0 15px; height: 70px; }
    main { height: 100%; padding-bottom: 65px; } 
    .content-scroll { padding: 15px; }
    .view-section { max-width: 100%; width: 100%; }
}

/* UI COMPONENTS */
.empty-state {
    text-align: center; padding: 40px 20px; background: #fff; border-radius: 12px;
    border: 2px dashed #e2e8f0; margin-bottom: 20px;
}
.empty-icon { font-size: 40px; margin-bottom: 15px; opacity: 0.4; filter: grayscale(100%); transition: transform 0.3s; }
.empty-state:hover .empty-icon { transform: scale(1.1) rotate(5deg); opacity: 0.6; }
.empty-title { font-weight: 700; font-size: 15px; color: #475569; margin-bottom: 5px; }
.empty-text { font-size: 13px; color: #94a3b8; }

.btn-main { 
    background-color: var(--accent); color: white; border: none; padding: 10px 20px; 
    border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; 
    transition: 0.2s; width: 100%; 
}
.btn-main:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline { 
    background: white; border: 1px solid #ccc; color: #555; padding: 6px 12px; 
    border-radius: 6px; cursor: pointer; font-size: 12px; display: inline-flex; 
    align-items: center; gap: 5px; transition: 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

input, select, textarea { 
    width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; 
    box-sizing: border-box; margin-bottom: 15px; font-family: var(--font-body); 
    font-size: 14px; background: #f8fafc; transition: 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(186, 122, 70, 0.1); }

.card { 
    background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); margin-bottom: 20px; transition: 0.2s;
}
.card-house { overflow: hidden; padding: 0; border: 1px solid #e2e8f0; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; }header img { display: none !important; } }

.house-tools-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.filter-tabs { display: flex; background: #e2e8f0; padding: 4px; border-radius: 8px; }
.filter-tab { padding: 8px 16px; border: none; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: #64748b; border-radius: 6px; transition: 0.2s; }
.filter-tab.active { background: white; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tool-bar { display: flex; justify-content: flex-end; }
.sort-container { background: white; border: 1px solid #e0e0e0; border-radius: 30px; padding: 5px 15px; display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; }
.tool-bar select { border: none; background: transparent; font-weight: 600; color: var(--accent); font-size: 13px; cursor: pointer; outline: none; padding: 5px 20px 5px 5px; margin: 0; width: auto; box-shadow: none; }

/* HOUSE CARD GRID */
.house-card-grid {
    display: grid;
    padding: 15px;
    background: white;
    cursor: pointer;
    /* VERANDER DEZE REGEL: */
    grid-template-columns: 80px minmax(0, 1fr) 140px; 
    grid-template-rows: auto auto;
    gap: 0 15px;
    grid-template-areas:
        "img info actions"
        "img notes actions";
    align-items: start;
    transition: background 0.2s;
    position: relative;
    /* VOEG DIT TOE voor de zekerheid: */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; 
}
.card-house[data-expanded="true"] .house-card-grid { background: #fffaf5; }
.hc-img { grid-area: img; width: 80px; height: 80px; object-fit: cover; border-radius: 6px; background: #eee; border: 1px solid #f1f5f9; }
.hc-info { grid-area: info; display: flex; flex-direction: column; justify-content: center; min-height: 40px; }
.hc-actions { grid-area: actions; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 5px; position: relative; z-index: 5; }
.hc-notes { grid-area: notes; margin-top: 8px; }

@media (max-width: 600px) {header img { display: none !important; }
    .house-card-grid {
        grid-template-columns: 70px 1fr; grid-template-rows: auto auto auto;
        gap: 10px 15px; grid-template-areas: "img info" "actions actions" "notes notes";
    }
    .hc-img { width: 70px; height: 70px; }
    .hc-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px; z-index: 10; margin-top: 5px; }
    .hc-notes { margin-top: 10px; padding-top: 12px; border-top: 1px dashed #e2e8f0; width: 100%; }
    .summary-notes-container { width: 100%; }
}
@media (max-width: 600px) {
    header img { display: none !important; }

    .house-card-grid {
        /* Verander naar een enkele kolom voor een volwaardige swipe-ervaring */
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Maak de afbeelding container breed en hoog genoeg voor swipe */
    .hc-img { 
        width: 100%; 
        height: 220px; /* Of 250px naar smaak */
        border-radius: 8px;
    }

    .hc-info h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    /* De tekst inkorten via CSS */
    .hc-info p, .hc-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; /* Aantal regels */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        color: #64748b;
        line-height: 1.5;
        margin: 5px 0;
    }

    .hc-actions { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: flex-start; 
        align-items: center; 
        gap: 10px; 
        padding-top: 5px;
    }

    .hc-notes { 
        margin-top: 5px; 
        padding-top: 10px; 
        border-top: 1px dashed #e2e8f0; 
        width: 100%; 
        font-size: 0.85rem;
    }
}
/* De standaard staat van de notitie (samenvatting) */
.hc-notes-content {
    font-size: 11px;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* De staat als de kaart is uitgeklapt */
.card-house.expanded .hc-notes-content {
    display: block !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    -webkit-line-clamp: unset !important;
}

.map-weather-icon { background: transparent !important; border: none !important; box-shadow: none !important; font-size: 24px; margin-top: -10px; }
.weather-marker-container { text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.weather-marker-icon { font-size: 32px; line-height: 1; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.4)); }
.weather-marker-temp { background: white; padding: 3px 8px; border-radius: 10px; font-weight: bold; font-size: 12px; color: #333; display: inline-block; margin-top: -10px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

.star-rating { display: inline-block; font-size: 18px; color: #e2e8f0; cursor: pointer; }
.star-rating .fa-star { transition: color 0.2s; }
.star-rating .fa-star.checked { color: #f59e0b; }
.star-rating .fa-star.hovered { color: #fcd34d; }

.poi-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background-color: white; border: 1px solid #cbd5e1; color: #475569;
    padding: 6px 12px; border-radius: 6px; font-size: 11px;
    text-decoration: none; font-weight: 600; cursor: pointer;
    transition: all 0.2s; margin-bottom: 5px; white-space: nowrap;
}
.poi-btn:hover {
    border-color: #003366; color: #003366; background-color: #fff7ed;
    transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.poi-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.password-group { display: flex; gap: 8px; align-items: center; margin-top: 5px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #e2e8f0;
    border-radius: 6px; background-color: #f8fafc; font-family: 'Inter', sans-serif;
    font-size: 14px; color: #333; box-sizing: border-box; appearance: none;
}

select { cursor: pointer; padding-right: 35px; }
.select-wrapper { position: relative; width: 100%; }
.select-wrapper .fa-chevron-down { position: absolute; right: 15px; top: 42%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; font-size: 12px; }
.password-group input { margin-bottom: 0 !important; flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }

.btn-chic { background-color: #1e293b; color: white; border: 1px solid #1e293b; padding: 10px 20px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s ease; white-space: nowrap; }
.btn-chic:hover { background-color: #003366; border-color: #003366; }
.btn-chat-context { background: white; border: 1px solid #e2e8f0; color: var(--accent); padding: 6px 12px; border-radius: 20px; font-size: 11px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; margin-right: 5px; position: relative; z-index: 10; }
.btn-chat-context:hover { background: #fff7ed; border-color: var(--accent); transform: translateY(-1px); }

.card-footer-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 10px; gap: 5px; }

#chat-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 9998; }
#chat-overlay.hidden { display: none; }

.summary-notes-container { margin-top: 5px; display: flex; flex-direction: column; gap: 6px; }
.summary-note { font-size: 12px; padding: 8px 12px; border-radius: 6px; display: flex; gap: 10px; align-items: start; line-height: 1.5; }
.summary-note.admin { background: #f8fafc; color: #334155; border-left: 3px solid #64748b; }
.summary-note.client { background: #fff7ed; color: #9a3412; border-left: 3px solid #f97316; font-style: italic; }

#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 30, 0.95); backdrop-filter: blur(10px); z-index: 10000; display: flex; align-items: center; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 0 20px; }
#lightbox.active { opacity: 1; pointer-events: all; }
.lb-content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 80%; max-height: 90%; flex: 1; }
#lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 25px 60px -10px rgba(0,0,0,0.7); transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); user-select: none; border: 1px solid rgba(255,255,255,0.1); }
#lightbox.active img { transform: scale(1); }
#lb-counter { margin-top: 15px; color: rgba(255,255,255,0.8); font-size: 13px; font-family: 'Inter', sans-serif; letter-spacing: 0.5px; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.lb-nav { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 18px; z-index: 10001; user-select: none; outline: none; }
.lb-nav:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.lb-nav:active { transform: scale(0.95); }
.lb-close { position: absolute; top: 30px; right: 30px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 24px; cursor: pointer; z-index: 10002; transition: 0.2s; border-radius: 50%; background: transparent; }
.lb-close:hover { background: rgba(255,255,255,0.1); color: white; transform: rotate(90deg); }
#lightbox.single-mode .lb-nav, #lightbox.single-mode #lb-counter { display: none; }

#pdf-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(5px); z-index: 11000; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#pdf-viewer.active { opacity: 1; pointer-events: all; }
.pdf-content { background: white; width: 100%; max-width: 900px; height: 90vh; border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden; }
.pdf-header { background: #1e293b; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; flex-shrink: 0; }
#pdf-frame { width: 100%; flex: 1; background: #f1f5f9; }
.btn-icon { background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; transition: 0.2s; padding: 5px; }
.btn-icon:hover { color: white; transform: scale(1.1); }
@media (max-width: 768px) { header img { display: none !important; }#pdf-viewer { padding: 0; } .pdf-content { height: 100%; border-radius: 0; } }

#chat-widget { position: fixed; bottom: 100px; right: 50px; z-index: 9999; }
@media (max-width: 768px) {header img { display: none !important; } #chat-widget { bottom: 80px; right: 20px; } }
#chat-btn { width: 60px; height: 60px; border-radius: 50%; background-color: var(--accent); color: white; font-size: 28px; border: none; box-shadow: 0 4px 15px rgba(186, 122, 70, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
#chat-btn:hover { transform: scale(1.05); }
#chat-badge { position: absolute; top: -5px; right: -5px; background: #ef4444; color: white; font-size: 11px; font-weight: bold; min-width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
#chat-window { width: 340px; height: 480px; background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-bottom: 15px; display: flex; flex-direction: column; border: 1px solid #e2e8f0; overflow: hidden; transform-origin: bottom right; animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@media (max-width: 768px) { #chat-window { width: 300px; } 
    header img { display: none !important; }
}
.chat-header { background: var(--accent); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
#chatContainer { flex: 1; overflow-y: auto; padding: 15px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; }
.chat-footer { padding: 10px; border-top: 1px solid #eee; background: white; display: flex; gap: 8px; align-items: center; }
.chat-footer input { margin-bottom: 0; border-radius: 20px; padding: 10px 15px; }
.chat-footer button { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--accent); color: white; border: none; cursor:pointer;}

#loginOverlay, .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.login-box, .modal-box { background: white; padding: 40px; border-radius: 16px; width: 90%; max-width: 380px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); animation: popIn 0.3s ease-out; }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.settings-save-btn { width: 25%; min-width: 150px; background: #a87b51; color: white; font-size: 16px; padding: 14px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; display: block; margin-left: auto; }
.settings-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.settings-card { background: white; max-width: 650px; margin: 0 auto; padding: 40px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; }
.avatar-circle { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #003366; color: #003366; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; }
.form-section-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #94a3b8; margin-bottom: 20px; text-transform: uppercase; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; color: #475569; margin-bottom: 6px; }
.form-group input, .form-group select { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; font-size: 14px; width: 100%; color: #333; transition: 0.2s; }
.form-group input:focus { background: white; border-color: #003366; box-shadow: 0 0 0 3px rgba(186,122,70,0.1); }
.password-wrapper { position: relative; }
.password-wrapper i { position: absolute; right: 15px; top: 14px; color: #94a3b8; cursor: pointer; }
.divider { border: 0; border-top: 1px solid #f1f5f9; margin: 30px 0; }
.logout-section { margin-top: 30px; text-align: center; border-top: 1px dashed #e2e8f0; padding-top: 20px; }
.btn-logout { width: 100%; padding: 12px; background: transparent; border: 1px solid #ef4444; color: #ef4444; border-radius: 4px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.btn-logout:hover { background: #ef4444; color: white; }

.timeline-wrapper { padding-left: 20px; border-left: 2px solid #e2e8f0; margin-left: 10px; padding-top: 5px; padding-bottom: 5px; }
.timeline-group { margin-bottom: 20px; position: relative; }
.timeline-dot { position: absolute; left: -27px; top: 0; width: 12px; height: 12px; background: #003366; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #e2e8f0; }
.timeline-date-header { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px; line-height: 14px; }
.timeline-card { background: #f8fafc; border-radius: 8px; padding: 12px; margin-bottom: 8px; border: 1px solid #f1f5f9; transition: transform 0.2s; cursor: pointer; }
.timeline-card:hover { background: #fff; border-color: #003366; transform: translateX(2px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.tm-time { font-weight: 800; font-size: 13px; color: #1e293b; min-width: 45px; display: inline-block; }
.tm-title { font-size: 14px; color: #334155; font-weight: 500; }
.tm-loc-link { display: inline-block; font-size: 11px; color: #64748b; margin-top: 4px; text-decoration: none; transition: color 0.2s; font-weight: 600; }
.tm-loc-link:hover { color: #334155; text-decoration: underline; }
.tm-loc-link i { margin-right: 4px; color: #94a3b8; }
.tm-house { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #9a3412; font-size: 11px; padding: 4px 10px; border-radius: 6px; font-weight: 700; margin-top: 6px; border: 1px solid #ffedd5; text-decoration: none; transition: transform 0.1s, box-shadow 0.1s; }
.tm-house:hover { background: #ffedd5; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
#view-trips { max-width: 700px; margin-left: auto; margin-right: auto; }

#toast { visibility: hidden; min-width: 250px; background-color: #10b981; color: #fff; text-align: center; border-radius: 50px; padding: 12px 24px; position: fixed; z-index: 10000; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 14px; font-weight: 600; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); opacity: 0; transition: all 0.3s; }
#toast.show { visibility: visible; opacity: 1; bottom: 50px; transform: translateX(-50%) translateY(0); }
#toast.error { background-color: #ef4444; }

.progress-container { margin-bottom: 30px; }
.steps { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.step.active { color: var(--accent); } .step.completed { color: var(--primary); }
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.6s ease-out; }


@media (max-width: 768px) {
    /* Pakt ELKE afbeelding in de header, ongeacht hoe diep hij verstopt zit */
    header img, 
    header .brand-logo, 
    .header-main img { 
        display: none !important; 
        visibility: hidden !important;
        opacity: 0 !important;
    }
}
/* =========================================================
   TOEGANKELIJKHEID: TEXT ZOOM (START BIJ NORMAAL)
   ========================================================= */

/* De CSS doet NIETS totdat 'large-text' aan de body wordt toegevoegd */

body.large-text .nav-item {
    font-size: 18px !important;
}

/* De content secties vergroten */
body.large-text .content-scroll,
body.large-text .view-section,
body.large-text .card p,
body.large-text .card span,
body.large-text .hc-info *, 
body.large-text .hc-notes-content,
body.large-text .tm-title, 
body.large-text .tm-time,
body.large-text .summary-note,
body.large-text .empty-text,
body.large-text label,
body.large-text input,
body.large-text select,
body.large-text textarea {
    font-size: 18px !important;
    line-height: 1.6 !important; /* Iets meer witruimte voor leesbaarheid */
}

/* Koppen vergroten */
body.large-text h1, 
body.large-text h2, 
body.large-text h3,
body.large-text .empty-title {
    font-size: 26px !important;
}

/* --- VEILIGHEID: Kaart & Weer iconen NOOIT vergroten --- */
/* Dit voorkomt dat je weer-iconen wegvliegen of de kaart kapot gaat */
body.large-text .leaflet-container img,
body.large-text .weather-marker-icon,
body.large-text .map-weather-icon,
body.large-text .leaflet-marker-icon {
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
}

/* De Zoom-knop styling onderaan de zijbalk */
.zoom-wrapper {
    margin-top: auto;
    padding: 15px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.zoom-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Accentkleur als de boel vergroot is */
body.large-text .zoom-btn {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(0, 51, 102, 0.2);
}
#portalVideoModal {
    z-index: 99999 !important; /* Forceer de modal naar de allerhoogste laag */
    display: none; /* Standaard uit, wordt door JS op 'flex' gezet */
}
/* De container voor de speler */
.portal-video-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* De video speler zelf */
#mainPortalPlayer {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

/* De thumbnails onder de video */
.video-thumbnail {
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.video-thumbnail.active {
    opacity: 1;
    border-color: #4338ca;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
}

