/* ====================================================================
   PRIMEESTATE NIGERIA — COMPLETE MAIN STYLESHEET
   Version : 1.0 Final
   Stack   : Pure CSS3 (Flexbox + Grid — No Frameworks)
   Currency: Nigerian Naira (₦)
   ==================================================================== */

/* ====================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ==================================================================== */
:root {
    /* ── Colors ── */
    --color-primary:        #0a2647;
    --color-primary-dark:   #061a30;
    --color-primary-light:  #144272;
    --color-accent:         #c9a84c;
    --color-accent-dark:    #a8872d;
    --color-accent-light:   #f0d080;
    --color-secondary:      #2c74b3;
    --color-white:          #ffffff;
    --color-off-white:      #f8f9fa;
    --color-light-gray:     #e9ecef;
    --color-mid-gray:       #adb5bd;
    --color-dark-gray:      #6c757d;
    --color-text:           #212529;
    --color-text-light:     #495057;
    --color-text-muted:     #868e96;
    --color-success:        #2d6a4f;
    --color-success-bg:     #d8f3dc;
    --color-error:          #b5173a;
    --color-error-bg:       #ffe0e6;
    --color-warning:        #9a6a00;
    --color-warning-bg:     #fff3cd;
    --color-info:           #0077b6;
    --color-info-bg:        #caf0f8;
    --color-sale:           #c9a84c;
    --color-rent:           #2c74b3;
    --color-available:      #2d6a4f;
    --color-sold:           #b5173a;
    --color-rented:         #6c757d;
    --color-whatsapp:       #25d366;
    --color-whatsapp-dark:  #128c7e;

    /* ── Typography ── */
    --font-primary:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs:         0.75rem;
    --font-size-sm:         0.875rem;
    --font-size-base:       1rem;
    --font-size-md:         1.125rem;
    --font-size-lg:         1.25rem;
    --font-size-xl:         1.5rem;
    --font-size-2xl:        2rem;
    --font-size-3xl:        2.5rem;
    --font-size-4xl:        3rem;
    --font-size-5xl:        3.75rem;
    --font-weight-light:    300;
    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semi:     600;
    --font-weight-bold:     700;
    --font-weight-extra:    800;
    --font-weight-black:    900;
    --line-height-tight:    1.2;
    --line-height-snug:     1.4;
    --line-height-normal:   1.6;
    --line-height-relaxed:  1.8;

    /* ── Spacing ── */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ── Border Radius ── */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-xs:        0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.1);
    --shadow-md:        0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:        0 8px 32px rgba(0,0,0,0.15);
    --shadow-xl:        0 16px 48px rgba(0,0,0,0.2);
    --shadow-card:      0 4px 20px rgba(10,38,71,0.1);
    --shadow-card-hover:0 8px 40px rgba(10,38,71,0.18);

    /* ── Transitions ── */
    --transition-fast:   all 0.15s ease;
    --transition-base:   all 0.25s ease;
    --transition-slow:   all 0.4s ease;
    --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Layout ── */
    --container-max:          1320px;
    --container-pad:          1.5rem;
    --header-height:          80px;
    --header-height-scroll:   65px;
}

/* ====================================================================
   2. CSS RESET & BASE STYLES
   ==================================================================== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: var(--transition-base); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
button::-moz-focus-inner { border: 0; padding: 0; }
input[type="search"] { -webkit-appearance: none; }
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* ====================================================================
   3. UTILITY CLASSES
   ==================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section    { padding-block: var(--space-20); }
.section-sm { padding-block: var(--space-12); }
.section-lg { padding-block: var(--space-24); }

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-tag {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-4);
    background: rgba(201,168,76,0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(201,168,76,0.3);
}

.section-title {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--line-height-relaxed);
}

.text-center { text-align: center; }
.hidden      { display: none !important; }
.sr-only     { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
.status-available { color: var(--color-available); }
.status-sold      { color: var(--color-sold); }
.status-rented    { color: var(--color-rented); }

/* ====================================================================
   4. BUTTON STYLES
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semi);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 50%;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    transform: scale(0);
    transition: all 0.5s ease;
    pointer-events: none;
}

.btn:active::after {
    inset: -50%;
    transform: scale(1);
    opacity: 0;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-color: var(--color-whatsapp);
    font-weight: var(--font-weight-semi);
}
.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    color: var(--color-white);
}

.btn-sm  { padding: 0.5rem 1.25rem; font-size: var(--font-size-sm); }
.btn-lg  { padding: 1rem 2.5rem;    font-size: var(--font-size-md); }
.btn-block { width: 100%; }

/* ====================================================================
   5. ALERT / FLASH MESSAGES
   ==================================================================== */
.flash-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-4));
    right: var(--space-6);
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - var(--space-8));
}

.alert {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.35s ease forwards;
    border-left: 4px solid currentColor;
}

.alert i:first-child { font-size: 1.1rem; flex-shrink: 0; }
.alert span          { flex: 1; line-height: var(--line-height-snug); }

