/*
Theme Name: Senzora Astra Child
Theme URI: https://www.senzorachalets.nl/
Description: Een child theme voor het Astra thema, speciaal voor Senzora Chalets.
Author: Senzora
Author URI: https://www.senzorachalets.nl/
Template: astra
Version: 3.6 - Definitive Fix for All Layouts
*/

/* ==========================================================================
   1. Wrapper & Basis Stijlen
   ========================================================================== */
.senzora-content-wrap { 
    font-family: 'Poppins', sans-serif !important;
}
body {
    background-color: #f8fafc !important;
}
.senzora-content-wrap .senzora-text {
    color: #1a3c34;
}
.senzora-content-wrap .senzora-bg {
    background: linear-gradient(135deg, #022B60 0%, #022B60 100%);
}

/* ==========================================================================
   2. Homepage Shortcode Stijlen (met .senzora-content-wrap)
   ========================================================================== */
.senzora-content-wrap .model-card {
    transition: all 0.4s ease;
    overflow: hidden;
}
.senzora-content-wrap .model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.senzora-content-wrap .model-card:hover .model-image img {
    transform: scale(1.05);
}
.senzora-content-wrap .model-image {
    overflow: hidden;
}
.senzora-content-wrap .model-image img {
    transition: transform 0.6s ease;
}
.senzora-content-wrap .badge-bounce {
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   3. Chalet Detail Pagina (Configurator) Stijlen (met .senzora-content-wrap)
   ========================================================================== */
.senzora-content-wrap .calculator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.senzora-content-wrap .option-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}
.senzora-content-wrap .option-card.selected {
    border-color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.05);
}
.senzora-content-wrap .discount-badge {
    background-color: #f97316;
}

/* --- Carousel --- */
.senzora-content-wrap .carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    height: 288px;
}
.senzora-content-wrap .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.senzora-content-wrap .carousel-item {
    min-width: 100%;
    height: 100%;
    cursor: pointer;
}
.senzora-content-wrap .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.senzora-content-wrap .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.senzora-content-wrap .carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
}
.senzora-content-wrap .carousel-control-prev { left: 10px; }
.senzora-content-wrap .carousel-control-next { right: 10px; }
.senzora-content-wrap .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.senzora-content-wrap .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.senzora-content-wrap .carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}
.senzora-content-wrap .chalet-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    z-index: 10;
}
.senzora-content-wrap .floorplan-icon-trigger {
    cursor: pointer;
    margin-left: 8px;
    color: #0ea5e9;
    display: inline-flex;
    align-items: center;
}

/* --- Correctie voor Kenmerken Detailpagina --- */
.senzora-content-wrap .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.senzora-content-wrap .feature-card {
    background-color: #f0f9ff;
    padding: 0.75rem;
    border-radius: 0.5rem;
}
.senzora-content-wrap .feature-card svg {
    color: #0ea5e9;
    margin-bottom: 0.5rem;
    height: 1.5rem;
    width: 1.5rem;
}
.senzora-content-wrap .feature-card h3 {
    font-weight: 500;
    color: #1f2937;
}
.senzora-content-wrap .feature-card p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* --- Correctie voor Berging Keuzes --- */
.senzora-content-wrap .berging-option-container {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.senzora-content-wrap .berging-option-container .space-y-2 > * + * {
    margin-top: 0.5rem;
}
.senzora-content-wrap .berging-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.senzora-content-wrap input[type="radio"].berging-option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 9999px;
    border-width: 1px;
    border-color: #d1d5db;
    height: 1rem;
    width: 1rem;
    color: #0ea5e9;
    transition: all 0.2s;
    vertical-align: middle;
}
.senzora-content-wrap input[type="radio"].berging-option:checked {
    border-color: #0ea5e9;
    background-color: #0ea5e9;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

/* ==========================================================================
   4. Pop-ups (Modals) - Deze staan buiten de wrapper, dus GEEN .senzora-content-wrap
   ========================================================================== */
.floorplan-modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7);
}
.floorplan-modal-content { margin: 5% auto; display: block; width: 80%; max-width: 700px; }
.floorplan-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.floorplan-close:hover { color: #bbb; }

/* --- Offerte Pop-up (WPForms Modal) --- */
#contact-modal .modal-content { max-width: 56rem; max-height: 90vh; overflow-y: auto; border-radius: 0.75rem; }
#contact-modal .wpforms-container .wpforms-form .wpforms-field { padding: 0 0 1rem 0 !important; }
#contact-modal .wpforms-field-label { font-weight: 500 !important; margin-bottom: 0.5rem !important; }
#contact-modal .wpforms-field input[type=text],
#contact-modal .wpforms-field input[type=email],
#contact-modal .wpforms-field input[type=tel],
#contact-modal .wpforms-field textarea { border-radius: 0.5rem !important; border: 1px solid #d1d5db !important; padding: 0.75rem 1rem !important; }
#contact-modal .wpforms-submit-container { text-align: center; padding-top: 1rem; }
#contact-modal .wpforms-submit { width: 100%; background-color: #0ea5e9 !important; color: white !important; font-weight: 600 !important; padding: 0.75rem !important; border-radius: 0.75rem !important; border: none !important; transition: opacity 0.3s ease; }
#contact-modal .wpforms-submit:hover { opacity: 0.9 !important; }
#contact-modal .wpforms-field-name-container,
#contact-modal .wpforms-field-address-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
#contact-modal .wpforms-field-address-container .wpforms-one-half { width: 100% !important; margin-left: 0 !important; }

/* --- Fotogalerij Pop-up (Lightbox) --- */
.basicLightbox__placeholder { display: flex !important; align-items: center !important; justify-content: center !important; }
.lightbox-image-container { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image-container img { max-width: 100%; max-height: 90vh; border: 4px solid white; box-shadow: 0 0 20px rgba(0,0,0,0.5); border-radius: 8px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; transition: all 0.3s ease; border: none; }
.lightbox-nav:hover { background-color: rgba(0, 0, 0, 0.8); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-counter { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); color: white; background-color: rgba(0, 0, 0, 0.5); padding: 5px 15px; border-radius: 20px; font-size: 14px; }

/* ==========================================================================
   5. Media Queries (Responsiveness)
   ========================================================================== */
@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

