:root {
    --primary-color: #faf9f6;
    --accent-color: #b0a392;
    --text-main: #2d2b2a;
    --text-muted: #736b66;
    --glass-bg: rgba(250, 249, 246, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
}

body.splash-active {
    overflow: hidden;
}

body.splash-active .glass-nav {
    opacity: 0;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.splash-logo {
    color: var(--text-main);
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    text-align: center;
}

.splash-logo.fancy-font {
    font-family: 'Great Vibes', cursive;
    text-transform: none;
    letter-spacing: 4px;
    font-size: 5rem;
    font-weight: 400;
}

.loading-status {
    display: flex;
    justify-content: space-between;
    width: 300px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0;
    animation: splashFadeIn 1s ease forwards 1s;
}

.progress-bar-container {
    width: 300px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: splashFadeIn 1s ease forwards 1s;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

@keyframes splashFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.splash-active {
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(250, 249, 246, 1) 0%, rgba(250, 249, 246, 0.4) 40%, rgba(250, 249, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 2.5s ease;
}

body:not(.intro-active) .overlay::after {
    opacity: 1;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: opacity 1.5s ease, padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(250, 249, 246, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1rem 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.55;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(176, 163, 146, 0.12);
}

.separator {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 0 2rem 8rem 2rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    opacity: 0;
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-title.fancy-font {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 4rem;
    color: var(--text-main);
    text-transform: none;
}

/* Master Scroll Container */
#master-scroll-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.slide.hero-slide {
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8rem;
}

/* Slide 2: Explore / The Vision */
.slide.explore-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #faf9f6;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.left-image {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #faf9f6;
    overflow-y: auto;
}

.section-tag {
    color: #b0a392;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #2d2b2a;
    font-family: 'Playfair Display', serif;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
}

.section-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    color: #736b66;
}

/* Slide 3: Gallery / Amenities */
.slide.gallery-slide {
    background: #ffffff;
    color: var(--text-main);
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.gallery-pin-wrap {
    display: flex;
    width: 100%;
    height: 100%;
}

.gallery-left {
    flex: 1.2;
    background: #ffffff;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.gallery-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: #2d2b2a;
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.gallery-desc {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: #736b66;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 2rem;
}

.gallery-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.amenity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.amenity-item .material-symbols-outlined {
    color: #b0a392;
    font-size: 2rem;
    flex-shrink: 0;
}

.amenity-item h4 {
    color: #2d2b2a;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.amenity-item p {
    color: #736b66;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.gallery-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img,
.image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    border-top: 15px solid #ffffff;
}

#img-1 { z-index: 1; border-top: none; }
#img-2 { z-index: 2; }
#img-3 { z-index: 3; }
#img-4 { z-index: 4; }
#img-5 { z-index: 5; }
#img-6 { z-index: 6; }
#img-7 { z-index: 7; }
#img-8 { z-index: 8; }

.image-stack-indicators {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 20;
    background: rgba(45, 43, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0.9rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Slide 4: Apartments Typologies */
.apartments-slide {
    background: #faf9f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
}

.apartments-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 2rem;
}

.apartments-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #2d2b2a;
    margin: 0.4rem 0 0.6rem 0;
    font-family: 'Playfair Display', serif;
}

.apartments-desc {
    color: #736b66;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.5;
    margin: 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.glass-card.typologies-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.2rem 1.3rem;
    border-top: 4px solid #b0a392;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card.typologies-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.card-top {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.card-icon {
    color: #b0a392;
    font-size: 2.3rem;
}

.card-badge {
    background: rgba(176, 163, 146, 0.15);
    color: #8e7f6e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2d2b2a;
    margin-bottom: 0;
    font-weight: 600;
}

.card-tags {
    border-top: 1px solid #f0ede8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: #8a827c;
    padding-top: 0.8rem;
}

.card-tag {
    background: #f7f6f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.swipe-hint {
    display: none;
    font-size: 0.82rem;
    color: #a09890;
    margin-top: 0.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.swipe-hint .hint-icon {
    font-size: 1.1rem;
}

/* Slide 5: Contact */
.contact-slide {
    background: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
}

.contact-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.contact-desc {
    margin-bottom: 2rem;
    color: #ccc;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards-wrap {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: left;
    flex-wrap: wrap;
    width: 100%;
}

.contact-card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.contact-card.info-card {
    background: #252525;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-phones {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.contact-icon {
    color: #c9a96e;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    color: #c9a96e;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-val {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #c9a96e;
}

.contact-card.map-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-iframe-container {
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gps-button {
    background: #c9a96e;
    color: #1a1a1a;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.gps-button:hover {
    background: #d8bc85;
    transform: translateY(-2px);
}

.footer {
    position: absolute;
    bottom: 2rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Mobile Menu Button & Mobile Drawer */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.mobile-menu-btn .menu-icon {
    font-size: 2rem;
    color: var(--text-main);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.mobile-drawer.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.drawer-close-btn .material-symbols-outlined {
    font-size: 2rem;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 2rem 0;
}

.drawer-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.drawer-link:hover,
.drawer-link:active {
    color: var(--accent-color);
    transform: translateX(8px);
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
}

.drawer-contact-quick {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Responsive Breakpoints Suite (Laptops, Tablets, Smartphones)
   ========================================================================== */

/* Compact Desktop Laptops (e.g. 1366x768 or scaled displays) */
@media (min-width: 951px) and (max-height: 820px) {
    .glass-nav {
        padding: 0.8rem 3rem;
    }
    .slide.hero-slide {
        padding-top: 5rem;
    }
    .right-text {
        padding: 2.2rem 3rem;
    }
    .section-title {
        font-size: 2.2rem;
        margin: 0.2rem 0 0.5rem 0;
    }
    .section-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }
    .gallery-left {
        padding: 2rem 2.8rem;
    }
    .gallery-title {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    .gallery-desc {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    .gallery-amenities-grid {
        gap: 0.85rem 1.6rem;
    }
    .amenity-item {
        gap: 0.75rem;
    }
    .amenity-item .material-symbols-outlined {
        font-size: 1.55rem;
    }
    .amenity-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    .amenity-item p {
        font-size: 0.76rem;
        line-height: 1.3;
    }
    .apartments-slide {
        padding: 1.8rem 2rem;
    }
    .apartments-header {
        margin-bottom: 1.2rem;
    }
    .apartments-title {
        font-size: 2rem;
        margin: 0.2rem 0;
    }
    .apartments-desc {
        font-size: 0.88rem;
    }
    .cards-container {
        gap: 0.8rem;
        max-width: 1350px;
    }
    .glass-card.typologies-card {
        padding: 1.3rem 0.85rem;
    }
    .card-header {
        margin-bottom: 0.7rem;
    }
    .card-icon {
        font-size: 1.8rem;
    }
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    .card-badge {
        font-size: 0.76rem;
        padding: 0.25rem 0.55rem;
    }
    .contact-slide {
        padding: 2rem 2rem 1rem 2rem;
    }
    .contact-title {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    .contact-desc {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    .contact-cards-wrap {
        gap: 1.2rem;
    }
    .contact-card.info-card {
        padding: 1.6rem;
    }
    .contact-item {
        margin-bottom: 0.9rem;
    }
    .contact-icon {
        font-size: 1.3rem;
    }
    .map-iframe-container {
        height: 220px;
    }
    .gps-button {
        padding: 0.8rem;
        font-size: 0.88rem;
    }
    .footer {
        position: static;
        margin-top: 1.5rem;
        bottom: auto;
        font-size: 0.8rem;
    }
}

/* Laptops (max-width: 1250px) */
@media (max-width: 1250px) {
    .gallery-left {
        padding: 2.5rem 2rem;
    }
    .right-text {
        padding: 2.5rem 2rem;
    }
    .cards-container {
        gap: 0.8rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    .glass-card.typologies-card {
        padding: 1.6rem 0.85rem;
    }
    .card-title {
        font-size: 1.25rem;
    }
    .card-badge {
        font-size: 0.76rem;
        padding: 0.25rem 0.55rem;
    }
}

/* Tablets & Mobile (max-width: 950px) */
@media (max-width: 950px) {
    .glass-nav {
        padding: 1rem 1.5rem !important;
    }
    .logo {
        font-size: 1.15rem;
    }
    #desktop-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex;
    }

    #master-scroll-container {
        height: auto !important;
        overflow: visible !important;
    }

    .slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1 !important;
        transform: none !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .slide.hero-slide {
        height: 100vh !important;
        min-height: 100vh !important;
        display: flex !important;
    }

    /* Vision: Vertical Stack with Natural Flow */
    .slide.explore-slide {
        background: #faf9f6;
    }
    .split-layout {
        flex-direction: column;
        height: auto;
    }
    .left-image {
        flex: none;
        height: 380px;
        width: 100%;
    }
    .left-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    .right-text {
        flex: none;
        height: auto;
        padding: 3.5rem 2rem;
        overflow: visible;
        justify-content: flex-start;
    }

    /* Amenities: Visual Hero on Top + 2-Column Spacious Grid */
    .slide.gallery-slide {
        background: #ffffff;
    }
    .gallery-pin-wrap {
        flex-direction: column-reverse;
        height: auto;
    }
    .gallery-right {
        flex: none;
        height: 400px;
        width: 100%;
        position: relative;
        overflow: hidden;
        z-index: 5;
    }
    .image-stack {
        position: relative;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }
    .gallery-img,
    .image-stack img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        will-change: transform;
        border-top: 10px solid #ffffff;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
        display: block !important;
    }
    #img-1 {
        z-index: 1;
        border-top: none;
        box-shadow: none;
    }
    #img-2 {
        z-index: 2;
    }
    #img-3 {
        z-index: 3;
    }
    .image-stack-indicators {
        bottom: 1rem;
        right: 1.2rem;
        padding: 0.35rem 0.75rem;
    }
    .gallery-left {
        flex: none;
        height: auto;
        padding: 3.5rem 2rem;
        overflow: visible;
        justify-content: flex-start;
    }
    .gallery-desc {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .gallery-amenities-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem 1.4rem;
    }

    /* Apartments Typologies */
    .slide.apartments-slide {
        background: #faf9f6;
        padding: 4.5rem 2rem;
        overflow: visible;
    }
    .apartments-header {
        margin-bottom: 2.2rem;
    }
    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
        max-width: 800px;
    }
    .cards-container .penthouse-card {
        grid-column: span 2;
        text-align: center;
    }
    .cards-container .penthouse-card .card-header {
        justify-content: center;
        gap: 1.5rem;
    }
    .glass-card.typologies-card {
        padding: 2rem 1.6rem;
        height: auto;
    }

    /* Contact & Location */
    .slide.contact-slide {
        background: #1a1a1a;
        padding: 4.5rem 2rem 3rem 2rem;
        overflow: visible;
        min-height: auto;
    }
    .contact-content {
        margin: 0 auto;
    }
    .contact-cards-wrap {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .contact-card {
        width: 100%;
        max-width: 620px;
    }
    .contact-card.info-card {
        padding: 2.2rem;
    }
    .footer {
        position: static;
        margin-top: 3.5rem;
        padding-top: 1rem;
    }
}

/* Mobile Devices (max-width: 650px) */
@media (max-width: 650px) {
    .glass-nav {
        padding: 0.8rem 1.2rem !important;
    }
    .logo {
        font-size: 1.05rem;
        letter-spacing: 1px;
    }

    /* Splash Screen */
    .splash-logo.fancy-font {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    /* Vision */
    .left-image {
        height: 260px;
    }
    .right-text {
        padding: 2.2rem 1.2rem;
    }
    .section-title {
        font-size: 1.85rem;
        margin: 0.3rem 0 0.8rem 0;
    }
    .section-desc {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* Amenities */
    .gallery-right {
        height: 320px;
    }
    .gallery-left {
        padding: 2.2rem 1.2rem;
    }
    .gallery-title {
        font-size: 1.85rem;
        margin-bottom: 0.4rem;
    }
    .gallery-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .gallery-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 0.8rem;
    }
    .amenity-item {
        gap: 0.6rem;
    }
    .amenity-item .material-symbols-outlined {
        font-size: 1.5rem;
    }
    .amenity-item h4 {
        font-size: 0.88rem;
        margin-bottom: 0.15rem;
        line-height: 1.25;
    }
    .amenity-item p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* Apartments: 1-Column Responsive Full Cards */
    .slide.apartments-slide {
        padding: 2.8rem 1.2rem;
    }
    .apartments-header {
        margin-bottom: 1.5rem;
    }
    .apartments-title {
        font-size: 1.85rem;
        margin: 0.2rem 0 0.5rem 0;
    }
    .apartments-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
        padding: 0;
    }
    .cards-container .penthouse-card {
        grid-column: auto;
        text-align: left;
    }
    .cards-container .penthouse-card .card-header {
        justify-content: space-between;
        gap: 0;
    }
    .glass-card.typologies-card {
        padding: 1.8rem 1.4rem;
        min-height: auto;
    }
    .card-title {
        font-size: 1.45rem;
    }

    /* Contact */
    .slide.contact-slide {
        padding: 2.8rem 1.2rem 1.8rem 1.2rem;
    }
    .contact-title {
        font-size: 1.95rem;
    }
    .contact-desc {
        font-size: 0.92rem;
        margin-bottom: 1.6rem;
    }
    .contact-cards-wrap {
        gap: 1.4rem;
    }
    .contact-card.info-card {
        padding: 1.6rem 1.2rem;
    }
    .contact-item {
        margin-bottom: 1.2rem;
        gap: 0.8rem;
    }
    .contact-icon {
        font-size: 1.4rem;
    }
    .map-iframe-container {
        height: 240px;
    }
    .gps-button {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    .footer {
        margin-top: 2rem;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Extra Small Mobile Devices (max-width: 440px) */
@media (max-width: 440px) {
    .gallery-amenities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .left-image {
        height: 220px;
    }
    .gallery-right {
        height: 270px;
    }
    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    .contact-card.info-card {
        padding: 1.2rem 1rem;
    }
}

/* ==========================================================================
   RTL / Arabic Support
   ========================================================================== */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    text-align: right;
}

html[dir="rtl"] .fancy-font,
html[dir="rtl"] .section-title,
html[dir="rtl"] .gallery-title,
html[dir="rtl"] .apartments-title,
html[dir="rtl"] .contact-title,
html[dir="rtl"] .card-title,
html[dir="rtl"] .drawer-link {
    font-family: 'Amiri', 'Playfair Display', serif;
}

html[dir="rtl"] .right-text,
html[dir="rtl"] .gallery-left,
html[dir="rtl"] .contact-cards-wrap,
html[dir="rtl"] .contact-card {
    text-align: right;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .card-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .amenity-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .drawer-links {
    text-align: right;
}

html[dir="rtl"] .drawer-links .drawer-link {
    text-align: right;
}

html[dir="rtl"] .drawer-link:hover,
html[dir="rtl"] .drawer-link:active {
    transform: translateX(-8px);
}

html[dir="rtl"] .lang-selector {
    margin-left: 0;
    margin-right: 1rem;
    flex-direction: row-reverse;
}

/* Phone number & RTL Bidi Protection */
.phone-number,
.contact-link[href^="tel:"],
.drawer-contact-quick {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
}

html[dir="rtl"] .cards-container .penthouse-card {
    text-align: center;
}

@media (max-width: 650px) {
    html[dir="rtl"] .cards-container .penthouse-card {
        text-align: right;
    }
}


