/* ============================================
   Hot Homes CA — TJH-Inspired Premium Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #4a2d7a;
    --color-primary-light: #6b3fa0;
    --color-accent: #f0a050;
    --color-gradient: linear-gradient(135deg, #f0a050 0%, #e8707a 40%, #9b4dca 100%);
    --color-gradient-reverse: linear-gradient(135deg, #9b4dca 0%, #e8707a 50%, #f0a050 100%);
    --color-dark: #1a1a2e;
    --color-text: #2d2d3d;
    --color-text-light: #666680;
    --color-bg: #ffffff;
    --color-bg-warm: #faf7fc;
    --color-bg-dark: #1a1a2e;
    --color-border: #e8e0f0;
    --color-badge-available: #6b3fa0;
    --color-badge-dev: #f0a050;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 80px;
    --container-width: 1280px;
    --section-padding: 100px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.07);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul { list-style: none; }

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

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    z-index: 9999;
    border-bottom: 1px solid var(--color-border);
    transform: translateZ(0);
    will-change: transform;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0a050 0%, #e8707a 35%, #9b4dca 65%, #4a2d7a 100%);
}

/* (.header.scrolled is now defined above without a box-shadow transition for perf) */

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo, .footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(74, 45, 122, 0.04);
}

.chevron {
    transition: transform var(--transition);
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    transition: all var(--transition);
    white-space: nowrap;
}

.dropdown li a:hover {
    background: var(--color-bg-warm);
    color: var(--color-primary);
    padding-left: 28px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    transition: all var(--transition);
}

.lang-toggle:hover {
    border-color: var(--color-primary);
}

.lang-option {
    color: var(--color-text-light);
    transition: color var(--transition);
}

.lang-option.active {
    color: var(--color-primary);
    font-weight: 600;
}

.lang-divider {
    color: var(--color-border);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    z-index: 1;
    contain: layout paint;
    transform: translateZ(0);
}

.hero-video {
    transform: translateZ(0);
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    background: #1a1a2e;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(74,45,122,0.25) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(26,26,46,0.7) 100%
    );
}

/* Fallback if no video */
.hero-video-wrapper:has(video[src=""]),
.hero-video-wrapper:not(:has(video source[src])) {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5a4e 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 40px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Play button fallback for WeChat */
.hero-play-btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
}

.hero-play-btn svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: all var(--transition);
}

.hero-play-btn:active svg {
    transform: scale(0.9);
}

.hero-video-wrapper.video-paused .hero-play-btn {
    display: flex;
}

.hero-sound-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-sound-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-primary:hover {
    background: var(--color-gradient);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(155,77,202,0.35);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-card {
    width: 100%;
    background: var(--color-bg-warm);
    color: var(--color-primary);
    border-color: var(--color-bg-warm);
    font-size: 13px;
    letter-spacing: 1.5px;
    padding: 12px 24px;
}

.btn-card:hover {
    background: var(--color-gradient);
    color: #fff;
    border-color: transparent;
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Difference / Stats Section
   ============================================ */
.difference {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    padding: 40px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 15px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ============================================
   Properties Section
   ============================================ */
.properties {
    padding: var(--section-padding) 0;
}

.properties-dev {
    background: var(--color-bg-warm);
}

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

.property-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.property-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.property-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
    cursor: pointer;
}

.property-image-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

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

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

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}

.badge-available {
    background: var(--color-badge-available);
}

.badge-dev {
    background: var(--color-badge-dev);
}

.property-info {
    padding: 28px;
}

.property-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.property-location svg {
    flex-shrink: 0;
}

.property-specs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spec-divider {
    color: var(--color-border);
}

/* ============================================
   Dev Cards (In Development — image overlay)
   ============================================ */
.dev-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #1a1a2e;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

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

.dev-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26,26,46,0.85) 0%,
        rgba(26,26,46,0.4) 50%,
        rgba(74,45,122,0.2) 100%
    );
    transition: background var(--transition);
}