.alert-close {
    background: none; border: none; cursor: pointer;
    opacity: 0.6; transition: var(--transition-fast);
    padding: 0; flex-shrink: 0;
}
.alert-close:hover { opacity: 1; }

.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-error   { background: var(--color-error-bg);   color: var(--color-error); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.alert-info    { background: var(--color-info-bg);    color: var(--color-info); }

/* ====================================================================
   6. HEADER STYLES
   ==================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.scrolled {
    height: var(--header-height-scroll);
    box-shadow: var(--shadow-md);
}

.site-header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent) 30%, var(--color-accent) 70%, transparent);
    opacity: 0.6;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-6);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 48px; width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    line-height: 1;
}
.logo-prime  { color: var(--color-primary); }
.logo-estate { color: var(--color-accent); }

.main-nav { flex: 1; }

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.nav-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    width: 0; height: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active { color: var(--color-primary); font-weight: var(--font-weight-semi); }

.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    background: none; border: none;
}
.hamburger:hover { background: var(--color-light-gray); }

.hamburger-line {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: var(--transition-base);
    backdrop-filter: blur(4px);
}
.nav-overlay.active { display: block; opacity: 1; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%; left: var(--space-4);
    z-index: 9999;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ====================================================================
   7. HERO SECTION
   ==================================================================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary) 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,38,71,0.95) 0%, rgba(10,38,71,0.80) 50%, rgba(20,66,114,0.85) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(44,116,179,0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; }

.hero-shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.06;
}

.hero-shape-1 {
    width: 600px; height: 600px;
    background: var(--color-accent);
    top: -200px; right: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px; height: 400px;
    background: var(--color-secondary);
    bottom: -100px; left: -100px;
    animation: pulse 10s ease-in-out infinite reverse;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
    padding-block: var(--space-16);
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 780px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--color-accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-5);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, var(--font-size-5xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-5);
    color: var(--color-white);
}

.hero-title-accent { color: var(--color-accent); display: block; }

.hero-subtitle {
    font-size: clamp(var(--font-size-base), 2vw, var(--font-size-md));
    color: rgba(255,255,255,0.82);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-inline: auto;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-black);
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-1);
}

.hero-stat-divider {
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Search Box */
.hero-search-box {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 860px;
    animation: fadeInUp 0.9s ease 0.4s both;
}

.search-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: var(--space-3);
}

.search-tab {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    color: var(--color-text-light);
    border: none; background: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-tab.active,
.search-tab:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: var(--space-3);
    align-items: center;
}

.search-field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: var(--transition-base);
}

.search-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10,38,71,0.08);
}

.search-field label { color: var(--color-accent); flex-shrink: 0; font-size: 0.9rem; }

.search-field input,
.search-field select {
    border: none; background: none; outline: none;
    width: 100%;
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.search-submit {
    white-space: nowrap;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8); left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: var(--space-2);
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-xs);
    text-transform: uppercase; letter-spacing: 2px;
    z-index: 2;
    animation: fadeInUp 1s ease 1s both;
    text-decoration: none;
}
.hero-scroll-indicator i { animation: pulse 2s ease infinite; }

/* ====================================================================
   8. TYPE FILTER BAR
   ==================================================================== */
.type-filter-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
    padding-block: var(--space-4);
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    box-shadow: var(--shadow-xs);
}

.type-filter-pills {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.type-filter-pills::-webkit-scrollbar { display: none; }

.type-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    border: 1.5px solid var(--color-light-gray);
    color: var(--color-text-light);
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.type-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(10,38,71,0.04);
}

.type-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.type-pill.active-sale {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.type-pill.active-rent {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.type-pill-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    min-width: 20px; text-align: center;
}

.type-pill:not(.active) .type-pill-count {
    background: var(--color-light-gray);
    color: var(--color-text-muted);
}

/* ====================================================================
   9. PAGE HERO (Inner Pages)
   ==================================================================== */
.page-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    overflow: hidden;
}

.page-hero-sm {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
}

