/* === GLOBAL VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

:root {
    --bg-dark: #050B14;
    --bg-card: #0D2E6E;
    --gold-primary: #DCA853;
    --gold-hover: #C59343;
    --text-white: #ffffff;
    --text-gray: #aab2bd;
    
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    /* Leve oscurecimiento pedido en el doc */
}

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

.btn-outline:hover {
    background-color: rgba(201, 168, 76, 0.1);
}

/* === HEADER / NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: none;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.header-logo {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.logo-main {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    color: var(--gold-primary);
    line-height: 1;
    text-decoration: none;
    font-weight: 500;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--gold-primary);
    letter-spacing: 0.12em;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}

/* Animación Hover en enlaces del menú: linea dorada inferior animada */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(220, 168, 83, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}




/* === HERO SECTION === */
.hero-section {
    padding-top: 120px;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    flex: 1;
    padding-bottom: 4rem;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hero Content (Left Column) */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem;
}

@media (max-width: 900px) {
    .hero-content {
        align-items: center;
        padding-right: 0;
    }
}

.overline {
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.0rem; }
}

.highlight-gold {
    color: var(--gold-primary);
    font-weight: 700;
}

.hero-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Navbar CTA */
.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* Active Nav Link */
.nav-active {
    color: var(--gold-primary) !important;
}

/* Hero Visual (Right Column) */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    /* Resplandor dorado general muy sutil (opcional, lo dejamos suave) */
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.08)); 
}

@media (max-width: 900px) {
    .hero-visual {
        justify-content: center;
        margin-top: 2rem;
    }
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* Difuminado del borde dorado: comienza sólido y se desvanece (transparente) hacia abajo */
    background: linear-gradient(to bottom, var(--gold-primary) 0%, var(--gold-primary) 50%, rgba(201,168,76,0) 100%);
    padding: 1px;
    /* Esquina superior izquierda cortada en diagonal */
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px);
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
    object-position: center top;
    background-color: var(--bg-dark);
    clip-path: polygon(49px 0, 100% 0, 100% 100%, 0 100%, 0 49px);
}

/* Overlay degradado que fusiona (difumina) la foto con el fondo oscuro */
.hero-photo-overlay {
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background:
        /* Difuminado más intenso de izquierda a derecha */
        linear-gradient(to right, rgba(5, 11, 20, 1) 0%, rgba(5, 11, 20, 0.85) 15%, rgba(5, 11, 20, 0) 50%),
        /* Difuminado más intenso inferior */
        linear-gradient(to top, rgba(5, 11, 20, 1) 0%, rgba(5, 11, 20, 0.85) 15%, rgba(5, 11, 20, 0) 50%);
    clip-path: polygon(49px 0, 100% 0, 100% 100%, 0 100%, 0 49px);
    pointer-events: none;
    z-index: 2;
    /* Añadir box shadow inset interno para mayor difuminado en los bordes */
    box-shadow: inset 30px -30px 60px rgba(5, 11, 20, 0.9);
}

/* Franja dorada inferior del hero */
.gold-divider {
    height: 2px;
    width: 100%;
    background-color: var(--gold-primary);
    margin: 0;
    border: none;
    flex-shrink: 0;
}

/* === COMMON SECTION STYLES === */
.section-dark {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.section-light {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.text-dark {
    color: var(--bg-dark);
}

.dark-overline {
    color: var(--bg-dark);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

/* === SERVICIOS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.08);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-number {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.25;
}

.card-desc {
    color: #cbd5e1; /* Light gray */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3); /* Thin gold line separating */
}

.card-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    background-color: var(--gold-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--bg-card);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.card-list-icon svg circle {
    fill: var(--bg-card) !important;
}

.card-list-icon svg path {
    fill: var(--gold-primary) !important;
}

.card-list-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.card-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.gold-divider-thick {
    height: 4px;
    width: 100%;
    background-color: var(--gold-primary);
    margin-top: 4rem;
}

.card-btn {
    width: 100%;
}

/* === PROPIEDADES === */
/* === PROPERTY SEARCH === */
.property-search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    width: 100%;
    padding: 0 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: #64748b;
    pointer-events: none;
}

.property-search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.5rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--bg-dark);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.property-search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(220, 168, 83, 0.2);
}

