/* Warasat Real Estate — main stylesheet */
:root {
    --c-primary: #0E5C3F;
    --c-primary-dark: #094530;
    --c-primary-soft: #E8F2EC;
    --c-accent: #C9A227;
    --c-accent-soft: #FDF6E3;
    --c-bg: #F8F7F2;
    --c-surface: #ffffff;
    --c-text: #1F2937;
    --c-muted: #6B7280;
    --c-border: #E5E7EB;
    --c-sale: #16A34A;
    --c-rent: #2563EB;
    --c-sold: #B91C1C;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --shadow: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, .09);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
    --shadow-glow: 0 18px 40px -10px rgba(14, 92, 63, .35);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --t-fast: .18s;
    --t-med: .32s;
    --t-slow: .55s;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px; line-height: 1.6;
    color: var(--c-text); background: var(--c-bg);
}
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--c-primary-dark); margin: 0 0 .6em; line-height: 1.2; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-header.center { text-align: center; justify-content: center; align-items: center; flex-direction: column; }
.section-header.light h2 { color: white; }
.section-header h2 { margin: 0; font-size: 2rem; }
.center { text-align: center; }
.urdu {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    font-size: 1.4rem;
    line-height: 2.4;
    font-weight: 500;
}
.quran, .arabic {
    font-family: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;
    direction: rtl;
    font-size: 2rem;
    line-height: 2.2;
    font-weight: 400;
    letter-spacing: .02em;
}
.bg-soft { background: #FBFAF5; }
.bg-primary { background: var(--c-primary); color: white; }
.light { color: white; }
.light h3 { color: white; }
.link { font-weight: 500; }

/* Header */
.site-header {
    background: var(--c-surface);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-primary-dark); font-weight: 700; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-primary); color: white;
    display: grid; place-items: center; font-weight: 700;
    font-family: 'Playfair Display', serif; font-size: 1.2rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--c-text); font-weight: 500; }
.main-nav a:hover { color: var(--c-primary); }
.nav-cta {
    background: var(--c-primary); color: white !important;
    padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--c-primary-dark); }
.nav-toggle {
    display: none; background: none; border: 0;
    font-size: 1.4rem; color: var(--c-primary);
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--c-surface); padding: 24px;
        flex-direction: column; align-items: stretch; gap: 14px;
        box-shadow: var(--shadow-lg); display: none;
    }
    body.nav-open .main-nav { display: flex; }
}

/* ============================================================
   HERO — centered, background image, prominent Qur'anic verse
   ============================================================ */
.hero {
    --hero-img: url('../images/site/hero-bg.png');
    position: relative;
    color: white;
    padding: clamp(80px, 11vw, 160px) 0 clamp(70px, 9vw, 130px);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
/* Background image layer — the texture/photo. Made fully visible. */
.hero-bg {
    position: absolute; inset: 0; z-index: -3;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroBgZoom 24s ease-in-out infinite alternate;
    /* No opacity reduction — show the texture in full */
}
@keyframes heroBgZoom {
    from { transform: scale(1.02) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, -1%); }
}
/* Subtle dark overlay — only enough to ensure white text stays readable.
   Significantly reduced from the prior 35→75% gradient so the underlying
   hero-bg.png texture is clearly visible. */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 600px at 50% 0%, rgba(201, 162, 39, .12), transparent 65%),
        linear-gradient(180deg, rgba(7, 41, 28, .25) 0%, rgba(9, 69, 48, .35) 60%, rgba(7, 41, 28, .45) 100%);
}
/* No SVG pattern overlay on top of the texture — it muddies the image. */
/* Soft vignette only at the very edges to focus attention. */
.hero-vignette {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, rgba(0, 0, 0, .35) 100%);
}

.hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 233, 168, .35);
    border-radius: 999px;
    color: #ffe9a8;
    font-size: .82rem; font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    margin-bottom: 26px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
}
.hero-eyebrow i { color: #ffe9a8; }

/* Quranic verse — centerpiece */
.hero-verse-wrap {
    position: relative;
    padding: 30px 36px 28px;
    margin: 0 auto 32px;
    max-width: 760px;
    background: linear-gradient(135deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .22));
    border: 1px solid rgba(255, 233, 168, .35);
    border-radius: 22px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, .55),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
    animation: verseGlow 6s ease-in-out infinite;
}
@keyframes verseGlow {
    0%, 100% { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 0 rgba(255, 233, 168, 0); }
    50%      { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 233, 168, .12), 0 0 32px -6px rgba(255, 233, 168, .25); }
}
.hero-verse-wrap::before,
.hero-verse-wrap::after {
    content: ""; position: absolute;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 233, 168, .8), transparent);
    left: 50%; transform: translateX(-50%);
}
.hero-verse-wrap::before { top: 14px; }
.hero-verse-wrap::after  { bottom: 14px; }
.hero-verse-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #E2B83A, #C9A227);
    color: #3d2f06;
    font-size: .72rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 10px 24px -6px rgba(201, 162, 39, .65);
    white-space: nowrap;
}
.hero-verse-tag i { font-size: .75rem; }
.hero-verse {
    font-family: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;
    direction: rtl;
    unicode-bidi: isolate;
    font-size: clamp(1.55rem, 1.8vw + 1rem, 2.4rem);
    line-height: 2.1;
    margin: 0;
    color: #fff8e1;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .75),
        0 0 30px rgba(255, 233, 168, .25);
    letter-spacing: .01em;
    font-weight: 400;
    text-align: center;
}