.page-hero-overlay {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 70% 30%, rgba(201,168,76,0.12) 0%, transparent 60%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero-content    { text-align: center; }

.page-hero-title {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-2); flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); font-size: var(--font-size-sm); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb i { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.breadcrumb span { color: var(--color-accent); font-size: var(--font-size-sm); }

/* ====================================================================
   10. PROPERTY CARDS
   ==================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
}

.property-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    display: flex; flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.card-image-wrapper {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    opacity: 1;
}

.property-card:hover .card-image-wrapper img { transform: scale(1.06); }

.card-badge {
    position: absolute; top: var(--space-4); left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase; letter-spacing: 1px;
    z-index: 2;
}

.badge-sale { background: var(--color-accent);     color: var(--color-primary); }
.badge-rent { background: var(--color-secondary);  color: var(--color-white); }

.card-status {
    position: absolute; top: var(--space-4); right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs); font-weight: var(--font-weight-semi);
    text-transform: uppercase; letter-spacing: 0.5px;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
}

.card-featured-star {
    position: absolute; bottom: var(--space-4); left: var(--space-4);
    background: var(--color-accent); color: var(--color-primary);
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; z-index: 2;
    box-shadow: var(--shadow-sm);
}

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,38,71,0.4) 0%, transparent 50%);
    opacity: 0; transition: var(--transition-base); z-index: 1;
}
.property-card:hover .card-overlay { opacity: 1; }

.card-body {
    padding: var(--space-5);
    flex: 1; display: flex; flex-direction: column;
    gap: var(--space-3);
}

.card-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    line-height: 1;
}

.card-price span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
    margin-left: var(--space-1);
}

.card-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover { color: var(--color-primary); }

.card-location {
    display: flex; align-items: center; gap: var(--space-2);
    color: var(--color-text-muted); font-size: var(--font-size-sm);
}
.card-location i { color: var(--color-accent); }

.card-features {
    display: flex; align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-light-gray);
    flex-wrap: wrap;
}

.card-feature {
    display: flex; align-items: center; gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    white-space: nowrap;
}
.card-feature i { color: var(--color-primary); font-size: 0.9rem; }

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-light-gray);
    background: var(--color-off-white);
}

.card-footer-actions { display: flex; gap: var(--space-2); }
.card-footer-actions .btn { flex: 1; }

/* ====================================================================
   11. PROPERTIES PAGE LAYOUT
   ==================================================================== */
.properties-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-6);
    position: sticky;
    top: calc(var(--header-height) + 60px);
    max-height: calc(100vh - var(--header-height) - 80px);
    overflow-y: auto;
}

.filter-sidebar-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-light-gray);
}

.filter-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    display: flex; align-items: center; gap: var(--space-2);
}

.filter-close-btn { display: none; color: var(--color-text-muted); }

.filter-group { margin-bottom: var(--space-5); }

.filter-label {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}
.filter-label i { color: var(--color-accent); width: 14px; }

.filter-input,
.filter-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-off-white);
    transition: var(--transition-base);
    outline: none;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10,38,71,0.08);
    background: var(--color-white);
}

.filter-radio-group { display: flex; flex-direction: column; gap: var(--space-2); }

.filter-radio {
    display: flex; align-items: center; gap: var(--space-2);
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}
.filter-radio:hover  { background: var(--color-off-white); }
.filter-radio input  { accent-color: var(--color-primary); }

.price-range-inputs {
    display: flex; align-items: center; gap: var(--space-2);
}
.price-range-sep { color: var(--color-text-muted); flex-shrink: 0; }
.price-range-inputs .filter-input { width: 50%; }

.filter-actions {
    display: flex; flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* Results Header */
.results-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.results-count { font-size: var(--font-size-base); color: var(--color-text-light); }
.results-num   { font-size: var(--font-size-xl); font-weight: var(--font-weight-black); color: var(--color-primary); margin-right: var(--space-1); }
.results-filtered { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-left: var(--space-2); }
.clear-filters-link { color: var(--color-error); font-size: var(--font-size-xs); margin-left: var(--space-1); }

.filter-toggle-btn { display: none; position: relative; }

.filter-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--color-accent); color: var(--color-primary);
    font-size: 0.65rem; font-weight: var(--font-weight-bold);
    width: 18px; height: 18px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
}

/* Active Filter Tags */
.active-filters {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.filter-tag {
    display: inline-flex; align-items: center; gap: var(--space-2);
    background: rgba(10,38,71,0.06);
    border: 1px solid rgba(10,38,71,0.15);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}
.filter-tag-remove { color: var(--color-text-muted); transition: var(--transition-fast); }
.filter-tag-remove:hover { color: var(--color-error); }

/* Filter Overlay Mobile */
.filter-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    backdrop-filter: blur(4px);
}
.filter-overlay.active { display: block; }

/* ====================================================================
   12. CATEGORIES SECTION
   ==================================================================== */
.categories-section {
    background: var(--color-off-white);
    position: relative; overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: var(--radius-full);
    background: rgba(201,168,76,0.05);
    top: -150px; right: -100px;
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-4);
}

.category-card {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--color-white);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    text-decoration: none; color: var(--color-text);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--color-white);
    margin-bottom: var(--space-4);
    transition: var(--transition-base);
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.category-name   { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); margin-bottom: var(--space-1); }
.category-count  { font-size: var(--font-size-xs); color: var(--color-text-muted); transition: var(--transition-base); }
.category-card:hover .category-count { color: rgba(255,255,255,0.75); }

/* ====================================================================
   13. WHY CHOOSE US SECTION
   ==================================================================== */
.why-section { background: var(--color-off-white); }

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.why-features { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-8); }

.why-feature { display: flex; gap: var(--space-4); align-items: flex-start; }

.why-feature-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 1.1rem;
}

.why-feature-text h4 { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-primary); margin-bottom: var(--space-1); }
.why-feature-text p  { font-size: var(--font-size-sm); color: var(--color-text-light); }

