/* =========================================
   DESIGN SYSTEM
   ========================================= */

:root {
    /* Colors */
    --bg-primary: #FCFBF8; /* Lodha-style pastel white/yellow */
    --bg-secondary: #F4EFE7; /* Slightly darker pastel for sections */
    --accent: #8F4A33; /* Priority accent color */
    --accent-hover: #753c29;
    --text-primary: #2C2C2C;
    --text-secondary: #5A5A5A;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border Radius & Shadows */
    --radius-sm: 5px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-soft: 0 10px 40px rgba(143, 74, 51, 0.08);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Fallback while video loads */
    background-color: var(--bg-primary);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    /* Let the html background show through */
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* =========================================
   SITE-WIDE BACKGROUND VIDEO
   ========================================= */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
}

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

/* Slight wash to keep text readable over video */
.page-bg-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

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

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    /* padding: 0 5%; */
}

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

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.text-sm { font-size: 0.9rem; }
.text-white { color: var(--white); }
.opacity-80 { opacity: 0.8; }
.bg-light { background-color: var(--bg-secondary); }
.bg-primary { background-color: var(--bg-primary); }

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

/* Empty spacer section between Services and Featured Homes */
#spacer-80vh {
    height: 60vh;
    padding: 0;
    background: transparent;
}

/* =========================================
   MEET JATIN (VALUATION) – BOXED LAYOUT
   ========================================= */
.mobile-only-section {
    display: none;
}

#valuation {
    background-color: var(--bg-secondary);
    background-image: none;
    /* Don't use the global .section padding here */
    padding: 0;
}

#valuation .container-split {
    background: transparent;
    padding-inline: var(--space-lg);
}

#valuation .split-left {
    padding: 1rem 0;
}

#valuation .split-right {
    display: flex;
    align-items: flex-end;
    width: fit-content;
    justify-self: end;
    justify-content: flex-end;
}

#valuation .rounded-image {
    border-radius: 0;
    box-shadow: none;
    /* height: 550px;
    width: auto; */
    object-fit: contain;
    object-position: center;
}

.valuation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
    column-gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
}

.valuation-content {
    max-width: none;
}

.valuation-kicker {
    color: #a58d59;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.8rem;
}

.valuation-name {
    font-size: clamp(2.2rem, 5vw, 5rem);
    margin: 0.4rem 0 0;
    text-transform: uppercase;
    line-height: 1.05;
    color: #111f5a;
}

.valuation-role {
    font-size: 1.45rem;
    color: #111f5a;
    margin: 0.25rem 0 1.5rem;
}

.valuation-highlight {
    border-top: 1px solid rgba(17, 31, 90, 0.15);
    border-bottom: 1px solid rgba(17, 31, 90, 0.15);
    padding: 1rem 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.valuation-highlight-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valuation-highlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.valuation-highlight p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.valuation-highlight strong {
    color: #a58d59;
}

.valuation-pillars {
    display: grid;
    gap: 0.9rem;
}

.valuation-pillar {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(17, 31, 90, 0.14);
    padding-bottom: 0.9rem;
}

.valuation-pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #DAB875;
    background: #111f5a;
}

.valuation-pillar-icon i,
.valuation-pillar-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.valuation-pillar-body {
    flex: 1;
}

.valuation-pillar h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.valuation-pillar p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.valuation-recognition-icons {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: center;
}

.valuation-recognition-icons-mobile {
    display: none;
}

.recognition-item {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recognition-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 56px;
    background: rgba(17, 31, 90, 0.22);
}

.recognition-item i,
.recognition-item svg {
    width: 28px;
    height: 28px;
    color: #111f5a;
    margin-bottom: 0.3rem;
    stroke-width: 1.9;
}

.recognition-item img {
    width: 82px;
    height: 82px;
    margin-bottom: -0.25rem;
    object-fit: contain;
    display: block;
}

.recognition-item img.sales-icon {
    height: 64px;
    width: auto;
    margin-bottom: 0.15rem;
}

.recognition-item img.casagrand-icon {
    height: 60px;
    width: auto;
    margin-bottom: 0.25rem;
}

.recognition-item span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #111f5a;
}

.valuation-recognition {
    margin-top: 1rem;
}

.valuation-recognition h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: none;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.valuation-recognition ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.valuation-recognition li {
    margin: 0.22rem 0;
}

.valuation-founder-image {
    width: 35vw;
    max-width: none;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

#valuation .valuation-founder-image {
    height: auto;
    min-height: 0;
}

/* =========================================
   ABOUT JATIN EXPANDED SECTION
   ========================================= */
#about-jatin-expanded {
    background-color: var(--bg-secondary);
}

.about-jatin-inner {
    overflow: visible;
}

.about-jatin-content {
    padding: 0.5rem 2% 1.25rem;
    max-width: none;
    margin: 0;
}

.about-jatin-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid rgba(17, 31, 90, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(17, 31, 90, 0.06);
    overflow: hidden;
}

.about-jatin-highlight-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.25rem 1.35rem;
    min-height: 92px;
    border-right: 1px solid rgba(17, 31, 90, 0.2);
}

.about-jatin-highlight-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-jatin-highlight-item:last-child {
    border-right: none;
}

.about-jatin-highlight-item i,
.about-jatin-highlight-item svg {
    width: 50px;
    height: 50px;
    color: #B5934F;
    margin-top: 0;
    flex-shrink: 0;
    stroke-width: 1.8;
}

.about-jatin-highlight-text h3 {
    margin: 0 0 0.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--text-primary);
}

