/* ============================================
   LIEPŲ ALĖJA — Premium Real Estate Website
   ============================================ */

:root {
    /* Colors — Green Theme */
    --color-primary: #2d5016;
    --color-primary-dark: #1e3a0e;
    --color-primary-light: #4a7c2e;
    --color-accent: #8fb573;
    --color-accent-light: #c8e0b4;
    --color-gold: #c4a265;
    --color-gold-light: #e8d5a8;
    --color-red: #b54040;
    --color-bg: #f8f7f4;
    --color-bg-alt: #f0efe9;
    --color-bg-dark: #1a1f16;
    --color-text: #1a1a1a;
    --color-text-light: #6b6b6b;
    --color-text-muted: #9a9a9a;
    --color-white: #ffffff;
    --color-border: #e5e3dc;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

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

body.menu-open {
    overflow: hidden;
}

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

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

em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-primary);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: relative;
    z-index: 9999;
}

.logo-img {
    height: 115px;
    width: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.navbar.scrolled .logo-img {
    height: 72px;
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    padding: 4px 0;
}

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

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

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 9999;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.25);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 31, 22, 0.35) 0%,
        rgba(26, 31, 22, 0.15) 40%,
        rgba(26, 31, 22, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-accent {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    color: var(--color-accent);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s 0.6s ease both;
}

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

.hero-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.hero-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.8s ease both;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--color-white);
    opacity: 0.6;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 1s 1.2s ease both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--color-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* About Showcase */
.about-showcase {
    margin-top: 64px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.showcase-main {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-main:hover img {
    transform: scale(1.03);
}

.showcase-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-side-img {
    flex: 1;
    overflow: hidden;
}

.showcase-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-side-img:hover img {
    transform: scale(1.03);
}

[data-lightbox] {
    cursor: pointer;
}

/* Construction Progress */
.construction-progress {
    margin-top: 56px;
}

.construction-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

.construction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.construction-placeholder {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.construction-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
    transition: filter 0.4s ease;
}

.construction-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-overlay span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.section-gallery {
    background: var(--color-white);
    padding: 0;
}

.gallery-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 24px;
    gap: 0;
}

.gallery-tabs-inner {
    display: flex;
    align-items: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    padding: 4px;
}

.gallery-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 9px 26px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
}

.gallery-tab-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.gallery-tab-btn:hover:not(.active) {
    color: var(--color-text);
}

.gallery-tab-sep {
    display: none;
}

/* Slider */
.gallery-slider-wrap {
    width: 100%;
}

.gallery-main-slider {
    position: relative;
    width: 100%;
    background: #0d0d0d;
    overflow: hidden;
    line-height: 0;
}

.gallery-slide-img {
    width: 100%;
    height: 58vw;
    max-height: 700px;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 5;
}

.gallery-slide-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.gallery-slide-prev { left: 28px; }
.gallery-slide-next { right: 28px; }

.gallery-slide-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 16px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.gallery-empty {
    text-align: center;
    padding: 96px 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-fade {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* ============================================
   ADMIN GALLERY
   ============================================ */

.admin-gallery-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.ag-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.ag-tab {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition);
}

.ag-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ag-upload-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.ag-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.ag-upload-btn:hover { background: var(--color-primary-dark); }
.ag-upload-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ag-url-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    background: #fff;
    color: var(--color-text);
}

.ag-url-add-btn {
    padding: 10px 18px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition);
    white-space: nowrap;
}

.ag-url-add-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.ag-photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ag-photo-item {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.ag-photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.ag-photo-info {
    padding: 8px;
}

.ag-alt-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--color-text-light);
    background: #fff;
}

.ag-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.ag-photo-item:hover .ag-delete-btn { opacity: 1; }

.ag-reset-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.ag-reset-btn:hover { border-color: var(--color-red); color: var(--color-red); }

.ag-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-img.loaded {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.section-features {
    background: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   HOUSES / SITE PLAN
   ============================================ */

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

.section-houses .section-header {
    margin-bottom: 32px;
}

.site-plan-wrapper {
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
}

.site-plan {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
    overflow: visible;
}

.site-plan-img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}

/* Hotspot Styles */
.hotspot {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    transform: translate(-50%, -50%);
    z-index: 10;
    letter-spacing: -0.2px;
}

.hotspot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    transition: var(--transition);
}

.hotspot:hover::before {
    opacity: 0.5;
    inset: -8px;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 20;
}

.hotspot-available {
    background: var(--color-primary);
    box-shadow: 0 2px 12px rgba(45, 80, 22, 0.4);
    color: var(--color-white);
}

.hotspot-reserved {
    background: #999;
    box-shadow: 0 2px 12px rgba(150, 150, 150, 0.4);
    color: var(--color-white);
}

.hotspot-sold {
    background: var(--color-red);
    box-shadow: 0 2px 12px rgba(181, 64, 64, 0.3);
    color: var(--color-white);
    opacity: 0.6;
    cursor: default;
}

.hotspot-sold:hover {
    transform: translate(-50%, -50%) scale(1);
}