.why-image-stack { position: relative; }

.why-img-main {
    border-radius: var(--radius-2xl); overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.why-img-main img { width: 100%; height: 100%; object-fit: cover; }

.why-badge {
    position: absolute;
    display: flex; align-items: center; gap: var(--space-3);
    background: var(--color-white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.why-badge i { font-size: 1.5rem; color: var(--color-accent); }
.why-badge div { display: flex; flex-direction: column; }
.why-badge strong { font-size: var(--font-size-base); color: var(--color-primary); font-weight: var(--font-weight-bold); }
.why-badge span   { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.why-badge-1 { top: var(--space-8); left: calc(-1 * var(--space-8)); }
.why-badge-2 { bottom: var(--space-8); right: calc(-1 * var(--space-8)); }

/* ====================================================================
   14. STATS SECTION
   ==================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding-block: var(--space-16);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stat-item { text-align: center; color: var(--color-white); }
.stat-icon { font-size: 2rem; color: var(--color-accent); margin-bottom: var(--space-3); }
.stat-num  { font-size: var(--font-size-3xl); font-weight: var(--font-weight-black); color: var(--color-white); line-height: 1; margin-bottom: var(--space-2); }
.stat-label{ font-size: var(--font-size-sm); color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; }

/* ====================================================================
   15. TESTIMONIALS SECTION
   ==================================================================== */
.testimonials-section {
    background: var(--color-off-white);
    position: relative; overflow: hidden;
}

.testimonials-section::before {
    content: '"';
    position: absolute;
    font-size: 20rem; font-weight: 900;
    color: rgba(10,38,71,0.03);
    top: -40px; left: -20px;
    line-height: 1; pointer-events: none;
    font-family: Georgia, serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition-base);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.testimonial-quote { font-size: 2rem; color: var(--color-accent); opacity: 0.4; line-height: 1; margin-bottom: var(--space-4); }
.testimonial-text  { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: var(--line-height-relaxed); margin-bottom: var(--space-5); font-style: italic; }
.testimonial-rating{ color: var(--color-accent); margin-bottom: var(--space-5); font-size: 0.85rem; }
.testimonial-author{ display: flex; align-items: center; gap: var(--space-3); }

.testimonial-avatar {
    width: 48px; height: 48px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
    color: var(--color-white); flex-shrink: 0;
}

.testimonial-info strong { display: block; font-size: var(--font-size-base); color: var(--color-text); }
.testimonial-info span   { font-size: var(--font-size-xs); color: var(--color-text-muted); }

/* ====================================================================
   16. CTA SECTION
   ==================================================================== */
.cta-section {
    position: relative;
    padding-block: var(--space-20);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
    overflow: hidden;
}

.cta-overlay {
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="150" cy="50" r="100" fill="rgba(201,168,76,0.05)"/><circle cx="50" cy="150" r="80" fill="rgba(44,116,179,0.06)"/></svg>');
    background-size: cover;
}

.cta-inner   { position: relative; z-index: 1; }
.cta-content { text-align: center; color: var(--color-white); }

.cta-title {
    font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-4);
}

.cta-desc {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-8);
    max-width: 560px; margin-inline: auto;
}

.cta-actions {
    display: flex; gap: var(--space-4);
    justify-content: center; flex-wrap: wrap;
}

.section-cta { text-align: center; margin-top: var(--space-10); }

/* ====================================================================
   17. PROPERTY DETAIL PAGE
   ==================================================================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
}

.detail-badges {
    display: flex; align-items: center;
    gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap;
}

.badge-lg { padding: var(--space-2) var(--space-5); font-size: var(--font-size-sm); }

.detail-status {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--font-size-sm); font-weight: var(--font-weight-semi);
    padding: var(--space-2) var(--space-4);
    background: var(--color-off-white);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-light-gray);
}

.detail-featured-badge {
    display: flex; align-items: center; gap: var(--space-1);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary);
    font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

/* Gallery */
.property-gallery { margin-bottom: var(--space-8); }

.gallery-main-wrapper {
    position: relative;
    border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-light-gray);
    margin-bottom: var(--space-3);
}

.gallery-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.9);
    border: none; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    font-size: 0.9rem;
}
.gallery-nav:hover { background: var(--color-primary); color: var(--color-white); }
.gallery-prev { left: var(--space-4); }
.gallery-next { right: var(--space-4); }

.gallery-counter {
    position: absolute; bottom: var(--space-4); right: var(--space-4);
    background: rgba(0,0,0,0.55); color: var(--color-white);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.gallery-thumbs {
    display: flex; gap: var(--space-2);
    overflow-x: auto; padding-bottom: var(--space-2);
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0; width: 90px; height: 70px;
    border-radius: var(--radius-md); overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer; transition: var(--transition-base);
    background: none; padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--color-primary); }

/* Fullscreen Gallery Modal */
.gallery-fullscreen-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition-base);
}
.gallery-fullscreen-overlay.active { opacity: 1; visibility: visible; }

