/* ========================================
   RayOne Estates — Premium Styles
   ======================================== */

/* CSS Variables — Premium Gold Theme */
:root {
    --primary: #c9a86c;
    --primary-dark: #a88b50;
    --primary-light: #dcc08e;
    --primary-glow: rgba(201, 168, 108, 0.3);
    --secondary: #2d3436;
    --secondary-dark: #1a1e20;
    --accent: #e8a130;
    --danger: #dc3545;
    --purple: #8b5cf6;
    
    --bg-primary: #faf8f5;
    --bg-secondary: #f3efe8;
    --bg-dark: #111111;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f0e8;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    
    --border: #e8e0d4;
    --border-light: #f0ece5;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --nav-height: 72px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #242424;
    
    --text-primary: #f5f0e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    
    --border: #2a2a2a;
    --border-light: #1f1f1f;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.7);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; /* prevents iOS zoom */ }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-logo {
    margin-bottom: 2rem;
    animation: loaderPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 4px 24px rgba(0, 120, 180, 0.2));
}

.loader-bar {
    width: 220px;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 1.25rem;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #3498db);
    border-radius: 4px;
    animation: loadProgress 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.loader-content p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: loaderTextFade 1.5s ease infinite alternate;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes loaderTextFade {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.logo i {
    color: var(--primary);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo strong { font-weight: 800; }

.logo em {
    font-style: normal;
    font-weight: 300;
    opacity: 0.7;
    font-size: 0.9em;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.06);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    color: #1a1a2e;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 25%, #0b2a3a 50%, #0d1f3c 75%, #0a1628 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3498db;
    border-radius: 50%;
    opacity: 0.3;
    animation: float var(--duration) ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(var(--ty)) translateX(var(--tx)); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50px;
    color: #a8e6cf;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.gradient-text {
    background: linear-gradient(120deg, #2ecc71, #3498db, #2ecc71);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.6; }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(201, 168, 108, 0.08);
    border: 1px solid rgba(201, 168, 108, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.dash-total::before { background: linear-gradient(90deg, #c9a86c, #dcc08e); }
.dash-available::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.dash-sold::before { background: linear-gradient(90deg, var(--danger), #f87171); }
.dash-reserved::before { background: linear-gradient(90deg, var(--accent), #fbbf24); }
.dash-revenue::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.dash-area::before { background: linear-gradient(90deg, #2d3436, #636e72); }

.dash-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.dash-card.wide {
    grid-column: span 2;
}

.dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dash-total .dash-card-icon { background: rgba(201,168,108,0.1); color: var(--primary); }
.dash-available .dash-card-icon { background: rgba(34,197,94,0.1); color: #22c55e; }
.dash-sold .dash-card-icon { background: rgba(220,53,69,0.1); color: var(--danger); }
.dash-reserved .dash-card-icon { background: rgba(232,161,48,0.1); color: var(--accent); }
.dash-revenue .dash-card-icon { background: rgba(201,168,108,0.1); color: var(--primary); }
.dash-area .dash-card-icon { background: rgba(45,52,54,0.08); color: var(--secondary); }

.dash-card-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.dash-card-info p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.dash-card-trend {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dash-card-trend.up { background: rgba(34,197,94,0.1); color: #22c55e; }
.dash-card-trend.neutral { background: rgba(245,158,11,0.1); color: var(--accent); }

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.chart-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.chart-card h4 i { color: var(--primary); }

/* ==================== INTERACTIVE MAP ==================== */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-dot.available { background: #c9a86c; }
.legend-dot.sold { background: #dc3545; }
.legend-dot.reserved { background: #e8a130; }
.legend-dot.premium { background: #8b5cf6; }

.map-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.map-ctrl {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.map-ctrl:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.map-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0a1628, #0b2a3a);
    border: 2px solid rgba(52, 152, 219, 0.2);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.map-container {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

#plotMap {
    width: 100%;
    height: auto;
    display: block;
}

#plotMap .plot-rect {
    cursor: pointer;
    transition: all 0.2s ease;
    stroke-width: 1.5;
}

#plotMap .plot-rect:hover {
    filter: brightness(1.3);
    stroke-width: 3;
    stroke: white;
}

#plotMap .plot-label {
    pointer-events: none;
    fill: white;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
}

#plotMap .plot-area-label {
    pointer-events: none;
    fill: rgba(255,255,255,0.6);
    font-size: 7px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
}

.plot-tooltip {
    position: fixed;
    z-index: 100;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    min-width: 220px;
    overflow: hidden;
}

.plot-tooltip.visible { opacity: 1; }

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
}

.tooltip-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

.tooltip-body {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.tooltip-body > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.tooltip-body i { color: var(--primary); width: 14px; text-align: center; }

/* ==================== PLOTS GRID ==================== */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-toggles {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 0.65rem 0.875rem;
    color: var(--text-muted);
    transition: all var(--transition);
    background: var(--bg-card);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.plots-count {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.plots-grid.list-view {
    grid-template-columns: 1fr;
}

/* Plot Card */
.plot-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.plot-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.plot-card-header {
    position: relative;
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.plot-card-number {
    font-size: 1.125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plot-card-number .phase-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    background: rgba(59,130,246,0.1);
    color: var(--secondary);
    font-weight: 600;
}

.plot-card-status {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available { background: rgba(201,168,108,0.1); color: #a88b50; }
.status-sold { background: rgba(220,53,69,0.1); color: #dc3545; }
.status-reserved { background: rgba(232,161,48,0.1); color: #d97706; }

.plot-card-body {
    padding: 0 1.25rem 1rem;
}

.plot-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.plot-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.plot-detail i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    font-size: 0.75rem;
}

.plot-card-price {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plot-card-price .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.plot-card-price .price-per {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.plot-card-footer {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.plot-card-footer .btn { flex: 1; font-size: 0.75rem; justify-content: center; }

.compare-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}

.compare-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* List view styles */
.plots-grid.list-view .plot-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
}

.plots-grid.list-view .plot-card-header,
.plots-grid.list-view .plot-card-body,
.plots-grid.list-view .plot-card-price,
.plots-grid.list-view .plot-card-footer {
    border: none;
    padding: 1rem;
}

.plots-grid.list-view .plot-card-details {
    display: flex;
    gap: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(201,168,108,0.12), rgba(201,168,108,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== CALCULATOR ==================== */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.calc-field {
    margin-bottom: 1.5rem;
}

.calc-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calc-field input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
}

.calc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.calc-field input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: var(--primary);
    height: 6px;
}

.calc-results {
    display: flex;
    flex-direction: column;
}

.calc-emi {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.calc-label {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.calc-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
}

.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.calc-item span:first-child { color: var(--text-secondary); }
.calc-item span:last-child { font-weight: 700; }
.calc-item.total { border-bottom: none; font-size: 1rem; }
.calc-item.total span:last-child { color: var(--primary); font-weight: 800; }

/* ==================== GALLERY ==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}

.gallery-filter:hover, .gallery-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay p {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-overlay span {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.875rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(201,168,108,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1.125rem;
}

.contact-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea { resize: vertical; }

/* ==================== FOOTER ==================== */
.footer {
    background: #0a0a0a;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(201, 168, 108, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-links h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    padding: 0.375rem 0;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.92);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-lg { max-width: 700px; }
.modal-xl { max-width: 1000px; }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body h2 i { color: var(--primary); }

/* Plot Detail Modal Styles */
.plot-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.plot-detail-title h2 {
    margin-bottom: 0.25rem;
}

.plot-detail-title .phase-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.plot-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.detail-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.detail-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.detail-item-value {
    font-weight: 700;
    font-size: 0.9375rem;
}

.plot-detail-price {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.plot-detail-price .big-price {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

.plot-detail-price .sub-text {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.plot-detail-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.amenity-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.plot-detail-actions {
    display: flex;
    gap: 0.75rem;
}

.plot-detail-actions .btn { flex: 1; justify-content: center; }

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.compare-table th {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.compare-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.compare-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    z-index: 10;
    transition: opacity 0.3s;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 0.7; }

.lightbox-content {
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    margin: 0 auto;
}

.lightbox-content p {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

/* ==================== FLOATING ELEMENTS ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all var(--transition);
    animation: pulseGreen 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateX(0); }

.toast-success i { color: var(--primary); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--secondary); }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ==================== RESPONSIVE ==================== */

/* Large tablets and small desktops */
@media (max-width: 1280px) {
    .container {
        padding: 0 1.25rem;
    }
    .nav-container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-card.wide {
        grid-column: span 1;
    }
    .chart-row {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        gap: 1.75rem;
    }
    .hero h1 {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
    .calc-container {
        gap: 1.5rem;
    }
    .modal-xl {
        max-width: 90vw;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px) saturate(180%);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        z-index: 999;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(17, 17, 17, 0.98);
        border-top-color: rgba(201, 168, 108, 0.15);
    }

    .nav-links.open { display: flex; }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .hamburger { display: flex; }

    .logo-img {
        height: 42px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat {
        padding: 0 1rem;
    }

    .hero-stat-number { font-size: 1.75rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calc-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-group select {
        flex: 1;
        min-width: 120px;
    }

    .search-box {
        min-width: auto;
        width: 100%;
    }

    .view-toggles {
        align-self: flex-start;
    }

    .plots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plots-grid.list-view .plot-card {
        grid-template-columns: 1fr;
    }

    .plots-grid.list-view .plot-card-header,
    .plots-grid.list-view .plot-card-body,
    .plots-grid.list-view .plot-card-price,
    .plots-grid.list-view .plot-card-footer {
        padding: 0.75rem 1rem;
    }

    .plots-grid.list-view .plot-card-details {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-filters {
        gap: 0.375rem;
    }

    .gallery-filter {
        padding: 0.4rem 0.875rem;
        font-size: 0.75rem;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plot-detail-grid {
        grid-template-columns: 1fr;
    }

    .plot-detail-actions {
        flex-direction: column;
    }

    .plot-detail-actions .btn {
        width: 100%;
    }

    .modal {
        max-width: 95vw;
        max-height: 85vh;
        margin: 0.5rem;
    }

    .modal-lg, .modal-xl {
        max-width: 95vw;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.25rem;
    }

    .compare-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .map-wrapper {
        border-radius: var(--radius-md);
    }

    .map-legend {
        gap: 0.75rem;
    }

    .legend-item {
        font-size: 0.8125rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1rem;
        font-size: 0.875rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 1.25rem;
        padding: 0.75rem;
    }

    .loader-logo-img {
        height: 64px;
    }

    .loader-bar {
        width: 180px;
    }

    .calc-emi .calc-value {
        font-size: 2rem;
    }

    .plot-detail-price .big-price {
        font-size: 1.5rem;
    }

    .hero-scroll {
        bottom: 1.25rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --nav-height: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 36px;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 0.5rem;
        margin-bottom: 1.75rem;
    }

    .hero-stat {
        padding: 0 0.5rem;
    }

    .hero-stat-number {
        font-size: 1.35rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-stat:not(:last-child)::after {
        display: none;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .dash-card {
        padding: 1.25rem;
    }

    .dash-card-info h3 {
        font-size: 1.375rem;
    }

    .dash-card-info p {
        font-size: 0.75rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .feature-card h3 {
        font-size: 0.9375rem;
    }

    .feature-card p {
        font-size: 0.8125rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-filters {
        gap: 0.25rem;
    }

    .gallery-filter {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card > p {
        font-size: 0.875rem;
    }

    .calc-container {
        padding: 1.25rem;
    }

    .calc-emi {
        padding: 1.25rem;
    }

    .calc-emi .calc-value {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .contact-socials {
        gap: 0.5rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .footer {
        padding-top: 2.5rem;
    }

    .footer-brand p {
        font-size: 0.8125rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-body h2 {
        font-size: 1.125rem;
    }

    .plot-detail-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .plot-detail-price {
        padding: 1.25rem;
    }

    .plot-detail-price .big-price {
        font-size: 1.375rem;
    }

    .amenity-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.625rem;
    }

    .map-controls {
        gap: 0.375rem;
    }

    .map-ctrl {
        width: 36px;
        height: 36px;
    }

    .loader-logo-img {
        height: 56px;
    }

    .loader-bar {
        width: 160px;
    }

    .loader-content p {
        font-size: 0.75rem;
    }

    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 1rem;
        left: 1rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.75rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.8125rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .plots-count {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Extra small phones (320px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        text-align: center;
    }

    .hero-stat {
        padding: 0;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .dashboard-grid {
        gap: 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .filter-group select {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 0.625rem 0.75rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        margin-bottom: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-scroll {
        display: none;
    }

    .loader-logo-img {
        height: 48px;
    }
}

/* Ultra wide screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .plots-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dash-card.wide {
        grid-column: span 2;
    }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for child elements */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Scale-in animation */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Slide from left */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slide from right */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Skeleton loader for gallery */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ==================== ENHANCED UI POLISH ==================== */

/* Glassmorphism card variant */
.dash-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

/* Subtle grid lines on sections */
.section-dark {
    background: var(--bg-secondary);
    background-image: radial-gradient(circle at 1px 1px, rgba(201,168,108,0.04) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Enhanced plot card styling */
.plot-card {
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.plot-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(201, 168, 108, 0.12);
}

/* Better focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* Enhanced section header */
.section-header h2 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .section-header h2 {
    background: linear-gradient(135deg, #f5f0e8 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat dividers in hero */
.hero-stat {
    position: relative;
    padding: 0 1.25rem;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(52, 152, 219, 0.3);
}

/* Card ribbon for premium */
.plot-card-number .phase-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: rgba(201,168,108,0.1);
    color: var(--primary);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Better testimonial cards */
.testimonial-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Chart card polish */
.chart-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
}

/* Feature card polish */
.feature-card {
    position: relative;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

/* Improved scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; opacity: 0.5; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Toast polish */
.toast {
    border-left: 4px solid var(--primary);
}

.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--primary); }

/* Loader enhanced */
.loader {
    background: #ffffff;
}

.loader-progress {
    background: linear-gradient(90deg, #2ecc71, #27ae60, #3498db);
}

/* Contact form polish */
.contact-form {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

/* Gallery item polish */
.gallery-item {
    border: 1px solid rgba(201, 168, 108, 0.08);
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    box-shadow: 0 12px 32px rgba(201, 168, 108, 0.12);
}

/* Modal polish */
.modal {
    border: 1px solid var(--border-light);
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

/* Calc EMI gradient */
.calc-emi {
    background: linear-gradient(135deg, #1a1506, #2d2510);
    border: 1px solid rgba(201,168,108,0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.calc-emi .calc-label {
    color: var(--primary-light);
}

.calc-emi .calc-value {
    color: var(--primary);
}

/* Plot detail price gradient */
.plot-detail-price {
    background: linear-gradient(135deg, #1a1506, #2d2510);
    border: 1px solid rgba(201,168,108,0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.plot-detail-price .big-price {
    color: var(--primary);
}

.plot-detail-price .sub-text {
    color: var(--primary-light);
}

/* WhatsApp button lift */
.whatsapp-float {
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}

/* Back to top with brand color */
.back-to-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #3498db);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ==================== FAQ SECTION ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(201, 168, 108, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==================== PREFERS REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