.about-jatin-highlight-text p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--text-secondary);
    text-align: left;
}

.jatin-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.jatin-quote .quote-author {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    font-weight: 600;
    font-style: normal;
}

.about-jatin-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

.about-jatin-content p strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-solid:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(143, 74, 51, 0.3);
}

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

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

.btn-outline-light {
    border: 1px solid var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

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

.btn-full { width: 100%; }

/* =========================================
   NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

nav.scrolled .logo-text,
nav.scrolled .nav-links a,
nav.scrolled .nav-links .nav-dropdown-trigger {
    color: var(--white);
}

nav.scrolled .hamburger .bar {
    background-color: var(--white);
}

/* After second section: white header, black text */
nav.scrolled.header-light {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled.header-light .logo-text,
nav.scrolled.header-light .nav-links a,
nav.scrolled.header-light .nav-links .nav-dropdown-trigger {
    color: var(--text-primary);
}

nav.scrolled.header-light .hamburger .bar {
    background-color: var(--text-primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo-wrap {
    position: absolute;
    top: 0;
    left: 100px;
    background: #29020200;
    display: inline-flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.054));
}

.logo-text {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a,
.nav-links .nav-dropdown-trigger {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-item-with-thumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-founder-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-trigger:hover {
    color: var(--accent);
}

.nav-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.96);
    padding: 0.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-dropdown-popup[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-popup a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.nav-dropdown-popup a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

/* When header is white (scrolled past hero), dropdown uses white bg */
nav.scrolled.header-light .nav-dropdown-popup {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

nav.scrolled.header-light .nav-dropdown-popup a {
    color: var(--text-primary);
}

nav.scrolled.header-light .nav-dropdown-popup a:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.04);
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

.nav-links .btn {
    padding: 0.6rem 1.5rem;
}

nav:not(.scrolled) .nav-links .btn-outline {
    border-color: var(--white);
    color: var(--white);
}
nav:not(.scrolled) .nav-links .btn-outline:hover {
    background-color: var(--white);
    color: var(--text-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Header Contact mini lightbox (all pages) - Premium Design */
.nav-contact-popover {
    position: fixed;
    top: 90px;
    right: 5%;
    width: fit-content;
    max-width: 94vw;
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.nav-contact-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-contact-popover-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.nav-contact-popover-close:hover {
    background: var(--accent);
    color: var(--white);
    transform: rotate(90deg);
}

.nav-contact-popover-close i,
.nav-contact-popover-close svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2;
}

.nav-contact-popover-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) fit-content(360px);
    align-items: stretch;
}

.nav-contact-popover-map {
    flex: 1;
    min-width: 0;
    position: relative;
}

.nav-contact-popover-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: contrast(0.95) saturate(0.8);
}

.nav-contact-popover-content {
    width: fit-content;
    max-width: 360px;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-contact-popover h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-right: 2rem;
}

.nav-contact-popover h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.8rem;
    opacity: 0.8;
}

.nav-contact-popover .contact-info-item {
    margin-bottom: 1.2rem;
    gap: 1rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-contact-popover .contact-info-item a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-contact-popover .contact-info-item a:hover {
    color: var(--accent);
}

.nav-contact-popover .contact-info-item i,
.nav-contact-popover .contact-info-item svg {
    color: var(--accent);
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.nav-contact-popover .contact-social {
    margin-top: 1.8rem;
    gap: 0.8rem;
    display: flex;
}

.nav-contact-popover .social-icon-btn {
    border-radius: var(--radius-sm);
}

@media (max-width: 700px) {
    .nav-contact-popover {
        width: min(400px, 94vw);
    }
    .nav-contact-popover-layout {
        grid-template-columns: 1fr;
    }
    .nav-contact-popover-map iframe {
        position: relative;
        min-height: 200px;
        height: 200px;
    }
    .nav-contact-popover-content {
        padding: 2rem;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    text-align: left;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #000;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Hero loading state: background image while video loads; hidden when video is ready */
.hero-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('hero-loading-placeholder.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    transition: opacity 0.6s ease;
}

#hero.hero-ready .hero-loading {
    opacity: 0;
    pointer-events: none;
}

/* Loading screen: force heading, subtitle and buttons on top of the image and visible */
#hero:not(.hero-ready) .hero-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 10;
}
#hero:not(.hero-ready) .hero-title,
#hero:not(.hero-ready) .hero-subtitle,
#hero:not(.hero-ready) .hero-actions,
#hero:not(.hero-ready) .hero-loading-label {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Shiny "Video is loading…" line below buttons – only on loading screen */
.hero-loading-label {
    display: none;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    overflow: hidden;
}
#hero:not(.hero-ready) .hero-loading-label {
    display: block;
    opacity: 1;
    visibility: visible;
}
#hero.hero-ready .hero-loading-label {
    display: none;
}

/* Shiny / shimmer text effect */
.hero-loading-label {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 1) 20%,
        rgba(255, 255, 255, 1) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hero-loading-shine 2s ease-in-out infinite;
}
@keyframes hero-loading-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    transition: opacity 0.4s ease;
}

.hero-title.fade-out {
    opacity: 0;
}

.hero-title.fade-in-slow {
    transition-duration: 15.2s;
}

/* Bollywood hero-style slow-motion reveal for final "Kothari Estates" */
.hero-title.hero-reveal {
    transition: opacity 5.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 5.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title.hero-reveal.fade-out {
    opacity: 0;
    transform: scale(0.96);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#hero .btn-solid {
    background-color: var(--white);
    color: var(--accent);
}

#hero .btn-solid:hover {
    background-color: var(--white);
    color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#hero .btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.27);
}

#hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0);
}

/* =========================================
   WHY US SECTION – SIMPLE PANEL WITH HORIZONTAL STATS
   ========================================= */
#why-us.section-bg-image {
    position: relative;
    background-color: var(--bg-primary);
}

#why-us.section-bg-image::before {
    content: none;
}

#why-us.section-bg-image .container.container-left {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 5%;
}

#why-us.section-bg-image .why-us-content {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-lg) 0;
    text-align: center;
}

#why-us.section-bg-image .section-title,
#why-us.section-bg-image .section-desc,
#why-us.section-bg-image .stats-grid {
    text-align: center;
}

#why-us.section-bg-image .section-desc {
    max-width: 50rem;
    margin: 0.5rem auto 0;
}

#why-us.section-bg-image .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-md);
}

#why-us.section-bg-image .stat-item {
    align-items: center;
}

/* =========================================
   LAYOUTS (SPLIT & GRID)
   ========================================= */
.container-split {
    display: flex;
    align-items: stretch;
    gap: var(--space-lg);
}

.container-split.reverse {
    flex-direction: row-reverse;
    background-color: var(--bg-secondary);
    padding-inline: var(--space-md);
}

.split-left, .split-right {
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.rounded-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 100%;
    min-height: 400px;
}

/* =========================================
   STATS GRID
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Us stats: use body (sans) font for numbers */
#why-us .stat-number {
    font-family: var(--font-body);
}

/* =========================================
   SERVICES – CIRCULAR CARDS, INFINITE CAROUSEL
   ========================================= */
.services-carousel-wrap {
    margin-top: var(--space-lg);
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 0;
}

.services-carousel-track {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: none;
}

.services-carousel-track:hover {
    animation-play-state: running;
}

@keyframes services-carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.service-card.service-card-circle {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card.service-card-circle .service-icon {
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.service-card.service-card-circle .service-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 1.75;
}

.service-card.service-card-circle h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-card.service-card-circle p {
    font-size: 0.85rem;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
}

.service-card.service-card-circle .service-know-more {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card.service-card-circle:hover .service-know-more {
    opacity: 1;
}

/* Legacy grid (used elsewhere if needed) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-lg);
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(143, 74, 51, 0.05);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(143, 74, 51, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* =========================================
   VALUATION BOX
   ========================================= */
.valuation-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--accent);
}

.valuation-box h3 {
    font-family: var(--font-body);
}

.valuation-box .awards-list {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.valuation-box .awards-list li {
    margin: 0.35rem 0;
}

/* =========================================
   CONTACT LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-open {
    opacity: 1;
    visibility: visible;
}

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

.lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 5px;
}

.contact-lightbox-grid {
    margin: 0;
    border-radius: 5px;
}

#contact-lightbox .contact-details,
#contact-lightbox .contact-form-wrap {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#contact-lightbox .contact-form-wrap input,
#contact-lightbox .contact-form-wrap select,
#contact-lightbox .contact-form-wrap textarea {
    background: var(--bg-primary);
    border: 1px solid var(--accent) !important;
    box-shadow: none;
}

#contact-lightbox .contact-form-wrap input:focus,
#contact-lightbox .contact-form-wrap select:focus,
#contact-lightbox .contact-form-wrap textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close i,
.lightbox-close svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2;
}

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

/* =========================================
   CONTACT / CTA SECTION
   ========================================= */
#contact {
    background-image: url("chennai-map-contact.png");
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background-color: transparent;
    max-width: 900px;
    margin: 0 0 0 auto; /* Push to the right */
}

.contact-details {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info-item a[href*="maps.google.com"] {
    text-decoration: underline;
}

.contact-info-item i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}



.whatsapp-btn:hover {
    background-color: #128C7E;
}

.contact-form-wrap {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-primary);
}

.contact-form-wrap .text-white {
    color: var(--text-primary);
}

.contact-form-wrap .btn-solid {
    background-color: #000;
    color: var(--white);
}

.contact-form-wrap .btn-solid:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--accent) !important;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.contact-form-wrap select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* Ensure main contact form name/phone fields are solid white */
#contact .contact-form-wrap input[type="text"],
#contact .contact-form-wrap input[type="tel"] {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

input:not([type="range"]):not([type="hidden"]), select, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:not([type="range"]):not([type="hidden"]):focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

select option {
    background: #2C2C2C;
    color: var(--white);
}

textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #111;
    color: var(--white);
    padding-top: var(--space-lg);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: var(--space-md);
}

