/* Modern Reset & Base Styles */
:root {
    --primary: #1e293b;
    /* Slate 800 */
    --primary-dark: #0f172a;
    /* Slate 900 */
    --accent: #ca8a04;
    /* Yellow 600 - Gold-ish */
    --accent-hover: #a16207;
    --text-primary: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border: #e2e8f0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Scroll Offset for Fixed Header */
#floorplans,
#amenities,
#contact {
    scroll-margin-top: 100px;
}

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

.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

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

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

.full-width {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-submit,
.btn-primary-sm {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary-sm {
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.875rem;
}

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

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-submit {
    background-color: var(--accent);
    color: var(--white);
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.3);
}

/* Header & Navigation - Only visible on scroll */
/* Header & Navigation - Visible on Load (Transparent) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background: transparent;
    pointer-events: auto;
    /* Allow interaction */
}

/* Scrolled State - Transitions */
header.scrolled {
    padding: 0.5rem 0;
}

/* Glass Container - Default State (Solid White for Logo Match) */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Solid white background to blend with JPG logo */
    background: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 1rem auto 0;
    transition: all 0.3s ease;
}

/* Scrolled State - Shadow intensifies */
header.scrolled .container {
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    border-color: rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Fix for anchor tag */
}

/* Logo: larger at top (hero), normal when scrolled – smooth transition */
.logo img {
    height: 52px;
    width: auto;
    transition: height 0.4s ease, transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

header.scrolled .logo img {
    height: 40px;
}

.logo-accent {
    color: var(--accent);
}


header nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    /* Ensure no bullets */
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

header nav a:hover,
header nav a.active {
    color: var(--accent);
}

/* Active Indicator - Underline Effect */
header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.active::after {
    width: 100%;
}

/* CTA Button in Header - Override default nav link styles */
header nav .btn-primary-sm {
    background-color: var(--accent);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(202, 138, 4, 0.2);
    /* Remove underline effect for button */
}

header nav .btn-primary-sm::after {
    display: none;
}

header nav .btn-primary-sm:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 6px 8px rgba(202, 138, 4, 0.3);
}

/* Mobile Menu Toggle Adjustments if needed */

header nav a.btn-primary-sm.active {
    background-color: var(--accent-hover);
    color: var(--white);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        z-index: 999;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }

    header nav a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }

    /* Adjust header container for mobile */
    header .container {
        margin: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        /* More solid on mobile for readability */
        backdrop-filter: blur(15px);
    }

    header.scrolled .container {
        margin-top: 0;
        border-radius: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding-top: 60px;
    /* Offset fixed header */
}

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

/* Hero background video (replaces slideshow when used) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide slide nav/dots when using video background */
.hero-slide-nav-hidden {
    display: none !important;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
    animation: kenBurnsZoom 20s ease-out infinite;
}

.hero-slideshow img.active {
    opacity: 1;
    z-index: 1;
}

/* Ken Burns Zoom Animation */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}


