/* Villa Configurator - Elegant Design Inspired by Figma */
/* Header & shared styles loaded from home.css */

/* Font Families */
.font-playfair,
.font-serena {
    font-family: 'Serena', serif;
}

.font-inter,
.font-manrope {
    font-family: 'Manrope', sans-serif;
}

/* Utility Classes */
.rotate-180 {
    transform: rotate(180deg);
}

/* Option checkbox fix */
.option-checkbox.selected {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%) !important;
    border-color: var(--sage-700) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(79, 99, 81, 0.3);
}

/* Custom Color Variables - aligned with site design system */
:root {
    --sage-50: #f5f3f0;
    --sage-100: #dfd8cf;
    --sage-200: #c4b5a5;
    --sage-300: #a1b7b9;
    --sage-400: #4d6170;
    --sage-500: #4d6170;
    --sage-600: #073849;
    --sage-700: #073849;
    --sage-800: #061c24;
    --cream: #dfd8cf;
    --stone-50: #f5f3f0;
}

/* Sage Color Classes */
.bg-sage-50 { background-color: var(--sage-50); }
.bg-sage-100 { background-color: var(--sage-100); }
.bg-sage-200 { background-color: var(--sage-200); }
.bg-sage-300 { background-color: var(--sage-300); }
.bg-sage-400 { background-color: var(--sage-400); }
.bg-sage-500 { background-color: var(--sage-500); }
.bg-sage-600 { background-color: var(--sage-600); }
.bg-sage-700 { background-color: var(--sage-700); }
.bg-sage-800 { background-color: var(--sage-800); }
.bg-cream { background-color: var(--cream); }

.text-sage-50 { color: var(--sage-50); }
.text-sage-100 { color: var(--sage-100); }
.text-sage-200 { color: var(--sage-200); }
.text-sage-300 { color: var(--sage-300); }
.text-sage-400 { color: var(--sage-400); }
.text-sage-500 { color: var(--sage-500); }
.text-sage-600 { color: var(--sage-600); }
.text-sage-700 { color: var(--sage-700); }
.text-sage-800 { color: var(--sage-800); }

.border-sage-200 { border-color: var(--sage-200); }
.border-sage-300 { border-color: var(--sage-300); }
.border-sage-600 { border-color: var(--sage-600); }

.hover\:bg-sage-50:hover { background-color: var(--sage-50); }
.hover\:bg-sage-700:hover { background-color: var(--sage-700); }
.hover\:text-sage-200:hover { color: var(--sage-200); }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Typography Enhancements */
.tracking-wider { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.25em; }

/* Mediterranean Villa Image Transitions */
.villa-image-transition {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    box-shadow: 0 20px 60px rgba(79, 99, 81, 0.15);
}

/* Elegant Villa Pills - Mediterranean Style */
.villa-pill {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(79, 99, 81, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    font-family: 'Serena', serif;
    letter-spacing: 0.025em;
}

.villa-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(79, 99, 81, 0.2);
    border-color: var(--sage-400);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.villa-pill:focus {
    outline: 3px solid var(--sage-300);
    outline-offset: 3px;
}

/* Villa Cards */
.villa-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.villa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sage-50) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.villa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--sage-300);
}

.villa-card:hover::before {
    opacity: 1;
}

.villa-card.selected {
    border-color: var(--sage-600);
    box-shadow: 0 8px 32px rgba(79, 99, 81, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
}

.villa-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.villa-card:hover .villa-card-image {
    transform: scale(1.05);
}

/* Mediterranean Variation Buttons */
.variation-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--sage-200);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    position: relative;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 2px 8px rgba(79, 99, 81, 0.08);
}

.variation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 99, 81, 0.15);
    border-color: var(--sage-400);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-100) 100%);
}

.variation-btn.border-sage-600 {
    border-color: var(--sage-600);
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
    box-shadow: 0 8px 24px rgba(79, 99, 81, 0.2);
}

.variation-btn:focus,
.variation-btn:focus-visible,
.variation-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Configuration Cards */
.variation-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: white;
}

.variation-card:hover {
    border-color: var(--sage-400);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.variation-card.selected {
    border-color: var(--sage-600);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    box-shadow: 0 8px 24px rgba(79, 99, 81, 0.15);
}

/* Mediterranean Option Items */
.option-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid transparent;
    position: relative;
}

