/* ==========================================================================
   THE GRAY HOUSE - DESIGN SYSTEM & BRAND STYLE
   ========================================================================== */

/* Custom CSS Variables */
:root {
    --bg-primary: #0b0d10;
    --bg-secondary: #14171d;
    --bg-card: #1c2029;
    --bg-glass: rgba(20, 23, 29, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #e2cfa7; /* Soft Luxury Gold */
    --accent-dark: #bba271;
    --accent-glow: rgba(226, 207, 167, 0.2);
    --whatsapp-green: #25d366;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility Classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

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

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

.accent-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent);
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Section Common Styles */
.section-padding {
    padding: 6rem 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.2rem;
    }
}

.section-description {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: var(--transition-smooth);
}

/* Sticky Header State */
.main-header.sticky {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.sticky .header-logo {
    height: 42px;
}

.nav-menu ul {
    display: none;
    list-style: none;
    gap: 2.2rem;
}

@media (min-width: 992px) {
    .nav-menu ul {
        display: flex;
    }
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(-2px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(2px);
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 7rem 2.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    z-index: 90;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-link {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.mobile-link:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

    /* HERO VIDEO BACKGROUND */
    .hero-video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s cubic-bezier(0.44, 0.25, 0.07, 1), transform 8s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.95;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.35rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Scroll Down Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
}

.mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    display: block;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.6s infinite ease-out;
}

@keyframes scroll-wheel-anim {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.8rem;
    border-radius: 4px;
    margin-top: 2rem;
    max-width: max-content;
}

.badge-icon {
    height: 45px;
    width: auto;
}

.badge-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.badge-text p {
    font-size: 0.85rem;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
}

.about-img {
    border-radius: 4px;
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.img-accent-card {
    position: absolute;
    bottom: -1.5rem;
    left: 2rem;
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 1.5rem 2.2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.accent-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.accent-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ==========================================================================
   APARTMENTS SECTION
   ========================================================================== */
.apartments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .apartments-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.apartment-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.apartment-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.card-img-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.apartment-card:hover .card-img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-body {
    padding: 2.2rem;
}

.card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-body p {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.card-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.card-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features li i {
    color: var(--accent);
}

/* ==========================================================================
   INTERACTIVE GALLERY SECTION
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--bg-primary);
    background-color: var(--accent);
    border-color: var(--accent);
}

.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 13, 16, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.item-overlay i {
    font-size: 1.6rem;
    color: var(--accent);
    transform: scale(0.6);
    transition: var(--transition-smooth);
}

.item-overlay span {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transform: translateY(8px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .item-overlay i {
    transform: scale(1);
}

.gallery-item:hover .item-overlay span {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Gallery Filter Transition Classes */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: scale-up-gallery 0.4s ease forwards;
}

@keyframes scale-up-gallery {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   AMENITIES SECTION
   ========================================================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
}

.amenity-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2.2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.amenity-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.amenity-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.amenity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.amenity-card p {
    font-size: 0.9rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .testimonials-slider {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.guest-info {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.guest-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.stay-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.bg-accent {
    background-color: var(--accent);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.bg-accent p {
    color: rgba(11, 13, 16, 0.8);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.cta-content h2 {
    font-size: 2.2rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 3.2rem;
    }
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

@media (min-width: 576px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
}

.bg-accent .btn-primary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
}

.bg-accent .btn-primary:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.bg-accent .btn-secondary {
    border-color: rgba(11, 13, 16, 0.3);
    color: var(--bg-primary);
}

.bg-accent .btn-secondary:hover {
    border-color: var(--bg-primary);
    background-color: rgba(11, 13, 16, 0.05);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    font-size: 1.35rem;
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.detail-content p, .detail-content a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.detail-content a:hover {
    color: var(--accent);
}

/* Contact Map Vector Mockup styling */
.map-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.map-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.map-header h4 {
    font-size: 1.15rem;
    font-family: var(--font-body);
}

.map-header p {
    font-size: 0.85rem;
}

.map-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Styled Map Vector Graphic instead of standard plain iframe */
.map-graphic-mockup {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 4px;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Abstract stylized roads */
.map-graphic-mockup::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 120%;
    height: 12px;
    background-color: var(--bg-secondary);
    transform: rotate(15deg);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.map-graphic-mockup::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 45%;
    width: 12px;
    height: 120%;
    background-color: var(--bg-secondary);
    transform: rotate(-35deg);
    border-left: 1px solid rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.02);
}

.map-pin {
    position: absolute;
    top: 40%;
    left: 55%;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 10;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.5);
}

.map-pulse {
    position: absolute;
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 5;
    animation: map-pulse-anim 2s infinite ease-out;
}

@keyframes map-pulse-anim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.map-label {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, 0);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-self: flex-start;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.social-icons a:hover {
    color: var(--bg-primary);
    background-color: var(--accent);
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CUSTOM GLASSMORPHIC LIGHTBOX OVERLAY
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 13, 16, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active #lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
}

/* Lightbox Actions */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
}

/* ==========================================================================
   FLOATING WHATSAPP FAB
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-fab:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.fab-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - PHONES (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

    /* --- Global / Typography --- */
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    /* --- Header --- */
    .main-header {
        height: 64px;
    }

    --header-height: 64px;

    .main-header.sticky {
        height: 60px;
    }

    .header-logo {
        height: 38px;
    }

    .main-header.sticky .header-logo {
        height: 34px;
    }

    /* Ensure header CTA hidden on mobile (burger handles it) */
    .header-cta {
        display: none !important;
    }

    /* --- Mobile Nav Drawer --- */
    .mobile-nav {
        width: 100%;
        max-width: 100%;
        padding: 5.5rem 2rem 2rem 2rem;
    }

    /* --- Hero --- */
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-content {
        width: 95%;
        padding: 0 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.9rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* --- About Section --- */
    .about-img {
        height: 280px;
    }

    .about-image-wrapper {
        margin-bottom: 1.5rem; /* space for the accent card */
    }

    .img-accent-card {
        bottom: -1rem;
        left: 1rem;
        padding: 1rem 1.5rem;
    }

    .accent-number {
        font-size: 1.7rem;
    }

    .brand-badge {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.2rem;
    }

    /* --- Apartments --- */
    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-img-container {
        height: 220px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-body h3 {
        font-size: 1.35rem;
    }

    /* --- Gallery Filters --- */
    .gallery-filters {
        gap: 0.6rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.5rem 1.1rem;
    }

    /* Gallery: 1 column on small phones, 2 on wider phones */
    .gallery-grid {
        column-count: 1;
        column-gap: 1rem;
    }

    .gallery-item {
        margin-bottom: 1rem;
    }

    /* --- Amenities --- */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .amenity-card {
        padding: 1.8rem 1.5rem;
    }

    /* --- Testimonials --- */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.8rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* --- CTA Section --- */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Contact Section --- */
    .contact-details-list {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* --- Footer --- */
    .main-footer {
        padding: 3.5rem 0 1.5rem 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .footer-logo {
        height: 40px;
    }

    /* --- Lightbox on Mobile --- */
    .lightbox-content {
        max-width: 95%;
        max-height: 90%;
    }

    #lightbox-img {
        max-height: 60vh;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.2rem;
    }

    /* --- WhatsApp FAB --- */
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* hide tooltip on mobile (tap replaces hover) */
    .fab-tooltip {
        display: none;
    }
}

/* ==========================================================================
   SMALL PHONES (max-width: 400px)
   ========================================================================== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        font-size: 0.88rem;
        padding: 0.75rem 1.3rem;
    }

    .card-img-container {
        height: 190px;
    }
}

/* ==========================================================================
   TABLETS (768px – 991px)  — polish only, structure stays desktop-like
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   AI EXTRACTION / AEO SUMMARY BLOCK & FAQ ACCORDION (SEO/AEO ENHANCEMENTS)
   ========================================================================== */

.ai-summary-section {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.ai-summary-card {
    background: linear-gradient(135deg, rgba(28, 32, 41, 0.95), rgba(20, 23, 29, 0.95));
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.ai-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.ai-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(226, 207, 167, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.ai-summary-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.quick-fact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.fact-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Location & Surroundings Section */
.location-section {
    background-color: var(--bg-primary);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
}

.location-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.location-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.location-card-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.location-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Semantic FAQ Accordion Section */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-accordion {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 1.35rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-toggle-icon {
    font-size: 1.1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.faq-item[open] .faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Picture Element Resets & Helpers */
picture {
    display: block;
    width: 100%;
}

.gallery-item picture {
    display: block;
    width: 100%;
}

.gallery-item picture img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover picture img {
    transform: scale(1.04);
}

.card-img-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.apartment-card:hover picture .card-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .ai-summary-card {
        padding: 1.5rem;
    }
    .ai-summary-text {
        font-size: 1rem;
    }
    .quick-facts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .faq-question {
        padding: 1.15rem 1.25rem;
        font-size: 1.05rem;
    }
    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}