.footer-brand, .footer-links, .footer-keywords, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-brand-logo {
    width: 98px;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.footer-links h4, .footer-keywords h4, .footer-contact h4 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-keywords a {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-keywords a:hover {
    color: var(--accent);
    padding-left: 5px;
}

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

.footer-map {
    margin-top: 0.9rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-map iframe {
    width: 100%;
    height: 160px;
    border: 0;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   FEATURED HOMES
   ========================================= */
#featured-homes {
    background-color: var(--bg-primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--space-lg);
}

ul.properties-grid,
ul.insights-grid,
ul.other-blogs-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
}

.properties-grid > li,
.insights-grid > li,
.other-blogs-list > li {
    min-width: 0;
}

/* More than 3 property cards: horizontal scroll (desktop / non-carousel grids) */
@media (min-width: 601px) {
    .properties-grid.properties-grid--scrollable {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(143, 74, 51, 0.35) transparent;
    }

    .properties-grid.properties-grid--scrollable::-webkit-scrollbar {
        height: 6px;
    }

    .properties-grid.properties-grid--scrollable::-webkit-scrollbar-thumb {
        background: rgba(143, 74, 51, 0.35);
        border-radius: 999px;
    }

    .properties-grid.properties-grid--scrollable > .property-card:not([data-clone]) {
        flex: 0 0 calc((100% - 4rem) / 3);
        min-width: 280px;
        scroll-snap-align: start;
    }

    #featured-homes .properties-carousel-wrap:has(.properties-grid--scrollable) .properties-carousel-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    .properties-grid.properties-grid--scrollable:not(#properties-grid) {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .properties-grid.properties-grid--scrollable:not(#properties-grid)::-webkit-scrollbar {
        display: none;
    }

    .properties-grid.properties-grid--scrollable:not(#properties-grid) > .property-card {
        flex: 0 0 min(85vw, 320px);
        scroll-snap-align: start;
    }
}

/* Carousel clones are only for mobile looping; hide on desktop/tablet */
.properties-grid .property-card[data-clone] {
    display: none;
}

.property-card {
    /* Glass card */
    background: rgba(255, 255, 255, 0.062);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur16px;
    border: 1px solid rgba(255, 255, 255, 0.091);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.14);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.property-content {
    padding: 1.5rem;
    /* Improve readability on glass */
    background: rgba(252, 251, 248, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.property-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f1f1f;
}

.property-location {
    color: #3f3f3f;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.property-content .btn + .btn {
    margin-top: 0.6rem;
}

/* Properties carousel arrows – hidden on desktop, shown on mobile */
.properties-carousel-wrap {
    position: relative;
}
.properties-carousel-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(143, 74, 51, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s;
}
.properties-carousel-btn:hover {
    background: var(--accent);
    color: var(--white);
}
.properties-carousel-prev {
    left: 0.5rem;
}
.properties-carousel-next {
    right: 0.5rem;
}

/* =========================================
   TRUSTED LIST
   ========================================= */
.trust-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-icon {
    font-size: 2rem;
    background-color: var(--white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.trust-item h3 {
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

/* =========================================
   REAL STORIES
   ========================================= */
#stories {
    background-color: var(--bg-primary);
    --story-card-width: 255px;
}

.stories-grid-wrap {
    margin-top: var(--space-sm);
    width: 100%;
    padding: 2.5rem 5%;
}

.stories-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
}

/* Up to 6 cards: balanced grid (equal cards per row) */
.stories-grid:not(.stories-grid--scrollable) {
    display: grid;
    grid-template-columns: repeat(var(--story-cols, 2), minmax(0, var(--story-card-width)));
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
}

.stories-grid:not(.stories-grid--scrollable) > .story-card {
    width: 100%;
}

.stories-grid.stories-grid--scrollable {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 74, 51, 0.35) transparent;
}

.stories-grid.stories-grid--scrollable::-webkit-scrollbar {
    height: 6px;
}

.stories-grid.stories-grid--scrollable::-webkit-scrollbar-thumb {
    background: rgba(143, 74, 51, 0.35);
    border-radius: 999px;
}

.story-card {
    background-color: var(--white);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.stories-grid.stories-grid--scrollable > .story-card {
    flex: 0 0 var(--story-card-width);
    width: var(--story-card-width);
    scroll-snap-align: start;
}

.story-video {
    width: 630px; /* ~75% of original 840px */
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 50vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 0;
    display: block;
}

.press-coverage-video-wrap {
    max-width: 900px;
    margin: var(--space-md) auto 0;
}

#press-coverage {
    position: relative;
    background-color: var(--bg-primary);
    background-image: url('Frame%20904.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

#press-coverage .container {
    position: relative;
    z-index: 1;
}

.press-coverage-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    #press-coverage .container {
        padding-inline: 1.25rem;
    }

    .press-coverage-video-wrap {
        max-width: 100%;
        padding-inline: 0.25rem;
    }
}

.story-content {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.15rem;
}

.story-card .story-content,
.story-card .story-author {
    padding-inline: 1.15rem;
}

.story-card .story-content {
    padding-top: 1.15rem;
}

.story-card .story-author {
    padding-bottom: 1.15rem;
}

.story-content::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 0.15rem;
    line-height: 1;
}

.story-author h4 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.story-author .text-sm {
    font-size: 0.8rem;
}

/* =========================================
   CALCULATOR SECTION
   ========================================= */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.calc-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--bg-secondary);
    padding: 0 0.5rem;
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    z-index: 1;
}

.calc-field select,
.calc-field input:not([type="range"]):not([type="hidden"]) {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(143, 74, 51, 0.3);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    appearance: none;
    outline: none;
}

.slider-input-box {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    border: 1px solid rgba(143, 74, 51, 0.3);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
}

input[type="range"].shadcn-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(143, 74, 51, 0.2);
    outline: none;
    padding: 0;
    border: none;
    margin: 0;
}

input[type="range"].shadcn-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    margin-top: -7px;
    transition: transform 0.1s;
}

input[type="range"].shadcn-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"].shadcn-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

/* Firefox support */
input[type="range"].shadcn-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s;
}
input[type="range"].shadcn-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 4px;
}

.slider-ticks span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    flex: 1;
    transition: color 0.2s, font-weight 0.2s;
    user-select: none;
}

.slider-ticks span:first-child { text-align: left; }
.slider-ticks span:last-child { text-align: right; }

.slider-ticks span.active {
    color: var(--accent);
    font-weight: 600;
}

.calc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.calc-field input::placeholder {
    color: #999;
}