.dev-card:hover .dev-card-overlay {
    background: linear-gradient(
        to top,
        rgba(26,26,46,0.9) 0%,
        rgba(26,26,46,0.5) 50%,
        rgba(74,45,122,0.3) 100%
    );
}

.dev-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
    z-index: 2;
}

.dev-card-content .property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
}

.dev-card-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.dev-card-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
}

.dev-card-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: all var(--transition);
}

.dev-card:hover .dev-card-btn {
    letter-spacing: 2.5px;
}

@media (max-width: 768px) {
    .dev-card {
        aspect-ratio: 16 / 10;
    }

    .dev-card-content {
        padding: 20px;
    }

    .dev-card-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: var(--section-padding) 0;
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image img.about-logo-img {
    object-fit: contain;
    padding: 40px;
    background: #fff;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.about-features li svg {
    flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-dark);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    color: #fff;
}

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

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 50px;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all var(--transition);
    display: block;
}

.cta-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.cta-card-icon {
    margin-bottom: 20px;
    color: #f0a050;
}

.cta-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #16162a;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo .logo-img {
    filter: brightness(10);
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-tagline {
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-gradient);
    color: #fff;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Property Detail Page
   ============================================ */
.property-hero {
    margin-top: var(--header-height);
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
}

.property-hero img,
.property-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property video play button (WeChat fallback) */
.property-hero-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.25);
}

.property-hero-play svg {
    width: 70px;
    height: 70px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.property-hero.video-paused .property-hero-play {
    display: flex;
}

.property-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%);
}

.property-hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 0 40px;
}

.property-hero-content .container {
    padding: 0;
}

.property-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.property-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.property-hero-location {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

/* Property Detail Content */
.property-detail {
    padding: 80px 0;
}

.property-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.property-detail h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.property-description {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.property-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.property-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--color-text);
    padding: 8px 0;
}

.property-features-list li svg {
    flex-shrink: 0;
    color: var(--color-primary-light);
}

/* Property Sidebar */
.property-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.property-inquiry-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.property-inquiry-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

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

