/* =====================================================================
   EstateLoom Design System & Stylesheet
   Palette: White, Black/Dark Charcoal, Light Grey, Subtle Purple
   Typography: Google Fonts Montserrat (Mandatory)
   Strict Standards: Zero emojis, no blur blobs, high contrast, clean human design
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-page: #ffffff;
    --bg-surface: #ffffff;
    --bg-muted: #f8fafc;
    --bg-subtle: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #6b21a8;
    
    /* Subtle Purple Brand Accent */
    --primary: #6b21a8;
    --primary-hover: #581c87;
    --primary-light: #f3e8ff;
    --primary-border: #d8b4fe;
    
    /* WhatsApp Green Accent */
    --whatsapp-green: #128c7e;
    --whatsapp-hover: #075e54;
    
    /* Status Badges */
    --badge-available-bg: #ecfdf5;
    --badge-available-text: #065f46;
    --badge-rented-bg: #fff1f2;
    --badge-rented-text: #9f1239;
    --badge-sold-bg: #f3f4f6;
    --badge-sold-text: #374151;
    
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 380px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dark {
    background-color: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

.btn-dark:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-muted);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    border-color: #1eb956;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
}

.btn-md {
    padding: 10px 18px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Header Contact Button */
.header-contact-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 6px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    flex-shrink: 0;
}

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px 24px;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Hero Section (Asymmetric Modern Real Estate Layout) */
.hero-section {
    background-color: var(--bg-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 64px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
}

.hero-image-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.hero-badge-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-md);
}

.badge-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Search Bar Component */
.search-container {
    margin-top: -36px;
    position: relative;
    z-index: 20;
    margin-bottom: 48px;
}

.search-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.12);
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-alt {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.section-tagline {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 600px;
}

/* Property Grid & Card */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.property-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.property-thumb-wrap {
    position: relative;
    height: 240px;
    background-color: var(--bg-subtle);
    overflow: hidden;
}

.property-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-thumb {
    transform: scale(1.04);
}

.badge-overlay-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.property-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.tag-purpose {
    background-color: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.tag-featured {
    background-color: var(--primary);
    color: #ffffff;
}

.tag-status-available {
    background-color: #059669;
    color: #ffffff;
}

.tag-status-rented {
    background-color: #dc2626;
    color: #ffffff;
}

.tag-status-sold {
    background-color: #4b5563;
    color: #ffffff;
}

.property-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.property-type-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 6px;
}

.property-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-title a:hover {
    color: var(--primary);
}

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

.property-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.property-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.property-period {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Locations Section */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.location-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}

.location-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.location-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.location-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.location-count {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--bg-muted);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

/* WhatsApp Banner CTA */
.whatsapp-cta-section {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.whatsapp-cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-desc {
    font-size: 1.0625rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 580px;
}

.cta-actions {
    display: flex;
    justify-content: flex-end;
}

/* Footer */
.site-footer {
    background-color: #0b1120;
    color: #e2e8f0;
    border-top: 1px solid #1e293b;
    padding: 64px 0 24px;
    margin-top: auto;
}

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

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Flash Messages */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.flash-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Property Details Page Styles */
.property-details-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0 24px;
}

.details-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb-sep {
    color: var(--text-light);
}

.details-headline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.details-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.details-location-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: var(--text-muted);
}

.details-price-wrap {
    text-align: right;
    white-space: nowrap;
}

.details-price-main {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.details-period-badge {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Gallery Layout */
.gallery-section {
    padding: 32px 0 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.gallery-main-wrap {
    position: relative;
    height: 100%;
    cursor: pointer;
}

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

.gallery-side-thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.side-thumb-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

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

.side-thumb-item:hover .side-thumb-img {
    transform: scale(1.04);
}

.thumb-more-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Property Content Layout */
.property-content-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 72px;
}

.content-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.content-heading {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.specs-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

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

.spec-box-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

.spec-box-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

.property-description-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    white-space: pre-line;
}

.amenities-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}

.amenity-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-main);
}

.amenity-check {
    color: var(--primary);
    background-color: var(--primary-light);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Contact Card */
.sticky-enquiry-card {
    position: sticky;
    top: 96px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.enquiry-card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.enquiry-card-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.enquiry-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.enquiry-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.enquiry-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.property-enquiry-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    border-radius: var(--radius-md);
}

/* Filter Bar for Properties Page */
.filter-panel {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 36px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 10px;
    grid-column: span 4;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: all var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    background-color: var(--bg-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 8px;
}

.empty-state-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 460px;
    margin: 0 auto 20px;
}

/* Modal Lightbox for Images */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-content-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-badge-card {
        bottom: 16px;
        left: 16px;
    }

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

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

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

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

    .sticky-enquiry-card {
        position: static;
    }

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

    .filter-actions {
        grid-column: span 2;
    }

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

    .search-container {
        margin-top: -24px;
    }

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

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

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

    .gallery-main-wrap {
        height: 320px;
    }

    .gallery-side-thumbs {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        height: 160px;
    }

    .details-headline-row {
        flex-direction: column;
    }

    .details-price-wrap {
        text-align: left;
    }

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

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

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

    .cta-actions {
        justify-content: flex-start;
    }

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

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

/* =====================================================================
   WhatsApp Floating Chat Widget
   ===================================================================== */
.wa-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
}