.calc-submit {
    justify-content: flex-end;
}

 .btn-arrow {
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 1.2em;
}

.calc-submit .btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Calculator Result */
.hidden {
    display: none !important;
}

.calculator-result {
    animation: fadeIn 0.4s ease forwards;
}

#calculator .split-left {
    position: relative;
}

#calc-return {
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}



.result-heading {
    font-size: 24px;
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 60px;
    font-family: var(--font-body);
    color: var(--accent);
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}


.result-rate {
    font-size: 50px;
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.1;
}

.result-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(143, 74, 51, 0.2);
}

.text-xs {
    font-size: 0.7rem;
    opacity: 0.8;
}

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

/* =========================================
   INSIGHTS
   ========================================= */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--space-lg);
}

.insights-page-container {
    padding-inline: 5%;
}

.insight-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: block;
}

.other-blog-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.insight-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(143, 74, 51, 0.4);
}

.insight-card:hover {
    background-color: var(--white);
    border-color: rgba(143, 74, 51, 0.2);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
    cursor: pointer;
}

.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.insight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.insight-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.insight-link:hover {
    gap: 0.8rem;
}

.other-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.other-blog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(143, 74, 51, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.other-blog-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
    transform: translateX(5px);
}

.other-blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.other-blog-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.other-blog-link {
    white-space: nowrap;
    margin-left: 2rem;
}

@media (max-width: 768px) {
    .insights-page-container {
        padding-inline: 1rem;
    }

    .other-blog-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    .other-blog-link {
        margin-left: 0;
    }
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    #valuation .valuation-layout {
        display: flex;
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        margin: 0 auto; /* Center on mobile */
    }
    
    .contact-form-wrap {
        padding: 2rem;
    }
    
    .container-split {
        flex-direction: column;
    }
    
    .container-split.reverse {
        flex-direction: column;
    }

    #valuation .container-split,
    #valuation .container-split.reverse {
        padding-inline: 1.25rem;
    }

    #valuation .split-left {
        padding: 2.5rem 0;
    }

    .valuation-role {
        font-size: 1.6rem;
    }

    .valuation-highlight p {
        font-size: 1.1rem;
    }

    .valuation-pillar h3 {
        font-size: 1.05rem;
    }
    
    .rounded-image {
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }

    /* Change hamburger color to match text when scrolled, or force it if menu open */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--text-primary);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--text-primary);
    }

    /* Third section – tablet: circles + icon + text + padding/margin/gap (scaled to ~60% of desktop) */
    #services .services-carousel-wrap {
        margin-top: 2rem;
        padding: 1.25rem 0;
    }
    #services .services-carousel-track {
        gap: 1rem;
    }
    #services .service-card.service-card-circle {
        flex: 0 0 168px;
        width: 168px;
        height: 168px;
        padding: 0.9rem;
    }
    #services .service-card.service-card-circle .service-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 0.6rem;
    }
    #services .service-card.service-card-circle .service-icon svg {
        width: 26px;
        height: 26px;
        stroke-width: 1.75;
    }
    #services .service-card.service-card-circle h3 {
        font-size: 0.66rem;
        margin-bottom: 0.3rem;
    }
    #services .service-card.service-card-circle p {
        font-size: 0.51rem;
        line-height: 1.4;
        width: 100%;
        max-width: 100%;
    }
    #services .service-card.service-card-circle .service-know-more {
        font-size: 0.54rem;
        margin-top: 0.45rem;
    }
}

