@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&family=Great+Vibes&display=swap');

:root {
    --bg-luxury-green: #485142; /* Moss Green */
    --bg-paper: #f2ede4;       /* Antique Worn White */
    --bg-secondary: #485142;
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --gold: #c5a021;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #b8860b 100%);
    --gold-border: 2px solid #c5a021;
    --border-color: rgba(0,0,0,0.06);
    --white: #FFFFFF;
    --accent: #485142;
    
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-paper: 0 40px 100px -20px rgba(0,0,0,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: none !important;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-luxury-green);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.85rem;
    -webkit-font-smoothing: antialiased;
}

/* THE MOCKUP LAYER: Luxurious Paper Sheet */
.paper-layout {
    background-color: var(--bg-paper);
    max-width: 1200px;
    margin: 10px auto;
    padding: 30px 40px;
    position: relative;
    box-shadow: var(--shadow-paper);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .paper-layout {
        margin: 0;
        padding: 60px 15px 20px 15px; /* Added more top padding for the logo */
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        box-shadow: none;
    }
    .paper-layout::before {
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
    }
    .paper-layout::after {
        display: none; /* Hide corner icons on mobile to save space */
    }
}

.paper-layout::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid #c5a021;
    pointer-events: none;
    z-index: 10;
}

.paper-layout::after {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 40V1H40M5 36V5H36' stroke='%23d4af37' stroke-opacity='0.4'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M39 40V1H0M35 36V5H4' stroke='%23d4af37' stroke-opacity='0.4'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0V39H40M5 4V35H36' stroke='%23d4af37' stroke-opacity='0.4'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M39 0V39H0M35 4V35H4' stroke='%23d4af37' stroke-opacity='0.4'/%3E%3C/svg%3E");
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 11;
    opacity: 0.3;
}

