/* Custom styles voor Auto.Correct */

.car-card { 
    transition: transform 0.2s, box-shadow 0.2s; 
    cursor: pointer; 
}
.car-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); 
}

.spec-badge { 
    background-color: #f3f4f6; 
    border-radius: 6px; 
    padding: 4px 8px; 
    font-size: 0.8rem; 
    color: #4b5563; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.fade-in { 
    animation: fadeIn 0.3s ease-in-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* SLIDERS */
input[type=range] { 
    -webkit-appearance: none; 
    width: 100%; 
    background: transparent; 
}
input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 16px; 
    width: 16px; 
    border-radius: 50%; 
    background: #2596be; 
    cursor: pointer; 
    margin-top: -6px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); 
}
input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    height: 4px; 
    cursor: pointer; 
    background: #e5e7eb; 
    border-radius: 2px; 
}
input[type=range]:focus { 
    outline: none; 
}

/* SCROLLBAR */
.filter-scroll::-webkit-scrollbar { width: 6px; }
.filter-scroll::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 4px; }

/* ACCORDION */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .chevron { transform: rotate(180deg); }

/* COMPARE CHECKBOX */
.compare-checkbox {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: white; border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: all 0.2s;
}
.compare-checkbox.selected { background: #22c55e; color: white; }

/* WIZARD CHAT */
#wizardModal { backdrop-filter: blur(5px); }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; position: relative; line-height: 1.5; font-size: 0.95rem; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.chat-left { background-color: white; border-bottom-left-radius: 4px; color: #1f2937; margin-left: 40px; }
.chat-right { background-color: #dcf8c6; border-bottom-right-radius: 4px; color: #111827; margin-left: auto; text-align: right; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; position: absolute; left: -40px; bottom: 0; background: #22c55e; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* TYPING CURSOR */
.typing::after { content: '|'; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.user-option { transition: all 0.2s; cursor: pointer; }
.user-option:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* COMPARE ACCORDION */
.compare-header {
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}
.compare-header:hover {
    background-color: #f0fdf4; /* Lichtgroen */
}
.compare-header i {
    transition: transform 0.2s;
}
.compare-header.collapsed i {
    transform: rotate(-90deg);
}
.compare-header.collapsed + tbody {
    display: none;
}

/* INFO POPUP STYLES */
.info-link {
    cursor: help;
    border-bottom: 1px dotted #9ca3af;
    transition: color 0.2s;
}
.info-link:hover {
    color: #2596be;
    border-bottom-color: #2596be;
}

#infoModal { backdrop-filter: blur(4px); }


/* --- VISUELE VERGELIJKING (BLAUWDRUK) --- */
.blueprint-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
}

/* Zorgt dat tekst scherp blijft in SVG */
.blueprint-text {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Kofferbak kratjes */
.trunk-visuals {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 20px;
}

.trunk-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2px;
    width: 30%;
}

.crate-icon {
    font-size: 14px;
    color: #d97706; /* Amber-600 */
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* CSS voor homepage visuals */
/* VISUELE UPGRADES VOOR HET AUTO.CORRECT VERKEERSPLEIN */

/* Smooth fade-in voor actieve secties */
.fade-in {
    animation: fadeInSpa 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSpa {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Subtiele glow en diepte voor de verkeersplein-kaarten */
#view-home .grid > div {
    will-change: transform, box-shadow;
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#view-home .grid > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* Actieve menulink indicatie of styling */
.nav-link {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2596be;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Geen scrollbar voor de kleine fotogalerijen onder de details */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tekstschaduw voor de grote Hero-titel op donkere achtergrond */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Custom styles for tweedehands.html hero section */
.hero-tweedehands {
    background-image: url('/images/general/IMG_2771.JPG');
    background-size: cover;
    background-position: center;
    /* Basis amberkleur voor blending met de afbeelding */
    background-color: #b45309; /* Tailwind amber-700 */
    /* Blends de afbeelding met de achtergrondkleur, waardoor een amber tint ontstaat */
    background-blend-mode: multiply; 
    position: relative;
    z-index: 0; /* Zorgt ervoor dat de content erboven ligt */
}

/* Pseudo-element voor de gradient overlay */
.hero-tweedehands::before {
    content: '';
    position: absolute;
    inset: 0;
    /* De gradient met transparantie, zodat de getinte afbeelding erdoorheen schijnt */
    background: linear-gradient(to bottom right, rgba(120, 53, 15, 0.6), rgba(146, 64, 14, 0.6), rgba(15, 23, 42, 0.6)); 
    z-index: -1; /* Plaats achter de content, maar boven de geblende achtergrondafbeelding */
}

/* Zorgt ervoor dat de tekst en andere content boven de achtergrond en overlay blijven */
.hero-tweedehands > .max-w-4xl {
    position: relative;
    z-index: 1;
}

/* Custom styles for elektrischrijden.html hero section */
.hero-elektrisch {
    background-image: url('/images/general/IMG_3426.JPG');
    background-size: cover;
    background-position: center;
    background-color: #065f46; /* Tailwind emerald-800 */
    background-blend-mode: multiply; 
    position: relative;
    z-index: 0;
}

.hero-elektrisch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(6, 78, 59, 0.7), rgba(6, 95, 70, 0.7), rgba(15, 23, 42, 0.7)); 
    z-index: -1;
}

.hero-elektrisch > .max-w-4xl {
    position: relative;
    z-index: 1;
}

/* Custom styles for index.html hero section */
.hero-home {
    background-image: url('/images/general/IMG_5155.JPG');
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    background-blend-mode: multiply; 
    position: relative;
    z-index: 0;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Nog lichtere overlay zodat de foto beter zichtbaar is */
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.4), rgba(31, 41, 55, 0.4), rgba(2, 6, 23, 0.4)); 
    z-index: -1;
}

.hero-home > .max-w-4xl {
    position: relative;
    z-index: 1;
}

/* Custom styles for over.html hero section */
.hero-over {
    background-image: url('/images/RutgerAutocorrect.jpg'); /* Gebruik de bestaande foto van Rutger */
    background-size: cover;
    background-position: center;
    background-color: #1e3a8a; /* Donkere blauwe kleur voor de blend (bijv. blue-900) */
    background-blend-mode: multiply; 
    position: relative;
    z-index: 0;
}

.hero-over::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Donkere gradient overlay voor leesbaarheid tekst */
    background: linear-gradient(to bottom right, rgba(30, 58, 138, 0.7), rgba(29, 78, 216, 0.7), rgba(15, 23, 42, 0.7)); 
    z-index: -1;
}

.hero-over > .max-w-4xl {
    position: relative;
    z-index: 1;
}