:root {
    --primary: #2ECC71;
    --primary-hover: #27AE60;
    --secondary: #34495E;
    --dark: #1E272E;
    --light: #F1F2F6;
    --white: #FFFFFF;
    --sold: #E74C3C;
    --reserved: #F39C12;
    --available: #2ECC71;
    
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--secondary);
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.glassmorphism-dark {
    background: rgba(30, 39, 46, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow);
    color: var(--light);
}

.hidden { display: none !important; }

/* Banner */
.banner {
    background: #FFD32A;
    color: #1E272E;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left h1 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--dark);
    letter-spacing: -1px;
}
.header-left p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.contact-info {
    font-size: 0.9rem;
    color: var(--secondary);
}
select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: var(--light);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
select:hover { border-color: var(--primary); }

/* Main layout */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.stats-panel {
    flex: 1 1 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-5px); }
.stat-box h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.qr-box {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
}
.qr-img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.qr-label {
    font-weight: 600;
    color: var(--secondary);
}

.map-container {
    flex: 3 1 700px;
    background: var(--white);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    min-height: 600px;
}

.map-wrapper {
    width: 100%;
    height: auto;
    position: relative;
}

.map-wrapper img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    background: none; border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover { color: var(--primary); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.modal-header h2 { font-weight: 600; }
.badge {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    flex-direction: column;
}
.info-label {
    font-size: 0.85rem;
    color: #A4B0BE;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.info-val {
    font-size: 1.2rem;
    font-weight: 600;
}
.info-item.highlight {
    grid-column: span 2;
    background: rgba(46, 204, 113, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.info-item.highlight .info-val {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.status-available { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-reserved { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.status-sold { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

.financing-section {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 16px;
}
.financing-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #A4B0BE;
}
.calc-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #A4B0BE;
}
.form-group input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.calc-result {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.3s ease-out;
}
.calc-result h4 {
    font-size: 0.9rem;
    color: #A4B0BE;
    margin-bottom: 15px;
}

.currency-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.currency-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #A4B0BE;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.currency-btn:hover { background: rgba(255,255,255,0.1); }
.currency-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}
.disclaimer {
    font-size: 0.75rem;
    color: #A4B0BE;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* Print Media Query */
.print-only { display: none; }

@media print {
    body {
        background: white;
        color: black;
    }
    header, main, .modal, .banner { display: none !important; }
    
    .print-only {
        display: block;
        width: 100vw;
        height: 100vh;
        padding: 40px;
        box-sizing: border-box;
    }
    
    .print-title {
        font-size: 4rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .print-stats {
        display: flex;
        justify-content: space-around;
        margin-bottom: 40px;
    }
    .print-stat-box { display: flex; align-items: center; gap: 15px; }
    .print-label { font-size: 1.5rem; font-weight: bold; }
    .print-box { 
        width: 120px; height: 60px; 
        border: 3px solid black; 
        border-radius: 8px; 
    }
    
    .print-map-container {
        width: 100%;
        height: 60vh;
        border: 2px solid #EEE;
        display: flex; justify-content: center; align-items: center;
        margin-bottom: 40px;
    }
    
    .print-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .print-qr img { width: 150px; height: 150px; border: 2px solid black; padding: 5px; }
    .print-contact h2 { font-size: 2rem; }
    .print-contact p { font-size: 1.5rem; }
}