.gold-text {
    background: linear-gradient(135deg, #d4af37 0%, #f7ef8a 45%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: goldshine 5s linear infinite;
    display: inline-block;
    padding: 0.1em 0.8em;
    margin: -0.1em -0.8em;
    overflow: visible !important;
}

.gold-divider {
    border: none;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='60' viewBox='0 0 120 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='60' y1='0' x2='60' y2='20' stroke='%23d4af37' stroke-width='1'/%3E%3Cpath d='M40 30C40 30 50 25 60 30C70 35 80 30 80 30' stroke='%23d4af37' stroke-width='0.8'/%3E%3Cline x1='60' y1='40' x2='60' y2='60' stroke='%23d4af37' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin: 2rem auto;
    width: 100%;
    opacity: 0.2;
}

@keyframes goldshine {
    to { background-position: 200% center; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.detail-page .container {
    max-width: 1150px;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

.handwritten {
    font-family: 'Great Vibes', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

header {
    height: 100px;
    background: var(--bg-luxury-green);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid #c5a021;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

@media (max-width: 768px) {
    header {
        position: sticky !important;
        top: 0;
        height: 70px !important;
        padding: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        background: var(--bg-luxury-green) !important;
    }
    nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 1rem !important;
        gap: 0 !important;
    }
    .logo img {
        height: 38px !important;
        margin-top: 0 !important;
        display: block !important;
    }
}

.nav-links {
    display: flex;
    gap: 2.8rem;
    list-style: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #f2ede4;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.btn-book-nav {
    background: var(--gold-gradient) !important;
    color: #1a251b !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(197, 160, 33, 0.3);
    border: none;
    text-decoration: none;
}

.section-padding { padding: 2rem 0; }

.hero {
    height: 100vh;
    background: var(--bg-luxury-green);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26, 37, 27, 0.35), rgba(26, 37, 27, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content h1 {
    font-size: 5rem;
    color: #f2ede4;
}

.cta-strip {
    background: var(--bg-luxury-green);
    border-top: 1px solid rgba(197, 160, 33, 0.3);
    border-bottom: 1px solid rgba(197, 160, 33, 0.3);
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.features-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(197, 160, 33, 0.05);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .features-highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .feature-item {
        padding: 1.5rem;
    }
    .contact-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
}

.contact-grid, .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-grid {
    text-align: left;
    gap: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.apt-card-v2 {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important; /* Force single column */
    }
    .apt-card-v2 {
        flex-direction: column;
        gap: 1rem;
    }
    .image-box {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 200px !important;
    }
}

.image-box {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.apt-info-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apt-info-v2 h3 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-primary);
}

.apt-price-v2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.2rem 0;
}

.apt-stats-v2 { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.apt-amenities-mini { display: flex; gap: 0.8rem; color: var(--gold); font-size: 0.8rem; margin-bottom: 0.5rem; }
.apt-desc-v2 { 
    font-size: 0.85rem; 
    line-height: 1.5; 
    margin-bottom: 0.5rem; 
    color: var(--text-primary);
}

.btn-outline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-radius: 2px;
}

.apt-footer-v2 { 
    margin-top: 1rem; 
    padding-top: 0.5rem;
    border-top: 1px solid rgba(197, 160, 33, 0.1);
}

.apt-amenities-mini {
    margin: 0.3rem 0 !important;
    display: flex;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.apt-stars {
    color: #DAA520;
    font-size: 0.8rem;
    margin-bottom: 0.4rem !important;
}

/* Detail Layout Grid */
.detail-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 4rem;
    align-items: start;
    margin-top: 1rem;
    position: relative;
    z-index: 5;
}

.gallery-col {
    min-width: 0;
    width: 100%;
}

.sidebar-col {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Mockup Gallery (Detail Page) */
.mockup-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-secondary);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(n+4) { grid-column: span 3; grid-row: span 1; }

/* Info Sections (Detail Page) */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.amenity-item i {
    color: var(--gold);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Sidebar Reserve Box */
.reserve-box {
    background: var(--accent);
    padding: 1.5rem;
    border-radius: 12px;
    color: var(--white);
    z-index: 100;
}

.reserve-box h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.field input, .field select {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    background: var(--white);
}

.btn-reserve {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    background: var(--gold);
    color: #1a251b !important;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    cursor: pointer;
}

/* Barrio / Neighborhood */
.barrio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.barrio-visual {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

.barrio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Sidebar */
.sidebar-video {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 3px solid var(--gold);
    position: relative;
}

.sidebar-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Reviews Carousel (Homepage) */
.reviews-wrapper {
    position: relative;
    padding: 0 40px;
    margin-top: 3rem;
}

.reviews-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-grid::-webkit-scrollbar { display: none; }

.review-card-v2 {
    background: #fdfdfd;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex: 0 0 350px;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.review-header-v2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-stars-v2 { color: #DAA520; font-size: 0.9rem; }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reviews-prev { left: 0; }
.reviews-next { right: 0; }

.review-platform {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Reviews Section (Detail Pages) */
.content-block-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .content-block-grid { grid-template-columns: 1fr; }
}

.review-list-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card-static {
    background: #fdfaf5;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.review-thumb-mini {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.review-body h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.review-stars {
    color: var(--gold);
    font-size: 0.75rem;
}

.review-text-mini {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
}

.block-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.block-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Guide & Rules colors */
.guide-header, .rules-header { color: #f2ede4; }
.guide-header h1, .rules-header h1 { color: #f2ede4 !important; }

/* Building Section */
#building-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

#building-container .carousel-item {
    flex: 0 0 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#building-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(18, 18, 18, 0.85);
    color: #f7ef8a;
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Footer */
footer {
    background: var(--bg-luxury-green);
    color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer .serif { color: var(--gold); }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .apt-card-v2 { flex-direction: column; }
    .image-box { width: 100%; height: 250px; flex: none; }
    .hero-content h1 { font-size: 3rem; }
    .detail-layout-grid { grid-template-columns: 1fr; }
    .sidebar-col { width: 100%; position: static; }
    .info-section { grid-template-columns: 1fr; }
}

/* Fix logo size on subpages */
.logo img { max-height: 60px; width: auto; }
.logo { display: block; margin: 0; }

/* Footer Contrast Fix */
footer p, footer a { color: rgba(255, 255, 255, 0.7) !important; }
footer a:hover { color: #ffffff !important; }

/* ==========================================================================
   INTERACTIVE COMPONENTS (LIGHTBOX, MODALS, FORMS)
   ========================================================================== */

/* --- Photo Lightbox System --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem; right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.lightbox-close:hover { color: var(--gold); transform: scale(1.1); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 3rem;
    cursor: pointer;
    padding: 2rem;
    user-select: none;
    transition: var(--transition);
}

.lightbox-nav:hover { color: var(--gold); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* --- Video & UI Interactions --- */
.btn-video-tour { transition: all 0.3s ease; }
.btn-video-tour:hover {
    background: var(--gold) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* --- Booking Inquiry Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 53, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #fdfaf5;
    width: 95%; max-width: 500px;
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(197, 160, 33, 0.3);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    font-size: 2rem; color: #c5a021;
    cursor: pointer; line-height: 1;
}

/* --- Form Styles --- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #485142; margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%; padding: 0.9rem;
    border: 1px solid #ddd; border-radius: 4px;
    background: white; font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #c5a021;
    box-shadow: 0 0 0 3px rgba(197, 160, 33, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .modal-content { padding: 2rem 1.5rem; }
}

/* --- Litepicker UI Enhancements --- */
:root {
    --litepicker-button-prev-month-color: var(--gold);
    --litepicker-button-next-month-color: var(--gold);
    --litepicker-day-color-hover: var(--gold);
}

.litepicker {
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
    border: 1px solid var(--gold) !important;
    border-radius: 8px !important;
    z-index: 9999 !important;
}

.litepicker .container__days .day-item {
    font-weight: 600 !important; /* Semi-bold instead of extra bold */
    color: #1a251b !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
}

.litepicker .container__days .day-item.is-locked,
.litepicker .container__days .day-item.is-disabled {
    font-weight: 400 !important;
    color: #a0aec0 !important; /* Better grey for readability */
    opacity: 0.6 !important; /* More visible than before */
    text-decoration: none !important; /* Remove line-through as it's dizzying */
    pointer-events: none !important;
}

.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
    background-color: var(--gold) !important;
    color: white !important;
}

.litepicker .container__days .day-item.is-in-range {
    background-color: rgba(197, 160, 33, 0.15) !important;
    color: var(--gold) !important;
}

/* --- Mobile Disorder Fixes --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide text links on mobile to avoid mess, rely on logo/booking */
    
    .nav-actions {
        gap: 0.8rem !important;
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero { height: 60vh !important; }
    .hero-visual img {
        object-position: 25% center !important; /* Shift the zoom to the left to show 'History finds home' */
    }

    .paper-layout {
        padding: 40px 0 20px 0;
        margin: 0;
        overflow-x: hidden;
        width: 100%;
    }
    
    .paper-layout > .container,
    .paper-layout > section > .container {
        padding: 0 15px;
    }

    .hero-content {
        margin-top: 15vh; /* Push the text down on mobile so it doesn't overlap the background image text */
    }

    .hero-content h1 {
        font-size: 2.8rem !important;
        padding: 0 1rem;
        line-height: 1.4 !important; /* Increased line-height to prevent the cursive S and M loops from being cut off */
        padding-top: 10px;
    }
    
    .detail-layout-grid {
        gap: 2rem;
    }
    
    .gallery-item:nth-child(1) { grid-column: span 12; }
    .gallery-item:nth-child(n+2) { grid-column: span 6; }
    
    .mockup-gallery {
        grid-auto-rows: 180px;
    }
    
    .block-title {
        font-size: 1.8rem;
    }
    
    .sidebar-video {
        aspect-ratio: 9/16 !important; /* Keep native vertical aspect ratio as requested */
        max-width: 280px !important; /* Prevent it from being too tall on mobile screens */
        margin: 1.5rem auto 0 auto !important; /* Center the video container */
        height: auto;
    }

    /* Fixed carousel items for mobile to prevent overflow */
    .reviews-wrapper, .building-wrapper {
        padding: 0 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .review-card-v2 {
        flex: 0 0 85% !important; /* Take 85% of width so next card is visible */
        max-width: 100% !important;
        padding: 1.5rem !important;
        white-space: normal !important;
    }
    
    #building-container .carousel-item {
        flex: 0 0 85% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 250px;
    }
    
    .carousel-nav {
        display: none !important; /* Hide arrows on mobile, rely on native swipe to save space */
    }

    /* Fixed carousel padding for mobile */

    /* Force Litepicker to single column and full width on mobile */
    .litepicker {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        margin: 0 auto;
    }
    .litepicker .container__main {
        width: 100% !important;
    }
    .litepicker .container__months {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .litepicker .container__months .month-item {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem !important; }
    .btn-book-nav { padding: 8px 16px; font-size: 0.65rem; }
    .lang-switcher { gap: 6px !important; }
    .lang-switcher svg { width: 18px !important; height: 12px !important; }
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES PRÉMIUM: HACKS DE FLUIDEZ Y NAVEGACIÓN
   ========================================================================== */

/* --- Botón de Menú Hamburguesa Animado --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    z-index: 10002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
}

/* Transformaciones del botón hamburguesa a "X" al estar activo */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Panel de Navegación Lateral (Glassmorphism) --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 37, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 50px 30px;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--gold);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 30px;
}

.mobile-menu-logo {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-menu-logo img {
    height: 55px;
    width: auto;
    filter: brightness(1);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 45px;
}

.mobile-nav-links a,
.mobile-nav-links a:link,
.mobile-nav-links a:visited {
    text-decoration: none !important;
    color: var(--bg-paper) !important;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus,
.mobile-nav-links a:active {
    color: var(--gold) !important;
}

.mobile-btn-book {
    background: var(--gold-gradient) !important;
    color: #1a251b !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(197, 160, 33, 0.3);
    margin-top: auto;
    letter-spacing: 0.05em;
}

/* --- Optimizaciones de Fluidez, Tarjetas y GPU --- */
.apt-card-v2 {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

.apt-card-v2:active {
    transform: scale(0.975); /* Tactile press visual feedback */
}

@media (max-width: 768px) {
    .image-box {
        aspect-ratio: 16 / 10 !important; /* Forces aspect ratio to prevent CLS */
        height: auto !important;
        flex: none !important;
    }
    
    .paper-layout::before {
        border-color: rgba(197, 160, 33, 0.4) !important;
    }
    
    /* Smooth inert scrolling and snap adjustments */
    .reviews-grid, #building-container {
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
    }
}