.property-search-input::placeholder {
    color: #94a3b8;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.property-card {
    height: 280px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.property-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    /* Menos difuminado: se vuelve transparente mucho antes (al 60%) para dejar ver más foto */
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(5, 11, 20, 0.9) 30%, rgba(5, 11, 20, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

.property-info {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
    pointer-events: none; /* Let clicks pass through if needed, though card handles it */
}

/* CARD SLIDER */
.card-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    z-index: 0;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.card-slider img {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    pointer-events: none; /* Prevent image dragging issues */
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3; /* Above everything */
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Allow card clicking */
}

.property-card:hover .slider-arrows {
    opacity: 1;
}

.slider-prev, .slider-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    pointer-events: auto; /* Buttons should be clickable */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.1s;
}

.slider-prev:hover, .slider-next:hover {
    background: white;
    transform: scale(1.1);
}

.slider-prev:active, .slider-next:active {
    transform: scale(0.95);
}

.property-tag {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.property-info h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.property-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.stats-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

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

.stat-item h3 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-item p {
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background-color: var(--gold-primary);
}

@media (max-width: 600px) {
    .stats-box { flex-direction: column; gap: 1.5rem; }
    .stat-divider { width: 60px; height: 1px; }
}

/* === QUIÉN SOY === */
.quien-soy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .quien-soy-grid { grid-template-columns: 1fr; }
}

.quien-soy-img-col {
    position: relative;
    display: flex;
    justify-content: flex-start;
    padding-left: 2.5rem;
}

.vertical-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: -6rem; /* Extends way past the image */
    width: 1px;
    background-color: var(--gold-primary);
}

.profile-img {
    width: 100%;
    max-width: 420px;
    height: 600px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid var(--gold-primary);
    box-shadow: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 2.5rem 0;
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}

.feature-box {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--gold-primary);
    border-radius: 6px;
    padding: 1.5rem 0.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover { transform: translateY(-3px); }

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.feature-box p {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-white);
}

.btn-text {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--gold-primary);
}

.btn-text:hover { text-decoration: none; border-bottom-color: var(--gold-hover); color: var(--gold-hover); }

.btn-text:hover { text-decoration: underline; }

/* === CONTACTO / CTA === */
.section-cta {
    background-color: var(--bg-dark);
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(220, 168, 83, 0.3);
    border-bottom: 1px solid rgba(220, 168, 83, 0.3);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .cta-title { font-size: 2rem; }
}

.cta-subtitle {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 600px) {
    .cta-buttons { flex-direction: column; }
}

.cta-footer {
    color: #475569;
    font-size: 0.85rem;
}

/* === RESPONSIVE UTILITIES & MOBILE OVERRIDES === */

.section-title-large {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

@media (max-width: 900px) {
    .quien-soy-img-col {
        justify-content: center;
        padding-left: 1rem;
    }
    .profile-img {
        height: 450px;
    }
    .vertical-line {
        bottom: -3rem; /* Reduce vertical extension on mobile */
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-title-large { font-size: 2.2rem; }
    .section-dark, .section-light { padding: 4rem 0; }
    
    .nav-container { padding: 0 1.5rem; }
    .logo-main { font-size: 2rem; }
    .header-logo { height: 32px; }
    
    .stats-box { flex-direction: column; gap: 2.5rem; }
    .stat-divider { width: 80px; height: 2px; }
    
    /* Make grids more flexible on smaller tablets */
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .section-dark, .section-light { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
    .section-title-large { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    
    .hero-section { padding-top: 100px; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 0.95rem; }
    
    .header-logo { height: 25px; }
    
    .profile-img { height: 350px; }
    
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    
    .stat-item h3 { font-size: 3.5rem; }
    
    /* Optimize buttons for tiny screens */
    .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .nav-container .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .cta-title { font-size: 1.8rem; }
}

/* === MODAL DETALLE DE PROPIEDAD === */
.properties-grid .property-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.properties-grid .property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(5, 11, 20, 0.2);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 11, 20, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    color: #0f172a;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 16px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(220, 168, 83, 0.2);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.8rem;
    color: #475569;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.modal-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}
.modal-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.modal-carousel img {
    flex: 0 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    height: 350px;
}

.modal-details {
    padding: 2.5rem;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-family: var(--font-sans);
    font-size: 2.4rem;
    color: #050B14;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.modal-header .location {
    color: #64748b;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.modal-grid-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #334155;
    font-weight: 600;
}

.spec-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.modal-info-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
}

.modal-description h5, .modal-amenities h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #050B14;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.7;
}

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.amenity-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.modal-cta-box {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.modal-cta-btn {
    background-color: var(--gold-primary);
    color: #050B14;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(220, 168, 83, 0.3);
}

.modal-cta-btn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

.modal-cta-btn:active {
    transform: translateY(0);
}

/* Lock scroll of body when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px); /* Prevent layout shifting */
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 92vh;
        width: 95%;
    }
    .modal-info-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .modal-hero-img {
        height: 220px;
    }
    .modal-details {
        padding: 1.8rem;
    }
    .modal-header h3 {
        font-size: 1.8rem;
    }
    .modal-grid-specs {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem 0;
    }
    .modal-cta-box {
        justify-content: center;
    }
    .modal-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
