:root {
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Manrope", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --ink-950: #07101f;
  --ink-900: #0b1628;
  --ink-800: #14233a;
  --ink-700: #253750;
  --ink-600: #45566c;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-alt: #eef4f8;
  --line: #e3eaf1;
  --line-strong: #cad6e2;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-soft: #eaf1ff;
  --teal: #0f9f91;
  --teal-soft: #e5f8f5;
  --amber: #f59e0b;
  --danger: #dc2626;
  --danger-soft: #fff0f0;
  --success: #12845f;
  --success-soft: #e7f8f1;
  --shadow-xs: 0 1px 2px rgba(8, 18, 34, 0.04);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface-soft); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink-900);
  background: var(--surface-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.18rem; line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.3; }
p { margin: 0; }

::selection { color: white; background: var(--blue); }

.shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-compact { padding: 54px 0; }
.section-white { background: var(--surface); }
.section-dark { color: white; background: var(--ink-950); }
.section-dark h2, .section-dark h3 { color: white; }
.page { min-height: calc(100vh - var(--header-h)); padding: 44px 0 88px; }
.stack { display: grid; gap: 18px; }
.muted { color: var(--ink-500); }
.small { font-size: 0.82rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 18px; height: 2px; content: ""; border-radius: 99px; background: currentColor; }
.lead { max-width: 700px; color: var(--ink-600); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 40%, #eef6ff 0, #f7f9fc 45%, #f7f9fc 100%);
}
.boot-screen img { width: 56px; height: 56px; }
.boot-screen p { color: var(--ink-500); font-weight: 600; }
.boot-line { width: 150px; height: 3px; overflow: hidden; border-radius: 99px; background: var(--line); }
.boot-line span { display: block; width: 45%; height: 100%; animation: boot 1.1s ease-in-out infinite alternate; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
@keyframes boot { to { transform: translateX(122%); } }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; font-family: var(--font-display); font-size: 1.03rem; font-weight: 800; letter-spacing: -0.035em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 12px;
  color: var(--ink-700);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
  transition: 160ms ease;
}
.nav a:hover, .nav a.active { color: var(--blue-600); background: var(--blue-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink-900); cursor: pointer; }

.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28); }
.btn-dark { color: white; background: var(--ink-900); }
.btn-dark:hover { background: var(--ink-800); }
.btn-outline { color: var(--ink-800); border-color: var(--line-strong); background: white; }
.btn-outline:hover { border-color: #aebdcb; background: var(--surface-soft); }
.btn-soft { color: var(--blue-600); background: var(--blue-soft); }
.btn-teal { color: white; background: var(--teal); }
.btn-danger { color: var(--danger); border-color: #fecaca; background: var(--danger-soft); }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 0.78rem; }
.btn-icon { width: 42px; min-width: 42px; padding: 0; }
.btn-block { width: 100%; }

.language-float { position: fixed; top: 84px; right: 18px; z-index: 1100; }
.language-button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  color: var(--ink-800);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}
.language-panel {
  position: absolute;
  top: 49px;
  right: 0;
  width: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-md);
}
.language-panel button { padding: 10px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-700); cursor: pointer; text-align: left; font-size: 0.8rem; font-weight: 650; }
.language-panel button:hover, .language-panel button.active { color: var(--blue-600); background: var(--blue-soft); }