.option-item:hover {
    border-color: #dfd8cf;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.option-item:focus,
.option-item:focus-visible,
.option-item:active {
    outline: none !important;
    box-shadow: none !important;
}

.option-item.option-selected {
    border-color: #073849 !important;
    background: #f8f8f6;
    box-shadow: 0 2px 8px rgba(7, 56, 73, 0.12) !important;
}

.option-item.bg-sage-50 {
    background: #f8f8f6;
    border-color: #c49e81;
}

/* Option Cards */
.option-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: white;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sage-600);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: var(--sage-300);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.option-card:hover::before {
    transform: scaleY(1);
}

.option-card.selected {
    border-color: var(--sage-600);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    box-shadow: 0 8px 24px rgba(79, 99, 81, 0.15);
}

.option-card.selected::before {
    transform: scaleY(1);
}

/* Mediterranean-style Checkboxes */
.option-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--sage-300);
    border-radius: 6px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(79, 99, 81, 0.1);
}

.option-checkbox.bg-sage-600,
.option-checkbox.border-sage-600 {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%) !important;
    border-color: var(--sage-700) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(79, 99, 81, 0.3);
}

.option-checkbox:focus {
    outline: 2px solid var(--sage-400);
    outline-offset: 2px;
}

/* Custom Checkboxes */
.option-checkbox-old {
    width: 24px;
    height: 24px;
    border: 2px solid var(--sage-300);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.option-checkbox-old.checked {
    background: var(--sage-600);
    border-color: var(--sage-600);
    transform: scale(1.1);
}

.option-checkbox-old.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mediterranean Slider */
.occupancy-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, 
        var(--sage-200) 0%, 
        var(--sage-400) 50%, 
        var(--sage-600) 100%);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(79, 99, 81, 0.1);
}

.occupancy-slider:focus {
    outline: 3px solid var(--sage-300);
    outline-offset: 3px;
}

.occupancy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    border: 4px solid var(--sage-600);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(79, 99, 81, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.occupancy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(79, 99, 81, 0.4);
    border-color: var(--sage-700);
}

.occupancy-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--sage-600);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 99, 81, 0.3);
}

/* Mediterranean Performance Indicators */
.performance-excellent,
.performance-good,
.performance-poor {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

/* Mediterranean Section Transitions */
.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Elegant entrance animation for villa pills */
.villa-pill {
    animation: slideInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.villa-pill:nth-child(1) { animation-delay: 0.1s; }
.villa-pill:nth-child(2) { animation-delay: 0.2s; }
.villa-pill:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInScale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stats Display */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--sage-700);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button Styles */
button, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Category Headers */
.category-header {
    position: relative;
    padding-left: 20px;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--sage-600);
    border-radius: 2px;
}

/* Mediterranean Responsive Design */
@media (max-width: 1024px) {
    .villa-image-transition {
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(79, 99, 81, 0.12);
    }
    
    .variation-btn, .option-item {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .villa-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tracking-wider {
        letter-spacing: 0.05em;
    }
    
    .tracking-widest {
        letter-spacing: 0.1em;
    }
    
    .villa-pill {
        min-height: 60px;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .variation-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .option-item {
        padding: 16px 12px;
        margin-bottom: 8px;
    }
    
    .occupancy-slider {
        height: 16px;
    }
    
    .occupancy-slider::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .font-playfair.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-playfair.text-4xl {
        font-size: 2rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hero Image Overlay Effects */
.villa-overlay-fade {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.villa-overlay-fade.hidden {
    opacity: 0;
    pointer-events: none;
}

.villa-overlay-fade:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Option Indicators Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#option-indicators > div {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(47, 62, 52, 0.95) 0%, rgba(79, 99, 81, 0.92) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 1) !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(47, 62, 52, 0.4);
    padding: 10px 14px !important;
    border-radius: 10px !important;
}

#option-indicators > div:last-child {
    background: linear-gradient(135deg, rgba(79, 99, 81, 0.95) 0%, rgba(92, 122, 99, 0.92) 100%) !important;
    border: 2px solid rgba(248, 250, 252, 0.95) !important;
}

#option-indicators > div:hover {
    border-color: rgba(248, 250, 252, 1) !important;
    box-shadow: 0 0 16px rgba(79, 99, 81, 0.6) !important;
    transform: scale(1.03);
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 99, 81, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Enhanced Villa Cards - 3-Card Layout */
.villa-selection-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    border: 2px solid var(--sage-200);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(79, 99, 81, 0.1);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.villa-selection-card:nth-child(1) { animation-delay: 0.1s; }
.villa-selection-card:nth-child(2) { animation-delay: 0.2s; }
.villa-selection-card:nth-child(3) { animation-delay: 0.3s; }

.villa-selection-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(79, 99, 81, 0.2);
    border-color: var(--sage-400);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-100) 100%);
}