.gallery-fullscreen-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.gallery-fullscreen-close,
.gallery-fullscreen-prev,
.gallery-fullscreen-next {
    position: absolute;
    width: 52px; height: 52px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; border: none;
    transition: var(--transition-base);
    backdrop-filter: blur(8px);
}
.gallery-fullscreen-close { top: var(--space-6); right: var(--space-6); }
.gallery-fullscreen-prev  { top: 50%; left: var(--space-6);  transform: translateY(-50%); }
.gallery-fullscreen-next  { top: 50%; right: var(--space-6); transform: translateY(-50%); }
.gallery-fullscreen-close:hover,
.gallery-fullscreen-prev:hover,
.gallery-fullscreen-next:hover { background: rgba(255,255,255,0.25); }

/* Detail Info */
.detail-info-block {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-6);
}

.detail-title-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: var(--space-4);
    margin-bottom: var(--space-5); flex-wrap: wrap;
}

.detail-title {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-2);
}

.detail-location {
    display: flex; align-items: center; gap: var(--space-2);
    color: var(--color-text-muted); font-size: var(--font-size-sm);
}
.detail-location i { color: var(--color-accent); }
.detail-price-block { text-align: right; flex-shrink: 0; }

.detail-price {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
}

.detail-price-period { font-size: var(--font-size-sm); color: var(--color-text-muted); }

.detail-pills {
    display: flex; flex-wrap: wrap; gap: var(--space-3);
}

.detail-pill {
    display: flex; align-items: center; gap: var(--space-2);
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm); color: var(--color-text-light);
}
.detail-pill i { color: var(--color-primary); }

/* Detail Blocks */
.detail-section-block {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-6);
}

.detail-section-heading {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-light-gray);
    display: flex; align-items: center; gap: var(--space-3);
}
.detail-section-heading i { color: var(--color-accent); }

.detail-description {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
}

/* WhatsApp Inquiry Section */
.wa-inquiry-section {
    background: linear-gradient(135deg, rgba(37,211,102,0.08) 0%, rgba(37,211,102,0.04) 100%);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    margin-top: var(--space-6);
}
.wa-inquiry-icon  { font-size: 2.5rem; color: var(--color-whatsapp); margin-bottom: var(--space-3); }
.wa-inquiry-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-primary); margin-bottom: var(--space-2); }
.wa-inquiry-desc  { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }

/* Detail Table */
.detail-table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1);
}

.detail-table-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    background: var(--color-off-white);
}

.detail-table-label { color: var(--color-text-muted); font-weight: var(--font-weight-medium); }
.detail-table-value { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--font-weight-semi); color: var(--color-text); }
.detail-table-value i { color: var(--color-accent); font-size: 0.85rem; }
.detail-price-cell  { color: var(--color-primary); font-weight: var(--font-weight-bold); }

/* Detail Sidebar */
.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    display: flex; flex-direction: column; gap: var(--space-5);
}

.sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
}

.sidebar-price { font-size: var(--font-size-2xl); font-weight: var(--font-weight-black); color: var(--color-primary); margin-bottom: var(--space-1); }
.sidebar-price small { font-size: var(--font-size-sm); color: var(--color-text-muted); font-weight: normal; }
.sidebar-price-label { font-size: var(--font-size-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-5); }

/* Share buttons */
.sidebar-share {
    margin-top: var(--space-5); padding-top: var(--space-4);
    border-top: 1px solid var(--color-light-gray);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
.sidebar-share span { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.share-buttons      { display: flex; gap: var(--space-2); }

.share-btn {
    width: 36px; height: 36px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 0.8rem;
    transition: var(--transition-base); text-decoration: none;
}
.share-facebook  { background: #1877f2; }
.share-twitter   { background: #000; }
.share-whatsapp  { background: var(--color-whatsapp); }
.share-btn:hover { transform: translateY(-2px); opacity: 0.85; color: var(--color-white); }

/* Copy link button */
.copy-link-btn {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-size: var(--font-size-sm); color: var(--color-text-muted);
    background: none; border: none; cursor: pointer;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.copy-link-btn:hover { color: var(--color-primary); background: var(--color-off-white); }

/* Summary Card */
.sidebar-card-title {
    font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-primary);
    margin-bottom: var(--space-4);
    display: flex; align-items: center; gap: var(--space-2);
    padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-light-gray);
}
.sidebar-card-title i { color: var(--color-accent); }

.summary-list { display: flex; flex-direction: column; }
.summary-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-light-gray);
    font-size: var(--font-size-sm); gap: var(--space-3);
}
.summary-list li:last-child { border-bottom: none; }
.summary-list li > span:first-child { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); }
.summary-list li > span:first-child i { color: var(--color-accent); width: 14px; }

/* Related */
.related-section { margin-top: var(--space-12); }