@media (max-width: 600px) {
    /* Section headings on mobile: add breathing room and slightly reduce size */
    .section-header {
        padding-inline: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-desc {
        font-size: 1rem;
    }

    nav .logo-wrap {
        left: 25px;
    }

    .logo-mark {
        height: 70px;
    }

    .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    #hero .hero-subtitle {
        max-width: 80vw;
    }

    /* Second section: stats vertical stack + smaller font (mobile only) */
    #why-us {
        padding: 1.5rem 0;
    }
    #why-us.section-bg-image .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    #why-us .stat-number {
        font-size: 2.25rem;
    }
    #why-us .stat-label {
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    /* Testimonials — one card per row, full width (mobile only) */
    .stories-grid-wrap {
        padding: 1rem;
    }

    .stories-grid:not(.stories-grid--scrollable) {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        justify-items: stretch;
        gap: 0.85rem;
    }

    .stories-grid:not(.stories-grid--scrollable) > .story-card {
        width: 100%;
        max-width: none;
    }

    #stories .story-card {
        justify-content: flex-start;
    }

    #stories .story-card .story-content {
        padding: 0.85rem 1rem 0.5rem;
        margin-bottom: 0;
    }

    #stories .story-card .story-author {
        padding: 0 1rem 0.85rem;
    }

    #stories .story-content {
        font-size: 0.78rem;
        line-height: 1.5;
        margin-bottom: 0;
        padding-left: 1rem;
    }

    #stories .story-content::before {
        font-size: 1.5rem;
        top: -0.35rem;
        left: 0;
    }

    #stories .story-author h4 {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }

    #stories .story-author .text-sm {
        font-size: 0.72rem;
    }

    /* Prevent iOS Safari auto-zoom on form focus (common “page zoomed in” report) */
    input:not([type="range"]):not([type="hidden"]),
    select,
    textarea,
    .inner-contact-form input,
    .inner-contact-form select,
    .inner-contact-form textarea {
        font-size: 16px;
    }

    .nav-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Third section – mobile: stacked rectangular cards */
    #services .services-carousel-wrap {
        overflow: visible;
    }
    #services .services-carousel-track {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        justify-content: flex-start;
        width: 100%;
        margin: 0 auto;
        animation: none;
    }
    #services .service-card.service-card-circle {
        flex: 0 0 auto;
        width: min(100%, 340px);
        max-width: 340px;
        height: auto;
        min-height: 0;
        border-radius: var(--radius-lg);
        padding: 1.2rem;
    }
    #services .service-card.service-card-circle .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.8rem;
    }
    #services .service-card.service-card-circle .service-icon svg {
        width: 30px;
        height: 30px;
    }
    #services .service-card.service-card-circle h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    #services .service-card.service-card-circle p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    #services .service-card.service-card-circle .service-know-more {
        font-size: 0.85rem;
        margin-top: 0.65rem;
    }

    /* Curated Chennai properties – mobile: one card carousel with arrows */
    #featured-homes .properties-carousel-wrap {
        margin-top: var(--space-md);
    }
    #featured-homes .properties-carousel-btn {
        display: flex;
        top: calc(50% + 40px);
    }
    #featured-homes .properties-grid {
        display: flex;
        overflow: visible;
        scroll-behavior: auto;
        gap: 0;
        margin-top: 0;
        transition: transform 0.4s ease;
    }
    #featured-homes .properties-grid .property-card {
        flex: 0 0 100%;
        min-width: 100%;
        transition: transform 0.3s ease;
        background: var(--white);
    }
    #featured-homes .properties-grid .property-card[data-clone] {
        display: block;
    }
    #featured-homes .property-content {
        background: var(--white);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    #featured-homes .properties-carousel-wrap {
        overflow: hidden;
        width: 100%;
    }

    /* Meet Jatin Kothari – hide image on mobile and add padding */
    #valuation {
        background-image: none;
        background-color: var(--bg-secondary);
    }

    #valuation .split-right.image-card {
        display: none;
    }
    #valuation .split-left {
        padding: 1.5rem 0;
    }
    #valuation .container-split,
    #valuation .container-split.reverse {
        padding-inline: 1rem;
    }
    #valuation .valuation-content {
        padding-inline: 0.5rem;
    }

    .valuation-kicker {
        font-size: 0.72rem;
    }

    .valuation-name {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .valuation-role {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .valuation-highlight p {
        font-size: 1rem;
    }

    .valuation-pillar h3 {
        font-size: 0.98rem;
    }

    .valuation-pillar p,
    .valuation-recognition li {
        font-size: 0.92rem;
    }

    .valuation-recognition-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem 0.5rem;
    }

    .valuation-pillar-recognition .valuation-recognition-icons {
        display: none;
    }

    .valuation-pillar-recognition {
        align-items: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .valuation-pillar-recognition .valuation-pillar-body {
        display: flex;
        align-items: center;
        min-height: 42px;
    }

    .valuation-pillar-recognition .valuation-pillar-body h3 {
        margin: 0;
    }

    .valuation-recognition-icons-mobile {
        display: flex;
        flex-wrap: wrap;
        margin-top: 1.25rem;
        justify-content: center;
        align-items: center;
        gap: 0.7rem 0.5rem;
        background: var(--white);
        border: 1px solid rgba(17, 31, 90, 0.12);
        border-radius: 10px;
        padding: 0.85rem 0.65rem;
    }

    .valuation-recognition-icons-mobile .recognition-item:not(:last-child)::after {
        display: none;
    }

    .valuation-recognition-icons-mobile .recognition-item {
        flex: 0 0 calc((100% - 1rem) / 3);
        max-width: calc((100% - 1rem) / 3);
    }

    .recognition-item span {
        font-size: 0.68rem;
    }

    .about-jatin-content {
        padding: 0.4rem 0.75rem 1rem;
    }

    .about-jatin-highlights {
        grid-template-columns: 1fr;
    }

    .about-jatin-highlight-item {
        border-right: none;
        border-bottom: 1px solid rgba(17, 31, 90, 0.2);
        min-height: 86px;
    }

    .about-jatin-highlight-item:last-child {
        border-bottom: none;
    }

    .about-jatin-highlight-item i,
    .about-jatin-highlight-item svg {
        width: 41px;
        height: 41px;
    }

    /* Mobile-only Meet Jatin Image Section */
    .mobile-only-section {
        display: block;
        width: 100%;
        height: 400px;
        background-image: url('jatin-mobile-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    #buy-contact-mobile-bg {
        height: 360px;
        background-image: url('image 105.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    #sell-contact-mobile-bg,
    #rent-contact-mobile-bg {
        height: 360px;
        background-image: url('image 105.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .buy-page #contact .inner-contact-image-wrap {
        display: none;
    }
    .sell-page #contact .inner-contact-image-wrap,
    .rent-page #contact .inner-contact-image-wrap {
        display: none;
    }

    /* Homepage contact section only – remove background image on mobile */
    body:not(.inner-page) #contact {
        background-image: none;
        background-color: var(--bg-secondary);
        padding-top: 0;
        padding-bottom: 0;
    }
    /* Inner pages (buy/sell/rent/etc.) keep the original blue contact background */
    .inner-contact-section {
        background-color: #262B37;
    }

    /* Calculator section – hide image on mobile */
    #calculator .calculator-image {
        display: none;
    }
    #calculator {
        background-image: none;
        background-color: var(--bg-secondary);
    }
    #calculator .container.container-split {
        padding-inline: 1rem;
    }
    #calculator .split-left {
        padding-inline: 0.5rem;
    }

    /* Calculator result — mobile layout only */
    #calculator .calculator-result {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding-top: 0.25rem;
    }

    #calculator #calc-return {
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-start;
        margin: 0;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        white-space: normal;
    }

    #calculator .result-block {
        margin-bottom: 0 !important;
    }

    #calculator .result-heading {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    #calculator .result-value {
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    #calculator .result-rate {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    #calculator .result-disclaimer {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    #insights .container {
        padding-inline: 1rem;
    }
    footer .container.footer-container,
    footer .footer-bottom {
        padding-inline: 1rem;
    }
    .property-detail-page .container,
    .property-detail-page .property-detail-extended-inner {
        padding-inline: 1rem;
    }
    .buy-page .container,
    .sell-page .container,
    .rent-page .container {
        padding-inline: 1rem;
    }
}

