:root {
    /* Color Palette */
    --primary-color: #D4AF37; /* Gold */
    --primary-dark: #b5952f;
    --secondary-color: #0A192F; /* Deep Navy Blue */
    --bg-dark: #020c1b;
    --bg-card: #112240;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #e6f1ff;
    font-weight: 700;
}

p {
    line-height: 1.8;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(2, 12, 27, 0.95);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: var(--whatsapp-color);
    color: var(--whatsapp-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KSI+PC9jaXJjbGU+Cjwvc3ZnPg==');
    opacity: 0.5;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title strong {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Maps Section */
.maps-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #e6f1ff;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.map-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

.map-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #0f172a;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    position: relative;
}

.bg-map-1 {
    /* We can use CSS patterns to simulate a map if no image is present */
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 75%, rgba(255,255,255,0.02)), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 75%, rgba(255,255,255,0.02));
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
}

.bg-map-2 {
    background-image: radial-gradient(rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 30px 30px;
}

.placeholder-overlay {
    text-align: center;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.placeholder-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.placeholder-overlay span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.placeholder-overlay small {
    color: var(--text-muted);
}

.map-card:hover .map-image-wrapper {
    /* In case images are added later, add hover scale */
    transform: scale(1.02);
    transition: var(--transition);
}

.map-info {
    padding: 30px;
    background-color: var(--bg-card);
    position: relative;
    z-index: 2;
}

.map-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e6f1ff;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(10, 25, 47, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    flex: 1;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Floating Action Button */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.fab-whatsapp:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: var(--whatsapp-dark);
}

/* Footer */
footer {
    background-color: #020c1b;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .maps-grid {
        grid-template-columns: 1fr;
    }
    .fab-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== Availability Trigger Card ===== */
.availability-trigger-card {
    cursor: pointer;
}

.availability-trigger-card:hover .availability-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.availability-icon-wrapper {
    text-align: center;
}

.availability-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.2rem;
    color: #0a0f1c;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    animation: pulseIcon 2.5s infinite;
}

@keyframes pulseIcon {
    0%, 100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.5); }
}

/* ===== Availability Modal ===== */
.availability-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.availability-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.availability-modal {
    background: linear-gradient(135deg, #0a0f1c 0%, #131b2e 50%, #0d1321 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.05);
}

.availability-modal-overlay.active .availability-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.modal-header-section {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header-section h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header-section h2 i {
    color: #d4af37;
    margin-left: 10px;
}

.modal-header-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
}

/* Scrollbar styling for modal */
.availability-modal::-webkit-scrollbar {
    width: 6px;
}

.availability-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.availability-modal::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}

/* Lock body scroll when modal open */
body.modal-open {
    overflow: hidden;
}



.availability-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* Summary Cards */
.availability-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.summary-card.total::before {
    background: linear-gradient(90deg, #d4af37, #f5d76e);
}

.summary-card.sold::before {
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
}

.summary-card.available-card::before {
    background: linear-gradient(90deg, #27ae60, #6dd5a0);
}

.summary-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.summary-card .summary-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.summary-card.total .summary-icon { color: #d4af37; }
.summary-card.sold .summary-icon { color: #e74c3c; }
.summary-card.available-card .summary-icon { color: #27ae60; }

.summary-card .summary-number {
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.summary-card.total .summary-number { color: #d4af37; }
.summary-card.sold .summary-number { color: #e74c3c; }
.summary-card.available-card .summary-number { color: #27ae60; }

.summary-card .summary-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Progress Bar */
.progress-wrapper {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.progress-label span:last-child {
    color: #d4af37;
    font-weight: 700;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #e74c3c, #d4af37);
    transition: width 1.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.availability-table thead {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
}

.availability-table th {
    padding: 18px 16px;
    color: #d4af37;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.availability-table td {
    padding: 16px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    transition: all 0.3s ease;
}

.availability-table tbody tr {
    transition: all 0.3s ease;
}

.availability-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.06);
}

.availability-table tbody tr:last-child td {
    border-bottom: none;
}

/* Floor name styling */
.availability-table td:first-child {
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-right: 20px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.available {
    background: rgba(39, 174, 96, 0.12);
    color: #6dd5a0;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.status-badge.available::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

.status-badge.sold {
    background: rgba(231, 76, 60, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.status-badge.sold::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    display: inline-block;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Responsive */
@media (max-width: 768px) {
    .availability-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 20px 16px;
    }
    
    .summary-card .summary-number {
        font-size: 2.2rem;
    }

    .availability-table th,
    .availability-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .status-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .availability-modal {
        padding: 24px 16px;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .availability-modal-overlay {
        padding: 10px;
    }

    .modal-header-section h2 {
        font-size: 1.3rem;
    }

    .availability-icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}