.hero-map-section {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #e8eef4;
}
.hero-map { position: absolute; inset: 0; z-index: 1; }
.hero-map::after {
  position: absolute;
  inset: 0;
  z-index: 500;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 16, 31, 0.86) 0%, rgba(7, 16, 31, 0.66) 34%, rgba(7, 16, 31, 0.14) 63%, rgba(7, 16, 31, 0.02) 100%);
}
.hero-map-content { position: relative; z-index: 600; min-height: 690px; display: grid; align-items: center; pointer-events: none; }
.hero-copy { width: min(570px, 52vw); padding: 62px 0; color: white; pointer-events: auto; }
.hero-copy .eyebrow { color: #7dd3fc; }
.hero-copy h1 { max-width: 580px; color: white; text-shadow: 0 2px 30px rgba(0,0,0,.16); }
.hero-copy .lead { max-width: 530px; margin-top: 21px; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: rgba(255,255,255,.86); font-size: 0.82rem; font-weight: 650; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(45, 212, 191, .18); color: #5eead4; font-style: normal; }

.map-search-card {
  width: min(1000px, calc(100% - 48px));
  position: absolute;
  z-index: 650;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.map-search-card .field { min-width: 0; }
.map-search-card .input, .map-search-card .select { min-height: 48px; border: 0; background: var(--surface-soft); }
.map-search-card .btn { min-height: 48px; }

.map-overlay-panel {
  position: absolute;
  z-index: 700;
  top: 20px;
  left: 20px;
  width: min(360px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}
.map-overlay-panel h3 { margin: 3px 0 4px; font-size: 1rem; }
.map-overlay-panel p { color: var(--ink-500); font-size: .78rem; }
.map-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.map-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #c7d9f9; border-radius: 999px; background: #eef4ff; color: #1e4c9b; cursor: pointer; font-size: .72rem; font-weight: 700; }
.map-chip.neighborhood { border-color: #bde9e2; background: var(--teal-soft); color: #116b61; }
.map-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; padding: 10px; border-radius: 11px; background: var(--surface-soft); color: var(--ink-600); font-size: .75rem; }
.map-hint strong { color: var(--ink-900); }

.leaflet-container { font-family: var(--font-body); background: #dce6ee; }
.leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(148,163,184,.55) !important; border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; }
.leaflet-control-zoom a { color: var(--ink-800) !important; border: 0 !important; background: rgba(255,255,255,.96) !important; }
.leaflet-control-attribution { padding: 3px 7px !important; border-radius: 8px 0 0 0; background: rgba(255,255,255,.83) !important; font-size: 9px !important; }
.leaflet-tooltip.bh-map-tooltip { padding: 6px 9px; border: 0; border-radius: 9px; background: var(--ink-900); box-shadow: var(--shadow-sm); color: white; font-size: .72rem; font-weight: 650; }
.leaflet-tooltip.bh-map-tooltip::before { border-top-color: var(--ink-900); }
.bh-price-marker { transform: translate(-50%, -50%); }
.bh-price-marker span { display: block; padding: 6px 9px; border: 2px solid white; border-radius: 999px; background: var(--ink-900); box-shadow: 0 5px 16px rgba(15,23,42,.2); color: white; font-size: .7rem; font-weight: 750; white-space: nowrap; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head-copy { display: grid; gap: 8px; }
.section-head .lead { font-size: .98rem; }

.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); box-shadow: var(--shadow-xs); }
.stat-item { padding: 24px; background: white; }
.stat-item b { display: block; font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -.04em; }
.stat-item span { color: var(--ink-500); font-size: .78rem; font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-xs); }
.feature-card { padding: 25px; transition: 180ms ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #cfd8e4; box-shadow: var(--shadow-sm); }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-600); font-size: 1.15rem; }
.feature-card:nth-child(2) .feature-icon { color: var(--teal); background: var(--teal-soft); }
.feature-card:nth-child(3) .feature-icon { color: #b45309; background: #fff5dc; }
.feature-card p { margin-top: 9px; color: var(--ink-500); font-size: .9rem; line-height: 1.7; }

.listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.listing-card { overflow: hidden; border-radius: 20px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.listing-card:hover { transform: translateY(-3px); border-color: #cad6e3; box-shadow: var(--shadow-sm); }
.listing-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg,#d9e6ef,#edf3f7) center/cover no-repeat; }
.listing-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg,rgba(8,18,34,.02),rgba(8,18,34,.18)); }
.listing-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-xs); color: var(--ink-800); font-size: .67rem; font-weight: 750; backdrop-filter: blur(8px); }
.favorite { position: absolute; z-index: 2; top: 11px; right: 11px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: var(--shadow-xs); color: var(--ink-800); cursor: pointer; font-size: 1rem; }
.listing-body { padding: 17px; }
.listing-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.listing-price { color: var(--ink-950); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; }
.listing-price small { color: var(--ink-500); font-family: var(--font-body); font-size: .71rem; font-weight: 550; letter-spacing: 0; }
.listing-title { margin-top: 8px; overflow: hidden; color: var(--ink-900); font-size: .96rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--ink-500); font-size: .76rem; }
.listing-features { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.listing-feature { padding: 5px 7px; border-radius: 8px; background: var(--surface-soft); color: var(--ink-600); font-size: .68rem; font-weight: 650; }
.listing-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.owner-inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { width: 31px; height: 31px; display: grid; flex: none; place-items: center; border-radius: 50%; background: linear-gradient(135deg,var(--ink-800),#24476f); color: white; font-size: .66rem; font-weight: 750; }
.owner-inline div { min-width: 0; }
.owner-inline b { display: block; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.owner-inline small { display: block; color: var(--success); font-size: .62rem; font-weight: 650; }

.listings-hero { padding: 46px 0 26px; background: white; }
.listings-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(400px,.85fr); min-height: calc(100vh - var(--header-h) - 130px); border-top: 1px solid var(--line); }
.listings-map-panel { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); background: #e2e8f0; }
.listings-map { width: 100%; height: 100%; }
.listings-results-panel { min-width: 0; padding: 22px 26px 70px; background: var(--surface-soft); }
.filter-toolbar { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: grid; grid-template-columns: 1.2fr repeat(3,minmax(120px,.7fr)) auto; gap: 8px; margin-bottom: 18px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.filter-toolbar .input, .filter-toolbar .select { min-height: 42px; }
.listings-results-panel .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; }
.result-summary b { font-family: var(--font-display); font-size: 1.05rem; }
.selected-filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }

.field { display: grid; gap: 6px; }
.label { color: var(--ink-600); font-size: .69rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: white;
  color: var(--ink-900);
  font-size: .88rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.textarea { min-height: 130px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { border-color: #7aa2f8; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-700); font-size: .82rem; font-weight: 550; }
.check input { accent-color: var(--blue); }
.form-card { padding: 24px; }
.form-grid { display: grid; gap: 14px; }
.form-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.upload { padding: 25px; border: 1px dashed #aebdcc; border-radius: 14px; background: var(--surface-soft); text-align: center; }

.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0,1fr) minmax(440px,.72fr); background: white; }
.auth-visual { position: relative; overflow: hidden; min-height: 720px; background: linear-gradient(145deg,#07101f,#17365c); }
.auth-visual::before { position: absolute; inset: 0; content: ""; opacity: .72; background: url('https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1800&q=88') center/cover; mix-blend-mode: luminosity; }
.auth-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(120deg,rgba(7,16,31,.9),rgba(7,16,31,.35)); }
.auth-visual-content { position: absolute; z-index: 2; right: 8%; bottom: 11%; left: 8%; max-width: 650px; color: white; }
.auth-visual-content h2 { max-width: 600px; color: white; font-size: clamp(2rem,3vw,3.3rem); }
.auth-visual-content p { max-width: 520px; margin-top: 15px; color: rgba(255,255,255,.74); }
.auth-panel { display: grid; place-items: center; padding: 60px 32px; background: #fbfcfe; }
.auth-card { width: min(430px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 2rem; }
.auth-card .lead { margin: 8px 0 25px; font-size: .9rem; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--ink-600); font-size: .78rem; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-switch label { display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 11px; cursor: pointer; font-size: .8rem; font-weight: 650; }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: 26px; }
.gallery-main { aspect-ratio: 16/10; overflow: hidden; border-radius: 22px; background: #d9e5ed center/cover; }
.thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 8px; }
.thumb { aspect-ratio: 4/3; border: 2px solid transparent; border-radius: 10px; background: #e2e8f0 center/cover; cursor: pointer; }
.thumb.active { border-color: var(--blue); }
.detail-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.spec { padding: 12px 8px; border-radius: 12px; background: var(--surface-soft); text-align: center; }
.spec b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.spec span { color: var(--ink-500); font-size: .67rem; }

.dashboard-page { min-height: calc(100vh - var(--header-h)); background: #f3f6fa; }
.dashboard-shell { width: min(1440px,calc(100% - 36px)); display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 20px; margin: 0 auto; padding: 22px 0 70px; }
.dashboard-sidebar { position: sticky; top: calc(var(--header-h) + 22px); height: max-content; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-xs); }
.dashboard-profile { display: flex; align-items: center; gap: 10px; padding: 7px 7px 15px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dashboard-profile .avatar { width: 38px; height: 38px; }
.dashboard-profile b { display: block; font-size: .83rem; }
.dashboard-profile small { color: var(--ink-500); font-size: .68rem; }
.dashboard-nav { display: grid; gap: 3px; }
.dashboard-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; color: var(--ink-600); font-size: .79rem; font-weight: 650; }
.dashboard-nav a:hover, .dashboard-nav a.active { color: var(--blue-600); background: var(--blue-soft); }
.dashboard-main { min-width: 0; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dashboard-heading h1 { font-size: clamp(1.65rem,2.2vw,2.4rem); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-xs); }
.metric-card span { color: var(--ink-500); font-size: .69rem; font-weight: 650; }
.metric-card b { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 1.65rem; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 14px; }
.panel { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.12rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 9px; color: var(--ink-500); border-bottom: 1px solid var(--line); text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.table td { padding: 12px 9px; border-bottom: 1px solid var(--line); color: var(--ink-700); font-size: .76rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--ink-900); }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-600); font-size: .63rem; font-weight: 700; }
.status-active, .status-approved { color: var(--success); background: var(--success-soft); }
.status-pending { color: #9a6200; background: #fff6df; }
.status-rejected, .status-suspended { color: var(--danger); background: var(--danger-soft); }
.action-row { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.preview { position: relative; aspect-ratio: 4/3; border-radius: 11px; background: #e2e8f0 center/cover; }
.preview button { position: absolute; top: 5px; right: 5px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: rgba(7,16,31,.8); color: white; cursor: pointer; }

.messages-layout { height: calc(100vh - var(--header-h) - 60px); min-height: 620px; display: grid; grid-template-columns: 320px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-xs); }
.conversation-list { overflow: auto; border-right: 1px solid var(--line); }
.conversation-list-head { padding: 16px; border-bottom: 1px solid var(--line); }
.conversation-item { padding: 13px 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conversation-item:hover, .conversation-item.active { background: var(--blue-soft); }
.conversation-item b { font-size: .8rem; }
.conversation-item small { display: block; overflow: hidden; margin-top: 4px; color: var(--ink-500); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-area { min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.chat-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-body { overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #f7f9fc; }
.bubble { width: fit-content; max-width: min(75%,580px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: white; color: var(--ink-700); font-size: .82rem; }
.bubble.mine { align-self: flex-end; border-color: var(--blue); border-radius: 13px 13px 4px 13px; background: var(--blue); color: white; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

.alert { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: .78rem; font-weight: 600; }
.alert-error { color: #a12323; border-color: #fecaca; background: var(--danger-soft); }
.alert-success { color: #116a4e; border-color: #b7ead7; background: var(--success-soft); }
.empty { display: grid; min-height: 180px; place-items: center; padding: 30px; color: var(--ink-500); border: 1px dashed var(--line-strong); border-radius: 15px; background: rgba(255,255,255,.65); text-align: center; }
.skeleton { position: relative; overflow: hidden; border-radius: 15px; background: #e7edf3; }
.skeleton::after { position: absolute; inset: 0; content: ""; transform: translateX(-100%); animation: shimmer 1.2s infinite; background: linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(7,16,31,.68); backdrop-filter: blur(6px); }
.modal { width: min(610px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border-radius: 18px; background: white; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.toast-zone { position: fixed; z-index: 4000; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; padding: 11px 14px; border-radius: 11px; background: var(--ink-900); box-shadow: var(--shadow-md); color: white; font-size: .78rem; font-weight: 650; }

.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pricing-card { position: relative; padding: 26px; }
.pricing-card.featured { border-color: var(--blue); box-shadow: 0 16px 40px rgba(37,99,235,.12); }
.pricing-card .price { margin: 18px 0; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; }
.pricing-card ul { display: grid; gap: 10px; margin: 0 0 25px; padding: 0; list-style: none; color: var(--ink-600); font-size: .84rem; }
.pricing-card li::before { margin-right: 8px; color: var(--success); content: "✓"; font-weight: 800; }

.footer { padding: 54px 0 20px; color: #c7d2df; background: var(--ink-950); }
.footer .brand { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 45px; }
.footer h4 { margin-bottom: 14px; color: white; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.footer a { display: block; width: fit-content; margin: 8px 0; color: #9fb0c3; font-size: .76rem; }
.footer a:hover { color: white; }
.footer-copy { max-width: 380px; margin-top: 15px; color: #9fb0c3; font-size: .8rem; line-height: 1.75; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #7f93aa; font-size: .68rem; }
.footer-signature { color: #a8bacd; }

@media (max-width: 1120px) {
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listings-layout { grid-template-columns: minmax(0,1.1fr) minmax(370px,.9fr); }
  .filter-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-toolbar .btn { grid-column: span 1; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .shell { width: min(100% - 28px, 1280px); }
  .header-inner { height: var(--header-h); }
  .nav, .header-actions { display: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .header.open .nav { position: absolute; top: var(--header-h); right: 14px; left: 14px; display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-md); }
  .header.open .header-actions { position: absolute; top: calc(var(--header-h) + 242px); right: 24px; left: 24px; display: grid; grid-template-columns: 1fr 1fr; z-index: 2; }
  .language-float { top: 76px; right: 12px; }
  .hero-map-section, .hero-map-content { min-height: 760px; }
  .hero-map::after { background: linear-gradient(180deg,rgba(7,16,31,.78) 0%,rgba(7,16,31,.38) 50%,rgba(7,16,31,.04) 78%); }
  .hero-map-content { align-items: start; }
  .hero-copy { width: min(650px,100%); padding-top: 72px; }
  .map-search-card { right: 14px; bottom: 14px; left: 14px; width: auto; grid-template-columns: 1fr 1fr; }
  .map-search-card .field:first-child { grid-column: 1/-1; }
  .map-search-card .btn { grid-column: 1/-1; }
  .map-overlay-panel { top: auto; bottom: 180px; left: 14px; max-height: 220px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .listings-layout { display: block; }
  .listings-map-panel { position: relative; top: 0; height: 520px; }
  .listings-results-panel { padding: 18px 14px 55px; }
  .filter-toolbar { top: calc(var(--header-h) + 6px); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 380px; }
  .auth-panel { padding: 34px 18px 60px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; overflow-x: auto; padding: 8px; }
  .dashboard-profile { display: none; }
  .dashboard-nav { display: flex; min-width: max-content; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section { padding: 62px 0; }
  .hero-map-section, .hero-map-content { min-height: 820px; }
  .hero-copy { padding-top: 65px; }
  .hero-copy h1 { font-size: clamp(2.25rem,11vw,3.3rem); }
  .hero-actions .btn { flex: 1; }
  .hero-proof { gap: 10px 16px; }
  .map-search-card { grid-template-columns: 1fr; }
  .map-search-card .field, .map-search-card .btn { grid-column: auto; }
  .map-overlay-panel { bottom: 290px; max-height: 185px; }
  .grid-2, .grid-3, .grid-4, .listing-grid, .listings-results-panel .listing-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-strip, .metric-grid { grid-template-columns: 1fr 1fr; }
  .stat-item, .metric-card { padding: 16px; }
  .section-head { align-items: start; flex-direction: column; }
  .filter-toolbar { grid-template-columns: 1fr 1fr; }
  .filter-toolbar .field:first-child { grid-column: 1/-1; }
  .listings-map-panel { height: 430px; }
  .form-columns { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4,1fr); }
  .messages-layout { height: auto; min-height: 720px; grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
  .conversation-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .preview-grid { grid-template-columns: repeat(2,1fr); }
}