.villa-selection-card.selected {
    border-color: var(--sage-600);
    box-shadow: 0 16px 48px rgba(79, 99, 81, 0.3);
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
    transform: translateY(-8px);
}

/* Phase Transitions */
.phase-transition {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.phase-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* High Contrast Overlays for Text Readability */
.text-overlay-enhanced {
    background: linear-gradient(135deg, rgba(47, 62, 52, 0.95) 0%, rgba(79, 99, 81, 0.92) 100%) !important;
    backdrop-filter: blur(12px) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 32px rgba(47, 62, 52, 0.6) !important;
}

.text-overlay-enhanced h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 1) !important;
    font-weight: 700;
}

.text-overlay-enhanced p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 1) !important;
}

/* Enhanced Accessibility - Focus States */
input:focus, button:focus {
    outline: 3px solid rgba(127, 160, 136, 0.9) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 16px rgba(79, 99, 81, 0.4) !important;
    transition: outline 0.2s ease;
}

/* Mediterranean focus states for overlay elements */
.text-overlay-enhanced:focus-within,
#back-to-selection:focus,
#villa-overlay-info:focus-within {
    outline: 3px solid rgba(248, 250, 252, 0.95) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 20px rgba(79, 99, 81, 0.6) !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .villa-pill, .variation-btn, .option-item {
        border-width: 3px;
    }
    
    .option-checkbox {
        border-width: 3px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .villa-pill {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sage-100);
}

::-webkit-scrollbar-thumb {
    background: var(--sage-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-600);
}

/* ============================================
   CONFIGURATOR APP LAYOUT
   ============================================ */

/* Force header to be compact and fixed on configurator */
body:has(.configurator-app) .site-header {
    height: 72px !important;
    background: rgba(6, 28, 36, 0.98) !important;
    transition: none !important;
}

body:has(.configurator-app) .header-logo-img {
    height: 44px !important;
}

.configurator-app *:focus,
.configurator-app *:focus-visible {
    outline: none !important;
}

.configurator-app {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
}

.configurator-image-panel {
    width: 60%;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    flex-shrink: 0;
    overflow: hidden;
    background: #061c24;
}

.configurator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.configurator-sidebar {
    width: 40%;
    overflow-y: auto;
    padding: 40px 48px 120px;
    background: #ffffff;
}

/* Villa Header */
.configurator-villa-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.configurator-villa-name {
    font-family: 'Serena', serif;
    font-size: 36px;
    font-weight: 400;
    color: #073849;
    margin-bottom: 8px;
}

.configurator-villa-specs {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #4d6170;
}

/* Sections */
.configurator-section {
    margin-bottom: 40px;
}

.configurator-section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #073849;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.configurator-section-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #4d6170;
    margin-bottom: 20px;
}

/* Land-Only */
.configurator-land-only {
    background: #f8f8f6;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.configurator-land-only-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.configurator-land-only-label input {
    margin-top: 3px;
    accent-color: #073849;
}

.configurator-land-only-title {
    font-weight: 600;
    font-size: 15px;
    color: #073849;
}

.configurator-land-only-desc {
    font-size: 13px;
    color: #4d6170;
    margin-top: 2px;
}

.configurator-land-only-price {
    font-weight: 700;
    font-size: 16px;
    color: #073849;
    margin-top: 6px;
}

/* Villa Selection Cards */
.configurator-villa-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Variations */
.configurator-variations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Options */
.configurator-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Occupancy */
.configurator-occupancy {
    margin-bottom: 24px;
}

.configurator-occupancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.configurator-occupancy-header label {
    font-weight: 500;
    font-size: 15px;
    color: #073849;
}

.configurator-occupancy-value {
    font-weight: 700;
    font-size: 20px;
    color: #073849;
}

.configurator-slider {
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #dfd8cf;
    border-radius: 2px;
    outline: none;
    border: none;
    box-shadow: none;
}

.configurator-slider:focus,
.configurator-slider:focus-visible,
.configurator-slider:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.configurator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    outline: none !important;
    box-shadow: none !important;
}

.configurator-slider::-moz-range-thumb:focus,
.configurator-slider::-moz-range-thumb:active {
    outline: none !important;
    box-shadow: none !important;
}

.configurator-slider::-moz-focus-outer {
    border: 0;
}

.configurator-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #073849;
    border-radius: 50%;
    cursor: pointer;
}

.configurator-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #073849;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ROI Grid */
.configurator-roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.configurator-roi-stat {
    text-align: center;
    padding: 16px 8px;
    background: #f8f8f6;
    border-radius: 8px;
}