/* Hotspot Tooltip */
.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--color-white);
    color: var(--color-text);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 30;
    font-size: 0.9rem;
    min-width: 260px;
    text-align: left;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: var(--color-white);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Edge hotspots — tooltip aligned to left edge */
.hotspot.tooltip-left .hotspot-tooltip {
    left: -20px;
    right: auto;
    transform: translateY(8px);
}

.hotspot.tooltip-left .hotspot-tooltip::after {
    left: 32px;
    right: auto;
    transform: none;
}

.hotspot:hover.tooltip-left .hotspot-tooltip {
    transform: translateY(0);
}

/* Edge hotspots — tooltip aligned to right edge */
.hotspot.tooltip-right .hotspot-tooltip {
    left: auto;
    right: -20px;
    transform: translateY(8px);
}

.hotspot.tooltip-right .hotspot-tooltip::after {
    left: auto;
    right: 32px;
    transform: none;
}

.hotspot:hover.tooltip-right .hotspot-tooltip {
    transform: translateY(0);
}

/* Top hotspots — tooltip below instead of above */
.hotspot.tooltip-below .hotspot-tooltip {
    bottom: auto;
    top: calc(100% + 14px);
}

.hotspot.tooltip-below .hotspot-tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--color-white);
}

.tooltip-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary-dark);
    text-align: left;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 6px 0;
}

.tooltip-label {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-align: left;
    white-space: nowrap;
}

.tooltip-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    text-align: right;
    white-space: nowrap;
}

.tooltip-status {
    margin-top: 14px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tooltip-status.available {
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-primary);
}

.tooltip-status.reserved {
    background: rgba(150, 150, 150, 0.15);
    color: #888;
}

.tooltip-status.sold {
    background: rgba(181, 64, 64, 0.1);
    color: var(--color-red);
}

.tooltip-cta {
    display: block;
    margin-top: 14px;
    text-align: center;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tooltip-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Houses Table */
.houses-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.houses-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.houses-table th {
    padding: 16px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-align: left;
    background: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-border);
}

.houses-table td {
    padding: 16px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.houses-table tr {
    transition: var(--transition);
}

.houses-table tbody tr:hover {
    background: rgba(45, 80, 22, 0.03);
}

.houses-table tr.reserved-row {
    background: #e8e7e3;
    color: #aaa;
}

.houses-table tr.reserved-row td {
    color: #aaa;
}

.houses-table tr.reserved-row:hover {
    background: #e2e1dd;
}

.houses-table tr.sold-row {
    background: #eee;
    opacity: 0.4;
    text-decoration: line-through;
}

.houses-table tbody tr {
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.available {
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-primary);
}

.status-badge.reserved {
    background: rgba(150, 150, 150, 0.15);
    color: #888;
}

.status-badge.sold {
    background: rgba(181, 64, 64, 0.1);
    color: var(--color-red);
}

.table-btn {
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.table-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.table-btn.disabled {
    background: var(--color-text-muted);
    cursor: default;
    pointer-events: none;
}

.table-arrow {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

tr:hover .table-arrow {
    transform: translateX(4px);
    display: inline-block;
}

/* ============================================
   HOUSE MODELS
   ============================================ */

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.model-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.model-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.model-info {
    padding: 32px;
}

.model-size {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.model-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.model-features {
    list-style: none;
    margin-bottom: 24px;
}

.model-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-left: 24px;
    position: relative;
}

.model-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.model-price {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.model-price strong {
    font-size: 1.3rem;
    color: var(--color-text);
    font-family: var(--font-display);
}

.model-plan {
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.model-plan img {
    width: 100%;
    height: auto;
    display: block;
}

/* Downloads */
.downloads-section {
    margin-top: 64px;
    padding: 48px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    text-align: center;
}

.downloads-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.downloads-section > p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.download-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
}

.download-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.placeholder-card {
    opacity: 0.5;
    cursor: default;
}

.download-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

/* ============================================
   LOCATION
   ============================================ */

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.location-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--color-primary);
    padding: 8px;
    background: rgba(45, 80, 22, 0.08);
    border-radius: var(--radius-sm);
}

.location-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.location-feature p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.location-btn {
    margin-top: 12px;
    align-self: flex-start;
}

/* ============================================
   CONTACT / BROKERS
   ============================================ */

.section-contact {
    background: var(--color-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.brokers {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.broker-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.broker-card:hover {
    box-shadow: var(--shadow-md);
}

.broker-photo {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
}

.broker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.broker-role {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.broker-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.broker-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.broker-contact:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

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

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b6b6b'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.form-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* CTA section removed */

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent-light);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-accent-light);
}

.footer-address {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.5;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-developer a {
    text-decoration: underline;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--color-border);
}

.modal-body {
    padding: 40px;
}

/* Modal Gallery */
.modal-gallery {
    margin: -40px -40px 28px -40px;
}

.gallery-main {
    position: relative;
    background: #111;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
}

.gallery-main:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--color-bg-alt);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: var(--transition);
    opacity: 0.5;
}

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

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

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

.modal-house-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-house-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.modal-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.modal-energy-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(45, 120, 22, 0.12);
    color: #2d7816;
    letter-spacing: 0.04em;
}