#calculator {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
    background-image: url("calculator-bg-placeholder.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
}

/* #calc-test-mode {
    position: absolute;
    right: 0;
    bottom: 1rem;
    z-index: 2;
} */

.calculator-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    max-width: 45%;
    height: auto;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transform-origin: bottom right;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.calculator-image-zoom {
    transform: scale(1.03);
}


#insights {
    background-color: var(--bg-primary);
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}



.social-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.social-icon-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.map-btn {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.6rem 1.6rem;
    text-align: center;
}

.map-btn:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-social .map-btn {
    margin-top: 0;
}

/* =========================================
   FLOATING CHAT BUTTON
   ========================================= */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-chat-btn:hover {
    transform: translateY(-5px);
    background-color: var(--accent-hover);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-chat-btn i {
    width: 28px;
    height: 28px;
}

.chat-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(0);
    background-color: #2C2C2C;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Small triangle pointing to the button */
.chat-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #2C2C2C;
}

/* =========================================
   INNER PAGE CONTACT SECTION
   ========================================= */
.inner-page #contact {
    background-image: none !important;
}

.inner-contact-section {
    background-color: #262B37;
    display: flex;
    align-items: center;
    gap: 55px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.inner-contact-image-wrap {
    position: relative;
    width: 513px;
    height: 693px;
    flex-shrink: 0;
}

.inner-contact-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inner-contact-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 28px;
    width: 100%;
    max-width: 798px;
}

.inner-contact-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(3rem, 5vw, 79px);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 10px;
}

.inner-contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inner-contact-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.inner-contact-form input,
.inner-contact-form select,
.inner-contact-form textarea {
    background: #ffffff !important;
    border: 1px solid rgba(44, 44, 44, 0.15);
    padding: 0 14px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: rgba(44, 44, 44, 0.55);
    width: 100%;
    border-radius: var(--radius-sm);
    outline: none;
}

.inner-contact-form input:focus,
.inner-contact-form select:focus,
.inner-contact-form textarea:focus {
    background: #ffffff !important;
    border-color: var(--accent);
}

.inner-contact-form input,
.inner-contact-form select {
    height: 48px;
}

.inner-contact-form textarea {
    height: 80px;
    padding-top: 14px;
    resize: none;
}

.inner-contact-form input::placeholder,
.inner-contact-form textarea::placeholder {
    color: rgba(44, 44, 44, 0.55);
}

.inner-contact-disclaimer {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.47);
    line-height: 1.7;
    max-width: 620px;
}

.inner-contact-btn {
    background: #111;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.inner-contact-btn:hover {
    background: #333;
}

/* Buy page contact layout on desktop: form left, image right */
@media (min-width: 901px) {
    .buy-page .inner-contact-section {
        flex-direction: row-reverse;
    }
}
.buy-page .inner-contact-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

@media (max-width: 900px) {
    .inner-contact-section {
        flex-direction: column;
        gap: 0;
    }
    .inner-contact-image-wrap {
        width: 100%;
        height: 400px;
    }
    .inner-contact-row {
        flex-direction: column;
    }
}

/* =========================================
   PROPERTY DETAIL PAGE
   ========================================= */
.property-detail-page .page-bg {
    display: none; /* No video background on property detail page */
}
.property-detail-page {
    background-color: var(--bg-primary);
}

/* All inner pages (except home): always white header + black text */
.inner-page nav,
.inner-page nav.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.inner-page nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.inner-page nav .nav-links a,
.inner-page nav .nav-links .nav-dropdown-trigger {
    color: var(--text-primary);
}

.inner-page nav .hamburger .bar {
    background-color: var(--text-primary);
}

.inner-page nav .nav-dropdown-popup {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.inner-page nav .nav-dropdown-popup a {
    color: var(--text-primary);
}

.inner-page nav .nav-dropdown-popup a:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.04);
}

/* Property detail: top black (100%), then white on scroll */
.property-detail-page nav:not(.scrolled) {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
}

.property-detail-page nav:not(.scrolled) .nav-links a,
.property-detail-page nav:not(.scrolled) .nav-links .nav-dropdown-trigger {
    color: var(--white);
}

.property-detail-page nav:not(.scrolled) .hamburger .bar {
    background-color: var(--white);
}

.property-detail-page nav:not(.scrolled) .nav-dropdown-popup {
    background: rgba(0, 0, 0, 0.96);
}

.property-detail-page nav:not(.scrolled) .nav-dropdown-popup a {
    color: rgba(255, 255, 255, 0.9);
}

.property-detail-page nav.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.property-detail-page nav.scrolled .nav-links a,
.property-detail-page nav.scrolled .nav-links .nav-dropdown-trigger {
    color: var(--text-primary);
}