/* ====================================================================
   18. ABOUT PAGE
   ==================================================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-2xl); overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.about-exp-badge {
    position: absolute; bottom: var(--space-8); right: calc(-1 * var(--space-6));
    background: var(--color-accent); color: var(--color-primary);
    text-align: center; padding: var(--space-5);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.about-exp-num   { display: block; font-size: var(--font-size-3xl); font-weight: var(--font-weight-black); line-height: 1; }
.about-exp-label { font-size: var(--font-size-xs); font-weight: var(--font-weight-semi); }

.about-highlights { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.about-highlight  { display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-size-sm); color: var(--color-text-light); }
.about-highlight i { color: var(--color-accent); font-size: 1rem; flex-shrink: 0; }

/* Mission */
.mission-section { background: var(--color-off-white); }
.mission-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.mission-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-base);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.mission-card:nth-child(1) { border-top: 4px solid var(--color-primary); }
.mission-card:nth-child(2) { border-top: 4px solid var(--color-accent); }
.mission-card:nth-child(3) { border-top: 4px solid var(--color-secondary); }

.mission-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--color-white);
    margin: 0 auto var(--space-5);
}

.mission-card:nth-child(2) .mission-icon { background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent)); color: var(--color-primary); }
.mission-card:nth-child(3) .mission-icon { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary-light)); }

.mission-card h3 { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); color: var(--color-primary); margin-bottom: var(--space-3); }
.mission-card p  { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: var(--line-height-relaxed); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.team-card {
    background: var(--color-white);
    border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-card); text-align: center;
    transition: var(--transition-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.team-avatar {
    width: 80px; height: 80px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-size-xl); font-weight: var(--font-weight-black);
    color: var(--color-white); margin: 0 auto var(--space-4);
}

.team-name { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-primary); margin-bottom: var(--space-1); }
.team-role { font-size: var(--font-size-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ====================================================================
   19. CONTACT PAGE
   ==================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info-cards { display: flex; flex-direction: column; gap: var(--space-4); }

.contact-info-card {
    display: flex; gap: var(--space-4); align-items: flex-start;
    padding: var(--space-5);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}
.contact-info-card:hover { transform: translateX(4px); box-shadow: var(--shadow-card-hover); }
.contact-info-card-whatsapp { border-left: 4px solid var(--color-whatsapp); }

.contact-info-icon {
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 1.1rem; flex-shrink: 0;
}
.whatsapp-icon { background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark)); }

.contact-info-text h4 { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-primary); margin-bottom: var(--space-1); }
.contact-info-text p, .contact-info-text a { font-size: var(--font-size-sm); color: var(--color-text-light); }
.contact-info-text a:hover { color: var(--color-primary); }

.contact-form-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
}

.contact-form-title {
    font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); color: var(--color-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-light-gray);
}

/* Form Styles */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.form-group { margin-bottom: var(--space-4); }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block; font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi); color: var(--color-text);
    margin-bottom: var(--space-2);
}
.required { color: var(--color-error); }

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base); color: var(--color-text);
    background: var(--color-off-white);
    transition: var(--transition-base); outline: none;
    font-family: inherit;
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10,38,71,0.08);
    background: var(--color-white);
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* ====================================================================
   20. PAGINATION
   ==================================================================== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-2); margin-top: var(--space-12); flex-wrap: wrap;
}

.page-btn {
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    transition: var(--transition-base); text-decoration: none; cursor: pointer;
}
.page-btn:hover, .page-btn.active {
    background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary);
}
.page-dots { color: var(--color-text-muted); padding-inline: var(--space-2); }

/* ====================================================================
   21. FOOTER
   ==================================================================== */
.site-footer { background: var(--color-primary); color: var(--color-white); margin-top: auto; }
.footer-top  { padding-block: var(--space-16); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
}

.footer-logo-img { height: 44px; width: auto; object-fit: contain; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.footer-logo-text { display: inline-block; font-size: var(--font-size-xl); font-weight: var(--font-weight-black); margin-bottom: var(--space-4); }
.footer-logo-text .logo-prime  { color: var(--color-white); }
.footer-logo-text .logo-estate { color: var(--color-accent); }

.footer-desc { font-size: var(--font-size-sm); color: rgba(255,255,255,0.7); line-height: var(--line-height-relaxed); margin-bottom: var(--space-5); }

.footer-social { display: flex; gap: var(--space-3); }

.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1); color: var(--color-white);
    font-size: 0.9rem; transition: var(--transition-base);
    border: 1px solid rgba(255,255,255,0.15);
}
.social-link:hover { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); transform: translateY(-3px); }
.social-link.whatsapp:hover { background: var(--color-whatsapp); border-color: var(--color-whatsapp); color: var(--color-white); }

.footer-heading {
    font-size: var(--font-size-md); font-weight: var(--font-weight-bold); color: var(--color-white);
    margin-bottom: var(--space-6);
    position: relative; padding-bottom: var(--space-3);
}
.footer-heading::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 36px; height: 3px; background: var(--color-accent); border-radius: var(--radius-full);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); color: rgba(255,255,255,0.7); transition: var(--transition-base); }
.footer-links a i { font-size: 0.7rem; color: var(--color-accent); flex-shrink: 0; }
.footer-links a:hover { color: var(--color-accent); padding-left: var(--space-1); }