.configurator-roi-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #073849;
}

.configurator-roi-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #4d6170;
    margin-top: 4px;
}

.configurator-monthly {
    text-align: center;
    padding: 16px;
    background: #073849;
    border-radius: 8px;
    margin-bottom: 16px;
}

.configurator-monthly .configurator-roi-value {
    color: #ffffff;
}

.configurator-monthly .configurator-roi-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Performance */
.configurator-performance {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* Summary Card */
.configurator-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.configurator-summary-header .configurator-section-title {
    margin-bottom: 0;
}

.configurator-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #073849;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.configurator-download-btn:hover {
    background: #0a4d63;
}

.configurator-summary-card {
    background: #f8f8f6;
    border-radius: 8px;
    padding: 20px;
}

.configurator-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.configurator-summary-row span:first-child {
    color: #4d6170;
}

.configurator-summary-row span:last-child {
    font-weight: 600;
    color: #073849;
}

.configurator-summary-divider {
    height: 1px;
    background: #c49e81;
    margin: 12px 0;
}

.configurator-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 700;
    font-size: 16px;
    color: #073849;
}

.configurator-summary-highlight {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #073849;
    color: #ffffff;
    border-radius: 6px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
}

.configurator-disclaimer {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    font-style: italic;
}

/* CTA */
.configurator-cta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #073849;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.configurator-cta-btn:hover {
    background: #0a4d63;
}

/* Form */
.configurator-form-card {
    background: #f8f8f6;
    border-radius: 8px;
    padding: 24px;
}

.configurator-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #073849;
    margin-bottom: 16px;
}

.configurator-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.configurator-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.configurator-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4d6170;
    margin-bottom: 4px;
}

.configurator-form input,
.configurator-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.configurator-form input:focus,
.configurator-form textarea:focus {
    outline: none;
    border-color: #073849;
}

.configurator-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4d6170;
    cursor: pointer;
}

.configurator-consent input {
    margin-top: 2px;
    accent-color: #073849;
}

.configurator-config-summary {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
}

.configurator-config-summary h5 {
    font-size: 13px;
    font-weight: 600;
    color: #073849;
    margin-bottom: 8px;
}

.configurator-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.configurator-btn-primary {
    flex: 1;
    padding: 12px;
    background: #073849;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.configurator-btn-primary:hover {
    background: #0a4d63;
}

.configurator-btn-secondary {
    flex: 1;
    padding: 12px;
    background: #e5e5e5;
    color: #4d6170;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.configurator-btn-secondary:hover {
    background: #d5d5d5;
}

/* Sticky Bottom Bar */
.configurator-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: #073849;
    padding: 10px 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.configurator-sticky-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.configurator-sticky-title {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.configurator-sticky-price {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

/* ============================================
   CONFIGURATOR RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .configurator-sidebar {
        padding: 32px 32px 120px;
    }
}

@media (max-width: 768px) {
    .configurator-app {
        flex-direction: column;
        min-height: auto;
        padding-top: 72px;
    }

    .configurator-image-panel {
        width: 100%;
        height: 35vh;
        position: relative;
        top: 0;
    }

    .configurator-sidebar {
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 24px 20px 120px;
    }

    .configurator-villa-name {
        font-size: 28px;
    }

    .configurator-roi-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .configurator-roi-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        text-align: left;
    }

    .configurator-roi-label {
        margin-top: 0;
    }

    .configurator-form-grid {
        grid-template-columns: 1fr;
    }

    .configurator-summary-highlight {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* Purchase Type Cards */
.configurator-purchase-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.configurator-purchase-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 2px solid var(--sage-200);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(79, 99, 81, 0.08);
}

.configurator-purchase-card:hover {
    transform: translateY(-2px);
    border-color: var(--sage-400);
    box-shadow: 0 8px 24px rgba(79, 99, 81, 0.15);
}

.configurator-purchase-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--sage-400);
    border-radius: 50%;
    background: #fff;
    margin: 2px 0 0 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.configurator-purchase-card input[type="radio"]:checked {
    border-color: #073849;
}

.configurator-purchase-card input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #073849;
}

.configurator-purchase-card:has(input[type="radio"]:checked) {
    border-color: #073849;
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
    box-shadow: 0 8px 24px rgba(7, 56, 73, 0.15);
}

.configurator-purchase-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.configurator-purchase-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #073849;
    letter-spacing: 0.2px;
}

.configurator-purchase-card-desc {
    font-size: 13px;
    color: #4d6170;
    line-height: 1.45;
}

.configurator-purchase-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #073849;
    margin-top: 4px;
}