.property-detail-page nav.scrolled .hamburger .bar {
    background-color: var(--text-primary);
}

.property-detail-page nav.scrolled .nav-dropdown-popup {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.property-detail-page nav.scrolled .nav-dropdown-popup a {
    color: var(--text-primary);
}

.property-detail-page nav.scrolled .nav-dropdown-popup a:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.04);
}

.property-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-bottom: var(--space-lg);
}

.property-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.property-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.property-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.property-badges .badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.property-badges .badge-accent {
    background: var(--accent);
    color: var(--white);
}

.property-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.property-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.property-key-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 0;
}

.key-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.key-stat i {
    color: var(--white);
    opacity: 0.8;
}

.property-hero-actions {
    display: flex;
    gap: 1rem;
}

/* Property Layout Grid */
.property-main-content {
    padding: var(--space-xl) 0 0;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-lg);
    align-items: start;
}

/* Full-width block below two-column (walkthrough → developer) */
.property-detail-extended {
    width: 100%;
    margin-top: var(--space-lg);
    padding: var(--space-lg) 0 var(--space-xl);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 18%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.property-detail-extended-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* 50% / 50% two-column grid — stretch columns; space-between stacks sections top→bottom */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

.property-detail-grid-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 1.35rem);
    min-width: 0;
}

.property-detail-grid-col > .prop-section-extended {
    margin-bottom: 0;
    padding-bottom: clamp(0.85rem, 1.5vw, 1.1rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.property-detail-grid-col > .prop-section-extended:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.property-detail-extended .prop-section-extended .prop-section-title {
    margin-bottom: 0.6rem;
}

/* Floor plans stack in half-width column */
.property-detail-extended .prop-floorplan-grid-wide {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.property-detail-extended .floorplan-img-tall {
    height: 200px;
}

/* Same 16:9 box as .prop-video-wrapper (width-driven height) */
.property-detail-extended .prop-map-wrapper-wide {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.property-detail-extended .prop-map-wrapper-wide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Developer stats stack in half-width column */
.property-detail-extended .prop-dev-grid-wide {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Amenities: icon + label rows only */
.prop-amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.amenity-line {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.amenity-line-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amenity-line-icon i,
.amenity-line-icon svg {
    width: 20px;
    height: 20px;
}

.amenity-line-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.prop-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.prop-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prop-section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.prop-section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Summary Grid */
.prop-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

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

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Gallery Grid */
.prop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.gallery-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Video Wrapper */
.prop-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.prop-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.prop-walkthrough-player {
    cursor: pointer;
}

.prop-walkthrough-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.prop-walkthrough-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%);
    pointer-events: none;
}

.prop-walkthrough-play-hint {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.prop-walkthrough-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    z-index: 2;
}

.video-lightbox-inner {
    max-width: 960px;
    background: transparent;
    overflow: visible;
}

.video-lightbox-player {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-lightbox-player video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
}

.video-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.video-lightbox-prev {
    left: 12px;
}

.video-lightbox-next {
    right: 12px;
}

.video-lightbox-close {
    top: -48px;
    right: 0;
}

.video-lightbox-counter {
    margin: 0.85rem 0 0;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .video-lightbox-inner {
        max-width: 100%;
    }

    .video-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .video-lightbox-nav {
        width: 38px;
        height: 38px;
    }
}

/* Floorplans */
.prop-floorplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.floorplan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.floorplan-img {
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.floorplan-info {
    padding: 1.5rem;
}

.floorplan-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.floorplan-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Pricing Table */
.prop-pricing-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.prop-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.prop-pricing-table th,
.prop-pricing-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.prop-pricing-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.prop-pricing-table tr:last-child td {
    border-bottom: none;
}

/* Amenities Grid */
.prop-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.amenity-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.amenity-item h4 {
    font-size: 1.1rem;
}

.amenity-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Map */
.prop-map-wrapper {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Developer Stats */
.prop-dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.dev-stat h4 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.dev-stat p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sticky Sidebar */
.prop-sticky-sidebar {
    position: sticky;
    top: 100px; /* Below navbar */
}

.prop-advisor-card,
.prop-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.advisor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advisor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.advisor-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.advisor-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.advisor-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.prop-form-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sidebar-amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sidebar-amenities-list li i,
.sidebar-amenities-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Sidebar Similar Properties List */
.sidebar-prop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul.sidebar-prop-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul.sidebar-prop-list > li {
    min-width: 0;
}

.sidebar-prop-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

ul.sidebar-prop-list > li:last-child .sidebar-prop-item {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-prop-item:hover {
    transform: translateX(4px);
}

.sidebar-prop-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sidebar-prop-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-prop-info .price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.prop-form-card input,
.prop-form-card select,
.prop-form-card textarea {
    background: #ffffff !important;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.3) !important;
}

.prop-form-card input::placeholder,
.prop-form-card textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Responsive Property Detail */
@media (max-width: 900px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    .prop-sticky-sidebar {
        position: static;
        margin-top: var(--space-lg);
    }
    .property-key-stats {
        gap: 1rem;
    }
    .property-detail-grid {
        grid-template-columns: 1fr;
    }
    .property-detail-grid-col {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .property-hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }
    .property-title {
        font-size: 2.5rem;
    }
    .property-hero-actions {
        flex-direction: column;
    }
    .prop-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .prop-summary-grid,
    .prop-dev-grid {
        grid-template-columns: 1fr;
    }
    .prop-pricing-table-wrap {
        overflow-x: auto;
    }
}

/* Very small phones: no forced zoom/min-width (was causing horizontal overflow) */
