/* ==========================================================================
   دار — design system
   ========================================================================== */
:root {
  --ink: #0b1324;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5e9f0;
  --line-2: #f1f4f8;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-600: #0d9488;
  --brand-500: #14b8a6;
  --brand-50: #ecfdf8;
  --brand-100: #ccfbef;
  --night: #071a2b;
  --gold: #d97706;
  --gold-50: #fff7e6;
  --green: #059669;
  --green-50: #e7f8f0;
  --teal-50: #e6fbf8;
  --blue: #2563eb;
  --blue-50: #eaf1ff;
  --violet: #7c3aed;
  --violet-50: #f2edff;
  --amber: #b45309;
  --amber-50: #fff5e0;
  --orange: #ea580c;
  --orange-50: #fff0e6;
  --red: #dc2626;
  --red-50: #fdecec;
  --gray-50: #f1f5f9;
  --wa: #16a34a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px -20px rgba(7, 26, 43, .35);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 22px; height: 22px; }
.i.xl { width: 28px; height: 28px; }
.i.fill { fill: currentColor; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s; background: var(--card); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 118, 110, .55); }
.btn-primary:hover { background: #0b5f59; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-gold:hover { color: #fff; filter: brightness(1.05); }
.btn-outline { border-color: var(--line); background: var(--card); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--gray-50); color: var(--ink); }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 5px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Badges & chips --------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; line-height: 1.5; white-space: nowrap; background: var(--gray-50); color: var(--ink-2); }
.badge .i { width: 13px; height: 13px; }
.badge.green { background: var(--green-50); color: var(--green); }
.badge.teal { background: var(--teal-50); color: var(--brand); }
.badge.blue { background: var(--blue-50); color: var(--blue); }
.badge.violet { background: var(--violet-50); color: var(--violet); }
.badge.amber { background: var(--amber-50); color: var(--amber); }
.badge.orange { background: var(--orange-50); color: var(--orange); }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.gray { background: var(--gray-50); color: var(--muted); }
.badge.gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.badge.dark { background: rgba(11, 19, 36, .75); color: #fff; backdrop-filter: blur(6px); }
.badge.solid-green { background: var(--green); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .x { opacity: .6; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.verified { color: var(--brand-500); }

/* Cards ----------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 22px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #14b8a6 0%, #0f766e 55%, #0b3d4a 100%); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(15, 118, 110, .7); }
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: -6px; letter-spacing: 0; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.nav a:hover, .nav a.active { background: var(--gray-50); color: var(--ink); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--gray-50); color: var(--ink); }
.dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60; }
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; color: var(--ink-2); text-align: start; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--gray-50); color: var(--ink); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-panel .who { padding: 8px 12px 10px; }
.mobile-toggle { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; border-radius: 24px; border: 4px solid #fff; box-shadow: var(--shadow); }

/* Flash ----------------------------------------------------------------- */
.flash { position: fixed; top: 82px; inset-inline-start: 50%; transform: translateX(50%); z-index: 100; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100% - 32px); animation: flash-in .35s ease; }
[dir=rtl] .flash { transform: translateX(50%); }
.flash.success { background: #052e2b; color: #d1fae5; }
.flash.error { background: #450a0a; color: #fee2e2; }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; }
@keyframes flash-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(20, 184, 166, .35), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(217, 119, 6, .22), transparent 60%), linear-gradient(160deg, #04121f 0%, #082a3a 55%, #0a3b45 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 800; max-width: 820px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(15px, 1.8vw, 19px); color: #cbd5e1; max-width: 680px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 13px; color: #94a3b8; }

.searchbox { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg); max-width: 980px; }
.searchbox .tabs { display: flex; gap: 4px; padding: 4px 4px 10px; }
.searchbox .tab { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.searchbox .tab.active { background: var(--ink); color: #fff; }
.searchbox .tab .new { font-size: 10.5px; background: linear-gradient(90deg, #14b8a6, #f59e0b); color: #fff; padding: 1px 7px; border-radius: 999px; margin-inline-start: 4px; }
.searchbox .row { display: flex; gap: 8px; align-items: stretch; }
.searchbox .field { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 54px; }
.searchbox .field input, .searchbox .field select { border: 0; background: transparent; font: inherit; font-size: 15.5px; width: 100%; outline: none; color: var(--ink); height: 52px; }
.searchbox .ai-hint { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 6px 4px; font-size: 13px; color: var(--muted); align-items: center; }
.searchbox .ai-hint button { border: 1px dashed var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.searchbox .ai-hint button:hover { border-color: var(--brand); color: var(--brand); }
.searchbox .classic { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 8px; }
.searchbox .classic select, .searchbox .classic input { height: 54px; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; width: 100%; }

/* Listing card ----------------------------------------------------------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.lcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; }
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.lcard.featured { border-color: #f5c66b; box-shadow: 0 0 0 1px #fde7b0 inset; }
.lcard .media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); overflow: hidden; }
.lcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lcard:hover .media img { transform: scale(1.04); }
.lcard .tl { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .tr { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 6px; }
.lcard .bl { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.lcard .round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border: 0; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm); }
.lcard .round:hover { color: var(--red); }
.lcard .round.on { color: var(--red); }
.lcard .round.on .i { fill: currentColor; }
.lcard .round.cmp.on { color: var(--brand); }
.lcard .round.cmp.on .i { fill: none; }
.lcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lcard .price { font-size: 20px; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lcard .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.lcard .title { font-weight: 600; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .loc { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lcard .specs { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-2); padding-top: 8px; margin-top: auto; border-top: 1px dashed var(--line); }
.lcard .specs span { display: inline-flex; align-items: center; gap: 5px; }
.lcard .specs .i { width: 16px; height: 16px; color: var(--muted); }
.lcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); background: #fcfdfe; font-size: 13px; }
.lcard .agency { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); font-weight: 500; }
.lcard .agency img, .lcard .agency .avatar { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; font-size: 12px; }
.lcard .agency span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard a.cover-link { position: absolute; inset: 0; z-index: 1; }
.lcard .round, .lcard .foot a { position: relative; z-index: 2; }
.lcard.row { flex-direction: row; }
.lcard.row .media { width: 340px; aspect-ratio: auto; min-height: 220px; flex-shrink: 0; }
.lcard.row .wrapb { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fair { display: inline-flex; align-items: center; gap: 4px; }

/* Area cards ------------------------------------------------------------ */
.area-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.area-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(4, 18, 31, .88) 100%); }
.area-card:hover img { transform: scale(1.06); }
.area-card:hover { color: #fff; }
.area-card h3 { margin: 0 0 4px; font-size: 19px; }
.area-card .meta { font-size: 13px; color: #cbd5e1; display: flex; flex-direction: column; gap: 2px; }
.area-card .meta b { color: #fff; }
.trend-up { color: #22c55e; } .trend-down { color: #ef4444; }

/* Features strip -------------------------------------------------------- */
.feature { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.ico.teal { background: var(--brand-50); color: var(--brand); }
.ico.gold { background: var(--gold-50); color: var(--gold); }
.ico.blue { background: var(--blue-50); color: var(--blue); }
.ico.violet { background: var(--violet-50); color: var(--violet); }
.ico.green { background: var(--green-50); color: var(--green); }
.ico.red { background: var(--red-50); color: var(--red); }

.dark-band { background: linear-gradient(160deg, #04121f, #0b3340); color: #e2e8f0; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; }
.dark-band h2 { color: #fff; }
.dark-band .muted { color: #94a3b8; }

/* Project cards --------------------------------------------------------- */
.pcard { display: block; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.pcard .media { aspect-ratio: 16 / 9; position: relative; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; }
.pcard .media .badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.pcard .body { padding: 18px; }
.pcard .terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pcard .terms div { background: var(--bg); border-radius: 12px; padding: 8px 10px; text-align: center; }
.pcard .terms b { display: block; font-size: 15px; }
.pcard .terms span { font-size: 12px; color: var(--muted); }

/* Agency card ----------------------------------------------------------- */
.acard { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .2s; }
.acard:hover { box-shadow: var(--shadow); color: inherit; }
.acard img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.stars { color: #f59e0b; display: inline-flex; gap: 1px; }
.stars .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .off { color: #e2e8f0; }

/* Forms ----------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label.lbl, .lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
.input.sm { height: 38px; font-size: 14px; border-radius: 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-validation-error, .text-danger { color: var(--red); font-size: 13px; margin-top: 4px; display: block; }
.validation-summary-errors ul { margin: 0 0 14px; padding: 12px 34px 12px 14px; background: var(--red-50); color: var(--red); border-radius: 12px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; }
.pill-check span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; background: #fff; width: 100%; }
.pill-check input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.seg { display: inline-flex; background: var(--gray-50); padding: 4px; border-radius: 12px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Search page ----------------------------------------------------------- */
.search-top { background: #fff; border-bottom: 1px solid var(--line); }
.search-top .inner { padding: 18px 0; }
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.filters .grp { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filters .grp:last-child { border: 0; }
.filters h4 { font-size: 14px; margin: 0 0 10px; color: var(--ink-2); }
.filters .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.filters .opts .pill-check span { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; width: auto; }
.results-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.understood { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: linear-gradient(90deg, var(--brand-50), #fffbeb); border: 1px solid var(--brand-100); border-radius: 14px; margin-bottom: 16px; font-size: 14px; }
.understood .badge { background: #fff; border: 1px solid var(--brand-100); color: var(--brand); }
.insight-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.insight-strip > div { background: #fff; padding: 12px 16px; }
.insight-strip b { display: block; font-size: 17px; }
.insight-strip span { font-size: 12.5px; color: var(--muted); }
#map, .map { height: 640px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map.sm { height: 300px; }
.map-pop { font-family: var(--font); direction: rtl; min-width: 200px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.map-pop b { font-size: 15px; display: block; }
.price-pin { background: var(--ink); color: #fff; font: 700 12px var(--font); padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.price-pin.deal { background: var(--green); }
.price-pin.feat { background: var(--gold); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .i { width: 46px; height: 46px; color: var(--muted-2); margin-bottom: 12px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-toggle { display: none; }

/* Listing details ------------------------------------------------------- */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 16px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: 22px; overflow: hidden; position: relative; }
.gallery > a, .gallery > button { position: relative; overflow: hidden; display: block; background: #e2e8f0; border: 0; padding: 0; cursor: zoom-in; }
.gallery > :first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery > *:hover img { transform: scale(1.03); }
.gallery .more { position: absolute; inset: 0; background: rgba(4, 18, 31, .55); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.gallery .float { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 8px; z-index: 2; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 24px; }
.sticky-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.price-big { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.fact .ico { width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.fact b { display: block; font-size: 16px; }
.fact span { font-size: 12.5px; color: var(--muted); }
.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.spec-table div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.spec-table div span:first-child { color: var(--muted); }
.spec-table div span:last-child { font-weight: 600; }
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenities span { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.amenities .i { color: var(--brand); }
.desc { white-space: pre-line; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }

.fair-card { border-radius: 20px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.fair-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fair-head .ico { width: 46px; height: 46px; border-radius: 14px; margin: 0; }
.gauge { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #059669 0%, #14b8a6 25%, #3b82f6 50%, #f59e0b 75%, #dc2626 100%); margin: 26px 0 8px; }
[dir=rtl] .gauge { background: linear-gradient(270deg, #059669 0%, #14b8a6 25%, #3b82f6 50%, #f59e0b 75%, #dc2626 100%); }
.gauge .needle { position: absolute; top: -9px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); transform: translateX(50%); box-shadow: var(--shadow); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.contact-card .agent { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.contact-card .agent img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tabs-line { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs-line button, .tabs-line a { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line .active { color: var(--ink); border-color: var(--brand); }

.calc .out { background: var(--ink); color: #fff; border-radius: 16px; padding: 16px; margin-top: 14px; }
.calc .out b { font-size: 26px; display: block; }
.calc .out .row { display: flex; justify-content: space-between; font-size: 13.5px; color: #cbd5e1; margin-top: 4px; }
input[type=range] { width: 100%; accent-color: var(--brand); }

.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#gradTeal); }
.chart .line { fill: none; stroke: var(--brand-600); stroke-width: 2.5; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.bars .b { flex: 1; background: linear-gradient(180deg, var(--brand-500), var(--brand)); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.bars .b:hover { filter: brightness(1.15); }
.bars .b .lead-dot { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.lightbox { position: fixed; inset: 0; background: rgba(2, 8, 15, .94); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; }
.lightbox .nav-btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .prev { right: 20px; } .lightbox .next { left: 20px; }
.lightbox .close { position: absolute; top: 18px; left: 18px; }
.lightbox .count { position: absolute; bottom: 20px; color: #cbd5e1; font-weight: 600; }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(4, 18, 31, .55); backdrop-filter: blur(3px); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { margin: 0; }
dialog .dlg-body { padding: 22px; }

.compare-tray { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; z-index: 70; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 12px 10px 16px; display: none; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.compare-tray.show { display: flex; }
.compare-tray .slots { display: flex; gap: 6px; }
.compare-tray .slot { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ctable th, .ctable td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: top; font-size: 14.5px; }
.ctable th { width: 180px; color: var(--muted); font-weight: 600; background: #fbfcfd; }
.ctable td img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.ctable .best { color: var(--green); font-weight: 700; }

/* Agency profile -------------------------------------------------------- */
.cover { height: 260px; background-size: cover; background-position: center; border-radius: 0 0 28px 28px; position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(4, 18, 31, .6)); border-radius: inherit; }
.profile-head { display: flex; gap: 20px; align-items: flex-end; margin-top: -56px; position: relative; z-index: 2; flex-wrap: wrap; }
.profile-head .info { flex: 1; min-width: 240px; padding-bottom: 6px; }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat-row b { font-size: 22px; display: block; }
.stat-row span { font-size: 13px; color: var(--muted); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border: 0; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 11px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfdfe; }
.thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--gray-50); }

/* Pricing --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan.hot { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(15, 118, 110, .45); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 50%; translate: 50% 0; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.plan .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .i { color: var(--brand); margin-top: 3px; }
.plan li.off { color: var(--muted-2); }
.plan li.off .i { color: var(--muted-2); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: #04121f; color: #94a3b8; padding: 54px 0 26px; margin-top: 70px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #5eead4; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .bottom { border-top: 1px solid rgba(148, 163, 184, .15); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.site-footer .logo { color: #fff; }

/* Auth ------------------------------------------------------------------ */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: linear-gradient(160deg, #04121f, #0a3b45); color: #e2e8f0; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth .side h2 { color: #fff; font-size: 30px; }
.auth .side ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth .side li { display: flex; gap: 10px; align-items: flex-start; }
.auth .side li .i { color: #5eead4; margin-top: 3px; }
.auth .main { display: grid; place-items: center; padding: 40px 16px; }
.auth .box { width: 100%; max-width: 440px; }
.demo-accounts { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--gold-50); border: 1px dashed #f5c66b; font-size: 13px; }
.demo-accounts button { border: 0; background: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 12.5px; cursor: pointer; margin: 3px 0 0 4px; border: 1px solid #f5d999; }

/* Dashboard ------------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.dash-side { background: #04121f; color: #94a3b8; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.dash-side .logo { color: #fff; padding: 4px 8px 18px; }
.dash-side .logo small { color: #64748b; }
.dash-side nav { display: flex; flex-direction: column; gap: 2px; }
.dash-side nav .lbl2 { font-size: 11.5px; font-weight: 700; color: #475569; padding: 16px 12px 6px; letter-spacing: .02em; }
.dash-side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: #cbd5e1; }
.dash-side nav a:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.dash-side nav a.active { background: linear-gradient(90deg, rgba(20, 184, 166, .25), rgba(20, 184, 166, .08)); color: #fff; box-shadow: inset -3px 0 0 #14b8a6; }
.dash-side nav a .count { margin-inline-start: auto; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; }
.dash-side .tenant-box { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(148, 163, 184, .08); font-size: 13px; }
.dash-side .tenant-box b { color: #fff; display: block; }
.dash-main { min-width: 0; }
.dash-top { position: sticky; top: 0; z-index: 30; background: rgba(246, 248, 251, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 26px; }
.dash-top h1 { font-size: 19px; margin: 0; }
.dash-content { padding: 26px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative; overflow: hidden; }
.kpi .ico { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi b { display: block; font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--gray-50); overflow: hidden; }
.progress > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand)); }
.progress.warn > div { background: linear-gradient(90deg, #fbbf24, #d97706); }
.progress.bad > div { background: linear-gradient(90deg, #f87171, #dc2626); }
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 14px; background: conic-gradient(var(--c, var(--brand)) calc(var(--v) * 1%), var(--gray-50) 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score span { position: relative; }
.tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tips li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.tips li .i { color: var(--gold); margin-top: 3px; }
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.status-tabs a { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.status-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-tabs a .n { opacity: .65; margin-inline-start: 4px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: #eef2f6; border-radius: 16px; padding: 10px; min-height: 300px; }
.kcol.drag { background: var(--brand-50); outline: 2px dashed var(--brand-500); }
.kcol h4 { font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; margin: 4px 6px 10px; }
.kitem { display: block; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); cursor: grab; font-size: 13.5px; }
.kitem:hover { border-color: var(--brand-500); color: inherit; }
.kitem.dragging { opacity: .5; }
.kitem b { display: block; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 22px 18px 0; border-right: 2px solid var(--line); margin-right: 6px; }
.timeline li::before { content: ""; position: absolute; right: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-500); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-50); border: 2px solid transparent; }
.photo.cover { border-color: var(--gold); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .acts { position: absolute; bottom: 6px; inset-inline: 6px; display: flex; gap: 4px; justify-content: flex-end; }
.photo .acts button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; background: #fcfdfe; cursor: pointer; transition: .15s; display: block; }
.dropzone:hover, .dropzone.over { border-color: var(--brand-500); background: var(--brand-50); }
.upsell { background: linear-gradient(135deg, #fffbeb, #ecfdf8); border: 1px solid #fde68a; border-radius: 18px; padding: 18px; }
.alert { padding: 12px 16px; border-radius: 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.warn { background: var(--amber-50); color: #92400e; }
.alert.danger { background: var(--red-50); color: #991b1b; }
.alert.info { background: var(--blue-50); color: #1e40af; }
.alert.ok { background: var(--green-50); color: #065f46; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 68px; inset-inline: 0; background: #fff; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; top: 0; max-height: none; z-index: 120; border-radius: 0; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery > :first-child { grid-column: span 2; grid-row: auto; }
  .gallery > :nth-child(n+4) { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth .side { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 140; transform: translateX(100%); transition: transform .25s; }
  .dash.open .dash-side { transform: none; }
  .dash-top .mobile-toggle { display: inline-grid; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .lcard.row { flex-direction: column; }
  .lcard.row .media { width: 100%; aspect-ratio: 4/3; min-height: 0; }
  .insight-strip { grid-template-columns: repeat(2, 1fr); }
  .searchbox .classic { grid-template-columns: 1fr 1fr; }
  .searchbox .classic .btn { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .section { padding: 40px 0; }
  .g-2, .g-3, .g-4, .form-grid, .form-grid.g3 { grid-template-columns: 1fr; }
  .plans, .kpis { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .spec-table, .amenities { grid-template-columns: 1fr; }
  .searchbox .row { flex-direction: column; }
  .searchbox .row .btn { width: 100%; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero-stats { gap: 20px; }
  .dash-content { padding: 16px; }
  .dash-top { padding: 0 16px; }
  .header-actions .hide-sm { display: none; }
  .dark-band { padding: 28px 20px; border-radius: 22px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .flash { top: 76px; }
  #map, .map { height: 70vh; }
  .ctable th { width: 110px; }
}
@media (min-width: 961px) { .table-wrap.menus { overflow: visible; } }
@media (max-width: 960px) { [data-stack-mobile] { grid-template-columns: 1fr !important; } }
.char-count { font-size: 12px; color: var(--muted); text-align: left; margin-top: 4px; }
.price-hint { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 4px; min-height: 18px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line-2); }
.form-section:last-child { border-bottom: 0; }
.form-section > h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 16px; }
.form-section > h3 .n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 13px; }
.demo-banner { background: #fef3c7; color: #92400e; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; border-bottom: 1px solid #fde68a; }