.spec-item .spec-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.spec-item .spec-name {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-inquiry-card .btn {
    width: 100%;
    margin-top: 8px;
}

/* Property Gallery */
.property-gallery {
    padding: 0 0 80px;
}

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

.gallery-grid .gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

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

/* ============================================
   Carousel (Auto-sliding gallery)
   ============================================ */
.carousel {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
    aspect-ratio: 16 / 9;
    background: #f0eef5;
    cursor: pointer;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

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

.carousel-slide-contain {
    background: #f5f3f0;
}

.carousel-slide-contain img {
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover { background: rgba(0,0,0,0.55); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================
   Lightbox (Full-screen image viewer)
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

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

@media (max-width: 768px) {
    .carousel { aspect-ratio: 4 / 3; }
    .carousel-btn { width: 36px; height: 36px; font-size: 16px; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .lightbox-btn { width: 40px; height: 40px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ============================================
   Property Sub-titles
   ============================================ */
.property-sub-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    margin-top: 28px;
}

/* Sidebar Info List */
.sidebar-info-list {
    display: flex;
    flex-direction: column;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

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

.sidebar-label {
    font-size: 13px;
    color: var(--color-text-light);
    flex-shrink: 0;
    min-width: 70px;
}

.sidebar-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark);
    text-align: right;
}

/* Unit Cards */
.unit-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.unit-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
}

.unit-tag {
    background: var(--color-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.unit-specs {
    display: flex;
    flex-direction: column;
}

.unit-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.unit-label {
    font-size: 14px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.unit-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    text-align: right;
}

.unit-value small {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}

.process-step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .unit-card {
        padding: 20px;
    }

    .unit-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .unit-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .unit-value {
        text-align: left;
    }

    .sidebar-info-row {
        flex-direction: column;
        gap: 2px;
    }

    .sidebar-value {
        text-align: left;
    }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-hero {
    margin-top: var(--header-height);
    padding: 80px 0 60px;
    background: var(--color-bg-warm);
    text-align: center;
}

.contact-hero .section-title {
    margin-bottom: 12px;
}

.contact-hero .section-desc {
    max-width: 500px;
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form-wrap h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition);
    outline: none;
}

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

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Reason Cards */
.reason-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.reason-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.reason-card:hover {
    border-color: var(--color-primary-light);
}

.reason-card.active {
    border-color: var(--color-primary);
    background: rgba(74,45,122,0.03);
}

.reason-card input[type="radio"] {
    display: none;
}

.reason-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
}

.reason-card.active .reason-radio {
    border-color: var(--color-primary);
}

.reason-card.active .reason-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
}

.reason-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.reason-info p {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Contact Info Sidebar */
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 32px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-info-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .property-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

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

    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .property-sidebar {
        position: static;
    }

    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 64px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        padding: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link {
        padding: 20px 24px;
        font-size: 17px;
        font-weight: 600;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 60px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-link:active {
        background: rgba(0,0,0,0.03);
    }

    .nav-list .nav-item .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        background: #f5f3f0;
        margin: 0;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-item.has-dropdown::after {
        display: none;
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 0;
    }

    .nav-item.open .dropdown {
        max-height: 500px;
        padding: 4px 0;
    }

    .nav-list .dropdown li a {
        padding: 18px 24px 18px 44px;
        font-size: 16px;
        font-weight: 400;
        display: flex;
        align-items: center;
        color: var(--color-text);
        border-bottom: 1px solid rgba(0,0,0,0.04);
        min-height: 56px;
        white-space: normal;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-list .dropdown li:last-child a {
        border-bottom: none;
    }

    .nav-list .dropdown li a:active {
        background: rgba(74,45,122,0.08);
        color: var(--color-primary);
    }

    .nav-item.open .chevron {
        transform: rotate(180deg);
    }

    .nav-item.open > .nav-link {
        color: var(--color-primary);
        background: rgba(74,45,122,0.03);
    }

    .lang-toggle {
        padding: 8px 16px;
        font-size: 14px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 500px;
        max-height: 700px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

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

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

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

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .property-hero {
        height: 40vh;
        min-height: 300px;
    }

    .property-hero-content {
        bottom: 30px;
        padding: 0 20px;
    }

    .property-specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 8px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

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

/* ============================================
   Render performance: skip off-screen sections
   Browser only paints these when scrolled into view
   ============================================ */
.properties,
.about-section,
.cta-section,
.footer,
.property-detail,
.property-gallery,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* ============================================
   Locked Nav Items (in-development projects)
   Look identical to normal items — just non-interactive
   ============================================ */
.dropdown li a.nav-locked {
    cursor: default;
    pointer-events: none;
}

/* "In Development" parent nav-item: looks normal, but completely inert
   — no hover, no chevron rotation, no dropdown, no click */
.nav-item.nav-item-dead {
    pointer-events: none;
}

.nav-item.nav-item-dead > .nav-link {
    cursor: default;
}

.nav-item.nav-item-dead:hover .chevron,
.nav-item.nav-item-dead.open .chevron {
    transform: none !important;
}

.nav-item.nav-item-dead .dropdown,
.nav-item.nav-item-dead:hover .dropdown,
.nav-item.nav-item-dead.open .dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
}

/* In-development cards — fully inert: no hover lift, no overlay change, no cursor */
.dev-card.dev-card-locked,
.dev-card.dev-card-locked * {
    pointer-events: none;
    cursor: default;
}

.dev-card.dev-card-locked:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

.dev-card.dev-card-locked:hover img {
    transform: none;
}

.dev-card.dev-card-locked:hover .dev-card-overlay {
    background: linear-gradient(
        to top,
        rgba(26,26,46,0.85) 0%,
        rgba(26,26,46,0.4) 50%,
        rgba(74,45,122,0.2) 100%
    );
}

/* ============================================
   Placeholder Images (when no real images)
   ============================================ */
.property-image img[src=""],
.property-image img:not([src]),
img[src$="thumb.jpg"] {
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
}

/* Image error fallback */
.img-placeholder {
    background: linear-gradient(135deg, #e8e0d4 0%, #d4cdc2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a09788;
    font-size: 14px;
    font-weight: 500;
}