.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-nav svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.slide-nav:hover {
    background-color: rgba(202, 138, 4, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(202, 138, 4, 1);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter gradient: subtle dark bottom for text contrast, clearer top for video */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Intro Section */
.intro {
    padding: 6rem 0;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1.5rem auto;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Floor Plans */
.section {
    padding: 6rem 0;
}

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

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

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card {
    position: relative;
}

.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-left-radius: var(--radius-md);
}


.card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the area without distortion */
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
    /* Subtle zoom effect on hover */
}

.card-header {
    padding: 1.5rem 2rem;
    background-color: var(--white);
    /* Changed to white to blend better or keep light */
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-header .price {
    font-size: 1.25rem;
    color: var(--accent-hover);
    font-weight: 600;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.features-list li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-footer {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* Features Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-text h2 {
    margin-bottom: 2.5rem;
}

.benefits-list .icon {
    font-size: 2rem;
    background-color: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--accent);
}

.benefits-list .icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefits-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

/* Contact Section */
.gap-large {
    gap: 4rem;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.contact-header p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.link-light {
    color: var(--white);
    text-decoration: underline;
}

.realtor-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

/* Professional Form - Clean White Style */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-form h3 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    text-transform: none;
    letter-spacing: normal;
}

.required-mark {
    color: #ef4444;
    /* Red-500 */
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    /* Fix overflow */
    max-width: 100%;
    /* Revert to standard box look */
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.1);
}

/* Submit Button */
.btn-submit {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}



/* Map */
.map-section {
    padding-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Layout */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 1rem 0;
    max-width: 300px;
}

.footer-contact-details p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-contact-details a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.footer-contact-details a:hover {
    border-color: var(--white);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 0.75rem;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s, padding-left 0.2s;
}

.footer-nav-list a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Creative Instagram Button */
.social-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.insta-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover .insta-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-desc {
        margin: 1rem auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal a {
        margin: 0 0.75rem;
    }

    .btn-instagram {
        margin: 0 auto;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    header nav {
        display: none;
        /* Mobile menu implementation needed if expanded */
    }

    /* Logo: slightly smaller bump on mobile when at top */
    .logo img {
        height: 44px;
    }

    header.scrolled .logo img {
        height: 36px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .featured {
        transform: none;
    }

    .featured:hover {
        transform: translateY(-5px);
    }
}

/* Mobile Responsiveness for Contact Form & Modal */
@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        margin: 0 auto;
    }
}

/* Success Modal */
/* Success Modal & General Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Modal Content Animation */
.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-dark);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: #dcfce7;
    /* Green-100 */
    color: #16a34a;
    /* Green-600 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-action-btn {
    width: 100%;
}

/* Availability Modal */
.availability-modal-content {
    max-width: 800px;
    width: 95%;
}

#availability-title {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

#availability-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.availability-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.availability-table thead {
    background-color: var(--primary-dark);
    color: var(--white);
}

.availability-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.availability-table tbody tr:hover {
    background-color: var(--bg-light);
}

.availability-table tbody tr:last-child {
    border-bottom: none;
}

.availability-table td {
    padding: 1rem 0.75rem;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-coming-soon {
    background-color: #fef3c7;
    color: #d97706;
}

.status-waitlist {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Mobile Responsiveness for Availability Table */
@media (max-width: 768px) {
    .availability-modal-content {
        padding: 1.5rem;
    }

    .availability-table {
        font-size: 0.8rem;
    }

    .availability-table th,
    .availability-table td {
        padding: 0.75rem 0.5rem;
    }

    #availability-title {
        font-size: 1.5rem;
    }
}

/* Unit Grid Styles */
.unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.unit-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.unit-card-header h4 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.unit-card-body {
    margin-bottom: 1.5rem;
}

.unit-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.unit-info-row .label {
    color: var(--text-light);
    font-weight: 500;
}

.unit-info-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.unit-info-row .value.price {
    color: var(--accent);
    font-size: 1rem;
}

/* Unit Detail Modal */
/* Unit Detail Modal */
/* Unit Detail Modal - Split View Configuration */
.unit-detail-modal-content {
    max-width: 1300px;
    width: 95%;
    height: 90vh;
    /* Fixed height is REQUIRED for internal scrolling */
    max-height: 90vh;
    overflow: hidden;
    /* Prevent main modal scroll */
    padding: 0;
    /* Removing padding from container to allow full-height columns */
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Header area (Close button, Back button) stays at top */
.unit-modal-header {
    padding: 1.5rem 2rem 0.5rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    z-index: 10;
}



.back-button {
    background: none;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--primary-dark);
}

.back-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

/* Main Content Area - Split Columns */
.unit-detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* 60/40 Split */
    height: 100%;
    /* Fill remaining space */
    overflow: hidden;
    /* Contain scrolls */
    gap: 0;
    /* Remove gap, handle spacing via padding in cols */
}

/* Left Column - Gallery */
/* Left Column - Gallery */
.unit-detail-left {
    height: 100%;
    overflow-y: auto;
    /* INDEPENDENT SCROLL 1 */
    padding: 2rem;
    border-right: 1px solid var(--border);
    position: relative;
    /* Fixes badge positioning context */
}

/* Right Column - Description */
.unit-detail-right {
    height: 100%;
    overflow-y: auto;
    /* INDEPENDENT SCROLL 2 */
    padding: 2rem;
    position: relative;
    /* Reset sticky */
    top: auto;
}

/* ... headers ... */

/* Vertical Gallery Styles (Replaces Slideshow) */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between photos */
    width: 100%;
}

.gallery-image-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-light);
}

.gallery-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* or contain, depending on preference. Cover is better for layout consistency */
}