.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--font-size-sm); color: rgba(255,255,255,0.75); }
.footer-contact-list li i { color: var(--color-accent); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.75); }
.footer-contact-list a:hover { color: var(--color-accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--space-5); }

.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-4);
}

.copyright, .footer-credit { font-size: var(--font-size-sm); color: rgba(255,255,255,0.6); }

/* ====================================================================
   22. FLOATING WHATSAPP & SCROLL TOP
   ==================================================================== */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 58px; height: 58px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; z-index: 998;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: var(--transition-spring);
    text-decoration: none;
    animation: whatsappPulse 3s ease infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.6);
    color: var(--color-white);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute; right: calc(100% + 12px);
    background: var(--color-primary); color: var(--color-white);
    font-size: var(--font-size-xs); font-weight: var(--font-weight-semi);
    padding: var(--space-1) var(--space-3); border-radius: var(--radius-md);
    white-space: nowrap; opacity: 0; visibility: hidden;
    transition: var(--transition-base); pointer-events: none;
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: var(--color-primary); border-right: 0;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }

.scroll-top {
    position: fixed; bottom: 6rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--color-primary); color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; z-index: 997;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    border: none; cursor: pointer;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover   { background: var(--color-accent); color: var(--color-primary); transform: translateY(-3px); }

/* ====================================================================
   23. PAGE LOADER
   ==================================================================== */
.page-loader {
    position: fixed; inset: 0;
    background: var(--color-white); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: var(--space-4);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.page-loader-logo { font-size: var(--font-size-2xl); font-weight: var(--font-weight-black); }
.page-loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--color-light-gray);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* ====================================================================
   24. TOAST NOTIFICATION
   ==================================================================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-4));
    right: var(--space-6); z-index: 9999;
    display: flex; flex-direction: column; gap: var(--space-3);
    max-width: 380px; width: calc(100% - var(--space-8));
}

.toast {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
    animation: slideInRight 0.35s ease forwards;
    border-left: 4px solid currentColor;
}
.toast-success { background: var(--color-success-bg); color: var(--color-success); }
.toast-error   { background: var(--color-error-bg);   color: var(--color-error); }
.toast-info    { background: var(--color-info-bg);     color: var(--color-info); }
.toast-warning { background: var(--color-warning-bg);  color: var(--color-warning); }

/* ====================================================================
   25. ANIMATIONS
   ==================================================================== */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

@keyframes shimmer {
    from { background-position: -200% 0; }
    to   { background-position:  200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.15); }
}

/* ====================================================================
   26. ANIMATE ON SCROLL
   ==================================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animated { opacity: 1; transform: translateY(0); }

/* ====================================================================
   27. NO RESULTS STATE
   ==================================================================== */
.no-results {
    text-align: center;
    padding: var(--space-20);
    grid-column: 1 / -1;
}
.no-results-icon { font-size: 4rem; color: var(--color-light-gray); margin-bottom: var(--space-5); }
.no-results h3   { font-size: var(--font-size-xl); color: var(--color-text-light); margin-bottom: var(--space-3); }
.no-results p    { color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* ====================================================================
   28. SCROLLBAR
   ==================================================================== */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-off-white); }