.wa-toggle-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    outline: none;
}

.wa-toggle-btn:hover {
    transform: scale(1.06);
    background: #20ba5a;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wa-toggle-btn:focus-visible {
    outline: 3px solid #6b21a8;
    outline-offset: 3px;
}

.wa-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.wa-toggle-btn.open .wa-toggle-icon {
    transform: rotate(90deg);
}

.wa-toggle-ping {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.wa-toggle-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-toggle-btn:hover .wa-toggle-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* Chat Window */
.wa-chat-window {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: waSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wa-chat-window.open {
    display: flex;
}

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

/* Header */
.wa-chat-header {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #25D366;
}

.wa-header-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-header-info {
    display: flex;
    flex-direction: column;
}

.wa-chat-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
}

.wa-chat-status {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.wa-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    display: inline-block;
}

.wa-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.wa-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Body */
.wa-chat-body {
    padding: 18px;
    background: #f8fafc;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-msg-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 14px 14px 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wa-msg-sender {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 4px;
}

.wa-msg-text {
    font-size: 0.84375rem;
    color: #1e293b;
    line-height: 1.5;
}

.wa-msg-time {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

/* Chips */
.wa-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wa-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: left;
}

.wa-chip:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-1px);
}

/* Footer / Input */
.wa-chat-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.wa-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wa-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.wa-send-btn:hover {
    background: #20ba5a;
    transform: scale(1.08);
}

.wa-powered-by {
    text-align: center;
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* =====================================================================
   Page Components & Grid Systems
   ===================================================================== */
/* Contact Page Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-card {
    border-radius: var(--radius-lg);
    padding: 32px;
    box-sizing: border-box;
    max-width: 100%;
}

.contact-card-wa {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-office {
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

.contact-card-btn {
    padding: 13px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* About Page Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.about-feature-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Locations CTA Card */
.location-cta-card {
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    margin-top: 48px;
    text-align: center;
    box-sizing: border-box;
}

/* =====================================================================
   Mobile Sticky Property Contact Bar
   ===================================================================== */
.mobile-sticky-contact-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Section & Page Borders / Margins */
    .section {
        padding: 44px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-section {
        padding: 40px 0 48px;
    }

    .content-card {
        padding: 22px 18px;
        margin-bottom: 22px;
        border-radius: var(--radius-md);
    }

    .sticky-enquiry-card {
        padding: 22px 18px;
        margin-top: 24px;
        border-radius: var(--radius-md);
    }

    .property-card-body {
        padding: 18px;
    }

    .filter-panel {
        padding: 20px 16px;
        margin-bottom: 28px;
        border-radius: var(--radius-md);
    }

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

    .filter-actions {
        grid-column: span 1;
        flex-direction: column;
        gap: 8px;
    }

    .filter-actions .btn {
        width: 100%;
    }

    /* Grids on Tablet/Mobile */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .contact-card {
        padding: 22px 18px;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .location-cta-card {
        padding: 28px 18px;
        margin-top: 36px;
    }

    /* Details Page Typography */
    .details-title {
        font-size: 1.65rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .details-price-main {
        font-size: 1.85rem;
    }

    /* Mobile Sticky Contact Bar */
    .mobile-sticky-contact-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
        box-sizing: border-box;
        max-width: 100vw;
    }

    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .mobile-contact-purpose {
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.2;
    }

    .mobile-contact-price {
        font-size: 1.0625rem;
        font-weight: 800;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-contact-price small {
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .mobile-contact-cta {
        padding: 8px 14px;
        font-size: 0.8125rem;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: var(--radius-md);
        gap: 6px;
    }

    /* Page padding so bottom content isn't obscured */
    body:has(.mobile-sticky-contact-bar) {
        padding-bottom: 68px;
    }

    body:has(.mobile-sticky-contact-bar) .wa-widget-container {
        bottom: 78px;
    }
}

@media (max-width: 480px) {
    /* Header Sizing on Small Phones */
    .header-inner {
        height: 64px;
        gap: 8px;
    }

    .brand-logo {
        font-size: 1.125rem;
        letter-spacing: -0.3px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-contact-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    /* Property Cards on Small Screens */
    .property-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .property-price {
        font-size: 1.15rem;
    }

    .card-actions {
        width: 100%;
        display: flex;
        gap: 6px;
    }

    .card-actions .btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.8125rem;
        text-align: center;
    }

    /* Large Button Adaptability */
    .btn-lg {
        padding: 12px 18px;
        font-size: 0.9375rem;
    }

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

    .specs-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    .spec-box-val {
        font-size: 1.0625rem;
    }

    .wa-widget-container {
        bottom: 16px;
        right: 16px;
    }

    .wa-chat-window {
        width: calc(100vw - 32px);
        bottom: 70px;
        right: 0;
    }
}

@media (max-width: 360px) {
    /* Ultra-narrow devices (iPhone SE, etc.) */
    .header-contact-btn .header-contact-label {
        display: none;
    }

    .header-contact-btn {
        padding: 7px 9px;
    }

    .mobile-sticky-contact-bar {
        padding: 8px 12px;
        gap: 8px;
    }

    .mobile-contact-price {
        font-size: 0.9375rem;
    }

    .mobile-contact-cta {
        padding: 7px 11px;
        font-size: 0.75rem;
        gap: 4px;
    }
}