/* Remove old thumbnail and main/active styles if not used, or keep for safety. 
   Overriding here for cleaner vertical flow. */
.gallery-thumbs {
    display: none;
    /* Hide thumbnails in vertical mode */
}


.floorplan-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.unit-floorplan-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.unit-detail-right h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-dark);
    font-size: 2rem;
}

.unit-specs {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.unit-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
}

.unit-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.unit-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.unit-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.unit-section:last-child {
    border-bottom: none;
}

.unit-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.unit-section p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.appliances-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.appliance-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Mobile Responsiveness for Unit Views */
@media (max-width: 768px) {
    .unit-grid {
        grid-template-columns: 1fr;
    }

    /* Override Split View for Mobile */
    .unit-detail-modal-content {
        height: auto;
        max-height: 90vh;
        /* Restore max-height */
        overflow-y: auto;
        /* Restore modal scroll */
        display: block;
        /* Remove flex column if it interferes, or keep flex but reset height */
        padding: 0;
    }

    .unit-modal-header {
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 20;
        padding: 1rem 1.5rem 0.5rem;
    }

    .unit-detail-content {
        display: block;
        /* Stack columns */
        height: auto;
        overflow: visible;
    }

    .unit-detail-left,
    .unit-detail-right {
        height: auto;
        overflow: visible;
        padding: 1.5rem;
        border-right: none;
    }

    .unit-detail-right {
        border-top: 1px solid var(--border);
    }

    .unit-action-buttons {
        grid-template-columns: 1fr;
    }

    .unit-amenities {
        grid-template-columns: 1fr;
    }

    .unit-detail-right h2 {
        font-size: 1.5rem;
    }
}

/* Pricing Breakdown Styles */
.pricing-calculator {
    margin-top: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.pricing-calculator h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.pricing-group {
    margin-bottom: 2rem;
}

.pricing-group h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ... existing pricing styles ... */

/* Scroll Animation Utilities */
.delay-100 {
    transition-delay: 100ms !important;
}

.delay-200 {
    transition-delay: 200ms !important;
}

.delay-300 {
    transition-delay: 300ms !important;
}

.delay-400 {
    transition-delay: 400ms !important;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Immediate Hero Animations (Load-triggered) */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hero-logo {
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
    /* Appear first */
    opacity: 0;
}

.animate-hero-text {
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    /* Tiny delay to ensure font loads */
    opacity: 0;
    /* Initial state */
}

/* Brand Header Styles (Text-Based Logo) */
/* Brand Header Styles (Text-Based Logo) */
.brand-header {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Increased from 1.25rem for impact */
    font-weight: 700;
    letter-spacing: 0.1em;
    /* Reduced spacing slightly to keep it compact */
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

/* Optional: Add a subtle decorative line below the brand */
.brand-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent);
    margin: 1rem auto 0;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .brand-header {
        font-size: 2rem;
        /* Increased from 1rem */
        letter-spacing: 0.1em;
        margin-bottom: 1.5rem;
    }
}

/* Unit Theme Variables & Styles */
:root {
    /* Unified Theme Colors (Gold/Amber Accent) */
    --theme-studio: var(--accent);
    --theme-one-bed: var(--accent);
    --theme-two-bed: var(--accent);
}

/* Base Card transition for hover effects */
.plan-card {
    border-top: 4px solid transparent;
    /* Prepare for colored top border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    /* Indicate interactivity */
    position: relative;
    overflow: hidden;
    /* For any image zooming */
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    /* Gold-tinted shadow for glow effect */
    box-shadow: 0 20px 25px -5px rgba(202, 138, 4, 0.3), 0 10px 10px -5px rgba(202, 138, 4, 0.2);
    border-color: var(--accent);
    transition-delay: 0s !important;
}

.plan-card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom on image */
    transition: transform 0.5s ease;
}

/* Studio Theme */
.plan-studio {
    border-color: var(--theme-studio);
}

.plan-studio .card-header h3 {
    color: var(--primary-dark);
}

.plan-studio .btn-view-residence {
    background-color: var(--theme-studio);
    border-color: var(--theme-studio);
}

.plan-studio .btn-view-residence:hover {
    background-color: #059669;
    /* Darker sage */
    border-color: #059669;
}

/* 1-Bed Theme */
.plan-one-bed {
    border-color: var(--theme-one-bed);
}