/* Heading + sub */
.hero h1 {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 2.8vw + 1rem, 3.4rem);
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -.01em;
    max-width: 880px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .5);
}
.hero h1 .hl {
    background: linear-gradient(90deg, #ffe9a8 0%, #E2B83A 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.hero-sub {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    unicode-bidi: isolate;
    font-size: clamp(1.1rem, 1vw + .85rem, 1.55rem);
    line-height: 2.6;
    margin: 0 0 14px;
    color: #fff8e1;
    max-width: 720px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hero-lede {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 6px auto 30px;
    max-width: 620px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* Trust row */
.hero-trust {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 22px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .88);
    font-size: .92rem; font-weight: 500;
}
.hero-trust span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-trust i { color: #ffe9a8; }

/* Search bar — centered, glass */
.search-bar {
    background: rgba(255, 255, 255, .97);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px; padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 233, 168, .15);
    max-width: 820px; width: 100%;
    margin: 0 auto;
}
.search-bar > * { min-width: 0; }
.search-bar input, .search-bar select {
    border: 1px solid var(--c-border); border-radius: 10px;
    padding: 13px 14px; font: inherit;
    background: #fafaf5; color: var(--c-text);
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.search-bar input:focus, .search-bar select:focus {
    outline: none; background: white;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .14);
}
.search-bar .btn { padding: 12px 22px; }

@media (max-width: 760px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
    .search-bar input[type=text] { grid-column: 1 / -1; }
    .search-bar .btn { grid-column: 1 / -1; }
    .hero-verse-wrap { padding: 26px 22px 24px; }
}
@media (max-width: 460px) {
    .search-bar { grid-template-columns: 1fr; }
    .hero-trust { gap: 8px 12px; }
    .hero-trust span { padding: 5px 10px; font-size: .82rem; }
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Property card */
.property-card {
    background: var(--c-surface); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card-image {
    position: relative; aspect-ratio: 1 / 1; display: block; overflow: hidden;
    background: #f0f0e6;
}
.property-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .property-card-image img { transform: scale(1.05); }
.badge {
    position: absolute; top: 12px; left: 12px;
    padding: 5px 12px; border-radius: 999px;
    color: white; font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.badge-featured {
    background: linear-gradient(135deg, #C9A227, #E2B83A);
    top: 12px; left: auto; right: 12px;
}
.badge-sale { background: var(--c-sale); }
.badge-rent { background: var(--c-rent); }
.badge-sold { background: var(--c-sold); }

.property-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-card-body h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; margin: 0; line-height: 1.3; }
.property-card-body h3 a { color: var(--c-text); }
.property-card-body h3 a:hover { color: var(--c-primary); }
.property-card-body .location { color: var(--c-muted); font-size: 0.92rem; margin: 0; }
.property-meta { display: flex; gap: 14px; color: var(--c-muted); font-size: .88rem; flex-wrap: wrap; }
.property-meta i { color: var(--c-primary); margin-right: 4px; }
.property-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-border);
}
.property-card-footer .price { color: var(--c-primary-dark); font-size: 1.05rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px; border: 0;
    font: inherit; font-weight: 600; cursor: pointer; text-align: center;
    transition: background .15s, transform .1s;
}
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-primary { background: var(--c-primary); color: white; }
.btn-primary:hover { background: var(--c-primary-dark); color: white; }
.btn-accent { background: var(--c-accent); color: #1F2937; }
.btn-accent:hover { background: #b08e1f; color: white; }
.btn-ghost { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: white; }
.btn-danger { background: var(--c-sold); color: white; }
.btn-danger:hover { background: #8a1313; color: white; }
.btn.block { display: flex; width: 100%; }

/* Type/location cards */
.type-card, .location-card {
    background: var(--c-surface); padding: 28px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow); color: var(--c-text);
    transition: transform .15s;
}
.type-card:hover, .location-card:hover { transform: translateY(-4px); color: var(--c-primary-dark); }
.type-card i { font-size: 2rem; color: var(--c-primary); margin-bottom: 12px; }
.type-card h3, .location-card h3 { margin: 0; }
.location-card span { color: var(--c-muted); font-size: .9rem; }

/* Why */
.why-card { text-align: center; padding: 16px; }
.why-card i { font-size: 2.6rem; color: var(--c-accent); margin-bottom: 12px; }
.why-card h3 { color: white; }
.why-card p { opacity: .9; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { font-size: 2.4rem; color: var(--c-primary); font-family: 'Playfair Display'; display: block; }
.stat span { color: var(--c-muted); font-size: .95rem; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, #0E5C3F 0%, #094530 100%);
    color: white; padding: 56px 0;
}
.page-hero h1 { color: white; margin-bottom: 8px; }
.breadcrumb { color: var(--c-muted); font-size: .92rem; margin-bottom: 20px; }
.breadcrumb a { color: var(--c-muted); }

/* Listings */
.listings-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .listings-grid { grid-template-columns: 1fr; } }
.filters {
    background: var(--c-surface); padding: 22px; border-radius: var(--radius);
    box-shadow: var(--shadow); position: sticky; top: 92px;
}
.filters form { display: flex; flex-direction: column; gap: 14px; }
.filters label { font-size: .9rem; color: var(--c-muted); display: flex; flex-direction: column; gap: 4px; }
.filters input, .filters select {
    border: 1px solid var(--c-border); border-radius: 8px;
    padding: 9px 12px; font: inherit; color: var(--c-text);
    width: 100%; box-sizing: border-box; min-width: 0;
}
.filters label { min-width: 0; }
.filters form { min-width: 0; }
.filters .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.empty { padding: 40px; text-align: center; color: var(--c-muted); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a {
    padding: 8px 14px; border-radius: 6px; background: var(--c-surface);
    box-shadow: var(--shadow); color: var(--c-text);
}
.pagination a.active { background: var(--c-primary); color: white; }

/* Property detail */
.property-header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.property-header h1 { margin-bottom: 4px; }
.property-header .meta { color: var(--c-muted); margin: 0; }
.property-price { text-align: right; }
.property-price strong { display: block; font-family: 'Playfair Display'; font-size: 1.6rem; color: var(--c-primary-dark); margin-top: 8px; }
.property-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .property-detail-grid { grid-template-columns: 1fr; } }
.gallery img#gallery-main {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: var(--radius); background: #eee;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.quick-info {
    display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0;
    background: var(--c-surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.quick-info > div { display: flex; align-items: center; gap: 8px; color: var(--c-text); }
.quick-info i { color: var(--c-primary); font-size: 1.2rem; }
.prose { margin: 24px 0; }
.prose h2 { font-size: 1.4rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; }
.feature-list i { color: var(--c-primary); margin-right: 6px; }

.property-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.agent-card, .card.form-card {
    background: var(--c-surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.agent-card strong { display: block; font-size: 1.1rem; margin-bottom: 12px; color: var(--c-primary-dark); }
.agent-card .btn { margin-bottom: 8px; }
.form-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.form-card input, .form-card textarea, .form-card select {
    width: 100%; padding: 10px 12px; margin-bottom: 10px;
    border: 1px solid var(--c-border); border-radius: 8px; font: inherit;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--c-surface); padding: 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center;
}
.service-card i { font-size: 2.4rem; color: var(--c-primary); margin-bottom: 12px; }

/* Flash */
.flash { padding: 14px 20px; margin: 16px auto 0; border-radius: var(--radius); display: flex; align-items: center; gap: 8px; }
.flash-success { background: #DCFCE7; color: #166534; }
.flash-error { background: #FEE2E2; color: #991B1B; }

/* Footer */
.site-footer { background: #0a3525; color: #e6efe9; padding: 56px 0 16px; margin-top: 60px; }
.footer-quran { font-size: 1.5rem; line-height: 2.2; color: #ffe9a8; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3, .site-footer h4 { color: white; }
.site-footer a { display: block; color: #cbd5dd; margin-bottom: 6px; }
.site-footer a:hover { color: white; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #98a8b1; font-size: .9rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* WhatsApp FAB */
.wa-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: white !important;
    display: grid; place-items: center; font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4); z-index: 50;
}
.wa-fab:hover { transform: scale(1.05); }

/* === Admin === */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0a3525; color: white; padding: 24px 0; }
.admin-sidebar .brand { padding: 0 22px 22px; color: white; }
.admin-sidebar .brand-text { color: white; }
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 22px; color: #cbd5dd; border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    background: rgba(255,255,255,.05); color: white; border-left-color: var(--c-accent);
}
.admin-main { padding: 28px; background: #f4f4ee; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: white; padding: 16px 24px; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 24px;
}
.admin-card { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-card h2 { margin-top: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.admin-stats .stat-card {
    background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.admin-stats .stat-card strong { display: block; font-size: 2rem; color: var(--c-primary); }
.admin-stats .stat-card span { color: var(--c-muted); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--c-border); text-align: left; }
.table th { background: #f9f9f4; color: var(--c-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.table tr:hover td { background: #fbfbf5; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: white; }
.tag.new { background: var(--c-rent); }
.tag.contacted { background: var(--c-accent); color: #1F2937; }
.tag.closed { background: var(--c-muted); }
.tag.pending { background: var(--c-accent); color: #1F2937; }
.tag.confirmed { background: var(--c-sale); }
.tag.cancelled { background: var(--c-sold); }
.tag.completed { background: var(--c-primary); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--c-muted); }
.form-grid input, .form-grid select, .form-grid textarea {
    padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; font: inherit; color: var(--c-text);
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.image-grid .img-box {
    position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #eee;
}
.image-grid .img-box img { width: 100%; height: 100%; object-fit: cover; }
.image-grid .img-box .del {
    position: absolute; top: 6px; right: 6px;
    background: rgba(185, 28, 28, .9); color: white; border: 0; padding: 4px 8px; border-radius: 6px; cursor: pointer;
}

/* Auth */
.auth-shell { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0E5C3F, #094530); padding: 24px; }
.auth-card { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; }
.auth-card h1 { text-align: center; margin-bottom: 24px; }
.auth-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: 12px; font: inherit; }

/* ============================================================
   Public site — additions for agents, blog, compare, favorites,
   construction, legal pages, and the property card action icons.
   ============================================================ */

/* Header nav additions */
.main-nav .nav-icon {
    position: relative; padding: 6px 10px; color: var(--c-text);
}
.main-nav .nav-icon i { font-size: 1.05rem; }
.main-nav .nav-icon:hover { color: var(--c-primary); }
.nav-count {
    display: none; position: absolute; top: -4px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--c-accent); color: #1F2937;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    align-items: center; justify-content: center;
}

/* Footer: relax grid to wrap nicely now that there are 5 cells */
.footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Property card — favorite & compare icons */
.card-actions {
    position: absolute; bottom: 12px; right: 12px;
    display: flex; gap: 6px; z-index: 2;
}
.card-action-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, 0.92); color: var(--c-muted);
    cursor: pointer; display: grid; place-items: center;
    box-shadow: var(--shadow); transition: transform .15s, background .15s, color .15s;
}
.card-action-btn:hover { transform: scale(1.08); color: var(--c-primary); }
.card-action-btn.is-active { background: var(--c-primary); color: white; }
.card-action-btn[data-fav-btn].is-active { background: #DC2626; color: white; }

/* Agents grid */
.agents-grid .agent-tile {
    background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.agents-grid .agent-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.agent-tile-avatar {
    aspect-ratio: 1/1; max-height: 240px;
    background: linear-gradient(135deg, #0E5C3F, #094530);
    color: white; display: grid; place-items: center;
}
.agent-tile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-tile-avatar span {
    font-size: 4rem; font-family: 'Playfair Display', serif; font-weight: 700;
}
.agent-tile-avatar.lg { aspect-ratio: auto; height: 200px; border-radius: var(--radius); margin-bottom: 18px; }
.agent-tile-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.agent-tile-body h3 { margin: 0; font-size: 1.15rem; }
.agent-role { color: var(--c-muted); font-size: .88rem; margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.agent-bio { color: var(--c-text); font-size: .92rem; margin: 4px 0; }
.agent-stats { color: var(--c-muted); font-size: .88rem; margin: 0; }
.agent-stats i { color: var(--c-primary); margin-right: 4px; }
.agent-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* Agent profile */
.agent-profile { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.agent-profile-card {
    background: var(--c-surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
    position: sticky; top: 92px;
}
.agent-profile-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.agent-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
@media (max-width: 900px) {
    .agent-profile { grid-template-columns: 1fr; }
    .agent-profile-card { position: static; }
}

/* Blog */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-grid { gap: 22px; }
.blog-card {
    background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image { aspect-ratio: 16/10; overflow: hidden; background: #eee; display: block; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h3 { font-size: 1.1rem; margin: 0; font-family: 'Poppins', sans-serif; line-height: 1.3; }
.blog-card-body h3 a { color: var(--c-text); }
.blog-card-body h3 a:hover { color: var(--c-primary); }
.blog-meta { color: var(--c-muted); font-size: .85rem; margin: 0; }
.blog-meta i { color: var(--c-primary); margin-right: 4px; }
.blog-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
@media (max-width: 980px) { .blog-sidebar { position: static; } }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list small { display: block; color: var(--c-muted); font-size: .8rem; }
.muted { color: var(--c-muted); }

.blog-post header { margin-bottom: 16px; }
.blog-post h1 { font-size: 2rem; }
.blog-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.blog-share { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.blog-share a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg); color: var(--c-primary); }
.blog-share a:hover { background: var(--c-primary); color: white; }

/* Legal (privacy / terms) */
.legal-page h2 { font-size: 1.35rem; margin-top: 28px; }
.legal-page p, .legal-page li { color: var(--c-text); }
.legal-page ul { padding-left: 22px; }

/* Construction */
.construction-points { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; }
.construction-points li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--c-text); }
.construction-points i { color: var(--c-primary); }
.process-grid { gap: 22px; }
.process-step { background: var(--c-surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; position: relative; }
.process-step .step-num {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-accent); color: #1F2937;
    font-weight: 700; font-size: 1.2rem; margin-bottom: 10px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { color: var(--c-muted); margin: 0; }

/* Compare */
.compare-wrap { overflow-x: auto; }
.compare-table {
    width: 100%; border-collapse: collapse; min-width: 720px;
    background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
    padding: 14px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--c-border);
}
.compare-table thead th { background: #f9f9f4; vertical-align: top; }
.compare-table thead th h3 { font-size: 1.05rem; margin: 10px 0 6px; font-family: 'Poppins', sans-serif; }
.compare-table tbody th { background: #fbfbf5; color: var(--c-muted); width: 160px; font-weight: 500; }
.compare-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: #eee; }
.compare-image img { width: 100%; height: 100%; object-fit: cover; }
.compare-features { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.compare-features li { padding: 3px 0; }
.compare-features i { color: var(--c-sale); margin-right: 6px; }

/* Favorites toolbar */
#favorites-toolbar { display: flex; }

/* ============================================================
   Polish: page-hero variants, about, services, contact, detail
   ============================================================ */

/* Page hero variants */
.page-hero {
    background:
        linear-gradient(135deg, rgba(14,92,63,.92) 0%, rgba(9,69,48,.96) 100%),
        url('../images/site/hero-bg.png') center/cover no-repeat;
    padding: 64px 0 56px;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 6px; }
.page-hero-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: 0; max-width: 760px; }
.page-hero-urdu { color: #ffe9a8; margin-top: 14px; font-size: 1.5rem; }
.page-hero-compact { padding: 40px 0 28px; }
.page-hero-compact h1 { font-size: 1.9rem; }

/* Breadcrumb on dark hero */
.breadcrumb-light { color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb-light a { color: rgba(255,255,255,.85); }
.breadcrumb-light a:hover { color: #ffe9a8; }
.breadcrumb-light span { color: white; }

/* Property header on hero (white text) */
.page-hero .property-header h1,
.page-hero .property-header .meta { color: white; }
.page-hero .property-header .meta { color: rgba(255,255,255,.85); }
.page-hero .property-price { text-align: right; }
.page-hero .property-price strong { color: white; }
.page-hero .property-price .badge { position: static; display: inline-block; }

/* Listing agent role */
.agent-role-sm { color: var(--c-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.ceo-card {
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    text-align: center;
    position: sticky;
    top: 92px;
}
@media (max-width: 900px) { .ceo-card { position: static; } }
.ceo-card img {
    width: 160px; height: 160px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 14px;
    border: 4px solid var(--c-bg);
    box-shadow: var(--shadow);
}
.ceo-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.ceo-role { color: var(--c-accent); font-weight: 600; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.ceo-bio { color: var(--c-muted); font-size: .92rem; margin: 0 0 16px; }
.ceo-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.about-prose h2 { font-size: 1.5rem; margin-top: 0; }
.about-prose h2:not(:first-child) { margin-top: 28px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; color: var(--c-text);
}
.check-list i { color: var(--c-primary); margin-top: 4px; }

/* CTA row */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btn-on-dark { color: white !important; border-color: rgba(255,255,255,.6) !important; }
.btn-on-dark:hover { background: white; color: var(--c-primary-dark) !important; border-color: white !important; }

/* Section title (no flex header) */
.section-title { font-size: 1.6rem; margin-bottom: 20px; }

/* Contact page */
.contact-info h3 { margin-bottom: 18px; font-size: 1.3rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--c-border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list i {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(14,92,63,.08); color: var(--c-primary);
    display: grid; place-items: center;
    font-size: 1rem;
}
.contact-list strong {
    display: block; color: var(--c-text); font-size: .92rem;
    margin-bottom: 2px; font-weight: 600;
}
.contact-list span, .contact-list a { display: block; color: var(--c-muted); font-size: .95rem; }
.contact-list a:hover { color: var(--c-primary); }
.contact-socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* Property detail polish */
.property-detail-grid { gap: 36px; }
.gallery img#gallery-main { aspect-ratio: 16/10; max-height: 520px; }
.prose h2 { font-size: 1.4rem; margin-top: 0; }
.prose { background: var(--c-surface); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 18px 0; }
.feature-list { gap: 8px 18px; margin: 0; }
.feature-list li { padding: 4px 0; color: var(--c-text); font-size: .95rem; }

/* Quick-info polish */
.quick-info { gap: 22px; }
.quick-info > div { font-weight: 500; }
.quick-info span { color: var(--c-text); }

/* Header spacing safeguard */
.site-header + main > section:first-child.section { padding-top: 48px; }

/* Mobile section padding */
@media (max-width: 700px) {
    .section { padding: 44px 0; }
    .page-hero { padding: 44px 0 36px; }
    .page-hero h1 { font-size: 1.6rem; }
    .property-header { gap: 8px; }
    .property-price { text-align: left !important; }
}

/* ============================================================
   MODERN OVERHAUL — 2026 refresh
   Clean surfaces, smooth motion, and tasteful entrance animations.
   ============================================================ */

/* Fluid type & smoother base */
body { font-size: clamp(15px, 0.95vw + 11px, 17px); -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1vw + 1.05rem, 2.15rem); letter-spacing: -.005em; }
::selection { background: var(--c-primary); color: #fff; }
a { transition: color var(--t-fast) var(--ease-out); }

/* Section rhythm */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-header h2 { position: relative; padding-bottom: 14px; }
.section-header h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 52px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.section-header.center h2::after { left: 50%; transform: translateX(-50%); }
.section-header.light h2::after { background: linear-gradient(90deg, #ffe9a8, var(--c-accent)); }
.section-header .link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary-dark);
    transition: gap var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.section-header .link:hover { color: var(--c-primary); gap: 12px; }
.section-header .link i { transition: transform var(--t-fast) var(--ease-out); }
.section-header .link:hover i { transform: translateX(3px); }

/* Header: glass shrink */
.site-header {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: padding var(--t-med) var(--ease-out),
                background var(--t-med) var(--ease-out),
                box-shadow var(--t-med) var(--ease-out),
                border-color var(--t-med) var(--ease-out);
}
body.is-scrolled .site-header {
    background: rgba(255, 255, 255, .95);
    border-bottom-color: var(--c-border);
    box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}
body.is-scrolled .header-inner { min-height: 62px; }
body.is-scrolled .brand-logo { height: 46px; }
.brand-logo, .header-inner { transition: height var(--t-med) var(--ease-out), min-height var(--t-med) var(--ease-out); }
.main-nav a {
    position: relative;
    transition: color var(--t-fast) var(--ease-out);
}
.main-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--t-med) var(--ease-out);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).is-active::after { transform: scaleX(1); }
.nav-cta {
    box-shadow: var(--shadow-glow);
    transition: transform var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -10px rgba(14, 92, 63, .5); }

/* Hero animated entrance (works with the new centered hero) */
.hero-inner > * { opacity: 0; transform: translateY(14px); animation: heroIn .9s var(--ease-out) forwards; }
.hero-inner > .hero-eyebrow     { animation-delay: .00s; }
.hero-inner > .hero-verse-wrap  { animation-delay: .10s; }
.hero-inner > h1                { animation-delay: .22s; }
.hero-inner > .hero-sub         { animation-delay: .34s; }
.hero-inner > .hero-lede        { animation-delay: .42s; }
.hero-inner > .search-bar       { animation-delay: .50s; }
.hero-inner > .hero-trust       { animation-delay: .60s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-verse-tag { animation: floatY 5s ease-in-out infinite; }

/* Search-bar hover lift */
.search-bar { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.search-bar:hover { transform: translateY(-2px); box-shadow: 0 36px 70px -22px rgba(0, 0, 0, .45); }

/* Buttons — shine sweep + lift */
.btn {
    position: relative; overflow: hidden;
    transition: transform var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out);
    will-change: transform;
}
.btn::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease-out);
    pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn-primary { box-shadow: 0 10px 24px -10px rgba(14, 92, 63, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(14, 92, 63, .65); }
.btn-accent { box-shadow: 0 10px 24px -10px rgba(201, 162, 39, .6); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(201, 162, 39, .7); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Property card — softer surface, gradient overlay, refined hover */
.property-card {
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, .04);
    transition: transform var(--t-med) var(--ease-out),
                box-shadow var(--t-med) var(--ease-out),
                border-color var(--t-med) var(--ease-out);
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 92, 63, .14);
}
.property-card-image {
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}
.property-card-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35) 100%);
    opacity: 0; transition: opacity var(--t-med) var(--ease-out);
    pointer-events: none;
}
.property-card:hover .property-card-image::after { opacity: 1; }
.property-card-image img { transition: transform .7s var(--ease-out); }
.property-card:hover .property-card-image img { transform: scale(1.08); }

.badge {
    padding: 6px 12px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
    letter-spacing: .04em;
}
.badge-featured {
    background: linear-gradient(135deg, #E2B83A, #C9A227);
    color: #3d2f06;
}

.card-action-btn {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform var(--t-fast) var(--ease-spring),
                background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out);
}
.card-action-btn:hover { transform: translateY(-2px) scale(1.08); }
.card-action-btn[data-fav-btn].is-active i { animation: heartPop .35s var(--ease-spring); }
@keyframes heartPop {
    0% { transform: scale(.6); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.property-card-body { padding: 20px; gap: 10px; }
.property-card-body h3 { font-weight: 600; font-size: 1.08rem; }
.property-card-footer .price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: var(--c-primary-dark);
    letter-spacing: .01em;
}

/* Type cards — vibrant accent on hover */
.type-card, .location-card {
    border: 1px solid rgba(15, 23, 42, .04);
    padding: 32px 22px;
    transition: transform var(--t-med) var(--ease-out),
                box-shadow var(--t-med) var(--ease-out),
                border-color var(--t-med) var(--ease-out),
                background var(--t-med) var(--ease-out);
    position: relative; overflow: hidden;
}
.type-card::before, .location-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 200px at 50% 120%, rgba(14, 92, 63, .12), transparent 70%);
    opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.type-card:hover, .location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 92, 63, .18);
}
.type-card:hover::before, .location-card:hover::before { opacity: 1; }
.type-card i {
    display: inline-grid; place-items: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 1.6rem; margin: 0 auto 14px;
    transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.type-card:hover i {
    transform: scale(1.1) rotate(-6deg);
    background: var(--c-primary);
    color: #fff;
}
.location-card h3 { transition: color var(--t-fast) var(--ease-out); margin-top: 4px; }
.location-card:hover h3 { color: var(--c-primary); }
.location-card i {
    display: inline-grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent); font-size: 1.2rem;
    margin: 0 auto 10px;
    transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.location-card:hover i {
    transform: scale(1.1) rotate(8deg);
    background: var(--c-accent); color: #fff;
}

/* Why section — frosted tiles */
.why-card {
    padding: 28px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.why-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .12);
}
.why-card i {
    display: inline-grid; place-items: center;
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 162, 39, .3), rgba(201, 162, 39, .1));
    border: 1px solid rgba(201, 162, 39, .35);
    color: #ffe9a8; font-size: 2rem; margin: 0 auto 16px;
    transition: transform var(--t-med) var(--ease-spring);
}
.why-card:hover i { transform: rotate(8deg) scale(1.08); }
.why { background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); position: relative; overflow: hidden; }
.why::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(500px 280px at 90% 10%, rgba(201, 162, 39, .18), transparent 60%),
        radial-gradient(500px 280px at 10% 90%, rgba(255, 255, 255, .06), transparent 60%);
    pointer-events: none;
}

/* Stats */
.stats-row { gap: 22px; }
.stat {
    background: var(--c-surface);
    padding: 28px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: var(--shadow);
    transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat strong {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
    line-height: 1;
}
.stat span { display: block; margin-top: 8px; font-weight: 500; color: var(--c-muted); letter-spacing: .03em; text-transform: uppercase; font-size: .78rem; }

/* Footer polish */
.site-footer {
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(201, 162, 39, .08), transparent 60%),
        linear-gradient(180deg, #0a3525, #07291c);
}
.site-footer h3, .site-footer h4 { position: relative; padding-bottom: 10px; margin-bottom: 14px; }
.site-footer h4::after, .site-footer h3::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 32px; height: 2px; border-radius: 2px;
    background: var(--c-accent);
}
.site-footer a { transition: color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out); }
.site-footer a:hover { padding-left: 4px; color: #ffe9a8; }
.footer-quran { font-family: 'Amiri Quran', 'Amiri', serif; }

/* WhatsApp FAB — pulsing ring */
.wa-fab {
    box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
    transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast) var(--ease-out);
}
.wa-fab::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
    animation: waPulse 2.4s var(--ease-out) infinite;
}
.wa-fab:hover { transform: scale(1.08); }
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Page hero refinement */
.page-hero {
    background:
        radial-gradient(800px 500px at 20% 10%, rgba(201, 162, 39, .22), transparent 60%),
        radial-gradient(900px 600px at 80% 100%, rgba(7, 41, 28, .55), transparent 60%),
        linear-gradient(135deg, rgba(10, 53, 37, .92) 0%, rgba(9, 69, 48, .96) 100%),
        url('../images/site/hero-bg.png') center/cover no-repeat;
    position: relative; overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="rgba(255,255,255,0.04)" d="M0 0h20v20H0zM20 20h20v20H20z"/></svg>');
    opacity: .4; mix-blend-mode: overlay;
}
.page-hero h1 {
    background: linear-gradient(180deg, #fff 60%, #ffe9a8 130%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.page-hero .container { position: relative; }

/* Filters card */
.filters {
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, .05);
}
.filters input, .filters select {
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.filters input:focus, .filters select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.pagination a {
    transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.pagination a:hover {
    transform: translateY(-2px);
    background: var(--c-primary); color: white;
    box-shadow: var(--shadow-md);
}

/* Process steps */
.process-step {
    transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
    border: 1px solid rgba(15, 23, 42, .04);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step .step-num {
    background: linear-gradient(135deg, #E2B83A, #C9A227);
    box-shadow: 0 8px 20px -6px rgba(201, 162, 39, .6);
}

/* Agent tiles & service cards */
.agents-grid .agent-tile, .service-card, .blog-card {
    border: 1px solid rgba(15, 23, 42, .04);
}
.service-card {
    transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.service-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-md);
    border-color: rgba(14, 92, 63, .14);
}
.service-card i {
    display: inline-grid; place-items: center;
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--c-primary-soft); color: var(--c-primary);
    margin: 0 auto 14px; font-size: 1.7rem;
    transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.service-card:hover i { transform: scale(1.1) rotate(-6deg); background: var(--c-primary); color: #fff; }

/* Reveal animation — Intersection Observer driven */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Counter style */
.stat strong[data-count-target] { display: block; }

/* Flash slide-in */
.flash { animation: flashIn .5s var(--ease-out); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LAYOUT FIXES — public site polish
   ============================================================ */

/* Property card image — square for branded tiles, predictable cover for JPGs */
.property-card-image { display: block; width: 100%; aspect-ratio: 1 / 1; }
.property-card-image > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
/* Section-header underline lives inside the h2 (static), so the right-side
   link still aligns naturally with the heading baseline. */
.section-header { align-items: flex-end; }
.section-header h2 { padding-bottom: 0; }
.section-header h2::after {
    position: static; display: block; margin-top: 12px;
    transform: none !important;
    width: 52px;
}
.section-header.center h2 { display: inline-block; }
.section-header.center h2::after { margin-left: auto; margin-right: auto; }

/* Hero search bar — keep cells from squashing */
.search-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.search-bar > * { min-width: 0; }
.search-bar .btn { white-space: nowrap; }
@media (max-width: 880px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
    .search-bar input[type=text] { grid-column: 1 / -1; }
    .search-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .search-bar { grid-template-columns: 1fr; }
}

/* About — keep CEO image properly sized on small screens */
.ceo-card img { display: block; }

/* Page-hero property header — push price to the right on wide screens */
.page-hero .property-header { align-items: flex-start; }
.page-hero .property-price strong { font-size: 1.6rem; margin-top: 6px; }

/* Filter sidebar — better spacing */
.filters .btn { width: 100%; }
.filters .btn + .btn { margin-top: 4px; }

/* CTA row alignment on dark sections */
.bg-primary .cta-row { justify-content: center; }
.bg-primary.section { color: white; }
.bg-primary.section h2 { color: white; }
.bg-primary.section p { color: rgba(255, 255, 255, .85); }

/* Quick info grid: make items breathe */
.quick-info { gap: 18px 28px; padding: 22px; }
.quick-info > div { gap: 10px; }

/* Gallery thumbnails: scrollbar nicer */
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(14, 92, 63, .35); border-radius: 6px; }
.gallery-thumbs img {
    border: 2px solid transparent; transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.gallery-thumbs img:hover { transform: translateY(-2px); border-color: var(--c-primary); }

/* Brand logo proper sizing */
.brand { line-height: 0; min-width: 0; }
.brand-logo { object-fit: contain; max-width: 240px; height: 52px; }
body.is-scrolled .brand-logo { height: 44px; }
@media (max-width: 520px) {
    .brand-logo, body.is-scrolled .brand-logo { height: 40px; max-width: 180px; }
    .header-inner { gap: 12px; }
}

/* ============================================================
   MODERN ADMIN OVERHAUL — clean SaaS dashboard look
   ============================================================ */

/* Body bg behind admin shell (matches admin-main) */
.admin-shell { background: #f4f4ee; gap: 0; }

/* Sidebar */
.admin-sidebar {
    background: linear-gradient(180deg, #0c4030 0%, #062619 100%);
    color: white;
    padding: 22px 0 30px;
    position: relative;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}
.admin-sidebar::before {
    content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, .25), transparent);
}
.admin-sidebar .brand { padding: 4px 22px 24px; margin-bottom: 8px; color: white; }
.admin-sidebar .brand-mark {
    background: linear-gradient(135deg, var(--c-accent), #b08e1f);
    box-shadow: 0 8px 18px -6px rgba(201, 162, 39, .5);
}
.admin-sidebar .brand-text { color: white; font-weight: 700; font-size: 1.05rem; }
.admin-sidebar .brand-text small { color: rgba(255, 255, 255, .55); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.admin-sidebar nav {
    display: flex; flex-direction: column; gap: 2px;
    padding: 4px 12px;
}
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, .75); border-left: 0;
    border-radius: 10px;
    font-weight: 500; font-size: .95rem;
    position: relative;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                padding-left var(--t-fast) var(--ease-out);
}
.admin-sidebar nav a i {
    width: 22px; text-align: center; font-size: 1rem;
    transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
    color: rgba(255, 255, 255, .55);
}
.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: white;
}
.admin-sidebar nav a:hover i { color: var(--c-accent); transform: scale(1.05); }
.admin-sidebar nav a.active {
    background: rgba(201, 162, 39, .14);
    color: white;
    box-shadow: inset 3px 0 0 var(--c-accent);
    padding-left: 18px;
}
.admin-sidebar nav a.active i { color: var(--c-accent); }

/* Main + topbar */
.admin-main {
    padding: clamp(16px, 2vw, 28px);
    background: #f4f4ee;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 6px 20px -10px rgba(15, 23, 42, .08);
    border: 1px solid rgba(15, 23, 42, .04);
    margin-bottom: 22px;
}
.admin-topbar strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--c-primary-dark);
}
.admin-topbar span {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--c-text); font-size: .92rem; font-weight: 500;
}
.admin-topbar span::before {
    content: "\f007"; /* fa-user */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: white; display: inline-grid; place-items: center;
    font-size: .9rem;
    box-shadow: 0 6px 14px -6px rgba(14, 92, 63, .55);
}

/* Admin cards */
.admin-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, .04);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 6px 18px -10px rgba(15, 23, 42, .08);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    animation: cardIn .5s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.admin-card h2 {
    font-size: 1.15rem;
    color: var(--c-primary-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
    margin: 0 0 18px;
}

/* Stat cards */
.admin-stats { gap: 16px; }
.admin-stats .stat-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, .04);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 6px 18px -10px rgba(15, 23, 42, .08);
    padding: 22px;
    border-radius: var(--radius);
    position: relative; overflow: hidden;
    transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.admin-stats .stat-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
}
.admin-stats .stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .15); }
.admin-stats .stat-card strong {
    font-size: 2.1rem; font-weight: 700;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.admin-stats .stat-card span {
    display: block; margin-top: 4px;
    color: var(--c-muted); font-size: .82rem;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}

/* Tables — modern */
.table {
    border-collapse: separate; border-spacing: 0;
    overflow: hidden; border-radius: var(--radius-sm);
}
.table thead th {
    background: linear-gradient(180deg, #f9f9f4, #f2f2eb);
    color: var(--c-muted); font-size: 11px;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 14px 14px;
    border-bottom: 1px solid var(--c-border);
    font-weight: 700;
    position: sticky; top: 0;
}
.table td {
    padding: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr {
    transition: background var(--t-fast) var(--ease-out);
}
.table tbody tr:hover td { background: #fbfbf5; }
.table td img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

/* Tags — refined */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    color: white;
}
.tag::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: .9;
}
.tag.new       { background: #DBEAFE; color: #1E40AF; }
.tag.contacted { background: #FEF3C7; color: #92400E; }
.tag.closed    { background: #E5E7EB; color: #374151; }
.tag.pending   { background: #FEF3C7; color: #92400E; }
.tag.confirmed { background: #DCFCE7; color: #166534; }
.tag.cancelled { background: #FEE2E2; color: #991B1B; }
.tag.completed { background: #DBEAFE; color: #1E40AF; }

/* Forms in admin */
.form-grid input, .form-grid select, .form-grid textarea {
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
    background: #fafaf5;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.form-grid label {
    font-weight: 600; font-size: .82rem;
    color: var(--c-text);
    text-transform: uppercase; letter-spacing: .04em;
}
.form-grid label input + *, .form-grid label select + * { margin-top: 4px; }
fieldset {
    border-radius: var(--radius-sm);
    border-color: var(--c-border) !important;
    background: #fafaf5;
}
fieldset legend {
    font-weight: 600;
    color: var(--c-primary-dark);
    font-size: .9rem;
    padding: 0 8px;
}

/* Image preview grid */
.image-grid .img-box {
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transition: transform var(--t-fast) var(--ease-out);
}
.image-grid .img-box:hover { transform: translateY(-2px); }
.image-grid .img-box .del { transition: background var(--t-fast) var(--ease-out); }
.image-grid .img-box .del:hover { background: rgba(185, 28, 28, 1); }

/* Auth (login) — premium polish */
.auth-shell {
    background:
        radial-gradient(800px 500px at 20% 0%, rgba(201, 162, 39, .22), transparent 60%),
        radial-gradient(900px 600px at 80% 100%, rgba(14, 92, 63, .65), transparent 60%),
        linear-gradient(135deg, #0a3525 0%, #0E5C3F 55%, #094530 100%);
    position: relative; overflow: hidden;
}
.auth-shell::before {
    content: ""; position: absolute; inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="rgba(255,255,255,0.04)" d="M0 0h20v20H0zM20 20h20v20H20z"/></svg>');
    opacity: .5; pointer-events: none;
}
.auth-card {
    position: relative; z-index: 1;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .15);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: cardIn .6s var(--ease-out);
}
.auth-card h1 {
    font-size: 1.55rem;
    color: var(--c-primary-dark);
    margin-bottom: 24px;
}
.auth-card h1::after {
    content: ""; display: block; margin: 10px auto 0;
    width: 44px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.auth-card input {
    background: #fafaf5;
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.auth-card input:focus {
    outline: none; background: white;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand .brand-mark {
    display: inline-grid; place-items: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: white; font-size: 1.4rem;
    box-shadow: 0 14px 30px -10px rgba(14, 92, 63, .55);
    margin-bottom: 12px;
}
.auth-brand h1 { margin: 0 0 4px; text-align: center; }
.auth-brand h1::after { display: none; }
.auth-brand .muted { color: var(--c-muted); font-size: .88rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.auth-field {
    position: relative; display: block; margin: 0;
}
.auth-field i {
    position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
    color: var(--c-muted); font-size: .95rem;
    transition: color var(--t-fast) var(--ease-out);
}
.auth-field input {
    width: 100%; padding: 12px 14px 12px 42px;
    margin-bottom: 0;
    border-radius: 10px;
}
.auth-field:focus-within i { color: var(--c-primary); }
.auth-form .btn { margin-top: 4px; padding: 12px 18px; border-radius: 10px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .88rem; }
.auth-foot a { color: var(--c-muted); display: inline-flex; gap: 6px; align-items: center; }
.auth-foot a:hover { color: var(--c-primary-dark); }

/* Admin small inline forms (status update etc.) */
.admin-card td form select,
.admin-card td form input {
    background: #fafaf5;
    border: 1px solid var(--c-border);
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.admin-card td form select:focus,
.admin-card td form input:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(14, 92, 63, .12);
    background: white;
}

/* Admin sidebar mobile drawer */
.admin-toggle {
    display: none; background: white; border: 1px solid var(--c-border);
    width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
    color: var(--c-primary-dark); font-size: 1.05rem;
    box-shadow: var(--shadow);
}
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed; top: 0; left: -260px; bottom: 0; width: 240px;
        z-index: 200;
        transition: left var(--t-med) var(--ease-out);
        display: block;
        box-shadow: 12px 0 32px rgba(0, 0, 0, .25);
    }
    body.admin-nav-open .admin-sidebar { left: 0; }
    body.admin-nav-open::after {
        content: ""; position: fixed; inset: 0; z-index: 150;
        background: rgba(0, 0, 0, .45);
    }
    .admin-toggle { display: inline-grid; place-items: center; }
}

/* Form helpers used in admin top of list */
.admin-card form input[type="search"] {
    background: #fafaf5;
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.admin-card form input[type="search"]:focus {
    outline: none; background: white;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}

/* Make the property images preview in admin list look polished */
.admin-card .table td img[style*="width:60px"] {
    transition: transform var(--t-fast) var(--ease-out);
}
.admin-card .table td img[style*="width:60px"]:hover { transform: scale(1.5); z-index: 5; position: relative; }

/* Action button row in table cells */
.table td form { display: inline-block; }
.table td .btn { margin-right: 4px; }

/* Page focus ring & smoothing */
*:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print of property listing list looks fine on landscape laptop */
@media (max-width: 1100px) {
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   FINAL PREMIUM LAYER — depth, rhythm, micro-details
   ============================================================ */

html { direction: ltr; }
body {
    background:
        radial-gradient(1200px 700px at 50% -200px, rgba(14, 92, 63, .05), transparent 60%),
        var(--c-bg);
    min-height: 100vh;
}

/* Force RTL only on Arabic/Urdu text spans, never on layout */
[lang="ar"], [lang="ur"] { unicode-bidi: isolate; }

/* Smoother heading rhythm is handled by fluid sizing and line-height rules. */

/* Stronger header brand alignment */
.site-header .container.header-inner { position: relative; }
.brand { gap: 0; }
.main-nav { gap: 22px; }
.main-nav a { font-size: .96rem; letter-spacing: .005em; }

/* Section spacing rhythm with hairline dividers between consecutive grey sections */
.section + .section { padding-top: clamp(40px, 5vw, 80px); }

/* Section header alignment fine-tune */
.section-header { gap: 12px 24px; }
.section-header h2 { line-height: 1.1; }
.section-header h2::after { width: 56px; }
.section-header .link {
    padding: 6px 14px; border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    font-size: .88rem;
}
.section-header .link:hover {
    background: var(--c-primary); color: white; gap: 12px;
}

/* Type card — colored token per category, smoother stroke */
.type-card {
    background: linear-gradient(180deg, var(--c-surface) 0%, #fbfaf2 100%);
}
.type-card i {
    background: var(--c-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(14, 92, 63, .12);
}
.type-card h3 { font-size: 1.05rem; margin: 4px 0 0; }
/* Location card — accent badge feel */
.location-card {
    background: linear-gradient(180deg, var(--c-surface) 0%, #fdf9ec 100%);
}

/* Property card price chip */
.property-card-footer .price {
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.property-card-footer .btn {
    background: var(--c-primary-soft); color: var(--c-primary-dark);
    border: 1px solid rgba(14, 92, 63, .15);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.property-card-footer .btn:hover {
    background: var(--c-primary); color: white;
}
.property-card-body { gap: 8px; }
.property-card-body h3 a { transition: color var(--t-fast) var(--ease-out); }

/* Property card image — branding mode (squares need different overlay weighting) */
.property-card-image::after {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .42) 100%);
}

/* Why section — better divider line */
.why { padding-top: clamp(70px, 8vw, 120px); padding-bottom: clamp(70px, 8vw, 120px); }
.why .section-header.center h2::after {
    background: linear-gradient(90deg, transparent, #ffe9a8, transparent);
    width: 84px; height: 2px;
}

/* Stats — pill cluster */
.stats-row .stat { padding: 32px 18px; }
.stats-row .stat strong { font-family: 'Playfair Display', Georgia, serif; }

/* CTA section on dark */
.bg-primary.section {
    background:
        radial-gradient(700px 400px at 0% 0%, rgba(201, 162, 39, .18), transparent 60%),
        radial-gradient(800px 500px at 100% 100%, rgba(255, 255, 255, .04), transparent 60%),
        linear-gradient(135deg, var(--c-primary-dark), #062619);
    position: relative; overflow: hidden;
}

/* Footer enrichments */
.site-footer { padding-top: 80px; }
.footer-grid { gap: 40px; }
.footer-quran {
    padding: 14px 18px; margin-top: 16px;
    background: linear-gradient(135deg, rgba(255, 233, 168, .08), rgba(255, 233, 168, .02));
    border: 1px solid rgba(255, 233, 168, .15);
    border-radius: 14px;
    text-align: center;
}
.site-footer p { color: rgba(255, 255, 255, .75); }
.site-footer a { transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out); }

/* Forms — consistent shape across the site */
.search-bar input, .search-bar select,
.filters input, .filters select,
.form-card input, .form-card textarea, .form-card select,
.auth-card input, .form-grid input, .form-grid select, .form-grid textarea {
    border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #9ca3af; }

/* Inquiry / appointment form-card heading */
.form-card h3 {
    color: var(--c-primary-dark);
    padding-bottom: 10px;
    margin-bottom: 14px;
    position: relative;
    font-family: 'Playfair Display', Georgia, serif;
}
.form-card h3::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 36px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

/* Agent card */
.agent-card {
    background: linear-gradient(180deg, var(--c-surface) 0%, #fbfaf2 100%);
}
.agent-card strong {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Property detail — gallery polish */
.gallery img#gallery-main {
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .25);
    border: 1px solid rgba(15, 23, 42, .05);
    background: #f5f4ec;
    object-fit: cover;
    object-position: center;
}
.branded-tile {
    margin-top: 14px; max-width: 320px;
    background: var(--c-surface);
    padding: 8px; border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, .05);
}
.branded-tile img {
    width: 100%; height: auto; display: block;
    border-radius: calc(var(--radius) - 6px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.quick-info {
    background: linear-gradient(180deg, var(--c-surface) 0%, #fbfaf2 100%);
    border: 1px solid rgba(15, 23, 42, .04);
}

/* Showcase strip (used on home if added) */
.showcase-strip {
    --gap: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap);
}
.showcase-strip a {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, .04);
    transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.showcase-strip a:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}
.showcase-strip img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.showcase-strip a:hover img { transform: scale(1.06); }

/* Scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #efeee6; }
::-webkit-scrollbar-thumb { background: rgba(14, 92, 63, .35); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14, 92, 63, .55); }

/* Skip-link / accessibility helpers */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
    z-index: 1000; background: var(--c-primary-dark); color: #fff;
    padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600; box-shadow: var(--shadow-md);
    transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus {
    transform: translate(-50%, 0); color: #fff; outline: 3px solid var(--c-accent); outline-offset: 2px;
}
main:focus { outline: none; }

/* Mobile hero refinements */
@media (max-width: 700px) {
    .hero { padding: 70px 0 60px; }
    .hero-verse-wrap { padding: 24px 18px 22px; max-width: 100%; }
    .hero-verse { line-height: 2; }
    .hero h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
    .hero-sub { font-size: clamp(1rem, 3.6vw, 1.2rem); line-height: 2.2; }
    .hero-lede { font-size: .96rem; }
    .hero-eyebrow { font-size: .75rem; padding: 6px 12px; }
    .hero-trust { font-size: .8rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .section-header.center { align-items: center; }
}

/* ============================================================
   ADMIN FIXES — table overflow, settings rhythm, status badges
   ============================================================ */

/* Tables inside admin cards: allow horizontal scroll when needed */
.admin-card { overflow-x: auto; max-width: 100%; }
.admin-main { min-width: 0; overflow-x: hidden; }
.admin-card .table { min-width: 720px; }

/* Status badge & tag pills should never wrap mid-word */
.table td .badge,
.table td .tag,
.badge, .tag { white-space: nowrap; }

/* Property list: column sizing & action buttons */
.admin-card .table th:first-child,
.admin-card .table td:first-child { width: 76px; }
.admin-card .table td:nth-child(2) strong { display: block; line-height: 1.35; }
.admin-card .table td:nth-child(2) { min-width: 220px; }
.admin-card .table td:last-child { white-space: nowrap; }
.admin-card .table td form { margin: 0; }
.admin-card .table td .btn-sm { padding: 6px 10px; font-size: .82rem; }

/* Inquiries / Appointments: tighter message column, prevent address bleed */
.admin-card .table td.cell-message {
    max-width: 240px; white-space: normal; color: var(--c-text);
    font-size: .9rem; line-height: 1.4;
}
.admin-card .table td .inline-status-form {
    display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap;
}
.admin-card .table td .inline-status-form select {
    padding: 6px 10px; border-radius: 8px; min-width: 110px;
}

/* Settings page: separate section groups with proper rhythm */
form.admin-card > h2,
.admin-card form > h2 {
    margin: 28px 0 12px;
    padding-top: 18px;
    border-top: 1px solid var(--c-border);
    color: var(--c-primary-dark);
    font-size: 1.05rem;
    letter-spacing: .02em;
}
form.admin-card > h2:first-of-type,
.admin-card form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

/* Dashboard stat cards: clean 3-col grid (2x3 with 6 cards) */
.admin-stats {
    grid-template-columns: repeat(3, 1fr);
}
.admin-stats .stat-card { min-height: 108px; }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN TOOLBAR  (search + action-button row above tables/lists)
═══════════════════════════════════════════════════════════════════ */
.admin-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.admin-toolbar input[type="search"],
.admin-toolbar input[type="text"] {
    flex: 1; min-width: 200px; max-width: 360px;
    padding: 9px 14px; border: 1px solid var(--c-border);
    border-radius: var(--radius); font-size: .9rem;
    background: #f9fafb;
}
.admin-toolbar input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,92,63,.15); }
.admin-toolbar .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   EXTRA BUTTON VARIANTS  (xs size + danger colour)
═══════════════════════════════════════════════════════════════════ */
.btn-xs {
    padding: 4px 9px; font-size: .78rem; border-radius: 6px;
}
.btn-danger, .btn-danger:visited {
    background: #dc2626; color: #fff; border: 1px solid #dc2626;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-danger:hover {
    background: #b91c1c; border-color: #b91c1c; color: #fff;
    box-shadow: 0 6px 14px -6px rgba(185, 28, 28, .55);
}
.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .25);
}
.btn-ghost {
    background: #fff; color: var(--c-primary); border: 1px solid var(--c-border);
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn-ghost:hover {
    background: rgba(14, 92, 63, .08);
    border-color: var(--c-primary);
    color: var(--c-primary-dark, var(--c-primary));
    box-shadow: 0 4px 12px -4px rgba(14, 92, 63, .25);
}
.btn-ghost:focus-visible {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .18);
}
.btn.block { display: block; width: 100%; text-align: center; margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════════
   BLOG ADMIN FORM LAYOUT
═══════════════════════════════════════════════════════════════════ */
.blog-form-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .blog-form-layout { grid-template-columns: 1fr; }
    .blog-form-meta   { order: -1; }
}
.blog-form-main {
    display: flex; flex-direction: column; gap: 14px;
}
.blog-form-main label.full,
.blog-form-main label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .9rem; color: #374151; }
.blog-form-main input,
.blog-form-main textarea,
.blog-form-main select {
    padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 8px;
    font-size: .92rem; font-family: inherit; background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
}
.blog-form-main input:focus,
.blog-form-main textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,92,63,.12); background: #fff; }

/* Meta sidebar boxes */
.blog-form-meta { display: flex; flex-direction: column; gap: 16px; }
.meta-box {
    background: #f9fafb; border: 1px solid var(--c-border);
    border-radius: 10px; padding: 16px;
}
.meta-box h4 {
    margin: 0 0 12px; font-size: .88rem; font-weight: 700;
    color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .05em;
    display: flex; align-items: center; gap: 6px;
}
.meta-box select, .meta-box input[type="text"],
.meta-box input[type="url"], .meta-box input[type="file"] {
    padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 7px;
    font-size: .88rem; background: #fff; width: 100%; box-sizing: border-box;
    margin-bottom: 8px;
}
.meta-box select:focus, .meta-box input:focus { outline: none; border-color: var(--c-primary); }
.meta-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.meta-actions .btn { font-size: .88rem; }
.muted { color: #6b7280; }

/* Toggle checkbox row */
.toggle-label {
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 500; cursor: pointer; color: #374151;
}
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

/* Featured image preview */
.featured-img-preview {
    position: relative; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--c-border); margin-bottom: 8px;
}
.featured-img-preview img { display: block; width: 100%; height: auto; }
.remove-img-btn {
    position: absolute; bottom: 8px; right: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACTS ADMIN  (contact card + edit details)
═══════════════════════════════════════════════════════════════════ */
.contact-card { border-left: 4px solid var(--c-primary); }
.contact-inactive { border-left-color: #d1d5db; opacity: .8; }
.contact-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.contact-card-title {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.contact-card-title h4 { margin: 0; font-size: 1.02rem; color: #111; }
.contact-quick-info {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: .84rem; color: #6b7280;
}
.contact-quick-info span { display: flex; align-items: center; gap: 5px; }

.edit-details { margin-top: 8px; }
.edit-details > summary {
    cursor: pointer; color: var(--c-primary); font-size: .88rem; font-weight: 600;
    list-style: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 0;
}
.edit-details > summary::-webkit-details-marker { display: none; }
.edit-details > summary::before { content: "▶"; font-size: .7em; transition: transform .2s; }
.edit-details[open] > summary::before { transform: rotate(90deg); }

/* Contact form grid */
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 500; color: #374151; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
    padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 7px;
    font-size: .88rem; font-family: inherit; background: #fafafa;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,92,63,.12); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* hero-lede highlight span */
.hero-lede-hl { color: #ffe9a8; font-weight: 600; border-bottom: 2px solid rgba(255,233,168,.5); }
@media (max-width: 1100px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* Topbar: avatar + name shouldn't overflow narrow screens */
.admin-topbar { gap: 12px; flex-wrap: wrap; }
.admin-topbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Mobile (<=900px): table cells with multi-line content stay readable */
@media (max-width: 900px) {
    .admin-main { padding: 18px 14px; }
    .admin-card { padding: 16px; }
    .admin-card .table { min-width: 640px; }
    .admin-topbar h1 { font-size: 1.1rem; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .admin-card .table { font-size: .88rem; }
    .admin-card .table th, .admin-card .table td { padding: 10px 8px; }
    .admin-card .table td:nth-child(2) { min-width: 160px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .admin-stats .stat-card { padding: 14px; min-height: 88px; }
    .admin-stats .stat-card strong { font-size: 1.5rem; }
    .admin-stats .stat-card span { font-size: .68rem; }
    .admin-topbar { padding: 14px; }
    .admin-topbar h1 { font-size: 1.05rem; }
}

/* ============================================================
   PUBLIC SITE — MOBILE POLISH (sections, cards, header)
   ============================================================ */

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .property-detail-grid { grid-template-columns: 1fr; }
    .property-sidebar { position: static; }
    .section { padding: 40px 0; }
    .stats-row { gap: 14px; }
    .showcase-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Global mobile safeguard: prevent accidental horizontal scroll */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* reCAPTCHA v3 badge hidden per Google policy (attribution shown in footer instead) */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-attribution {
    margin-top: 16px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    text-align: center;
}
.recaptcha-attribution a {
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
    margin: 0 4px;
}
.recaptcha-attribution a:hover { color: white; }

/* Gallery image: clickable affordance + active thumb */
.gallery #gallery-main { transition: transform var(--t-fast) var(--ease-out); }
.gallery #gallery-main:hover { transform: scale(1.005); }
.gallery-thumbs img {
    cursor: pointer;
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), outline-color var(--t-fast) var(--ease-out);
    outline: 2px solid transparent; outline-offset: 2px;
    opacity: .75;
}
.gallery-thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbs img.is-active { opacity: 1; outline-color: var(--c-primary); }

/* Lightbox overlay */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 16, 14, .92);
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: lbFade .25s var(--ease-out); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: min(100%, 1400px); max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    animation: lbZoom .3s var(--ease-out);
}
@keyframes lbZoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: white;
    border: 1px solid rgba(255, 255, 255, .25);
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); transform: scale(1.05); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .85); font-size: .9rem;
    background: rgba(0, 0, 0, .35);
    padding: 6px 14px; border-radius: 999px;
    letter-spacing: .04em;
}
@media (max-width: 600px) {
    .lightbox { padding: 10px; }
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .lightbox-prev  { left: 8px; width: 38px; height: 38px; }
    .lightbox-next  { right: 8px; width: 38px; height: 38px; }
}

@media (max-width: 600px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .showcase-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .property-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .property-price { align-items: flex-start; }
    .search-bar {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 10px;
    }
    .search-bar input, .search-bar select, .search-bar button { width: 100%; }
    .hero-trust { gap: 10px; }
    .hero-trust span { font-size: .76rem; }
    .breadcrumb { font-size: .82rem; flex-wrap: wrap; }
    .quick-info { grid-template-columns: repeat(2, 1fr); }
    .feature-list { grid-template-columns: 1fr; }
    .gallery img#gallery-main { aspect-ratio: 4/3; }
    .gallery-thumbs { gap: 6px; }
    .gallery-thumbs img { width: 56px; height: 56px; }
    .branded-tile { max-width: 240px; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
    .site-footer .footer-quran { font-size: 1.1rem; line-height: 1.9; }
}

/* ============================================================
   WARASAT EDITOR — self-hosted rich-text editor
   ============================================================ */
.we-wrap {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.we-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 5;
}
.we-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: background .12s, border-color .12s, color .12s;
    padding: 0 8px;
}
.we-btn:hover {
    background: #0E5C3F;
    color: #fff;
    border-color: #0E5C3F;
}
.we-btn:focus-visible {
    outline: 2px solid #0E5C3F;
    outline-offset: 1px;
}
.we-sep {
    width: 1px;
    height: 22px;
    background: #d1d5db;
    margin: 0 4px;
}
.we-area {
    min-height: 480px;
    padding: 20px 24px;
    font-family: Poppins, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1F2937;
    outline: none;
    overflow-y: auto;
    max-height: 70vh;
}
.we-area:focus { background: #fafbfc; }
.we-area > *:first-child { margin-top: 0; }
.we-area h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; margin: 22px 0 12px; color: #0E5C3F; }
.we-area h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; margin: 18px 0 10px; color: #0E5C3F; }
.we-area h4 { font-size: 1.1rem; margin: 14px 0 8px; color: #094530; font-weight: 700; }
.we-area p  { margin: 0 0 12px; }
.we-area ul, .we-area ol { padding-left: 24px; margin: 0 0 12px; }
.we-area img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.we-area blockquote {
    border-left: 4px solid #0E5C3F;
    margin: 18px 0;
    padding: 12px 20px;
    background: #f0f7f3;
    color: #094530;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.we-area a { color: #0E5C3F; text-decoration: underline; }
.we-area code {
    background: #f1f5f9;
    color: #0E5C3F;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .92em;
    font-family: 'Courier New', monospace;
}
.we-area pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    margin: 12px 0;
}
.we-area pre code { background: transparent; color: inherit; padding: 0; }
.we-area hr {
    border: none;
    border-top: 2px dashed #d1d5db;
    margin: 22px 0;
}
.we-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.we-area th, .we-area td {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    text-align: left;
}
.we-area th { background: #f1f5f9; font-weight: 600; }
.we-html {
    width: 100%;
    min-height: 480px;
    padding: 16px 18px;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: .88rem;
    line-height: 1.55;
    background: #1e293b;
    color: #e2e8f0;
    outline: none;
    resize: vertical;
}
@media (max-width: 600px) {
    .we-btn { width: 30px; height: 30px; font-size: .75rem; }
    .we-area { padding: 14px 16px; min-height: 360px; font-size: .95rem; }
}

/* ============================================================
   TEAM GRID (About page)
   ============================================================ */
.team-section { padding: 60px 0; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 32px;
}
.team-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 26px 22px;
    text-align: center;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.team-card:hover {
    transform: translateY(-4px);
    border-color: #C9A227;
    box-shadow: 0 12px 32px -12px rgba(14, 92, 63, .25);
}
.team-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #C9A227;
    background: #f3f4f6;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; margin: 0 0 4px; color: #0E5C3F; }
.team-role { font-size: .82rem; color: #8a6b15; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.team-bio  { font-size: .9rem; color: #4b5563; line-height: 1.55; margin-bottom: 14px; }
.team-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.team-links a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #0E5C3F;
    border: 1px solid #e5e7eb;
    transition: background .15s, color .15s, transform .15s;
}
.team-links a:hover { background: #0E5C3F; color: #fff; transform: translateY(-2px); }

/* ============================================================
   PHONE NUMBER STRIPS (footer/contact)
   ============================================================ */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.phone-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}
.phone-list .phone-label { font-size: .78rem; opacity: .75; }

/* ============================================================
   BLOG ENHANCEMENTS
   ============================================================ */
.blog-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #6b7280;
    margin-bottom: 14px;
}
.blog-meta i { color: #0E5C3F; margin-right: 4px; }
.blog-category {
    display: inline-block;
    background: rgba(14, 92, 63, .08);
    color: #0E5C3F;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.blog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.blog-tags a {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .8rem;
    border: 1px solid #e5e7eb;
    transition: background .15s, color .15s;
}
.blog-tags a:hover { background: #0E5C3F; color: #fff; border-color: #0E5C3F; }
.blog-share {
    display: flex;
    gap: 10px;
    margin: 22px 0;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.blog-share span { font-size: .85rem; color: #4b5563; font-weight: 600; }
.blog-share a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0E5C3F;
    border: 1px solid #e5e7eb;
    transition: background .15s, color .15s;
}
.blog-share a:hover { background: #0E5C3F; color: #fff; }

/* ============================================================
   ADMIN — modern, consistent pattern for CRUD pages
   ============================================================ */
.admin-page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.admin-page-intro h2 {
    margin: 0 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #0E5C3F;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-page-intro h2 i { color: #C9A227; }
.admin-page-intro p { margin: 0; line-height: 1.55; max-width: 720px; }
.admin-page-intro a:not(.btn):not(.stat-pill) { color: #0E5C3F; font-weight: 600; }

.admin-page-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 92, 63, .1);
    color: #0E5C3F;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(14, 92, 63, .15);
}
.stat-pill-muted { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

/* Collapsible add-new card */
.admin-collapsible {
    transition: box-shadow .2s;
}
.admin-collapsible > summary {
    cursor: pointer;
    padding: 6px 0;
    font-weight: 600;
    color: #0E5C3F;
    font-size: 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-user-select: none;
    user-select: none;
}
.admin-collapsible > summary::-webkit-details-marker { display: none; }
.admin-collapsible > summary::before {
    content: "▸";
    display: inline-block;
    color: #C9A227;
    transition: transform .15s;
    font-size: .9rem;
}
.admin-collapsible[open] > summary::before { transform: rotate(90deg); }
.admin-collapsible > summary i { color: #C9A227; }
.admin-collapsible > summary .muted-hint {
    margin-left: auto;
    font-weight: 400;
    font-size: .78rem;
    color: #9ca3af;
}
.admin-collapsible[open] > summary { margin-bottom: 18px; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }

/* Form layout inside admin cards */
.admin-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.admin-form .form-grid label,
.admin-form > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.admin-form .form-grid label.full { grid-column: 1 / -1; }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="url"],
.admin-form input[type="tel"],
.admin-form input[type="number"],
.admin-form input[type="search"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    background: #fff;
    color: #111827;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #0E5C3F;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
    background: #fff;
}
.admin-form textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.admin-form input[type="file"] {
    padding: 8px;
    background: #f9fafb;
    cursor: pointer;
}
.admin-form input[type="file"]::file-selector-button {
    background: #0E5C3F;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    font-family: inherit;
}
.admin-form input[type="file"]::file-selector-button:hover { background: #094530; }
.admin-form small.muted { font-weight: 400; color: #9ca3af; }

/* Action row at bottom of form */
.form-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.form-row-actions .btn { margin-left: auto; }
.form-row-actions .btn + .btn { margin-left: 0; }

/* Toggle labels — checkbox + text inline */
.toggle-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}
.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0E5C3F;
    margin: 0;
}

/* Admin table — clean, readable */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.admin-table thead th {
    text-align: left;
    padding: 12px 14px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    color: #4b5563;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    position: sticky;
    top: 0;
}
.admin-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #1f2937;
}
.admin-table tbody tr { transition: background .12s; }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table tbody tr.row-primary { background: rgba(201, 162, 39, .05); }
.admin-table tbody tr.row-primary:hover { background: rgba(201, 162, 39, .09); }
.admin-table .admin-cell-line { display: block; font-size: .85rem; margin-bottom: 2px; }
.admin-table .admin-cell-line i { color: #0E5C3F; margin-right: 4px; }
.admin-table .admin-link { color: #0E5C3F; }
.admin-table .admin-link:hover { text-decoration: underline; }
.admin-table .primary-star { color: #C9A227; margin-left: 6px; }

.admin-card-flat { padding: 0; overflow: hidden; }
.admin-card-flat .admin-table thead th:first-child { padding-left: 22px; }
.admin-card-flat .admin-table thead th:last-child  { padding-right: 22px; }
.admin-card-flat .admin-table tbody td:first-child { padding-left: 22px; }
.admin-card-flat .admin-table tbody td:last-child  { padding-right: 22px; }

/* Avatars in admin tables */
.admin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #f3f4f6;
}
.admin-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.status-pill-on    { background: rgba(14, 92, 63, .12);   color: #065f46; border-color: rgba(14, 92, 63, .25); }
.status-pill-off   { background: #f3f4f6;                  color: #6b7280; border-color: #e5e7eb; }
.status-pill-whatsapp { background: rgba(37, 211, 102, .12); color: #128c4f; border-color: rgba(37, 211, 102, .3); }

/* Property status pills used in admin tables/cards — softer pastel variants
   for AA-compliant contrast. The .badge-* solid variants are reserved for
   image-overlay use on property cards.                                       */
.status-pill.badge-sale {
    background: #dcfce7;
    color: #14532d;
    border-color: #bbf7d0;
}
.status-pill.badge-rent {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #bfdbfe;
}
.status-pill.badge-sold {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #fecaca;
}

/* Inline row actions */
.row-inline-form { display: inline-block; margin-left: 4px; vertical-align: middle; }
.row-actions { white-space: nowrap; }
.row-actions .btn-sm { vertical-align: middle; }
.row-actions .btn-sm + .row-inline-form .btn-sm { margin-left: 0; }

/* New inline edit-row pattern (full-width expander below the data row) */
.admin-table-expandable .edit-row > td {
    padding: 0 !important;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-top: 0;
}
.edit-row[hidden] { display: none !important; }
.edit-row-inner {
    padding: 22px 24px;
    border-left: 4px solid var(--c-primary);
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
    animation: editRowIn .25s ease-out;
}
@keyframes editRowIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.edit-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}
.edit-row-head h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--c-primary-dark, #0E5C3F);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.edit-row-head h4 i { color: var(--c-primary); margin-right: 6px; }
.edit-row-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.edit-row-close:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
    transform: rotate(90deg);
}

/* Legacy floating-popover styles — kept for any unmigrated views (contacts edit details still uses them) */
.row-edit { display: inline-block; position: relative; }
.row-edit > summary {
    list-style: none;
    cursor: pointer;
}
.row-edit > summary::-webkit-details-marker { display: none; }
.row-edit-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    right: 0;
    width: min(420px, 86vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .25);
    padding: 18px;
    text-align: left;
}
.row-edit-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}
.row-edit-panel .form-grid { gap: 12px; }

/* Make sure popovers escape the card wrapper */
.admin-card-flat { overflow: visible; }
.admin-card-flat .admin-table { border-radius: 0; overflow: hidden; }

/* Empty state */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.admin-empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}
.admin-empty-state h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-family: 'Playfair Display', Georgia, serif;
}
.admin-empty-state p { margin: 0; }

/* Button sizes / variants harmonized */
.btn-sm {
    padding: 6px 12px;
    font-size: .82rem;
    border-radius: 6px;
}
.btn-xs {
    padding: 4px 9px;
    font-size: .75rem;
    border-radius: 5px;
}

/* Make admin form fully responsive */
@media (max-width: 760px) {
    .admin-form .form-grid { grid-template-columns: 1fr; }
    .admin-page-intro { flex-direction: column; align-items: stretch; }
    .admin-page-stats { justify-content: flex-start; }
    .admin-table thead { display: none; }
    .admin-table tbody td {
        display: block;
        padding: 8px 14px;
        border-bottom: none;
    }
    .admin-table tbody tr {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 0;
        margin-bottom: 14px;
        background: #fff;
    }
    .admin-table tbody tr.row-primary { border-color: #C9A227; }
    .admin-card-flat .admin-table tbody td:first-child,
    .admin-card-flat .admin-table tbody td:last-child {
        padding-left: 14px;
        padding-right: 14px;
    }
    .row-edit-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        top: 60px;
    }
}

/* ============================================================
   PUBLIC NAV — active link styling for current page
   ============================================================ */
.main-nav a.is-current {
    color: #0E5C3F;
}
.main-nav a.is-current::after { transform: scaleX(1); }

/* ============================================================
   ADMIN DASHBOARD — stat cards + content grid
   ============================================================ */
.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.dashboard-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(14, 92, 63, .18);
    border-color: rgba(14, 92, 63, .3);
}
.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dashboard-stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
    font-family: 'Playfair Display', Georgia, serif;
    color: #0E5C3F;
    font-weight: 700;
}
.dashboard-stat span {
    display: block;
    font-size: .82rem;
    color: #6b7280;
    margin-top: 2px;
}
.dashboard-stat.has-pulse::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DC2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .6);
    animation: dashPulse 2s infinite;
}
@keyframes dashPulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
}
.admin-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #0E5C3F;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-card-head h3 i { color: #C9A227; font-size: .95rem; }
.admin-link-small {
    font-size: .82rem;
    color: #0E5C3F;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.admin-link-small i { font-size: .7rem; transition: transform .15s; }
.admin-link-small:hover i { transform: translateX(2px); }
.admin-empty-inline { padding: 40px 20px; }
.admin-empty-inline i { font-size: 2.2rem; }

/* ============================================================
   GLOBAL UX — scroll-to-top button + smooth scroll
   ============================================================ */
html { scroll-behavior: smooth; }
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0E5C3F;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, background .2s;
    z-index: 90;
}
.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top:hover { background: #094530; }

/* ============================================================
   FLOATING STACK — scroll-top + multi-WhatsApp, never overlapping
   ============================================================ */
.floating-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column-reverse; /* WhatsApp anchored bottom, scroll-top above */
    align-items: flex-end;
    gap: 12px;
    z-index: 95;
    pointer-events: none; /* children re-enable */
}
.floating-stack > * { pointer-events: auto; }
.floating-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: 1.4rem;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,.35);
    transition: transform .18s ease, box-shadow .18s ease, opacity .2s, background .2s;
    text-decoration: none;
}
/* Override pre-existing fixed positioning on .wa-fab & .scroll-top */
.floating-stack .wa-fab,
.floating-stack .scroll-top {
    position: static;
    right: auto; bottom: auto;
    transform: none;
}
.floating-stack .wa-fab {
    background: #25D366; color: #fff;
}
.floating-stack .wa-fab:hover { transform: scale(1.06); }
.floating-stack .scroll-top {
    background: #0E5C3F; color: #fff;
    width: 46px; height: 46px;
    opacity: 0; pointer-events: none;
    transform: translateY(8px);
}
.floating-stack .scroll-top.is-visible {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.floating-stack .scroll-top:hover { background: #094530; transform: translateY(0) scale(1.05); }

/* WhatsApp chat panel (always opens — even with one contact) */
.wa-widget { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.floating-stack .wa-fab { position: relative; overflow: visible; }
.wa-fab-dot {
    position: absolute; top: 6px; right: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #ef4444; border: 2px solid #fff;
    animation: waDotPulse 1.8s ease-out infinite;
}
@keyframes waDotPulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    50%      { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.wa-pop {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.06);
    width: 320px;
    padding: 0;
    overflow: hidden;
    animation: waPopIn .22s cubic-bezier(.34,1.4,.5,1);
    transform-origin: bottom right;
}
@keyframes waPopIn {
    from { opacity: 0; transform: translateY(12px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-pop[hidden] { display: none; }
.wa-pop-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
    color: #fff;
    padding: 14px 16px;
}
.wa-pop-headline { display: flex; align-items: center; gap: 10px; }
.wa-pop-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.wa-pop-head strong { display: block; color: #fff; font-size: 1rem; line-height: 1.2; }
.wa-pop-head small { display: block; color: rgba(255,255,255,.82); font-size: .76rem; }
.wa-pop-close {
    background: rgba(255,255,255,.14); border: none; cursor: pointer;
    color: #fff; font-size: .92rem; padding: 6px 9px; border-radius: 8px;
    transition: background .15s;
}
.wa-pop-close:hover { background: rgba(255,255,255,.28); }
.wa-pop-sub { color: #6b7280; font-size: .82rem; margin: 14px 16px 6px; }
.wa-pop-list { list-style: none; padding: 0 8px; margin: 0; }
.wa-pop-list li + li { margin-top: 2px; }
.wa-pop-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    color: inherit; text-decoration: none;
    transition: background .14s, transform .14s;
}
.wa-pop-list a:hover { background: #f0fdf4; transform: translateX(2px); }
.wa-pop-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128c4f 100%);
    color: #fff; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -4px rgba(37,211,102,.55);
}
.wa-pop-meta { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-pop-meta strong { color: #111; font-size: .94rem; }
.wa-pop-meta small { color: #6b7280; font-size: .79rem; }
.wa-pop-go { color: #25D366; font-size: .82rem; opacity: 0; transition: opacity .15s, transform .15s; }
.wa-pop-list a:hover .wa-pop-go { opacity: 1; transform: translateX(2px); }
.wa-pop-foot {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: #6b7280; font-size: .72rem;
    text-align: center;
    margin: 10px 0 0; padding: 9px 12px;
}
.wa-pop-foot i { color: #25D366; margin-right: 4px; }

@media (max-width: 600px) {
    .floating-stack { right: 14px; bottom: 14px; gap: 10px; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.25rem; }
    .floating-stack .scroll-top { width: 40px; height: 40px; }
    .wa-pop { width: calc(100vw - 36px); max-width: 280px; }
}

/* ============================================================
   CONTACT PAGE — phone list & offices grid
   ============================================================ */
.contact-block { margin-bottom: 18px; }
.contact-block-title {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
    color: #6b7280; margin: 0 0 6px; font-weight: 600;
}
.contact-block-title i { color: #0E5C3F; margin-right: 6px; }
.contact-phone-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-phone-list li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
    padding: 10px 12px; background: #f8fafc; border-radius: 10px;
    border: 1px solid #eef2f7;
}
.contact-phone-label {
    font-size: .8rem; font-weight: 600; color: #0E5C3F;
    text-transform: uppercase; letter-spacing: .03em;
    min-width: 80px;
}
.contact-phone-label .primary-star { color: #C9A227; margin-left: 4px; }
.contact-phone-num { color: #111; font-weight: 600; text-decoration: none; }
.contact-phone-num:hover { color: #0E5C3F; }
.contact-whatsapp-link {
    color: #fff !important;
    background: #25D366;
    font-size: .8rem; font-weight: 600;
    text-decoration: none !important;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: auto;
    transition: filter .15s, transform .15s;
}
.contact-whatsapp-link:hover { filter: brightness(1.08); transform: translateY(-1px); }
.contact-whatsapp-link i { font-size: .9rem; }

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 28px;
}
.office-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.office-card:hover { transform: translateY(-3px); border-color: #C9A227; box-shadow: 0 14px 30px -10px rgba(0,0,0,.15); }
.office-name { color: #0E5C3F; margin: 0 0 14px; font-size: 1.1rem; }
.office-name i { margin-right: 6px; color: #C9A227; }
.office-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.office-info i { color: #0E5C3F; margin-right: 8px; width: 16px; }
.office-info a { color: inherit; text-decoration: none; }
.office-info a:hover { color: #0E5C3F; text-decoration: underline; }
.office-map { margin-top: 14px; border-radius: 10px; overflow: hidden; height: 180px; }
.office-map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER POLISH
   ============================================================ */
.footer-tagline { color: rgba(255,255,255,.85); margin-top: 4px; max-width: 320px; }
.footer-line { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.footer-line a { color: inherit; text-decoration: none; }
.footer-line a:hover { color: #fff; }
.footer-line i { color: #C9A227; width: 16px; text-align: center; }
/* ============================================================
   Footer social — plain text links matching default footer style
   ============================================================ */
.footer-social-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}
.social-pill {
    /* Inherits the default .site-footer a styling — kept as a class
       only so admin-added URLs can still be targeted if needed later. */
    background: transparent !important;
    background-image: none !important;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}
.footer-legal-links { display: inline-flex; gap: 14px; }
.footer-legal-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .88rem; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* Hide legacy out-of-stack fixed buttons (defensive — old caches) */
body > .wa-fab:not(.floating-stack .wa-fab),
body > .scroll-top:not(.floating-stack .scroll-top) { display: none !important; }

@media (max-width: 600px) {
    .scroll-top { right: 14px; bottom: 88px; width: 42px; height: 42px; }
    .wa-fab    { bottom: 28px; right: 14px; }
}

/* ============================================================
   FINAL CONSISTENCY LAYER — structural & UX fixes
   ============================================================ */

/* Property card image — now a div with a stretched anchor + image,
   so action buttons aren't nested inside an <a> (invalid HTML). */
.property-card-image { position: relative; display: block; overflow: hidden; }
.property-card-image-link {
    position: absolute; inset: 0; display: block;
    z-index: 1;
}
.property-card-image-link img,
.property-card-image > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.property-card:hover .property-card-image-link img,
.property-card:hover .property-card-image > img { transform: scale(1.05); }
.property-card-image .badge,
.property-card-image .card-actions { z-index: 2; }

/* Pagination ellipsis gap */
.pagination-gap {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    color: var(--c-muted); font-weight: 600;
    -webkit-user-select: none;
    user-select: none;
}

/* Empty-state cards (compare / favorites / no results) */
.empty {
    background: var(--c-surface);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius);
    padding: 48px 28px;
    text-align: center;
    color: var(--c-muted);
    max-width: 640px;
    margin: 0 auto;
}
.empty h3 {
    color: var(--c-primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.empty p { margin: 0 0 18px; }
.empty .btn { margin-top: 4px; }

/* Favorites toolbar */
#favorites-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
#favorites-toolbar .favorites-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Compare actions row */
.compare-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Filter sidebar should NOT stick on small screens when stacked above grid */
@media (max-width: 900px) {
    .listings-grid .filters { position: static; top: auto; }
}

/* ============================================================
   Property listing — collapsible filters (mobile disclosure)
   ============================================================ */
.filters-disclosure { /* the wrapping <details> */
    margin: 0;
}
.filters-disclosure-trigger {
    /* Hidden on desktop — sidebar always shows form */
    display: none;
    list-style: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 6px 18px -8px rgba(14, 92, 63, .55);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.filters-disclosure-trigger::-webkit-details-marker { display: none; } /* hide native triangle in Safari */
.filters-disclosure-trigger::marker { content: ''; } /* hide native triangle in Firefox */
.filters-disclosure-trigger:hover { filter: brightness(1.05); }
.filters-disclosure-trigger:active { transform: translateY(1px); }
.filters-disclosure-trigger:focus-visible {
    outline: 2px solid #F5C45E;
    outline-offset: 2px;
}

.filters-disclosure-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.filters-disclosure-label i { font-size: 1rem; opacity: .92; }

.filters-disclosure-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: #F5C45E;
    color: #422006;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 4px;
}

.filters-disclosure-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    opacity: .92;
    flex-shrink: 0;
}
.filters-disclosure-toggle i { font-size: .72rem; transition: transform .18s ease; }

/* Show/Hide labels swap based on open state */
.filters-disclosure[open] .filters-disclosure-state-show,
.filters-disclosure:not([open]) .filters-disclosure-state-hide {
    display: none;
}
.filters-disclosure-state-show,
.filters-disclosure-state-hide {
    display: inline-flex; align-items: center; gap: 6px;
}

/* Mobile: trigger visible, form acts as a panel that slides in below */
@media (max-width: 900px) {
    .listings-grid .filters {
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-bottom: 18px;
    }
    .filters-disclosure-trigger {
        display: flex;
    }
    .filters-disclosure[open] .filters-disclosure-trigger {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: none;
    }
    .filters-disclosure[open] > form {
        display: flex;
        background: var(--c-surface);
        padding: 16px;
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(15, 23, 42, .06);
        border-top: none;
        animation: filtersSlide .22s ease-out;
    }
    @keyframes filtersSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Desktop fallback: details element stays "visually open" regardless of attribute,
   so the sidebar form is always shown like before.                              */
@media (min-width: 901px) {
    .filters-disclosure > form {
        display: flex !important; /* override default <details> closed state */
    }
}

/* CTA row on dark sections — keep centered when inside .center container */
.bg-primary .center .cta-row,
.center > .cta-row { justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Standard CTA section spacing (centred section with heading + buttons) */
.section.center > h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--c-primary-dark);
    margin-bottom: 10px;
}
.section.center > .muted { margin-bottom: 18px; }

/* Contact list inner div alignment */
.contact-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-list li > div a,
.contact-list li > div span { word-break: break-word; }

/* Touch targets — ensure card actions and pagination meet 40px+ */
.card-action-btn { min-width: 40px; min-height: 40px; }
.pagination a, .pagination span { min-width: 40px; min-height: 40px; }

/* ============================================================
   ADMIN — Dashboard stats, card heads, inline empty states
   ============================================================ */

/* Stat grid — 4-col → 2-col responsive */
.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.dashboard-stat {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 6px 18px -10px rgba(15, 23, 42, .08);
}
.dashboard-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px -10px rgba(15, 23, 42, .15);
    text-decoration: none;
}
.dashboard-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--c-primary-dark);
    line-height: 1;
}
.dashboard-stat span {
    display: block;
    font-size: .76rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    margin-top: 5px;
}
/* Pulse animation for stat cards with new/pending items */
.dashboard-stat.has-pulse strong { animation: pulseNum 2.5s ease-in-out infinite; }
@keyframes pulseNum { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Coloured icon circle inside stat card */
.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Two-column panel grid below stats */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 4px;
}

/* Card head: title row + "View all" link */
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--c-border);
}
.admin-card-head h3 {
    margin: 0;
    font-size: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--c-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-card-head h3 i { color: var(--c-primary); }

/* Small accent link used in card heads */
.admin-link-small {
    font-size: .82rem;
    color: var(--c-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}
.admin-link-small:hover { text-decoration: underline; color: var(--c-primary-dark); }

/* Compact empty state inside a card panel */
.admin-empty-inline {
    padding: 36px 22px !important;
    text-align: center;
    color: var(--c-muted);
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 8px;
    border: none !important;
}
.admin-empty-inline i { font-size: 2rem; color: #d1d5db; }
.admin-empty-inline p { margin: 0; font-size: .9rem; }

/* Row action cell — keeps buttons on one line */
td.row-actions {
    white-space: nowrap;
    vertical-align: middle;
}
td.row-actions form { display: inline-block; }
td.row-actions .btn { vertical-align: middle; }

/* Search form inside .admin-toolbar */
.admin-search-form {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.admin-search-form input[type="search"],
.admin-search-form input[type="text"] {
    flex: 1;
    min-width: 160px;
    max-width: 340px;
    padding: 9px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .9rem;
    background: #f9fafb;
    transition: border-color .15s, box-shadow .15s;
}
.admin-search-form input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
    background: #fff;
}

/* Features checkbox grid (3-col → 2 → 1) */
.features-check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* Admin form fieldset styling */
.admin-form fieldset,
.admin-card.admin-form fieldset {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0;
}
.admin-form fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--c-primary-dark);
}

/* Settings group separator h2 */
form.admin-card > h2 { text-transform: capitalize; }

/* Filter tab bar (inquiries / appointments pages) */
.admin-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Appointments status-update form (column stacked) */
.inline-status-form-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 130px;
}
.inline-status-form-col select,
.inline-status-form-col input[type="text"] {
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    background: #f9fafb;
    width: 100%;
}
.inline-status-form-col select:focus,
.inline-status-form-col input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}

/* Dashboard responsive */
@media (max-width: 900px) {
    .dashboard-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .features-check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .dashboard-stat-grid { gap: 10px; }
    .dashboard-stat { padding: 14px; gap: 10px; }
    .dashboard-stat strong { font-size: 1.3rem; }
    .dashboard-stat-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
    .features-check-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Admin sidebar nav badges + icon-btn quick replies
   + property quick toggles + profile grid
   ============================================================ */
.admin-sidebar nav a { position: relative; }
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .25);
    animation: navBadgePulse 2.4s ease-in-out infinite;
}
@keyframes navBadgePulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(220, 38, 38, .25); }
    50%      { box-shadow: 0 0 0 5px rgba(220, 38, 38, .12); }
}
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; }
.admin-sidebar nav a > i { width: 18px; text-align: center; }

/* Quick reply icon buttons (WhatsApp / call / email) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    margin-right: 4px;
    border: 1px solid transparent;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(0,0,0,.25); }
.icon-btn-wa   { background: rgba(37, 211, 102, .12); color: #128c4f; }
.icon-btn-wa:hover { background: #25D366; color: #fff; }
.icon-btn-tel  { background: rgba(14, 92, 63, .12); color: #0E5C3F; }
.icon-btn-tel:hover { background: #0E5C3F; color: #fff; }
.icon-btn-mail { background: rgba(245, 158, 11, .14); color: #b45309; }
.icon-btn-mail:hover { background: #C9A227; color: #fff; }

/* Icon-only toggle buttons in property table rows */
.icon-toggle {
    background: transparent;
    border: 1px solid transparent;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s, transform .15s;
    font-size: 1rem;
}
.icon-toggle:hover { background: #f3f4f6; border-color: #e5e7eb; transform: scale(1.08); }
.icon-toggle.on    { background: rgba(14, 92, 63, .08); }

/* Status badge as clickable button (cycle status) */
.badge-btn {
    border: 0 !important;
    cursor: pointer !important;
    transition: filter .15s, transform .15s !important;
    font: inherit;
}
.badge-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Filter pill counts */
.filter-count {
    display: inline-block;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
}
.btn-primary .filter-count { background: rgba(255, 255, 255, .25); }

/* Unread (new/pending) rows */
.admin-table tbody tr.row-unread { background: rgba(245, 158, 11, .04); }
.admin-table tbody tr.row-unread strong { color: #0E5C3F; }
.admin-table tbody tr.row-unread > td:first-child { box-shadow: inset 3px 0 0 #C9A227; }

/* Inline status select (no button) */
.inline-status-form select {
    padding: 6px 8px;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 7px;
    font-size: .82rem;
    background: #fff;
    cursor: pointer;
}
.inline-status-form select:hover { border-color: var(--c-primary); }
.inline-status-form select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,92,63,.12); }

/* Search form on admin pages */
.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.admin-search-form input[type="search"],
.admin-search-form input[type="date"],
.admin-search-form select {
    padding: 8px 12px;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 8px;
    font-size: .88rem;
    font-family: inherit;
    background: #fff;
    min-width: 0;
}
.admin-search-form input[type="search"] { min-width: 220px; flex: 1 1 220px; }
.admin-search-form input:focus,
.admin-search-form select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,92,63,.12); }

/* Filter tabs row */
.admin-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Profile grid (two columns of cards) */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 960px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Button color lockdown (defeats parent-scoped `a` color rules
   that override .btn variants). Late in cascade for specificity.
   ============================================================ */
a.btn, button.btn,
a.btn-primary, button.btn-primary,
a.btn-primary:visited,
a.btn-primary:link {
    text-decoration: none;
}
a.btn-primary, a.btn-primary:visited, a.btn-primary:link,
button.btn-primary { color: #fff; }
a.btn-primary:hover, button.btn-primary:hover { color: #fff; }

a.btn-danger, a.btn-danger:visited, a.btn-danger:link,
button.btn-danger { color: #fff; }
a.btn-danger:hover, button.btn-danger:hover { color: #fff; }

a.btn-ghost, a.btn-ghost:visited, a.btn-ghost:link,
button.btn-ghost { color: var(--c-primary); }
a.btn-ghost:hover, button.btn-ghost:hover { color: var(--c-primary-dark, var(--c-primary)); }

/* Inside admin tables and cards an anchor btn must still look like a button */
.admin-table a.btn,
.admin-card a.btn,
.admin-toolbar a.btn,
.row-actions a.btn { text-decoration: none; }

/* ============================================================
   Property detail polish — share bar + mobile sticky CTA
   ============================================================ */

/* Share bar — sits below the main gallery on detail pages */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 14px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.share-bar-label {
    color: #5f6b6a;
    font-size: .88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}
.share-bar .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e3e9e7;
    background: #f7faf9;
    color: #0E5C3F;
    text-decoration: none;
    cursor: pointer;
    font-size: .95rem;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    padding: 0;
}
.share-bar .share-btn:hover {
    transform: translateY(-1px);
    border-color: #0E5C3F;
}
.share-bar .share-wa:hover  { background: #25D366; color: #fff; border-color: #25D366; }
.share-bar .share-fb:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-bar .share-copy:hover { background: #0E5C3F; color: #fff; }
.share-copied {
    font-size: .85rem;
    color: #0E5C3F;
    background: #e7f5ee;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
}

/* Mobile-only sticky CTA on property pages */
.prop-sticky-cta {
    display: none;
}
@media (max-width: 768px) {
    .prop-sticky-cta {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 6px;
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        z-index: 90;
        padding: 8px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
        border: 1px solid #e3e9e7;
    }
    .prop-sticky-cta .psc-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        border-radius: 10px;
        font-size: .72rem;
        font-weight: 600;
        text-decoration: none;
        line-height: 1.1;
        border: 1px solid transparent;
        white-space: nowrap;
    }
    .prop-sticky-cta .psc-btn i { font-size: 1.05rem; }
    .prop-sticky-cta .psc-call { background: #0E5C3F; color: #fff; }
    .prop-sticky-cta .psc-wa   { background: #25D366; color: #fff; }
    .prop-sticky-cta .psc-inq  { background: #F5C45E; color: #2a1a00; }
    .prop-sticky-cta .psc-btn:active { transform: scale(.97); }

    /* Lift the WhatsApp floating widget so it doesn't overlap the sticky bar */
    .floating-stack { bottom: 78px !important; }

    /* Stop the sticky bar from covering the last bit of page content */
    body.has-prop-sticky { padding-bottom: 78px; }
}

/* ============================================================
   Recently Viewed (property single page)
   ============================================================ */
.recent-viewed-section { margin-top: 32px; }
.recent-viewed-section .section-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: #0E5C3F;
    font-weight: 700;
}

/* ============================================================
   Admin Lead CRM
   ============================================================ */
.admin-table-leads th, .admin-table-leads td { font-size: .9rem; vertical-align: top; }
.admin-table-leads .row-priority-high { background: linear-gradient(90deg, rgba(220,38,38,.05), transparent); }

/* Source pill — distinct color per source for fast visual scan */
.source-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
    background: #f3f4f6;
    color: #374151;
    white-space: nowrap;
}
.source-pill.source-property_form     { background: #e0f2fe; color: #075985; }
.source-pill.source-contact_form      { background: #fef3c7; color: #92400e; }
.source-pill.source-construction_form { background: #ede9fe; color: #5b21b6; }
.source-pill.source-callback          { background: #dcfce7; color: #166534; }
.source-pill.source-whatsapp          { background: #d1fae5; color: #064e3b; }
.source-pill.source-phone             { background: #e0e7ff; color: #3730a3; }
.source-pill.source-walk_in           { background: #fce7f3; color: #9d174d; }
.source-pill.source-referral          { background: #fef9c3; color: #854d0e; }
.source-pill.source-manual            { background: #f3f4f6; color: #374151; }
.source-pill.source-unknown           { background: #f3f4f6; color: #6b7280; }

/* Priority pill */
.priority-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}
.priority-pill.priority-high   { background: #fee2e2; color: #991b1b; }
.priority-pill.priority-normal { background: #f3f4f6; color: #4b5563; }
.priority-pill.priority-low    { background: #f1f5f9; color: #64748b; }

/* Follow-up cell */
.follow-up-cell {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .8rem; color: #4b5563;
}
.follow-up-cell.is-overdue {
    color: #b91c1c;
    font-weight: 600;
}
.follow-up-cell.is-overdue i { color: #dc2626; }

.stat-pill-warn {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}
.btn-warning {
    background: #f59e0b;
    color: #1c1917;
    border-color: #d97706;
}
.btn-warning:hover { background: #d97706; color: #fff; }

/* === Lead detail layout === */
.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.lead-col-main, .lead-col-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) {
    .lead-grid { grid-template-columns: 1fr; }
}

.lead-contact-card { padding: 22px; }
.lead-contact-head h3 { margin: 0 0 10px; font-size: 1.5rem; color: #0E5C3F; }
.lead-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-contact-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.lead-contact-row { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.lead-contact-row .muted { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 600px) {
    .lead-contact-rows { grid-template-columns: 1fr; }
}

.lead-message-block {
    background: #f9fafb;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 3px solid #0E5C3F;
    margin-bottom: 16px;
}
.lead-message-block p { margin: 6px 0 0; line-height: 1.55; color: #374151; }

.lead-reply-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-reply-row .btn { flex: 1 1 auto; min-width: 110px; }

.lead-section-title {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #0E5C3F;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}

/* Add note form */
.lead-add-note {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 8px;
    margin-bottom: 18px;
}
.lead-add-note textarea {
    resize: vertical;
    min-height: 42px;
    font-family: inherit;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.lead-add-note .lead-note-kind {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}
@media (max-width: 700px) {
    .lead-add-note { grid-template-columns: 1fr; }
}

/* Timeline */
.lead-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.lead-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}
.lead-timeline-empty {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}
.lead-timeline-item {
    position: relative;
    padding: 4px 0 18px 44px;
}
.lead-timeline-dot {
    position: absolute;
    left: 0; top: 4px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem;
    color: #6b7280;
    z-index: 1;
}
.lead-timeline-item.kind-call .lead-timeline-dot     { border-color: #0E5C3F; color: #0E5C3F; }
.lead-timeline-item.kind-whatsapp .lead-timeline-dot { border-color: #25D366; color: #25D366; }
.lead-timeline-item.kind-email .lead-timeline-dot    { border-color: #3b82f6; color: #3b82f6; }
.lead-timeline-item.kind-meeting .lead-timeline-dot  { border-color: #f59e0b; color: #f59e0b; }
.lead-timeline-item.kind-status .lead-timeline-dot   { border-color: #94a3b8; color: #64748b; }
.lead-timeline-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.lead-timeline-text {
    color: #374151;
    line-height: 1.55;
    font-size: .92rem;
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 8px;
}

/* CRM side panel */
.lead-crm-form, .lead-status-form { display: flex; flex-direction: column; gap: 12px; }
.lead-field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #4b5563; }
.lead-field span { font-weight: 600; color: #374151; }
.lead-field select,
.lead-field input[type="datetime-local"] {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: .92rem;
}
.lead-overdue {
    background: #fee2e2;
    color: #b91c1c;
    padding: 1px 6px;
    border-radius: 4px;
    font-style: normal;
    font-size: .68rem;
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lead-select-lg {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
}
.btn-block { display: block; width: 100%; text-align: center; }

/* Status pills (used in lead detail) */
.status-pill.stat-pill-new       { background: #dbeafe; color: #1e40af; }
.status-pill.stat-pill-contacted { background: #fef3c7; color: #92400e; }
.status-pill.stat-pill-closed    { background: #dcfce7; color: #166534; }

/* ============================================================
   Request a Callback widget (floating)
   ============================================================ */
.cb-widget {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.floating-stack .cb-fab {
    position: relative; overflow: visible;
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(14, 92, 63, .45);
}
.floating-stack .cb-fab:hover { transform: scale(1.06); }
.cb-fab-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(14, 92, 63, .55);
    animation: cbPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes cbPulse {
    0%   { box-shadow: 0 0 0 0 rgba(14, 92, 63, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(14, 92, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 92, 63, 0); }
}

.cb-pop {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.06);
    width: 320px;
    max-width: calc(100vw - 36px);
    /* Cap popover so it never overflows the viewport when the floating
       stack pushes it upward. Leaves room for the FAB(s) + browser chrome. */
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: cbPopIn .22s ease-out;
}
/* Scroll only the inner form/success area, keep the head + foot pinned. */
.cb-pop > .cb-form,
.cb-pop > .cb-success {
    overflow-y: auto;
    flex: 1 1 auto;
}
.cb-pop > .cb-pop-head,
.cb-pop > .cb-pop-foot {
    flex-shrink: 0;
}
@keyframes cbPopIn {
    from { opacity: 0; transform: translateY(12px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cb-pop[hidden] { display: none; }
.cb-pop-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
    color: #fff;
    padding: 14px 16px;
}
.cb-pop-headline { display: flex; align-items: center; gap: 10px; }
.cb-pop-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.cb-pop-head strong { display: block; color: #fff; font-size: 1rem; line-height: 1.2; }
.cb-pop-head small { display: block; color: rgba(255,255,255,.82); font-size: .74rem; }
.cb-pop-close {
    background: rgba(255,255,255,.14); border: none; cursor: pointer;
    color: #fff; font-size: .92rem; padding: 6px 9px; border-radius: 8px;
    transition: background .15s;
}
.cb-pop-close:hover { background: rgba(255,255,255,.28); }

.cb-form {
    padding: 14px 16px 4px;
    display: flex; flex-direction: column; gap: 10px;
}
.cb-field { display: flex; flex-direction: column; gap: 4px; }
.cb-field span {
    font-size: .72rem; color: #6b7280;
    text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.cb-field input, .cb-field select, .cb-field textarea {
    padding: 9px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-size: .92rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .14s, box-shadow .14s;
}
.cb-field input:focus, .cb-field select:focus, .cb-field textarea:focus {
    outline: none;
    border-color: #0E5C3F;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.cb-field textarea { resize: vertical; min-height: 48px; }
.cb-submit {
    margin-top: 4px;
    padding: 11px 14px;
    font-weight: 600;
    font-size: .94rem;
}
.cb-submit:disabled { opacity: .7; cursor: progress; }
.cb-error {
    margin: 4px 0 0;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .82rem;
}

.cb-success {
    padding: 24px 18px 18px;
    text-align: center;
    animation: cbPopIn .25s ease-out;
}
.cb-success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, .4);
    animation: cbCheckPop .35s ease-out;
}
@keyframes cbCheckPop {
    from { transform: scale(0); }
    50%  { transform: scale(1.15); }
    to   { transform: scale(1); }
}
.cb-success h4 { margin: 0 0 6px; color: #0E5C3F; font-size: 1.15rem; }
.cb-success p { margin: 0 0 14px; color: #4b5563; font-size: .9rem; line-height: 1.5; }

.cb-pop-foot {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: #6b7280; font-size: .72rem;
    text-align: center;
    margin: 10px 0 0; padding: 9px 12px;
}
.cb-pop-foot i { color: #0E5C3F; margin-right: 4px; }

@media (max-width: 600px) {
    /* On phones, the popover floats free of the stack column so it doesn't
       push the FABs off-screen on short viewports. It anchors above the
       floating buttons (right: 14px, bottom: 152px ≈ above 2-FAB stack). */
    .cb-pop {
        position: fixed;
        right: 14px;
        left: auto;
        bottom: 152px;
        width: calc(100vw - 28px);
        max-width: 360px;
        max-height: calc(100vh - 184px);
        z-index: 96; /* one above .floating-stack */
    }
}
@media (max-width: 600px) and (max-height: 640px) {
    /* On very short phones (iPhone SE etc), use a true bottom-sheet:
       full-width, anchored to bottom with a thin gap, taller scroll area. */
    .cb-pop {
        right: 8px;
        left: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 16px);
        border-radius: 16px;
        animation: cbSheetIn .26s ease-out;
    }
    @keyframes cbSheetIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    /* Add a dim backdrop so it feels like a proper sheet (pseudo on body
       via the body[data-cb-open] state — set by widget JS).               */
}

/* ============================================================
   Properties listing — quick chips, results meta, filter polish
   ============================================================ */
.price-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
}
.price-presets-label {
    font-size: .82rem;
    color: #065f46;
    font-weight: 600;
    margin-right: 4px;
}
.price-chip {
    display: inline-flex; align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d1fae5;
    color: #065f46;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .14s, transform .14s, color .14s, border-color .14s;
}
.price-chip:hover {
    background: #0E5C3F;
    border-color: #0E5C3F;
    color: #fff;
    transform: translateY(-1px);
}
.price-chip.is-active {
    background: #0E5C3F;
    border-color: #0E5C3F;
    color: #fff;
    box-shadow: 0 4px 10px -3px rgba(14, 92, 63, .4);
}

.results-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.results-count {
    color: #4b5563;
    font-size: .92rem;
}
.results-count strong { color: #0E5C3F; font-size: 1.05rem; }

.active-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.active-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: background .14s, color .14s;
}
.active-chip:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.active-chip i { font-size: .68rem; opacity: .65; }
.active-chips-clear {
    display: inline-flex; align-items: center; gap: 5px;
    color: #6b7280;
    font-size: .78rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .14s, background .14s;
}
.active-chips-clear:hover { color: #0E5C3F; background: #f0fdf4; }

/* Featured-only checkbox row in filters */
.filters .checkbox-row {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    font-size: .9rem;
}
.filters .checkbox-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #0E5C3F;
    cursor: pointer;
}
.filters .hint {
    display: block;
    color: #9ca3af;
    font-size: .72rem;
    margin-top: 3px;
    font-weight: 400;
}

@media (max-width: 800px) {
    .price-presets { padding: 10px 12px; }
    .price-presets-label { width: 100%; margin-bottom: 4px; }
    .price-chip { font-size: .76rem; padding: 5px 10px; }
    .results-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   Mortgage calculator (property detail page)
   ============================================================ */
.mortgage-calc {
    margin-top: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px -8px rgba(0,0,0,.08);
}
.mortgage-calc-head {
    padding: 18px 22px;
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
    color: #fff;
}
.mortgage-calc-head h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.2rem;
    display: flex; align-items: center; gap: 10px;
}
.mortgage-calc-head h2 i { color: #F5C45E; }
.mortgage-calc-sub {
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: .85rem;
}
.mortgage-calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px;
}
.mortgage-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mortgage-field {
    display: flex; flex-direction: column;
    gap: 6px;
}
.mortgage-field > span {
    font-size: .82rem;
    color: #374151;
    font-weight: 600;
}
.mortgage-field > span output {
    color: #0E5C3F;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.mortgage-field input[type="number"],
.mortgage-field select {
    padding: 9px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-size: .94rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .14s, box-shadow .14s;
}
.mortgage-field input[type="number"]:focus,
.mortgage-field select:focus {
    outline: none;
    border-color: #0E5C3F;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.mortgage-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #0E5C3F 0%, #d1fae5 100%);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}
.mortgage-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #0E5C3F;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor: pointer;
    transition: transform .14s;
}
.mortgage-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.mortgage-field input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #0E5C3F;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor: pointer;
}
.mortgage-hint {
    color: #6b7280;
    font-size: .76rem;
    font-weight: 500;
}

.mortgage-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mortgage-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(14, 92, 63, .15);
}
.mortgage-stat:last-of-type { border-bottom: none; }
.mortgage-stat-label {
    color: #4b5563;
    font-size: .85rem;
}
.mortgage-stat strong {
    color: #1f2937;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: .98rem;
}
.mortgage-stat-primary {
    background: #0E5C3F;
    color: #fff;
    margin: -4px -4px 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border-bottom: none;
    box-shadow: 0 6px 18px -8px rgba(14, 92, 63, .5);
}
.mortgage-stat-primary .mortgage-stat-label {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.mortgage-stat-primary strong {
    color: #fff;
    font-size: 1.4rem;
}

.mortgage-disclaimer {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: .76rem;
    line-height: 1.5;
    display: flex; align-items: flex-start; gap: 6px;
}
.mortgage-disclaimer i { color: #0E5C3F; margin-top: 2px; flex-shrink: 0; }

@media (max-width: 800px) {
    .mortgage-calc-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
}

/* ============================================================
   Property views meta (detail header)
   - Default: gray-on-light for cards/listings
   - Inside .page-hero: light-on-dark for the dark-gradient header
   ============================================================ */
.property-header .meta-views {
    display: inline-flex; align-items: center; gap: 6px;
    color: #6b7280;
    font-size: .82rem;
    margin-top: 4px;
}
.property-header .meta-views strong {
    color: #0E5C3F;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.property-header .meta-views i { color: #9ca3af; }

/* Hero override — when the same markup is rendered on the dark hero,
   force readable light-on-dark colors. The previous .strong#0E5C3F was
   invisible against the dark-green gradient. */
.page-hero .property-header .meta-views {
    color: rgba(255, 255, 255, .82);
}
.page-hero .property-header .meta-views strong {
    color: #F5C45E; /* warm gold accent — high contrast on dark green */
}
.page-hero .property-header .meta-views i {
    color: rgba(255, 255, 255, .7);
}

/* ============================================================
   Dashboard: Leads-by-source bar card
   ============================================================ */
.lead-source-bars {
    list-style: none;
    margin: 8px 0 0;
    padding: 4px 18px 0;
    display: flex; flex-direction: column; gap: 4px;
}
.lead-source-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .14s;
}
.lead-source-row:hover { background: #f8fafc; }
.lead-source-label {
    display: flex; justify-content: flex-start;
}
.lead-source-bar-track {
    background: #f1f5f9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
.lead-source-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0E5C3F 0%, #128a5b 100%);
    border-radius: 999px;
    transition: width .35s ease-out;
}

/* Stacked conversion bar (new + contacted + closed) */
.lead-source-bar-stack {
    display: flex;
    overflow: hidden;
}
.lead-source-bar-seg {
    height: 100%;
    transition: width .35s ease-out;
}
.lead-source-bar-seg.seg-new       { background: #2563eb; }
.lead-source-bar-seg.seg-contacted { background: #f59e0b; }
.lead-source-bar-seg.seg-closed    { background: #10b981; }

.lead-source-legend {
    display: flex; gap: 14px;
    margin: 10px 0 4px;
    font-size: .76rem;
    color: #6b7280;
}
.lead-source-legend > span {
    display: inline-flex; align-items: center; gap: 5px;
}
.legend-dot {
    width: 10px; height: 10px; border-radius: 3px;
    display: inline-block;
}
.legend-dot.seg-new       { background: #2563eb; }
.legend-dot.seg-contacted { background: #f59e0b; }
.legend-dot.seg-closed    { background: #10b981; }

/* Top-viewed properties leaderboard */
.top-properties-list {
    list-style: none;
    margin: 8px 0 18px;
    padding: 4px 22px 0;
    counter-reset: tprank;
}
.top-properties-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.top-properties-item:last-child { border-bottom: none; }
.top-properties-rank {
    color: #9ca3af;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
    padding-top: 2px;
    text-align: center;
}
.top-properties-item:nth-child(1) .top-properties-rank { color: #d97706; }
.top-properties-item:nth-child(2) .top-properties-rank { color: #6b7280; }
.top-properties-item:nth-child(3) .top-properties-rank { color: #b45309; }
.top-properties-meta {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0;
}
.top-properties-title {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.3;
    font-size: .92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-properties-title:hover { color: #0E5C3F; }
.top-properties-ext { font-size: .72rem; color: #9ca3af; opacity: .7; }
.top-properties-bar-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}
.top-properties-bar-track {
    background: #f1f5f9;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}
.top-properties-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #0F766E 100%);
    border-radius: 999px;
    transition: width .35s ease-out;
}
.top-properties-views {
    color: #0F766E;
    font-size: .82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.top-properties-views i { color: #14b8a6; margin-right: 3px; }
.top-properties-sub {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem;
}

/* ============================================================
   /properties — Grid / Map view toggle + Leaflet map styling
   ============================================================ */
.view-toggle {
    display: inline-flex;
    background: rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 4px;
    margin-top: 14px;
    gap: 2px;
}
.view-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .14s, color .14s;
}
.view-toggle-btn:hover { background: rgba(255,255,255,.18); }
.view-toggle-btn.is-active {
    background: #fff;
    color: #0E5C3F;
    box-shadow: 0 4px 10px -3px rgba(0,0,0,.18);
}

.map-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.map-meta-missing {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .78rem;
}
.map-meta-missing strong { font-weight: 700; }
.map-meta-missing i { color: #d97706; }

.property-map {
    height: 620px;
    max-height: 80vh;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px -8px rgba(0,0,0,.1);
    background: #f1f5f9;
}
.property-map:focus { outline: 3px solid rgba(14, 92, 63, .25); outline-offset: 2px; }

.map-empty {
    text-align: center;
    padding: 56px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px dashed #d1fae5;
    border-radius: 14px;
    color: #065f46;
}
.map-empty i { font-size: 2.4rem; color: #10b981; margin-bottom: 10px; }
.map-empty h3 { color: #0E5C3F; margin: 8px 0 6px; }
.map-empty p { margin: 0 auto 16px; max-width: 480px; color: #4b5563; line-height: 1.55; }
.map-empty em { color: #0E5C3F; font-style: normal; font-weight: 600; }

/* Price-pin marker (DivIcon) */
.price-pin { background: transparent !important; border: none !important; }
.price-pin-bubble {
    display: inline-block;
    background: #0E5C3F;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: 4px 9px;
    border-radius: 999px;
    box-shadow: 0 6px 14px -4px rgba(14, 92, 63, .55), 0 0 0 2px #fff;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    position: relative;
    cursor: pointer;
    transition: transform .14s, background .14s;
}
.price-pin-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top-color: #0E5C3F;
    border-bottom: none;
    filter: drop-shadow(0 2px 0 #fff);
}
.price-pin-bubble:hover {
    background: #128a5b;
    transform: translate(-50%, -100%) scale(1.06);
}

/* Popup */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    overflow: hidden;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}
.leaflet-popup-tip { box-shadow: none; }
.map-pop {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.map-pop-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.map-pop-body { padding: 10px 12px 12px; }
.map-pop-title {
    font-weight: 700; font-size: .94rem;
    color: #111827; line-height: 1.3;
    margin-bottom: 4px;
}
.map-pop-loc {
    font-size: .76rem; color: #6b7280;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 4px;
}
.map-pop-loc i { color: #0E5C3F; }
.map-pop-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 6px 0;
    gap: 8px;
}
.map-pop-price { font-weight: 700; color: #0E5C3F; font-size: .92rem; }
.map-pop-meta {
    font-size: .75rem;
    color: #4b5563;
    margin-top: 4px;
}
.map-pop-meta i { color: #0E5C3F; margin-right: 2px; }
.map-pop-cta {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px;
    color: #0E5C3F;
    font-weight: 600;
    font-size: .82rem;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.map-pop:hover .map-pop-cta { color: #064a31; }
.map-pop:hover .map-pop-cta i { transform: translateX(2px); transition: transform .14s; }

@media (max-width: 600px) {
    .property-map { height: 480px; }
    .view-toggle-btn { padding: 6px 12px; font-size: .8rem; }
}

/* ============================================================
   Homepage map section
   ============================================================ */
.home-map-section { padding-top: 8px; }
.home-map-section .section-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.home-map-section .section-header h2 { margin-bottom: 4px; }
.home-map-section .muted { color: #6b7280; margin: 0; }
.home-map-section .muted strong { color: #0E5C3F; font-weight: 700; }

.home-property-map {
    /* Slightly shorter than the listing page map so the section feels balanced */
    height: 520px;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 12px 30px -14px rgba(15, 23, 42, .25);
}
@media (max-width: 700px) {
    .home-property-map { height: 380px; }
    .home-map-section .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   Property single — inline map embed + "View on map" CTA
   ============================================================ */
.map-view-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.map-view-cta:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    transform: translateY(-1px);
}
.map-view-cta i { font-size: .9rem; }

.property-map-embed {
    margin: 28px 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 30px -14px rgba(15, 23, 42, .18);
    overflow: hidden;
    scroll-margin-top: 90px; /* leave room for the sticky header on scroll-into-view */
}
.property-map-embed-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    flex-wrap: wrap;
}
.property-map-embed-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #0E5C3F;
    display: inline-flex; align-items: center; gap: 8px;
}
.property-map-embed-head .link {
    font-size: .85rem;
    color: #0E5C3F;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    font-weight: 600;
}
.property-map-embed-head .link:hover { color: #128a5b; gap: 9px; transition: gap .15s; }
.property-map-single {
    height: 380px;
    max-height: 60vh;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 700px) {
    .property-map-single { height: 320px; }
    .property-map-embed-head { padding: 12px 14px; }
    .property-map-embed-head h2 { font-size: 1rem; }
}
/* Brief pulse when user clicks the "View on map" CTA */
.property-map-pulse {
    animation: propertyMapPulse .9s ease-out;
}
@keyframes propertyMapPulse {
    0%   { box-shadow: 0 0 0 0 rgba(14, 92, 63, .55); }
    70%  { box-shadow: 0 0 0 14px rgba(14, 92, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 92, 63, 0); }
}

/* ============================================================
   Admin settings — boolean toggle switch
   ============================================================ */
.settings-form .form-grid { gap: 16px; }
.settings-toggle-row {
    grid-column: 1 / -1; /* span full width */
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.settings-toggle-text {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
}
.settings-toggle-text strong {
    color: #0E5C3F;
    font-size: .95rem;
    font-weight: 700;
}
.settings-toggle-text .muted {
    font-size: .8rem;
    color: #6b7280;
    line-height: 1.45;
}

/* iOS-style toggle switch */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.switch-track {
    width: 46px; height: 26px;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    transition: background .2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.switch-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    transition: transform .2s ease;
}
.switch-input:checked + .switch-track {
    background: linear-gradient(135deg, #0E5C3F 0%, #128a5b 100%);
}
.switch-input:checked + .switch-track .switch-thumb {
    transform: translateX(20px);
}
.switch-input:focus-visible + .switch-track {
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .25), inset 0 1px 2px rgba(0,0,0,.12);
}
.switch:hover .switch-track { filter: brightness(.97); }

/* ============================================================
   Admin: Coord picker modal (property edit form)
   ============================================================ */
.lat-lng-helper {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: -6px 0 6px;
}
.lat-lng-helper .muted { color: #6b7280; font-size: .78rem; }

.coord-picker-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.coord-picker-modal[hidden] { display: none; }
.coord-picker-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
    animation: cpFade .18s ease-out;
}
@keyframes cpFade { from { opacity: 0; } to { opacity: 1; } }
.coord-picker-card {
    position: relative;
    width: min(900px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.4);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: cpRise .22s ease-out;
}
@keyframes cpRise {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.coord-picker-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}
.coord-picker-head strong { font-size: 1rem; color: #0E5C3F; display: inline-flex; align-items: center; gap: 8px; }
.coord-picker-head strong i { color: #128a5b; }
.coord-picker-close {
    background: #f1f5f9; border: none; cursor: pointer;
    width: 30px; height: 30px; border-radius: 8px;
    color: #4b5563;
    transition: background .14s, color .14s;
}
.coord-picker-close:hover { background: #fee2e2; color: #b91c1c; }

.coord-picker-hint {
    margin: 10px 18px 0;
    font-size: .82rem; color: #6b7280;
}
.coord-picker-search {
    display: flex; gap: 8px;
    padding: 10px 18px;
}
.coord-picker-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .92rem;
}
.coord-picker-search input:focus {
    outline: none;
    border-color: #0E5C3F;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}

.coord-picker-map {
    flex: 1;
    min-height: 420px;
    margin: 0 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.coord-picker-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    flex-wrap: wrap;
}
.coord-picker-readout {
    color: #4b5563;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}
.coord-picker-readout strong { color: #0E5C3F; font-weight: 700; }
.coord-picker-readout i { margin-right: 4px; color: #0E5C3F; }
.coord-picker-actions { display: inline-flex; gap: 8px; }

.btn.btn-sm { padding: 6px 12px; font-size: .82rem; }

@media (max-width: 700px) {
    .coord-picker-map { min-height: 320px; }
    .coord-picker-search { flex-wrap: wrap; }
}

/* ============================================================
   Dashboard: Featured-on-homepage manager
   ============================================================ */
.featured-manager {
    margin-top: 24px;
}
.featured-manager .admin-card-head {
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
}
.featured-manager .featured-count {
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    padding: 1px 9px;
    margin-left: 6px;
    min-width: 24px;
}
.featured-help {
    font-size: .78rem;
    line-height: 1.5;
    flex-basis: 100%;
}

.featured-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 22px 0;
}
.featured-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.featured-item:last-child { border-bottom: none; }
.featured-item-title {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-item-title:hover { color: #0E5C3F; }
.featured-item-star { color: #F5C45E; flex-shrink: 0; }
.featured-item-ext { font-size: .68rem; color: #9ca3af; opacity: .7; flex-shrink: 0; }
.featured-item-meta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem;
    color: #6b7280;
    white-space: nowrap;
}
.featured-item-form { margin: 0; }
.featured-toggle-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}
.featured-toggle-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.featured-manager .admin-empty-state {
    margin: 14px 22px;
}

.featured-add {
    margin: 6px 0 0;
    padding: 14px 22px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.featured-add-label {
    display: flex; align-items: center; gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}
.featured-add-label i { color: #0E5C3F; }
.featured-add-form {
    display: flex; gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}
.featured-add-form select {
    flex: 1 1 220px;
    min-width: 0; /* allow shrink so it doesn't force overflow */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .92rem;
    background: #fff;
}
.featured-add-form select:focus {
    outline: none;
    border-color: #0E5C3F;
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .12);
}
.featured-add-form .btn { white-space: nowrap; }
.featured-add small.muted {
    display: block;
    margin-top: 8px;
    font-size: .76rem;
}

@media (max-width: 700px) {
    .featured-list { padding: 4px 16px 0; }
    .featured-add  { padding: 12px 16px 16px; }
    .featured-manager .admin-empty-state { margin: 12px 16px; }
    .featured-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 0;
    }
    .featured-item-meta { justify-content: flex-start; flex-wrap: wrap; }
    .featured-item-form { justify-self: start; }
    .featured-add-form { flex-direction: column; }
    .featured-add-form .btn { width: 100%; justify-content: center; }
}
.lead-source-count {
    text-align: right;
    color: #4b5563;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.lead-source-count strong { color: #0E5C3F; font-weight: 700; }

.lead-source-foot {
    margin: 12px 22px 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: .88rem;
    color: #4b5563;
}
.lead-source-legend {
    margin: 10px 22px 4px;
}
.admin-card-flat .admin-empty-state.admin-empty-inline {
    margin: 14px 22px 18px;
}
.lead-source-foot strong {
    color: #0E5C3F; font-weight: 700; font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.lead-priority-mini {
    display: inline-flex; gap: 6px; flex-wrap: wrap;
    margin-left: auto;
}

@media (max-width: 700px) {
    .lead-source-bars { padding: 4px 14px 0; }
    .lead-source-foot, .lead-source-legend { margin-left: 14px; margin-right: 14px; }
    .admin-card-flat .admin-empty-state.admin-empty-inline { margin-left: 14px; margin-right: 14px; }
    .lead-source-row { grid-template-columns: 100px minmax(0, 1fr) 64px; gap: 8px; padding: 8px 4px; }
    .lead-source-row .source-pill { font-size: .68rem; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; display: block; }
    .lead-priority-mini { margin-left: 0; }

    .top-properties-list { padding: 4px 14px 0; }
    .top-properties-item { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
    .top-properties-title { white-space: normal; }
}

/* ============================================================
   HOME REFRESH — hero search, showcase, type callback modal
   ============================================================ */

/* Move the hero search slightly lower while keeping Warasat green focus states. */
.hero .search-bar {
    position: relative;
    margin-top: clamp(18px, 2.8vw, 34px);
    border-color: rgba(14, 92, 63, .18);
}
.hero .search-bar::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    opacity: .9;
}

/* Dark textured listing glimpse placed directly below hero. */
.home-showcase-section {
    margin-top: 0;
    background:
        radial-gradient(700px 420px at 8% 8%, rgba(201, 162, 39, .2), transparent 62%),
        radial-gradient(760px 460px at 96% 92%, rgba(255, 255, 255, .07), transparent 62%),
        linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}
.home-showcase-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .4;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.home-showcase-section .container { position: relative; z-index: 1; }
.home-showcase-section .section-header .muted,
.home-showcase-section .section-header p { color: rgba(255, 255, 255, .82); }
.home-showcase-section .showcase-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 18px);
}
.showcase-strip-dark .showcase-tile {
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 42px -22px rgba(0, 0, 0, .75);
    background: rgba(255, 255, 255, .08);
}
.showcase-tile-overlay {
    position: absolute;
    inset: auto 10px 10px 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(14, 92, 63, .92);
    color: white;
    font-size: .78rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.showcase-tile:hover .showcase-tile-overlay,
.showcase-tile:focus-visible .showcase-tile-overlay {
    opacity: 1;
    transform: translateY(0);
}
.showcase-tile:hover .showcase-tile-overlay { background: var(--c-primary-dark); }

/* Explore-by-Type CTA cards are buttons, not navigation links. */
.explore-type-section { position: relative; }
.explore-type-section .section-header p {
    max-width: 720px;
    margin: 0;
    color: var(--c-muted);
}
.callback-type-card {
    border: 1px solid rgba(14, 92, 63, .08);
    width: 100%;
    min-height: 235px;
    cursor: pointer;
    font: inherit;
    color: var(--c-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.callback-type-card p {
    margin: 0;
    color: var(--c-muted);
    font-size: .92rem;
    line-height: 1.5;
    max-width: 220px;
}
.callback-type-card > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--c-primary);
    font-size: .84rem;
    font-weight: 700;
}
.callback-type-card:hover > span,
.callback-type-card:focus-visible > span { color: var(--c-primary-dark); }
.callback-type-card:focus-visible {
    outline: 3px solid rgba(201, 162, 39, .45);
    outline-offset: 4px;
}

/* Homepage property-type callback modal. */
body.type-callback-open { overflow: hidden; }
.type-callback-modal[hidden] { display: none; }
.type-callback-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
}
.type-callback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 38, 25, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.type-callback-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    max-height: min(760px, calc(100vh - 44px));
    overflow-y: auto;
    background:
        radial-gradient(420px 240px at 100% 0%, rgba(201, 162, 39, .14), transparent 58%),
        #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .72);
    animation: typeModalIn .25s var(--ease-out);
}
@keyframes typeModalIn {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.type-callback-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--c-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.type-callback-close:hover { background: var(--c-primary); color: #fff; transform: rotate(90deg); }
.type-callback-icon,
.type-callback-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: white;
    font-size: 1.35rem;
    box-shadow: 0 14px 30px -14px rgba(14, 92, 63, .65);
    margin-bottom: 16px;
}
.type-callback-dialog h3 {
    font-size: 1.55rem;
    margin: 0 42px 8px 0;
    color: var(--c-primary-dark);
}
.type-callback-dialog > p {
    margin: 0 0 20px;
    color: var(--c-muted);
    line-height: 1.55;
}
.type-callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.type-callback-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.type-callback-form label span {
    color: var(--c-text);
    font-size: .84rem;
    font-weight: 700;
}
.type-callback-form input,
.type-callback-form textarea {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fbfaf5;
    color: var(--c-text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.type-callback-form textarea { resize: vertical; min-height: 96px; }
.type-callback-form input:focus,
.type-callback-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 92, 63, .14);
}
.type-callback-form .btn { margin-top: 4px; padding: 12px 16px; }
.type-callback-form .btn:disabled { opacity: .72; cursor: progress; }
.type-callback-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: .88rem;
}
.type-callback-success {
    text-align: center;
    padding: 8px 0 2px;
}
.type-callback-success-icon {
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #10b981, #059669);
}
.type-callback-success h4 {
    margin: 0 0 8px;
    color: var(--c-primary-dark);
    font-size: 1.25rem;
}
.type-callback-success p {
    margin: 0 0 16px;
    color: var(--c-muted);
}

@media (max-width: 1180px) {
    .home-showcase-section .showcase-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hero .search-bar { margin-top: 18px; }
    .home-showcase-section .showcase-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-tile-overlay { opacity: 1; transform: none; font-size: .72rem; }
    .callback-type-card { min-height: 210px; }
    .type-callback-dialog { padding: 24px 18px; border-radius: 18px; }
}
@media (max-width: 460px) {
    .home-showcase-section .showcase-strip { gap: 10px; }
    .type-callback-modal { padding: 12px; }
    .type-callback-dialog { max-height: calc(100vh - 24px); }
}

/* ============================================================
   PREMIUM GREEN TEXTURE PASS — hero + dark sections + property images
   ============================================================ */

:root {
    --warasat-gold: #E2B83A;
    --warasat-gold-deep: #C9A227;
    --warasat-gold-soft: #FFE9A8;
    --warasat-green-ink: #062619;
    --warasat-hero-image: url('../images/site/hero-home-bg.png?v=20260527_hero_home');
    --warasat-texture-image: url('../images/site/hero-bg.png?v=20260527_texture');
    --warasat-texture-grid:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    --warasat-dark-texture: var(--warasat-texture-image);
}

/* Hero: deeper green photographic texture + balanced premium spacing. */
.hero {
    --hero-img: var(--warasat-hero-image);
    min-height: min(860px, calc(100vh - 72px));
    display: flex;
    align-items: center;
    padding: clamp(96px, 10vw, 152px) 0 clamp(84px, 8vw, 124px);
    background: var(--warasat-green-ink) var(--warasat-hero-image) center / cover no-repeat;
}
.hero-bg {
    background-image: var(--warasat-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: none;
}
.hero::before {
    background: linear-gradient(180deg, rgba(4, 24, 18, .32) 0%, rgba(4, 24, 18, .52) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: none;
}
.hero-vignette {
    background:
        radial-gradient(ellipse 72% 58% at 50% 42%, transparent 42%, rgba(0,0,0,.34) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.26));
}
.hero-inner {
    max-width: 980px;
    padding-top: 6px;
}
.hero-verse-wrap {
    background:
        linear-gradient(135deg, rgba(6, 38, 25, .72), rgba(9, 69, 48, .42)),
        radial-gradient(420px 180px at 50% 0%, rgba(226,184,58,.13), transparent 70%);
    border-color: rgba(255, 233, 168, .42);
}
.hero h1 {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.85rem);
    max-width: 940px;
    margin-bottom: 16px;
    text-shadow: 0 4px 22px rgba(0,0,0,.62), 0 1px 2px rgba(0,0,0,.6);
}
.hero h1 .hl {
    display: inline-block;
    background: linear-gradient(135deg, var(--warasat-gold-soft) 0%, var(--warasat-gold) 45%, var(--warasat-gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--warasat-gold);
    filter: drop-shadow(0 8px 20px rgba(201, 162, 39, .28));
    text-shadow: none;
}
.hero-lede {
    max-width: 700px;
    margin-bottom: 0;
    color: rgba(255,255,255,.92);
}
.hero .search-bar {
    margin-top: clamp(28px, 3.5vw, 44px);
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 233, 168, .38);
    box-shadow:
        0 34px 72px -22px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(201, 162, 39, .18),
        inset 0 1px 0 rgba(255,255,255,.88);
}
.hero .search-bar::before {
    background: linear-gradient(90deg, transparent, var(--warasat-gold-soft), var(--warasat-gold), transparent);
    left: 30px;
    right: 30px;
    top: -1px;
}
.hero-trust { margin-top: clamp(26px, 3vw, 38px); }
.hero-trust span {
    background: rgba(6, 38, 25, .32);
    border-color: rgba(255, 233, 168, .18);
}

/* Texture only on sections that are already dark. */
.bg-primary.section,
.why,
.home-showcase-section,
.page-hero,
.site-footer,
.auth-shell,
.admin-sidebar {
    background-image: var(--warasat-dark-texture);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: var(--warasat-green-ink);
}
.site-footer,
.auth-shell,
.admin-sidebar { position: relative; overflow: hidden; }
.agent-tile-avatar,
.mortgage-calc-head,
.cb-pop-head {
    background-image: var(--warasat-dark-texture);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: var(--warasat-green-ink);
}
.home-showcase-section::after,
.why::before,
.page-hero::before {
    display: none;
}
.home-showcase-section .section-header h2,
.why .section-header h2 { color: #fff; }
.home-showcase-section .section-header h2::after,
.why .section-header h2::after {
    background: linear-gradient(90deg, transparent, var(--warasat-gold-soft), var(--warasat-gold-deep), transparent);
}

/* Property image containers keep the same green texture as a premium loading/empty state. */
.property-card-image,
.compare-image,
.showcase-strip a,
.branded-tile,
.gallery img#gallery-main {
    background-image: var(--warasat-texture-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--warasat-green-ink);
}
.property-card-image,
.showcase-strip a,
.compare-image { position: relative; isolation: isolate; }
.property-card-image::before,
.showcase-strip a::before,
.compare-image::before {
    display: none;
}
.property-card-image-link,
.property-card-image > img,
.showcase-strip a > img,
.compare-image > img { z-index: 1; }
.property-card-image::after {
    z-index: 2;
    opacity: .14;
    background:
        linear-gradient(180deg, rgba(6,38,25,.12) 0%, transparent 36%, rgba(6,38,25,.44) 100%),
        radial-gradient(360px 220px at 50% 105%, rgba(201,162,39,.18), transparent 72%);
}
.property-card:hover .property-card-image::after { opacity: .34; }
.property-card-image .badge,
.property-card-image .card-actions { z-index: 3; }
.showcase-strip-dark .showcase-tile {
    border-color: rgba(255, 233, 168, .22);
    box-shadow: 0 24px 48px -24px rgba(0,0,0,.78), inset 0 0 0 1px rgba(255,255,255,.04);
}
.showcase-tile-overlay {
    background: linear-gradient(135deg, rgba(14, 92, 63, .94), rgba(6, 38, 25, .94));
    border: 1px solid rgba(255, 233, 168, .2);
}

@media (max-width: 760px) {
    .hero {
        min-height: 0;
        padding: 76px 0 64px;
    }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
    .hero .search-bar { margin-top: 22px; }
}
