/* =========================================
   Urban R8 - Inmobiliaria y Constructora
   Premium Vanilla CSS
   ========================================= */

:root {
    /* Color Palette (Brand Identity) */
    --bg-dark: #2a2a2b; /* Derived from logo dark gray */
    --bg-surface: #393a3c; /* Logo Dark Gray */
    --bg-surface-hover: #4a4b4d;
    
    --primary-gold: #d8ae2b; /* Logo Yellow */
    --primary-gold-hover: #a48937; /* Muted Gold */
    --primary-gold-glow: rgba(216, 174, 43, 0.2);
    
    --text-main: #f8fafc;
    --text-muted: #ddd4cf; /* Beige from brand */
    --text-gray: #a6a6a6; /* Medium Gray from brand */
    
    --color-brown: #74510e; /* Dark Brown from brand */
    
    --border-color: rgba(221, 212, 207, 0.1);
    --border-color-hover: rgba(216, 174, 43, 0.3);
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(250, 204, 21, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 1.5rem; }
.w-full { width: 100%; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background-color: rgba(250, 204, 21, 0.05);
    transform: translateY(-2px);
}

/* =========================================
   Double-Tier Header & Navigation
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled .header-top {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.site-header.scrolled .header-bottom {
    box-shadow: var(--shadow-md);
}

/* Top Tier */
.header-top {
    background-color: rgba(42, 42, 43, 0.95);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}
.logo span { color: var(--primary-gold); }

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    font-size: 1.6rem;
    transition: transform 0.3s, filter 0.3s;
}
.social-icons a:hover { 
    transform: translateY(-2px);
    filter: brightness(1.2);
}
.social-icons .ph-whatsapp-logo { color: #25D366; }
.social-icons .ph-facebook-logo { color: #1877F2; }
.social-icons .ph-tiktok-logo { color: #FFFFFF; }
.social-icons .ph-instagram-logo { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.contact-details strong {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.contact-details span {
    color: #a0a0a0;
    font-size: 0.8rem;
}

/* Bottom Tier (White Navbar) */
.header-bottom {
    background-color: #ffffff;
    height: 50px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
}

.header-bottom-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav {
    display: flex;
    gap: 30px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a4a4a;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main); /* Blanco para la barra negra */
}

.site-header.scrolled .menu-toggle {
    color: #111;
}

.mobile-nav-footer {
    display: none; /* Ocultar por defecto en escritorio */
}

/* =========================================
   Hero Section & Carousel
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s ease;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 42, 43, 0.9) 0%, rgba(42, 42, 43, 0.4) 100%);
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-controls button:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: var(--header-height);
}

.hero-text-wrapper {
    max-width: 650px;
    animation: fadeInUp 1s ease forwards;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(1.8rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary-gold);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

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

/* =========================================
   Services Section (Accordion)
   ========================================= */
.services.section {
    padding-bottom: 80px;
}

.accordion-container {
    display: flex;
    width: 92%;
    max-width: 1400px;
    height: 600px;
    margin: 20px auto 40px;
    background-color: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.accordion-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.accordion-item:last-child {
    border-right: none;
}

.accordion-item.active {
    flex: 4;
}

.accordion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.accordion-item:hover .accordion-bg {
    transform: scale(1.05);
}

.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    transition: background 0.3s ease;
}

.accordion-item:not(.active) .accordion-overlay {
    background: rgba(0,0,0,0.6);
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.accordion-title-vertical {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: left bottom;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.accordion-item.active .accordion-title-vertical {
    opacity: 0;
    pointer-events: none;
}

.accordion-details {
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
    max-width: 600px;
}

.accordion-item.active .accordion-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.2s, 0.2s, 0s;
}

.accordion-details h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.accordion-details p {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 24px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@media (max-width: 992px) {
    .services-container {
        flex-direction: column;
        text-align: center;
    }
    
    .services-text {
        max-width: 100%;
    }
    
    .card-swap-wrapper {
        justify-content: center;
        margin-top: 40px;
        width: 100%;
    }
    
    .card-swap-container {
        transform: translate(0, 0);
        margin-left: -50px; /* Offset to center visual balance */
    }
}

/* =========================================
   CTA Divider
   ========================================= */
.cta-divider {
    background: linear-gradient(rgba(11,13,16,0.9), rgba(11,13,16,0.9)), url('assets/hero_building_modern_1782099405549.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-divider h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-divider p {
    color: #cbd5e1;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--primary-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
}

.social-links {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
}

.social-links h4 {
    margin-bottom: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background-color: var(--bg-surface-hover);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}
/* =========================================
   Property Catalog Section
   ========================================= */
.catalog-section {
    background-color: var(--bg-main);
    padding: 80px 0;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: var(--primary-gold);
}

.filter-group select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23facc15%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}

.filter-group select:focus,
.filter-group select:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* Grid & Cards */
/* Grid Carousel Wrapper & Nav Buttons */
.properties-carousel-wrapper {
    position: relative;
    width: 100%;
}

.grid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.grid-nav:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}
.grid-nav.prev {
    left: 10px;
}
.grid-nav.next {
    right: 10px;
}
@media (max-width: 768px) {
    .grid-nav {
        display: none; /* Hide buttons on mobile, allow natural scrolling */
    }
}

.properties-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 32px;
    padding: 12px 60px 24px 60px; /* Space for buttons on sides, and shadow below */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Webkit */
.properties-grid::-webkit-scrollbar {
    display: none;
}

.property-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(250, 204, 21, 0.3);
}

.property-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-gold);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.property-zone-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-gold);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.property-location {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-features {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature i {
    color: #94a3b8;
    font-size: 1.2rem;
}

.property-btn {
    margin-top: auto;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.property-card:hover .property-btn {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.no-results i {
    font-size: 4rem;
    color: #475569;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-results p {
    color: #94a3b8;
    margin-bottom: 24px;
}

/* =========================================
   PRELOADER (URBAN R8)
   ========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    font-weight: 400;
    letter-spacing: 2px;
    animation: blink 0.8s infinite alternate;
}

.loader-accent {
    color: var(--primary-gold);
    font-style: italic;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hidden {
    display: none !important;
}

/* =========================================
   CINEMATIC GLASSMORPHISM HERO
========================================= */
.cinematic-hero {
    position: relative;
    z-index: 50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Collage Background */
.collage-bg {
    position: absolute;
    top: -5%;
    left: -2%;
    width: 104%;
    height: 115%;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
}

.collage-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial gradient starting strong in the middle and quickly fading to transparent outwards */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0) 75%);
    backdrop-filter: blur(1px); /* Subtle blur */
    z-index: 2;
}

.cinematic-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: calc(var(--header-height) + 60px) 20px 40px;
}

.cinematic-content {
    margin-bottom: 60px;
    max-width: 800px;
}

.cinematic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    color: #111;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cinematic-badge .badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-gold);
    border-radius: 50%;
}

.cinematic-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: #111;
    font-weight: 400;
}

.cinematic-title em {
    font-style: italic;
    color: var(--primary-gold);
}

.cinematic-subtitle {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
    font-weight: 300;
}

/* Glassmorphism Search Panel */
.glass-search-panel {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.glass-search-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glass-form-group {
    display: flex;
    flex-direction: column;
    padding: 0 25px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    flex: 1;
}

.glass-form-group:last-of-type {
    border-right: none;
}

.glass-form-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 8px;
    font-weight: 600;
}

.glass-form-group select {
    background: transparent;
    border: none;
    color: #111;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none; /* Removes default arrow */
    padding-right: 15px;
}

.glass-form-group select option {
    background: #fff;
    color: #111;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-wrapper select {
    display: none; /* Hide native select */
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    background: transparent;
}

.custom-select-trigger i {
    font-size: 0.9rem;
    color: #777;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99;
    overflow: hidden;
    min-width: 150px;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
    background: var(--primary-gold);
    color: #000;
}

.custom-option.selected {
    font-weight: 600;
    color: var(--primary-gold);
}

.custom-option.selected:hover {
    color: #000;
}

.glass-search-btn {
    background-color: var(--primary-gold);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 18px 35px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.glass-search-btn:hover {
    background-color: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive Cinematic Glassmorphism */
@media (max-width: 992px) {
    .glass-search-grid {
        flex-direction: column;
        gap: 5px;
    }
    
    .glass-form-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 8px 10px;
        width: 100%;
    }
    
    .glass-form-group label {
        margin-bottom: 2px;
    }
    
    .glass-form-group:last-of-type {
        border-bottom: none;
    }

    .glass-search-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
        padding: 12px;
    }
    
    .glass-search-panel {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .collage-bg {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .collage-overlay {
        /* Flatter ellipse so it doesn't wash out the top and bottom images, relying on text-shadow for text readability */
        background: radial-gradient(ellipse 150% 60% at center 48%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 80%);
    }
    
    .cinematic-content {
        /* Soft, borderless glow behind text instead of a hard card */
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
        padding: 30px 10px;
        margin-bottom: 10px;
        width: 120%;
        margin-left: -10%;
    }
    
    .cinematic-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 1);
    }
    
    .cinematic-subtitle {
        font-size: 1rem;
        font-weight: 400;
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
    
    .cinematic-container {
        padding-bottom: 120px; /* Espacio para el widget de chat flotante */
    }
}
/* =========================================
   END CINEMATIC GLASSMORPHISM HERO
========================================= */

/* =========================================
   Location Section
   ========================================= */
.location-section {
    display: flex;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.location-map {
    flex: 1.2;
    min-height: 500px;
    background-image: url('assets/map_dark_bg_1782104772997.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.location-map::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-surface));
}

.location-content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-surface);
}

.location-content .section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.location-address {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.4;
}

.location-apps {
    margin-bottom: 40px;
}

.location-apps p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.apps-links {
    display: flex;
    gap: 32px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.app-btn i {
    color: var(--primary-gold);
    font-size: 1.8rem;
}

.app-btn:hover {
    color: var(--primary-gold);
}

/* =========================================
   Infinite Parallax Wall
   ========================================= */
.infinite-wall-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #050608;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid var(--primary-gold);
    box-shadow: inset 0 50px 100px rgba(0, 0, 0, 0.9);
    margin-top: 40px;
}

.parallax-grid {
    position: absolute;
    top: -50vh;
    left: 0;
    width: 100%;
    height: 200vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0.4;
    z-index: 1;
    transform: rotate(5deg) scale(1.2); /* Creates a dramatic angle */
}

.parallax-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parallax-img {
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

/* Animations for Infinite Scroll */
.scroll-up {
    animation: scrollUp 40s linear infinite;
}

.scroll-down {
    animation: scrollDown 35s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-33.33%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-33.33%); }
    100% { transform: translateY(0); }
}

/* Central Glass Box */
.wall-glass-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.wall-glass-box {
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.glass-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.glass-services-wrapper {
    position: relative;
    height: 250px; /* Fixed height to prevent jumping */
}

.glass-service {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-service.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-service i {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.glass-service h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: #fff;
    margin-bottom: 15px;
}

.glass-service p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.glass-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.glass-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-indicators .indicator.active {
    background: var(--primary-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-gold);
}

@media (max-width: 768px) {
    /* Parallax background optimization */
    .parallax-grid { transform: rotate(0) scale(1); opacity: 0.3; }
    .parallax-grid { grid-template-columns: repeat(2, 1fr); }
    .parallax-col:nth-child(3) { display: none; }
    
    /* Remove global glass box effect */
    .wall-glass-container { padding: 0 15px; }
    .wall-glass-box {
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 40px 0;
    }
    
    /* Keep title nice and centered above cards */
    .glass-title { 
        font-size: 1.8rem; 
        margin-bottom: 30px; 
        padding-bottom: 0;
        border-bottom: none;
    }
    
    /* Hide fading indicators */
    .glass-indicators { display: none; }
    
    /* Transform wrapper into swipeable horizontal container */
    .glass-services-wrapper { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: auto;
        gap: 15px;
        padding-bottom: 20px; /* Space for scroll shadow */
        -ms-overflow-style: none; /* Hide scrollbar IE and Edge */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .glass-services-wrapper::-webkit-scrollbar { display: none; }
    
    /* Make each service an individual floating card */
    .glass-service, .glass-service.active {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        flex: 0 0 85%; /* Card takes 85% of screen width */
        scroll-snap-align: center;
        
        /* Glass effect for the card */
        background: rgba(10, 12, 16, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        text-align: center;
    }
    
    /* Font sizing inside the new cards */
    .glass-service i { font-size: 2.5rem; margin-bottom: 15px; }
    .glass-service h3 { font-size: 1.4rem; margin-bottom: 10px; }
    .glass-service p { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: linear-gradient(135deg, #1f1f20 0%, #2a2a2b 50%, #1b1612 100%);
    border-top: 1px solid rgba(216, 174, 43, 0.2);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 20px 50px rgba(0,0,0,0.2);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
    opacity: 0.6;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo i { color: var(--primary-gold); }
.footer-brand .logo span { color: var(--primary-gold); }

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-contact h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-contact li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Design
   ========================================= */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .contact-wrapper { gap: 40px; }
}

@media (max-width: 992px) {
    .services-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .services-text {
        max-width: 100%;
    }
    
    .services-text .section-title {
        font-size: 3rem;
    }
    
    .accordion-container {
        flex-direction: column;
        height: 700px;
    }
    
    .accordion-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .accordion-item:last-child {
        border-bottom: none;
    }
    
    .accordion-title-vertical {
        transform: rotate(0deg);
        bottom: 20px;
        left: 30px;
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .accordion-details {
        padding: 30px;
        max-width: 100%;
    }
    
    .accordion-details h3 {
        font-size: 2rem;
    }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    
    .location-section {
        flex-direction: column;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .location-map::after {
        width: 100%;
        height: 30%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to bottom, transparent, var(--bg-surface));
    }
    
    .location-content {
        padding: 40px 24px;
        text-align: center;
        align-items: center;
    }
}

/* Mobile Devices */
@media (max-width: 992px) {
    .header-contact-info { 
        display: none !important; 
    }
    
    .header-bottom {
        height: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        border: none !important;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    .menu-toggle { display: block; }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        transform: translateX(-100%);
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .nav.active { transform: translateX(0); }
    
    .nav-link { font-size: 1.25rem; margin: 10px 0; color: #fff; }
    
    .mobile-nav-footer {
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .mobile-nav-footer .contact-details {
        text-align: center;
        color: #fff;
    }
    
    .mobile-nav-footer .contact-details strong {
        display: flex;
        justify-content: center;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .mobile-nav-footer .social-icons {
        justify-content: center;
    }
    
    .hero { min-height: auto; padding-bottom: 150px; }
    
    .carousel-controls {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 100%;
        justify-content: center;
    }
    
    .carousel-controls button {
        width: 44px;
        height: 44px;
    }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    
    .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-brand p { margin: 0 auto; }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .contact-form-container {
        padding: 24px;
    }
}

/* =========================================
   ADMIN PANEL STYLES
========================================= */
.admin-panel {
    max-width: 800px;
    margin: 0 auto;
}

.admin-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-card h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.admin-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.admin-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.admin-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.admin-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}
/* =========================================
   PROPERTY DETAILS MODAL & CAROUSEL
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-close-btn:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

.modal-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.modal-carousel-section {
    flex: 1.2;
    position: relative;
    background: #000;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-in-out;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary-gold);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-gold);
    transform: scale(1.3);
}

.modal-info-section {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.modal-location {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-family: var(--font-accent);
    font-weight: 700;
}

.modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
}

.spec-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.modal-description h3, .modal-amenities h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-description p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-amenities-list li {
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-amenities-list li::before {
    content: '?';
    color: var(--primary-gold);
    font-weight: bold;
}

.modal-footer {
    margin-top: auto;
    padding-top: 20px;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-carousel-section {
        min-height: 300px;
        flex: none;
    }
    .modal-info-section {
        padding: 20px;
    }
}