.plan-one-bed .card-header h3 {
    color: var(--primary-dark);
}

.plan-one-bed .btn-view-residence {
    background-color: var(--theme-one-bed);
    border-color: var(--theme-one-bed);
}

.plan-one-bed .btn-view-residence:hover {
    background-color: #2563eb;
    /* Darker blue */
    border-color: #2563eb;
}

/* Adjust featured tag for 1-bed if needed currently it uses default accent */
.plan-one-bed .featured-tag {
    background-color: var(--theme-one-bed);
}


/* 2-Bed Theme */
.plan-two-bed {
    border-color: var(--theme-two-bed);
}

.plan-two-bed .card-header h3 {
    color: var(--primary-dark);
}

.plan-two-bed .btn-view-residence {
    background-color: var(--theme-two-bed);
    border-color: var(--theme-two-bed);
}

.plan-two-bed .btn-view-residence:hover {
    background-color: #d97706;
    /* Darker amber */
    border-color: #d97706;
}

/* Gallery Modal Styles */
.gallery-modal-content {
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    /* Ensure background is white */
    position: relative;
    /* Context for close button */
    border-radius: var(--radius-lg);
    /* Rounded corners */
}

/* Ensure modal overlay and container are fixed */
#gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* High Z-index */
    display: flex;
    /* Flex to center content */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark overlay */
    pointer-events: none;
    /* Prevent clicks when closed */
}

#gallery-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Enable clicks when open */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    overflow-y: auto;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox overlay for clicked image (optional enhancement for later, or simple zoom) */





/* Override javascript observer style for these specific classes */
.visible.slide-in-left,
.visible.slide-in-right,
.visible.scale-in {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.pricing-row.required-header,
.pricing-row.optional-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-top: 1rem;
    border-bottom: none;
}

.pricing-row .price {
    font-weight: 600;
    color: var(--primary-dark);
}

.pricing-row.total-row {
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-row .price.total {
    color: var(--accent);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* ... existing pricing styles ... */
.pricing-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image */
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--background-alt);
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Scroll Animation Utilities */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
        will-change: opacity, transform;
    }

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

    /* Staggered delays for child elements if needed */
    .reveal.delay-100 {
        transition-delay: 0.1s;
    }

    .reveal.delay-200 {
        transition-delay: 0.2s;
    }

    .reveal.delay-300,
    .reveal.delay-400 {
        transition-delay: 0.3s;
    }

    /* Refined Modal Overlay with Glassmorphism */
    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Scroll Animation Visible State */
.visible {
    opacity: 1;
    transform: none;
}

/* Amenities Grid Layout */

#amenities {
    /* Background handled by .bg-light or .bg-white classes */
}

#amenities .intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

#amenities .intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

#amenities .intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Standardize Amenities Grid to 2x2 */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 2rem;
    margin-top: 3rem;
}

.amenity-card {
    height: 100%;
    min-height: 400px;
}

/* Remove 'featured' span if it exists to strictly respect 2x2 */
.amenity-card.featured {
    grid-column: auto;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.amenity-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateZ(0);
    /* Fix for overflow masking during scale */
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.amenity-image {
    position: relative;
    height: 300px;
    /* Increased height for better visibility */
    overflow: hidden;
    transform: translateZ(0);
    /* Ensure masking works */
    border-radius: 12px 12px 0 0;
    /* Match card radius for top */
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    display: flex;
    /* Horizontal layout */
}

.carousel-slide {
    position: relative;
    /* Keep them in flow for flex */
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    /* Ensure strict 100% width to prevent sub-pixel bleeding */
    height: 100%;
    transform: translateZ(0);
    /* Hardware acceleration */
    backface-visibility: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    opacity: 0;
    /* Hidden by default */
}

.amenity-image:hover .carousel-button {
    opacity: 1;
    /* Show on hover */
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev-button {
    left: 10px;
    border-radius: 50%;
}

.carousel-button.next-button {
    right: 10px;
    border-radius: 50%;
}

.carousel-button.is-hidden {
    display: none;
}

/* Dots Navigation */
.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--white);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.current-slide {
    background: var(--white);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-button {
        opacity: 1;
        /* Always show on touch devices */
        padding: 0.75rem;
        /* Larger touch target */
    }
}

.amenity-card:hover .amenity-image img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}