::-webkit-scrollbar-thumb { background: var(--color-mid-gray); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
* { scrollbar-width: thin; scrollbar-color: var(--color-mid-gray) var(--color-off-white); }

/* ====================================================================
   29. FOCUS STYLES (Accessibility)
   ==================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ====================================================================
   30. PRINT STYLES
   ==================================================================== */
@media print {
    .site-header, .site-footer, .whatsapp-float,
    .scroll-top, .filter-sidebar, .breadcrumb,
    .card-footer, .related-section { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .detail-layout { grid-template-columns: 1fr; }
    .gallery-thumbs { display: none; }
}

/* ====================================================================
   31. RESPONSIVE BREAKPOINTS
   ==================================================================== */

/* Large Desktop 1440px+ */
@media (min-width: 1440px) {
    :root { --container-max: 1440px; }
    .properties-grid    { grid-template-columns: repeat(3, 1fr); }
    .categories-grid    { grid-template-columns: repeat(8, 1fr); }
}

/* Desktop 1024px–1199px */
@media (max-width: 1199px) {
    .footer-grid    { grid-template-columns: 1fr 1fr; }
    .team-grid      { grid-template-columns: repeat(2, 1fr); }
    .why-badge-1    { left: calc(-1 * var(--space-4)); }
    .why-badge-2    { right: calc(-1 * var(--space-4)); }
}

/* Tablet 768px–1023px */
@media (max-width: 1023px) {
    .hamburger        { display: flex; }
    .header-cta       { display: none; }
    .filter-toggle-btn { display: inline-flex; }

    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: min(320px, 85vw); height: 100dvh;
        background: var(--color-primary);
        z-index: 1001; padding: var(--space-16) var(--space-8) var(--space-8);
        transition: var(--transition-base); overflow-y: auto; flex: none;
    }
    .main-nav.open { right: 0; }

    .nav-list { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

    .nav-link { color: rgba(255,255,255,0.85); padding: var(--space-3) var(--space-4); width: 100%; border-radius: var(--radius-md); font-size: var(--font-size-md); }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { color: var(--color-accent); background: rgba(255,255,255,0.08); }

    .search-fields          { grid-template-columns: 1fr 1fr; }
    .search-submit          { grid-column: 1 / -1; }
    .properties-page-layout { grid-template-columns: 1fr; }

    .filter-sidebar {
        position: fixed; top: 0; left: -100%;
        width: min(320px, 90vw); height: 100dvh;
        border-radius: 0; z-index: 1002;
        transition: left var(--transition-base);
        max-height: 100dvh;
    }
    .filter-sidebar.open { left: 0; }
    .filter-close-btn    { display: flex; }

    .detail-layout  { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .about-layout   { grid-template-columns: 1fr; }
    .about-exp-badge { right: var(--space-4); }
    .why-inner      { grid-template-columns: 1fr; }
    .why-image-side { display: none; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .mission-grid   { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }

    .type-filter-bar { top: var(--header-height-scroll); }
}

/* Mobile 480px–767px */
@media (max-width: 767px) {
    :root { --container-pad: 1rem; --space-20: 3.5rem; --space-24: 4.5rem; }

    .properties-grid   { grid-template-columns: 1fr; }
    .footer-grid       { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .hero-stats        { gap: var(--space-4); }
    .hero-stat-divider { display: none; }
    .search-fields     { grid-template-columns: 1fr; }
    .hero-search-box   { padding: var(--space-4); }
    .categories-grid   { grid-template-columns: repeat(2, 1fr); }
    .stats-grid        { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .detail-title-row  { flex-direction: column; }
    .detail-price-block { text-align: left; }
    .detail-table-grid { grid-template-columns: 1fr; }
    .form-row          { grid-template-columns: 1fr; }
    .team-grid         { grid-template-columns: repeat(2, 1fr); }
    .cta-actions       { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .cta-actions .btn  { text-align: center; justify-content: center; }
    .type-pill-count   { display: none; }

    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
    .scroll-top     { bottom: 5rem; right: 1.25rem; }
}

/* Very Small 320px–479px */
@media (max-width: 480px) {
    :root { --container-pad: 0.875rem; --font-size-base: 0.9375rem; }
    .hero-title      { font-size: 1.75rem; }
    .footer-grid     { grid-template-columns: 1fr; }
    .team-grid       { grid-template-columns: 1fr; }
    .btn             { padding: 0.625rem 1.25rem; }
    .card-price      { font-size: var(--font-size-lg); }
    .hero-tag        { font-size: 0.65rem; }
    .mission-grid    { grid-template-columns: 1fr; }
}


/* ====================================================================
   PROPERTY VIDEO SECTION — Frontend Styles
   ==================================================================== */

.property-video-section { margin-top: var(--space-6); }

.video-item-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.video-item-title i { color: var(--color-accent); }

/* Uploaded Video Player */
.video-player-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-card);
}

.property-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Play Overlay */
.video-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: var(--transition-base);
    cursor: pointer;
}

.video-player-overlay.hidden { display: none; }

.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.95);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-spring);
    padding-left: 4px;
    box-shadow: var(--shadow-lg);
}

.video-play-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.video-file-badge {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: var(--font-size-xs);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(8px);
}

/* YouTube / Vimeo Embed */
.video-embed-wrapper { margin-bottom: var(--space-3); }

.video-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-card);
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* YouTube Facade (click to load) */
.yt-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-facade-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.yt-facade-overlay:hover { background: rgba(0,0,0,0.15); }

.yt-play-btn {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: #ff0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-spring);
    box-shadow: 0 4px 20px rgba(255,0,0,0.4);
}

.yt-facade-overlay:hover .yt-play-btn {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(255,0,0,0.5);
}

/* Video Source Note */
.video-source-note {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.video-source-note a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semi);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.video-source-note a:hover { color: var(--color-accent); }

/* Property Video Item */
.property-video-item {
    margin-bottom: var(--space-6);
}

.property-video-item:last-child { margin-bottom: 0; }

/* Video Not Found */
.video-not-found-notice {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-warning-bg);
    border: 1px solid rgba(154,106,0,0.3);
    border-radius: var(--radius-lg);
    color: var(--color-warning);
    font-size: var(--font-size-sm);
}

/* Responsive */
@media (max-width: 767px) {
    .video-play-btn { width: 56px; height: 56px; font-size: 1.25rem; }
    .yt-play-btn    { width: 56px; height: 56px; font-size: 1.5rem; }
}