/* Specs Grid */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.modal-spec {
    padding: 16px 12px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    text-align: center;
}

.modal-spec-icon {
    margin-bottom: 6px;
    color: var(--color-primary);
}

.modal-spec-icon svg {
    display: block;
    margin: 0 auto;
}

.modal-spec-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.modal-spec-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.modal-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-feature-item {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding: 4px 0;
}

/* Layout table */
.modal-layout {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.layout-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border);
}

.layout-row:last-child {
    border-bottom: none;
}

.layout-name {
    color: var(--color-text-light);
}

.layout-area {
    font-weight: 600;
    color: var(--color-text);
}

.layout-total {
    background: var(--color-primary);
    color: var(--color-white);
}

.layout-total .layout-name,
.layout-total .layout-area {
    color: var(--color-white);
    font-weight: 700;
}

.modal-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.modal-doc-item svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.modal-doc-link {
    flex: 1;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.modal-doc-link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.modal-doc-status {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    white-space: nowrap;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    80% { transform: translateX(-50%) translateY(12px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 0; }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scroll Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for available hotspots */
@keyframes hotspotPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 80, 22, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(45, 80, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 80, 22, 0); }
}

.hotspot-available {
    animation: hotspotPulse 2.5s infinite;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Hide tooltips on touch/tablet devices */
@media (max-width: 1100px) {
    .hotspot-tooltip {
        display: none !important;
    }
}

@media (max-width: 968px) {
    :root {
        --section-padding: 56px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9998;
        padding: 80px 24px 40px;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu .nav-link {
        color: #ffffff !important;
        font-size: 1.3rem;
        font-weight: 500;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle.active span {
        background: var(--color-white) !important;
    }

    .nav-cta {
        display: none;
    }

    .logo-img {
        height: 86px;
    }

    .navbar.scrolled .logo-img {
        height: 56px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        order: -1;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-main {
        aspect-ratio: 16/9;
    }

    .showcase-side {
        flex-direction: row;
    }

    .showcase-side-img {
        aspect-ratio: 4/3;
    }

    .construction-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .construction-placeholder {
        aspect-ratio: 16/9;
    }

    .construction-progress {
        margin-top: 40px;
    }

    .about-showcase {
        margin-top: 40px;
    }

    .gallery-slide-img {
        height: 75vw;
        max-height: 420px;
        min-height: 220px;
    }

    .gallery-slide-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-slide-prev { left: 12px; }
    .gallery-slide-next { right: 12px; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    /* Hide tooltips on tablet & mobile — use modal instead */
    .hotspot-tooltip {
        display: none !important;
    }

    .hotspot {
        width: 40px;
        height: 40px;
        font-size: 0.6rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 40px;
    }

    .logo-img {
        height: 72px;
    }

    .navbar.scrolled .logo-img {
        height: 48px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        min-width: 80px;
    }

    .broker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Site plan — hide hotspots on mobile, use table only */
    .site-plan-wrapper {
        border-radius: var(--radius-md);
    }

    .hotspot {
        width: 28px;
        height: 28px;
        font-size: 0.5rem;
        animation: none !important;
    }

    .hotspot-tooltip {
        display: none !important;
    }

    /* Table — make it scrollable and touch-friendly */
    .houses-table th,
    .houses-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .houses-table th:nth-child(2),
    .houses-table td:nth-child(2) {
        display: none;
    }

    /* Modal — full screen on mobile */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: modalSlideUp 0.3s ease;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-gallery {
        margin: -24px -24px 20px -24px;
    }

    .gallery-main {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .gallery-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .gallery-thumb {
        width: 56px;
        height: 38px;
    }

    .modal-house-number {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.3rem;
    }

    .modal-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .modal-spec {
        padding: 12px 8px;
    }

    .modal-spec-value {
        font-size: 0.95rem;
    }

    .modal-spec-label {
        font-size: 0.65rem;
    }

    .modal-features-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .downloads-section {
        padding: 32px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .section-desc {
        font-size: 0.95rem;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.admin-login-card {
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.admin-login-card h2 {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.admin-login-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.admin-login-card input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    text-align: center;
}

.admin-login-card input:focus {
    border-color: var(--color-primary);
}

.admin-error {
    color: var(--color-red);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}

/* Admin Panel */
.admin-panel {
    display: none;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.admin-panel.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.admin-logout {
    padding: 8px 20px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.admin-logout:hover {
    background: var(--color-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th {
    padding: 14px 16px;
    background: var(--color-bg-alt);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.admin-table select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--color-white);
}

.admin-table select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.admin-save-notice {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.admin-save-notice.visible {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* PDF upload section in admin */
.admin-pdf-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.admin-pdf-section h3 {
    margin-bottom: 16px;
}

.pdf-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.pdf-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(45, 80, 22, 0.03);
}

.pdf-upload-area input {
    display: none;
}