.amenity-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.amenity-content h3 {
    margin: 0 0 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.amenity-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Handling */
@media (min-width: 992px) {

    /* Make first item span across on large screens if desired, or just grid */
    .amenity-card.featured {
        grid-column: span 2;
    }
}

/* Model Apartment Showcase */
#model-showcase {
    /* Background handled by classes */
}

#model-showcase .intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Horizontal Scroll Model Showcase */
.model-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: none;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    user-select: none;
    /* Prevent text selection during drag */
    /* Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
    cursor: grab;
    /* Indicate draggable */
}

.model-gallery.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.model-gallery::-webkit-scrollbar {
    height: 8px;
    /* Visible height */
}

.model-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.model-gallery::-webkit-scrollbar-thumb {
    background: var(--primary);
    /* was --slate-blue */
    border-radius: 4px;
}

.model-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    /* was --gold */
}

.model-item {
    flex: 0 0 auto;
    width: 60vw;
    /* Show part of next image to encourage scroll */
    max-width: 800px;
    height: 60vh;
    max-height: 600px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.model-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    pointer-events: none;
    /* Prevent native image drag */
}

.model-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .model-item {
        width: 85vw;
        height: 50vh;
    }
}

.model-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========================================
   Text-Based Amenities Section
   ========================================= */
.text-amenities-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.text-amenities-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.amenities-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.amenity-list-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(202, 138, 4, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.amenity-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(202, 138, 4, 0.4);
}

.amenity-list-card h4 {
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    border-bottom: 2px solid rgba(202, 138, 4, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.text-amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-amenity-list li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.text-amenity-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.text-amenity-list li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.text-amenity-list li.restriction {
    color: #ef4444;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

.text-amenity-list li.restriction::before {
    content: '!';
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .amenities-list-grid {
        grid-template-columns: 1fr;
    }

    .text-amenities-container {
        margin-top: 2rem;
    }
}

/* =========================================
   Unified Professional Footer
   ========================================= */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 6rem 0 3rem;
    font-size: 0.95rem;
    border-top: none;
    /* Override legacy border */
}

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

/* Column 1: Brand */
.footer-logo {
    display: inline-block;
    margin-bottom: 0.5rem;
    /* Reduced margin to bring text closer */
    position: relative;
    padding-bottom: 0;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-img {
    max-width: 200px;
    /* Reverted to 200px */
    width: auto;
    /* Remove forced width */
    height: auto;
    display: block;
}

.footer-logo::after {
    content: none;
    /* Remove gold line */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-top: 0;
    /* Ensure no top margin */
    margin-bottom: 2rem;
    max-width: 350px;
}

.footer-contact-details p,
.footer-contact-details a {
    display: flex;
    /* Flex for icon alignment */
    align-items: center;
    /* Center vertically */
    gap: 0.75rem;
    /* Space between icon and text */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    text-decoration: none;
    /* Remove underline */
    border-bottom: none;
    /* Explicitly remove legacy border */
}

.contact-icon {
    color: var(--accent);
    /* Gold Icons */
    flex-shrink: 0;
}

.footer-contact-details a:hover {
    color: var(--accent);
}

/* Headings */
.footer-heading-styled {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Links */
.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link-premium {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link-premium:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Social / Button */
.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    white-space: nowrap;
    /* Force single line */
    width: fit-content;
    /* Don't stretch */
}

.btn-instagram:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.3);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: none;
    /* Explicitly remove legacy border */
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-logo {
        display: block;
        margin: 0 auto 1rem;
    }

    .footer-logo-img {
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .footer-contact-details p,
    .footer-contact-details a {
        justify-content: center;
    }

    .footer-heading-styled {
        display: block;
        margin: 0 auto 1.5rem;
    }

    .footer-heading-styled::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav-list {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.section-header-unified {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-header-unified h2 {
    font-size: 2.75rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

/* The Yellow Line Accent */
.section-header-unified h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-header-unified p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header-unified h2 {
        font-size: 2rem;
    }

    .section-header-unified {
        margin-bottom: 2.5rem;
    }
}

/* Dark Theme Variant for Headers (e.g., Contact Section) */
.section-header-unified.dark-theme h2 {
    color: var(--white);
}

.section-header-unified.dark-theme p {
    color: rgba(255, 255, 255, 0.9);
}

/* Image Loading Animation */
.fade-in-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in-image.loaded {
    opacity: 1;
}