﻿/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font:      'Poppins', sans-serif;
  --green:     #16a163;
  --green-dk:  #0e7a4a;
  --green-lt:  #e8f7f1;
  --dark:      #1a1a1a;
  --muted:     #6b6b6b;
  --border:    #e8e8e8;
  --bg:        #f5f5f5;
  --white:     #FFFFFF;
  --red:       #FF385C;
  --orange:    #FF9500;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.16);
  --shadow-card: 0 2px 12px rgba(0,0,0,.08);
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --nav-h:     72px;
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; overflow: hidden; }

/* â”€â”€ Navbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  z-index: 100;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { color: var(--green); font-size: 2.2rem; line-height: 1; }
.brand-name {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.05em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-accent { color: var(--green); }

.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.nav-tab svg { opacity: .7; }
.nav-tab:hover   { color: var(--dark); background: var(--white); }
.nav-tab.active  { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.nav-tab.active svg { opacity: 1; }

.nav-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-admin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: box-shadow .2s;
}
.nav-admin-btn:hover { box-shadow: var(--shadow); }

/* Login / Sign Up button */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.nav-login-btn:hover { background: var(--green-dk); box-shadow: 0 4px 16px rgba(22,161,99,.35); transform: translateY(-1px); }

/* Logged-in user chip */
#nav-auth-user { display: flex; align-items: center; gap: 10px; }
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-lt);
  border: 1.5px solid #b2dece;
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 6px;
}
.nav-user-avatar {
  width: 30px; height: 30px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { font-size: .88rem; font-weight: 700; color: var(--dark); }
.nav-logout-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.nav-logout-btn:hover { border-color: var(--red); color: var(--red); }

/* â”€â”€ Auth Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-auth {
  max-width: 560px;
  width: 100%;
  padding: 56px 56px 44px;
  border-radius: 24px;
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.auth-brand-icon { color: var(--green); font-size: 2.6rem; line-height: 1; }
.auth-brand-name {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: 36px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 0;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.auth-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.auth-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  text-align: left;
}

.auth-pass-field { position: relative; }

/* Larger inputs scoped to the auth modal */
.modal-auth .field { gap: 8px; margin-bottom: 16px; }
.modal-auth .field label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.modal-auth .field input {
  font-size: 1.05rem;
  padding: 15px 18px;
  border-radius: 12px;
}

.auth-error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 14px;
  text-align: left;
}

.auth-submit { margin-top: 6px; font-size: 1.1rem; font-weight: 700; padding: 17px; border-radius: 12px; }

.auth-switch {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--muted);
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.auth-switch-btn:hover { color: #147a52; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: .78rem;
}
.auth-or::before, .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.g-signin-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.auth-terms {
  margin-top: 26px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.auth-terms a { color: var(--green); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* â”€â”€ Locked / Blurred Sections in Detail Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.detail-locked-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100px;
}
.docs-locked-section { min-height: 130px; }

.detail-blur-content {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  opacity: .7;
}

.detail-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
}

.gallery-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  z-index: 10;
}
.gallery-lock-overlay .lock-icon { background: rgba(255,255,255,.15); }
.gallery-lock-overlay .lock-msg  { color: var(--white); }
.gallery-lock-overlay .lock-btn  { background: var(--white); color: var(--green); }
.gallery-lock-overlay .lock-btn:hover { background: var(--green-lt); }

.lock-icon {
  width: 48px; height: 48px;
  background: var(--green-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.lock-icon svg { stroke: var(--green); }
.lock-msg {
  font-size: .92rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  text-align: center;
}
.lock-btn { padding: 9px 22px; font-size: .9rem; }

/* â”€â”€ OTP Verification Step â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.otp-info {
  text-align: center;
  margin-bottom: 28px;
}
.otp-info-icon {
  width: 64px; height: 64px;
  background: var(--green-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}
.otp-info-icon svg { stroke: var(--green); }
.otp-info .auth-heading { text-align: center; }
.otp-info-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.otp-info-sub strong { color: var(--dark); font-weight: 700; }

.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 8px;
}
.otp-box {
  width: 60px; height: 70px;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  caret-color: transparent;
}
.otp-box:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,138,95,.12);
}
.otp-box.filled {
  border-color: var(--green);
  background: var(--green-lt);
  color: var(--green);
}
.otp-box.error {
  border-color: var(--red);
  background: #fff5f5;
  color: var(--red);
  animation: otp-shake .35s ease;
}

@keyframes otp-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.otp-timer {
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.otp-timer span {
  font-weight: 700;
  color: var(--dark);
}
.otp-timer span.expiring { color: var(--red); }

.otp-resend {
  margin-top: 22px;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}

/* â”€â”€ Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-layout { display: flex; flex: 1; overflow: hidden; }

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
  width: 460px;
  min-width: 380px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.panel.hidden { display: none; }

/* â”€â”€ Panel Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.panel-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.panel-sub   { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* â”€â”€ Search Box â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 10px;
}
.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,161,99,.12);
}
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
}
.search-box input::placeholder { color: var(--muted); }
.search-clear {
  background: var(--border);
  border: none;
  color: var(--muted);
  font-size: .75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.search-clear:hover { background: #bbb; color: var(--dark); }

/* â”€â”€ Filter Chips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-select-wide { flex: 2; min-width: 150px; }
.chip-select {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
.chip-select:focus { border-color: var(--dark); }

.result-count-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-count { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.btn-view-all {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.btn-view-all:hover { background: var(--green-dk); transform: translateY(-1px); }

/* ── Grid View Modal ──────────────────────────────────────────────────────── */
.modal-grid {
  width: 98vw !important;
  max-width: 1600px !important;
  height: 92vh;
  max-height: 92vh !important;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.grid-modal-header {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.grid-modal-header-top { display: flex; align-items: center; gap: 10px; }
.grid-modal-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.grid-modal-count { font-size: .8rem; color: var(--muted); font-weight: 500; }
.grid-modal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.grid-search-icon {
  position: absolute;
  left: 11px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.grid-search-input {
  width: 100%;
  padding: 9px 36px 9px 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--dark);
  outline: none;
  transition: border-color .15s;
}
.grid-search-input:focus { border-color: var(--green); }
.grid-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .85rem;
  padding: 2px 4px;
  line-height: 1;
}
.grid-search-clear:hover { color: var(--dark); }
.grid-search-clear.hidden { display: none; }
.grid-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-content: start;
}
.grid-modal-empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 48px 0; font-size: .95rem; }

/* Grid card */
.grid-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.grid-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green); }
.grid-card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  background: #1a1c1e;
  flex-shrink: 0;
}
.grid-card-thumb-blur {
  position: absolute;
  inset: -6px;
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  opacity: 0.6;
}
.grid-card-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.grid-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .35;
}
.grid-card-badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.grid-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grid-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.grid-card-price { font-size: 1.05rem; font-weight: 800; color: var(--green); }
.grid-card-loc {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.grid-card-loc svg { flex-shrink: 0; margin-top: 2px; }

/* â”€â”€ Suggestions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.suggestions {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}
.suggestion-item {
  padding: 10px 14px;
  font-size: .83rem;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s;
}
.suggestion-item:hover { background: var(--bg); }
.sug-count { font-size: .72rem; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 20px; }

/* â”€â”€ Listing List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.listing-list {
  flex: 1;
  overflow-y: scroll;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.listing-list::-webkit-scrollbar { width: 7px; }
.listing-list::-webkit-scrollbar-track { background: #ece9e3; }
.listing-list::-webkit-scrollbar-thumb { background: #b5b0a8; border-radius: 4px; }
.listing-list::-webkit-scrollbar-thumb:hover { background: #888; }

/* â”€â”€ Listing Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  min-height: 260px;
  transition: box-shadow .25s, transform .2s, border-color .2s;
  box-shadow: var(--shadow-card);
}
.listing-card:hover { box-shadow: var(--shadow-lg); border-color: var(--green); transform: translateY(-3px); }
.listing-card.active { border-color: var(--green); box-shadow: var(--shadow); }

/* thumbnail */
.card-thumb {
  width: 220px;
  min-width: 220px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background-color: #1a1c1e;
  position: relative;
}
.card-thumb-blur {
  position: absolute;
  inset: -6px;
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  opacity: 0.6;
}
.card-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-thumb svg { opacity: .3; width: 44px; height: 44px; }
.card-thumb-sale { background: linear-gradient(145deg, #c3f0d8 0%, #4eba82 100%); }
.card-thumb-rent { background: linear-gradient(145deg, #bfdbfe 0%, #4da3f5 100%); }

/* body */
.card-body { padding: 15px 17px 16px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 6px;
}
.card-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-sale      { background: #d1fae5; color: #065f46; }
.badge-rent      { background: #dbeafe; color: #1e40af; }
.badge-available { background: #d1fae5; color: #065f46; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-sold      { background: #fee2e2; color: #991b1b; }

.card-time { font-size: .78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}
.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
.card-price-total {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* lot size + location rows */
.card-meta {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.card-meta-row svg { color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.card-meta-key {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 52px;
}
.card-meta-val {
  font-size: .92rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* Skeleton */
.skeleton-cards { display: flex; flex-direction: column; gap: 12px; }
.skeleton-card  { height: 190px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; border-radius: var(--radius); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { margin-bottom: 12px; opacity: .3; }
.empty-state p { font-size: .9rem; }

/* â”€â”€ Locate Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.locate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--green-lt);
  border-top: 1px solid #c5e2d5;
  border-bottom: 1px solid #c5e2d5;
  flex-shrink: 0;
}
.btn-locate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.btn-locate:hover    { background: #157a53; }
.btn-locate:disabled { opacity: .6; cursor: default; }
.btn-locate.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.locate-hint {
  font-size: .73rem;
  color: var(--green);
  line-height: 1.4;
}

/* Locate highlight layer */
.locate-boundary-layer {
  pointer-events: none;
}

/* â”€â”€ Sell Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.draw-bar {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.draw-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all .2s;
}
.draw-btn:hover  { border-color: var(--dark); }
.draw-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.draw-btn-ghost  { flex: 0; color: var(--muted); }

.draw-hint {
  margin: 10px 20px 0;
  background: var(--green-lt);
  border: 1.5px solid #b3d9c9;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#sell-form-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sell-form {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sell-form::-webkit-scrollbar { width: 4px; }
.sell-form::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.form-section { margin-bottom: 20px; }
.form-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
}
.muted-label { font-weight: 400; color: var(--muted); }
.req { color: var(--red); }

.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: .85rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,161,99,.12);
}
.field input::placeholder, .field textarea::placeholder { color: #b0b0b0; }
.inq-phone-warning {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: #b45309; margin-top: 6px;
  background: #fff8ed; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 6px 10px;
}
.inq-phone-warning-link {
  background: none; border: none; color: #b45309;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; padding: 0; font-family: var(--font);
}
.inq-phone-warning-link:hover { color: #92400e; }

.field-locked {
  background: var(--bg) !important;
  color: var(--muted) !important;
  cursor: default !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
  user-select: none;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field select:disabled { opacity: .5; cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 80px; }

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row .field.flex-2 { flex: 2; }
.three-col .field { min-width: 0; }

/* Price range toggle */
.price-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.price-label-row label:first-child { margin-bottom: 0; }
.price-range-toggle-label { font-size: .78rem; font-weight: 500; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.price-range-toggle-label input[type=checkbox] { margin-right: 3px; accent-color: var(--green); cursor: pointer; }
.price-inputs-wrap { display: flex; align-items: center; gap: 6px; }
.price-inputs-wrap input { flex: 1; min-width: 0; }
.price-range-sep { font-weight: 700; color: var(--muted); flex-shrink: 0; }

/* â”€â”€ Upload Zones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.upload-group { margin-bottom: 14px; }
.upload-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.upload-limit {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 2px;
}

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--dark);
  background: var(--bg);
}
.upload-zone.is-full { cursor: default; opacity: .75; }

.upload-droparea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  color: var(--muted);
}
.upload-label { font-size: .8rem; font-weight: 600; color: var(--dark); }
.upload-sub   { font-size: .72rem; }

/* File list (documents) */
.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
}
.upload-file-list:empty { display: none; }

.upload-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}
.upload-file-icon { color: var(--muted); flex-shrink: 0; }
.upload-file-name {
  flex: 1;
  font-size: .78rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-file-size { font-size: .7rem; color: var(--muted); flex-shrink: 0; }
.upload-file-remove {
  width: 20px; height: 20px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.upload-file-remove:hover { background: var(--red); color: var(--white); }

/* Photo grid (pictures) */
.upload-grid {
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0 10px 10px;
  gap: 8px;
}
.upload-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.upload-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.upload-thumb-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.upload-thumb-remove:hover { background: var(--red); }

/* â”€â”€ Dashboard â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-lookup { display: flex; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dashboard-lookup input {
  flex: 1;
  font-family: var(--font);
  font-size: .85rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s;
}
.dashboard-lookup input:focus { border-color: var(--dark); }

#dashboard-content, #dashboard-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.dash-info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1.5px solid var(--border);
}
.dash-info-card .dsh-title { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.dash-info-card .dsh-meta  { font-size: .78rem; color: var(--muted); }

.dash-section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.status-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all .2s;
}
.status-pill:hover   { border-color: var(--dark); }
.status-pill.active  { background: var(--dark); color: var(--white); border-color: var(--dark); }

.inquiry-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.inq-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.inq-name   { font-weight: 700; font-size: .88rem; }
.inq-meta   { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.inq-msg    { font-size: .82rem; color: var(--dark); line-height: 1.55; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 6px; }
.inq-actions { display: flex; gap: 8px; margin-top: 10px; }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 11px 20px;
  transition: all .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dk); box-shadow: 0 4px 16px rgba(22,161,99,.30); }
.btn-secondary { background: var(--white); color: var(--dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--dark); }
.btn-danger  { background: var(--red); color: var(--white); }
.btn-sm      { padding: 7px 14px; font-size: .78rem; }
.btn-full    { width: 100%; border-radius: var(--radius-sm); }

/* â”€â”€ Map â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.map-wrapper { flex: 1; position: relative; overflow: hidden; }
#map { width: 100%; height: 100%; }

/* Price pins (Airbnb-style) */
.map-price-pin {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .15s, background .15s;
  border: 2px solid var(--white);
  letter-spacing: -.01em;
}
.map-price-pin:hover, .map-price-pin.hovered { transform: scale(1.1); z-index: 999 !important; }
.map-price-pin.pin-sale    { background: #1a9e5c; color: #fff; }
.map-price-pin.pin-rent    { background: #1E90FF; }
.map-price-pin.pin-pending { background: var(--orange); }
.map-price-pin.pin-sold    { background: var(--red); }
.map-price-pin.pin-active  { background: var(--green); transform: scale(1.12); }

/* Layer toggle button */
.layer-toggle-btn {
  background: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--dark);
  transition: box-shadow .2s;
}
.layer-toggle-btn:hover { box-shadow: var(--shadow-lg); }

/* Legend */
/* ── Map Search Box ────────────────────────────────────────────────────── */
.map-search-box {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 80px));
  z-index: 1000;
  font-family: var(--font);
}
.map-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  padding: 0 10px;
  gap: 6px;
}
.map-search-icon { flex-shrink: 0; }
#map-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .92rem;
  padding: 11px 4px;
  background: transparent;
  color: #222;
}
#map-search-input::placeholder { color: #aaa; }
.map-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: .85rem;
  padding: 4px;
  line-height: 1;
}
.map-search-clear:hover { color: #555; }
.map-search-results {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.map-search-results li {
  padding: 10px 14px;
  font-size: .88rem;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.map-search-results li:last-child { border-bottom: none; }
.map-search-results li:hover { background: #f5faf8; }
.map-search-results li svg { flex-shrink: 0; margin-top: 2px; }
.map-search-results .sr-name { font-weight: 600; color: #1a8a5f; }
.map-search-results .sr-sub { color: #888; font-size: .8rem; margin-top: 1px; }

.map-legend {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 999;
  box-shadow: var(--shadow);
  color: var(--dark);
}
.leg-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.leg-dot.available { background: var(--dark); }
.leg-dot.pending   { background: var(--orange); }
.leg-dot.sold      { background: var(--red); }

/* Leaflet popup override */
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; border: 1px solid var(--border); }
.leaflet-popup-content { margin: 0 !important; }

/* Polygon price pill tooltip — strip all leaflet tooltip chrome */
.price-pin-tip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  white-space: nowrap;
}
.price-pin-tip::before { display: none !important; }
.popup-card { padding: 14px 16px; min-width: 190px; }
.popup-card .pc-title { font-weight: 700; font-size: .88rem; color: var(--dark); margin-bottom: 4px; }
.popup-card .pc-price { font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.popup-card .pc-loc   { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.popup-card button {
  width: 100%;
  padding: 9px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.popup-card button:hover { background: var(--green-dk); }

/* â”€â”€ Lightbox â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 10px;
}
.lightbox.hidden { display: none; }

.lb-card {
  background: #161616;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,.85);
  width: min(1400px, 96vw);
  height: 90vh;
  display: flex;
  flex-direction: column;
}

/* â”€â”€ main image area with side arrows overlaid â”€â”€ */
.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000;
  overflow: hidden;
}
.lb-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity .2s ease;
}
.lb-img-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* side arrows overlaid on stage */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 5;
}
.lb-arrow:hover { background: rgba(0,0,0,.85); transform: translateY(-50%) scale(1.08); }
.lb-arrow.lb-prev { left: 16px; }
.lb-arrow.lb-next { right: 16px; }
.lb-arrow[data-hidden] { visibility: hidden; }

/* â”€â”€ top bar: filename + counter + close â”€â”€ */
.lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1e1e1e;
  flex-shrink: 0;
  gap: 12px;
}
.lb-filename {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.lb-counter {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  flex-shrink: 0;
}
.lb-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.lb-close:hover { background: rgba(255,255,255,.28); }

/* â”€â”€ thumbnail strip â”€â”€ */
.lb-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #1e1e1e;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.lb-thumb {
  width: 90px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, opacity .15s;
  opacity: .55;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.active { border-color: #fff; opacity: 1; }
.lb-thumb-pdf {
  width: 90px;
  height: 66px;
  border-radius: 6px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .55;
  transition: border-color .15s, opacity .15s;
  font-size: .6rem;
  color: #aaa;
  text-align: center;
}
.lb-thumb-pdf.active { border-color: #fff; opacity: 1; }

/* make gallery images show pointer cursor */
.gallery-img { cursor: zoom-in; }

/* â”€â”€ Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.overlay.hidden { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-wide { max-width: 700px; }

/* ── Street View Modal ───────────────────────────────────────────────────── */
.modal-street-view {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 92vh;
}
.sv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
  flex-shrink: 0;
}
.sv-hint {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
#sv-map {
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* Street View button in listing detail */
.btn-street-view {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-street-view:hover { background: #1558b0; }

/* Copy Link button in listing detail */
.btn-copy-link {
  background: var(--bg);
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-copy-link:hover { background: var(--border); border-color: var(--muted); }

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: background .2s;
}
.modal-close:hover { background: var(--border); }

.modal-icon-header { text-align: center; margin-bottom: 16px; }
.modal-icon-circle {
  width: 52px; height: 52px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.modal-heading { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.modal-sub     { font-size: .83rem; color: var(--muted); margin-bottom: 20px; }
#form-inquiry  { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
#form-inquiry .field { color: var(--dark); }

/* Detail Modal */
.detail-hero {
  height: 200px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-hero svg { opacity: .25; }
.detail-hero-sale { background: linear-gradient(135deg, #d4edda 0%, #a8d5b5 100%); }
.detail-hero-rent { background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%); }

/* Photo carousel */
.detail-gallery {
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  background: #111;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}
.gallery-img {
  min-width: 100%;
  height: 100%;
  display: block;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.gallery-btn:hover { background: rgba(0,0,0,.7); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.gallery-dot.active { background: #fff; transform: scale(1.3); }
.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  z-index: 10;
}

.upload-group-hint {
  font-size: .75rem;
  color: var(--muted);
  margin: -6px 0 8px;
}

.detail-badges    { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-title     { font-size: 1.45rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.detail-price     { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.detail-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.detail-price-total { font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detail-cell {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.detail-cell .dc-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.detail-cell .dc-value { font-size: 1rem; font-weight: 600; color: var(--dark); }

.detail-address {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.detail-address .da-icon { color: var(--muted); flex-shrink: 0; margin-top: 1px; }
.detail-address .da-text { font-size: .95rem; color: var(--dark); line-height: 1.55; }

.detail-description { font-size: .95rem; color: var(--dark); line-height: 1.75; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; }

.detail-contact {
  background: var(--green-lt);
  border: 1.5px solid #b3d9c9;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.detail-contact .cnt-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 8px; }
.detail-contact .cnt-name  { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.detail-contact .cnt-phone { font-size: 1rem; color: var(--dark); }
.detail-contact .cnt-email { font-size: .9rem; color: var(--muted); }

.detail-actions {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 12px 0 4px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  z-index: 10;
}
.detail-actions .btn { flex: 1; }

.docs-section-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Nearby Places ─────────────────────────────────────────────────────── */
.nearby-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.nearby-row:last-child { border-bottom: none; }
.nearby-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.nearby-label { font-size: .82rem; font-weight: 600; flex: 1; min-width: 130px; }
.nearby-count { font-size: .72rem; background: #f0f0f0; border-radius: 20px; padding: 1px 8px; color: #555; font-weight: 600; }
.nearby-preview { width: 100%; font-size: .72rem; color: var(--muted); padding-left: 18px; }

.detail-photos-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 16px 0 8px;
}
.detail-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.detail-photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  border: 1.5px solid var(--border);
}
.detail-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.detail-photo-thumb:hover img { transform: scale(1.05); }

.detail-doc-list { display: flex; flex-direction: column; gap: 6px; }
.detail-doc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg);
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--dark);
  font-size: .82rem;
  transition: border-color .15s, background .15s;
}
.detail-doc-row:hover { border-color: var(--dark); background: #f0efe9; }
.detail-doc-type { font-weight: 700; font-size: .75rem; flex-shrink: 0; color: var(--green); }
.detail-doc-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* â”€â”€ Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  z-index: 100000;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  transition: opacity .3s;
}
.toast.hidden  { opacity: 0; pointer-events: none; }
.toast.error   { background: var(--red); }
.toast.success { background: var(--green); }

/* â”€â”€ Utility â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hidden { display: none !important; }

/* â”€â”€ Sell Plan Quota Strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sell-quota-strip {
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  margin: 0 16px 2px;
  background: var(--green-lt);
  color: var(--green);
  flex-shrink: 0;
}
.sell-quota-strip.strip-warn { background: #fff8e1; color: #b45309; }
.sell-quota-strip.strip-full { background: #fde8e8; color: var(--red); }

/* â”€â”€ Sell Limit Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sell-limit-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 12px 16px;
  padding: 18px 20px;
  background: #fde8e8;
  border: 1.5px solid #f5c2c7;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.slb-icon  { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.slb-title { font-weight: 800; font-size: .95rem; color: #842029; margin-bottom: 4px; }
.slb-message { font-size: .85rem; color: #842029; margin-bottom: 6px; }
.slb-hint    { font-size: .78rem; color: #9d3b44; margin-bottom: 10px; }
.slb-plans-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .15s;
}
.slb-plans-btn:hover { background: #147a52; }

.sell-form-disabled {
  opacity: .35;
  pointer-events: none;
  user-select: none;
}

/* â”€â”€ My Listings Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* â”€â”€ Account Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.account-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acc-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.acc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-profile-name  { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.acc-profile-email { font-size: .78rem; color: var(--muted); margin-bottom: 1px; }
.acc-profile-phone { font-size: .78rem; color: var(--muted); margin-bottom: 1px; }
.acc-profile-since { font-size: .72rem; color: var(--muted); margin-top: 4px; }

.acc-trial-badge {
  display: inline-block; background: #fff3cd; color: #b45309;
  font-size: .65rem; font-weight: 700; padding: 1px 7px;
  border-radius: 99px; vertical-align: middle; margin-left: 6px; border: 1px solid #fcd34d;
}
.acc-trial-note { font-size: .72rem; color: #b45309; margin-top: 2px; }

.acc-plan-card {
  background: var(--green-lt);
  border: 1.5px solid rgba(26,138,95,.2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.acc-plan-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.acc-plan-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.acc-plan-name { font-size: .9rem; font-weight: 700; }
.acc-upgrade-btn {
  font-size: .75rem; font-weight: 700; color: var(--green);
  text-decoration: none; background: #fff; border-radius: 6px;
  padding: 5px 10px; border: 1.5px solid rgba(26,138,95,.3);
  white-space: nowrap; flex-shrink: 0;
}
.acc-upgrade-btn:hover { background: var(--green); color: #fff; }
.acc-quota-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

.acc-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .82rem;
  color: var(--dark);
  margin-top: 4px;
}
.acc-count {
  background: var(--border);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
}
.acc-empty { font-size: .82rem; color: var(--muted); text-align: center; padding: 24px 0; line-height: 1.6; }
.acc-inq-list { display: flex; flex-direction: column; gap: 10px; }
.acc-inq-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.acc-inq-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.acc-inq-delete-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px; display: flex; align-items: center;
  transition: color .15s, background .15s;
}
.acc-inq-delete-btn:hover { color: #c0392b; background: #fdecea; }
.acc-inq-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-inq-meta { flex: 1; min-width: 0; }
.acc-inq-name  { font-weight: 700; font-size: .88rem; }
.acc-inq-time  { font-size: .72rem; color: var(--muted); }
.acc-inq-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--green-lt); color: var(--green);
  padding: 3px 8px; border-radius: 100px; flex-shrink: 0;
}
.acc-inq-listing {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--muted); margin-bottom: 6px;
}
.acc-inq-message {
  font-size: .82rem; color: var(--dark);
  background: var(--bg); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px;
  font-style: italic; line-height: 1.5;
}
.acc-inq-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-contact-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  padding: 5px 12px; border-radius: 7px; border: 1.5px solid var(--border);
  color: var(--dark); background: var(--white); transition: background .15s, color .15s;
}
.acc-contact-phone:hover { background: var(--green); color: #fff; border-color: var(--green); }
.acc-contact-email:hover { background: var(--green); color: #fff; border-color: var(--green); }
.acc-view-listing-btn { cursor: pointer; font-family: var(--font); }
.acc-view-listing-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Doc request badge states */
.docreq-pending  { background: #fff8e1; color: #c07a00; }
.docreq-approved { background: var(--green-lt); color: var(--green); }
.docreq-rejected { background: #fdecea; color: #c0392b; }

/* View Listing button */
.acc-view-listing-btn {
  cursor: pointer; font-family: var(--font);
  background: #f0f4ff; color: #3b5bdb; border-color: #c5d0fa;
}
.acc-view-listing-btn:hover { background: #3b5bdb; color: #fff; border-color: #3b5bdb; }

/* Approve / Decline action buttons */
.acc-docreq-approve {
  cursor: pointer; font-family: var(--font);
  background: var(--green-lt); color: var(--green); border-color: var(--green);
}
.acc-docreq-approve:hover { background: var(--green); color: #fff; }
.acc-docreq-reject {
  cursor: pointer; font-family: var(--font);
  background: #fdecea; color: #c0392b; border-color: #e0b4b4;
}
.acc-docreq-reject:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

.my-plan-card {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.mpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.mpc-plan {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 100px;
}
.tag-plan-free    { background: #f0f0f0; color: #555; }
.tag-plan-starter { background: #fff3cd; color: #b45309; }
.tag-plan-pro     { background: #dbeafe; color: #1e40af; }
.tag-plan-max     { background: #fef3c7; color: #92400e; }

.verified-seller-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px 2px 5px; border-radius: 100px;
  vertical-align: middle; white-space: nowrap;
  line-height: 1.6;
}
.mpc-numbers   { font-size: .8rem; color: var(--muted); }
.mpc-numbers strong { color: var(--green); }
.mpc-bar-track { height: 6px; background: #e8e8e8; border-radius: 100px; overflow: hidden; }
.mpc-bar-fill  { height: 100%; background: var(--green); border-radius: 100px; transition: width .3s ease; }
.mpc-bar-fill.warn { background: var(--orange); }
.mpc-bar-fill.full { background: var(--red); }

.my-listings-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.ml-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 108px;
  transition: box-shadow .15s;
}
.ml-card:hover { box-shadow: var(--shadow); }
.ml-card-hidden { opacity: .65; border-color: #f5c2c7; background: #fff8f8; }
.ml-card-sold   { opacity: .85; border-color: #b7ddb5; background: #f6fdf6; }
.ml-hidden-banner {
  font-size: .75rem; color: #842029; background: #fde8e8;
  border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; line-height: 1.5;
}
.ml-hidden-banner a { color: var(--green); font-weight: 600; text-decoration: none; }
.tag-hidden { background: #fde8e8; color: #842029; }
.tag-sold   { background: #d1fae5; color: #065f46; font-weight: 700; }

.ml-sold-btn {
  position: absolute; top: 38px; right: 10px;
  background: none; border: 1.5px solid var(--green);
  color: var(--green); border-radius: 7px;
  font-size: .68rem; font-weight: 700;
  padding: 4px 10px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ml-sold-btn:hover   { background: var(--green); color: #fff; }
.ml-unsold-btn       { border-color: var(--muted); color: var(--muted); }
.ml-unsold-btn:hover { background: var(--muted); color: #fff; }

.ml-portfolio-header {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: var(--dark);
  margin: 20px 0 10px;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--border);
}

.ml-card-photo {
  width: 96px;
  min-width: 96px;
  min-height: 108px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.ml-no-photo {
  width: 96px;
  min-width: 96px;
  min-height: 108px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--green);
  flex-shrink: 0;
}
.ml-card-body {
  flex: 1;
  padding: 12px 72px 12px 14px;
  min-width: 0;
}
.ml-card-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
  line-height: 1.35;
  word-break: break-word;
  margin-bottom: 6px;
}
.ml-card-tags  { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.ml-card-meta  { font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.ml-card-date  { font-size: .72rem; color: var(--muted); }

.ml-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ml-delete-btn:hover { background: #fde8e8; color: var(--red); }

.ml-confirm-bar {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  padding: 8px;
}
.ml-confirm-yes {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.ml-confirm-no {
  background: #eee;
  color: var(--dark);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

/* â”€â”€ Summary Dashboard â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 16px 8px;
}
.db-stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-stat-icon { margin-bottom: 2px; }
.db-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.db-stat-label { font-size: .72rem; color: var(--muted); font-weight: 500; }

.db-listings-list { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.db-listing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.db-listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.db-listing-title { font-weight: 700; font-size: .9rem; color: var(--dark); flex: 1; }
.db-listing-loc { font-size: .75rem; color: var(--muted); margin-bottom: 12px; }

.db-metrics { display: flex; flex-direction: column; gap: 8px; }
.db-metric-header {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted); margin-bottom: 4px;
}
.db-metric-header svg { flex-shrink: 0; }
.db-metric-header span { flex: 1; }
.db-metric-header strong { color: var(--dark); font-weight: 700; font-size: .82rem; }
.db-bar-track { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.db-bar-fill  { height: 100%; border-radius: 99px; transition: width .4s ease; }

/* â”€â”€ Disclaimer Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.disc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(150deg, #0f1f16 0%, #1a3d28 60%, #0d2b1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: disc-fade-in .35s ease;
}
.disc-overlay.disc-hiding {
  animation: disc-fade-out .35s ease forwards;
}
@keyframes disc-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes disc-fade-out { from { opacity: 1 } to { opacity: 0 } }

.disc-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  overflow: hidden;
}

/* Header */
.disc-header {
  padding: 32px 36px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0faf5 0%, #fff 100%);
}
.disc-logo {
  font-size: 1rem;
  font-weight: 900;
  color: #222;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.disc-logo span { color: var(--green); }
.disc-title    { font-size: 1.4rem; font-weight: 800; color: #111; margin-bottom: 4px; }
.disc-subtitle { font-size: .875rem; color: var(--muted); }

/* Scrollable body */
.disc-body {
  overflow-y: auto;
  padding: 24px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disc-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.disc-section-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.disc-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}
.disc-item {
  font-size: .84rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 10px;
}
.disc-item:last-child { margin-bottom: 0; }
.disc-label {
  display: inline-block;
  font-weight: 700;
  color: var(--green);
  margin-right: 4px;
}
.disc-label::after { content: ' \2014'; }

.disc-highlight {
  background: #f0faf5;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  font-size: .84rem;
  color: #333;
  line-height: 1.7;
  font-style: italic;
}

.disc-footer-note {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  padding-top: 4px;
}

/* Actions bar */
.disc-actions {
  padding: 18px 36px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #fafafa;
}
.disc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 16px;
  cursor: pointer;
}
.disc-check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
}
.disc-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.disc-btn-decline {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 22px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: var(--font);
}
.disc-btn-decline:hover { border-color: #bbb; color: #333; }
.disc-btn-agree {
  background: var(--green);
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  font-family: var(--font);
}
.disc-btn-agree:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.disc-btn-agree:not(:disabled):hover  { opacity: .88; }
.disc-btn-agree:not(:disabled):active { transform: scale(.97); }

/* â”€â”€ Account Panel Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acc-settings-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .78rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.acc-settings-icon-btn:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* â”€â”€ Account Settings Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acc-settings-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden;
}
.acc-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
}
.acc-settings-header h2 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}
.acc-settings-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.acc-settings-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}
.acc-settings-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color .15s;
}
.acc-settings-field input:focus {
  outline: none;
  border-color: var(--green);
}
.acc-settings-field input[readonly] {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}
.acc-settings-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
  min-height: 14px;
}
.acc-settings-footer {
  padding: 14px 20px;
  border-top: 1.5px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* â”€â”€ Structured Property Description Fields â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.prop-details-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.prop-details-col { display: flex; flex-direction: column; gap: 0; }

.prop-details-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 0 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.prop-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f3f3;
}
.prop-detail-row:last-child { border-bottom: none; }
.prop-detail-row label {
  font-size: .78rem;
  color: var(--dark);
  font-weight: 500;
  flex-shrink: 0;
  width: 140px;
}
.prop-detail-row select,
.prop-detail-row input[type="number"] {
  flex: 1;
  padding: 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .8rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s;
  min-width: 0;
  max-width: 200px;
}
.prop-detail-row select:focus,
.prop-detail-row input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
}

/* Nearby chips */
.prop-nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.prop-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  font-family: var(--font);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: background .13s, border-color .13s, color .13s;
  white-space: nowrap;
}
.prop-chip:hover { border-color: var(--green); color: var(--green); }
.prop-chip.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* â”€â”€ Top Seller Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.top-seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .02em;
  vertical-align: middle;
}

/* â”€â”€ Done Deal Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-done-deal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, opacity .15s;
}
.btn-done-deal:hover { background: #15803d; }
.btn-done-deal:disabled, .dd-btn-pending {
  background: #6b7280 !important;
  cursor: not-allowed;
  opacity: .75;
}
.btn-done-deal.btn-full {
  display: flex;
  justify-content: center;
  height: auto;
  min-height: unset;
}

/* â”€â”€ Done Deal Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dd-icon-circle {
  background: #dcfce7;
  color: #16a34a;
}
.dd-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .78rem;
  color: #166534;
  margin-bottom: 14px;
  line-height: 1.5;
}
.dd-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--muted);
}
.dd-upload-area:hover, .dd-upload-area.dd-drag-over {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}
.dd-upload-label { font-size: .85rem; font-weight: 600; margin-top: 8px; }
.dd-upload-hint  { font-size: .72rem; margin-top: 4px; }
.dd-file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--dark);
}
.dd-preview-img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.dd-preview-name { word-break: break-all; }

/* â”€â”€ Account Deals Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acc-deals-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 0;
}
.acc-deals-left { flex-shrink: 0; }
.acc-deals-right { flex: 1; }
.acc-deals-label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.acc-deals-count { font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1; }
.acc-deals-count span { font-size: .78rem; font-weight: 500; color: var(--muted); }
.acc-deals-bonus { font-size: .72rem; color: #16a34a; font-weight: 600; margin-top: 3px; }
.acc-deals-track {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.acc-deals-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #f59e0b);
  border-radius: 99px;
  transition: width .4s ease;
}
.acc-deals-hint { font-size: .7rem; color: var(--muted); }

/* â”€â”€ Admin Done Deals Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dd-role-seller {
  background: #ede9fe; color: #6d28d9;
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.dd-role-buyer {
  background: #dbeafe; color: #1d4ed8;
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.btn-approve {
  background: #16a34a; color: #fff; border: none;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-size: .75rem; font-family: var(--font);
}
.btn-approve:hover { background: #15803d; }
.btn-reject {
  background: #dc2626; color: #fff; border: none;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-size: .75rem; font-family: var(--font);
}
.btn-reject:hover { background: #b91c1c; }

/* â”€â”€ Chat Button on Listing Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-chat-seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-chat-seller:hover { background: #1e40af; }

/* â”€â”€ Chat Launcher (floating button bottom-right) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
}
.chat-launcher-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29,78,216,.4);
  transition: background .15s, transform .15s;
}
.chat-launcher-btn:hover { background: #1e40af; transform: scale(1.07); }
.chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* â”€â”€ Conversations Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-conv-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 300px;
  max-height: 460px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-conv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1d4ed8;
  color: #fff;
}
.chat-conv-title { font-weight: 700; font-size: .95rem; }
.chat-conv-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: .8;
}
.chat-conv-close:hover { opacity: 1; }
.chat-conv-list {
  overflow-y: auto;
  flex: 1;
}
.chat-conv-empty {
  padding: 32px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: .82rem;
  line-height: 1.6;
}
.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
}
.chat-conv-item:hover { background: #f8fafc; }
.chat-conv-item.chat-conv-unread { background: #eff6ff; }
.chat-conv-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .78rem;
}
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-name {
  font-size: .84rem;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-conv-listing {
  font-size: .72rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-preview {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-badge {
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* â”€â”€ Chat Windows Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-windows-container {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 8998;
  pointer-events: none;
}

/* â”€â”€ Individual Chat Window â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-window {
  position: fixed;
  bottom: 0;
  width: 300px;
  height: 580px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 8998;
  pointer-events: all;
  transition: height .2s;
}
.chat-window-minimized .chat-win-body,
.chat-window-minimized .chat-typing-indicator,
.chat-window-minimized .chat-win-footer { display: none; }
.chat-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.chat-win-header-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.chat-win-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .7rem;
}
.chat-win-name {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-win-listing {
  font-size: .65rem;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-win-listing[onclick]:hover { opacity: 1; text-decoration: underline; }
.chat-win-actions { display: flex; gap: 4px; }
.chat-win-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  opacity: .8;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.chat-win-close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.chat-win-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
}
.chat-loading-msg, .chat-no-msgs {
  text-align: center;
  color: #9ca3af;
  font-size: .78rem;
  margin: auto;
}

/* â”€â”€ Message Bubbles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.chat-msg-sent { align-self: flex-end; align-items: flex-end; }
.chat-msg-recv { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: .83rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg-sent .chat-bubble {
  background: #1d4ed8;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-recv .chat-bubble {
  background: #e5e7eb;
  color: #111;
  border-bottom-left-radius: 4px;
}
.chat-msg-meta {
  font-size: .62rem;
  color: #9ca3af;
  margin-top: 2px;
  padding: 0 4px;
}
.chat-msg-read { color: #60a5fa; }

/* â”€â”€ Typing Indicator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-typing-indicator {
  padding: 6px 12px;
  background: #f8fafc;
}
.chat-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing-dots span {
  width: 7px;
  height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  animation: chatBounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(1) { animation-delay: 0s; }
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBounce {
  0%, 80%, 100% { transform: scale(.7); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

/* â”€â”€ Chat Footer / Input â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-win-footer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.chat-win-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: .83rem;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.4;
  max-height: 80px;
  overflow-y: auto;
  transition: border-color .15s;
}
.chat-win-input:focus { border-color: #1d4ed8; }
.chat-win-send {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.chat-win-send:hover { background: #1e40af; }

/* â”€â”€ New Message Notification Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-notification {
  position: fixed;
  bottom: 86px;
  right: 24px;
  background: #1d4ed8;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 100001;
  font-size: .82rem;
  line-height: 1.5;
  max-width: 260px;
  animation: slideInChat .25s ease;
}
@keyframes slideInChat {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}





/* ── Chat Listing Card ───────────────────────────────────────────────────────── */
.chat-listing-card {
  background: #f0f7ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.chat-listing-card:hover { background: #dbeafe; }
.chat-listing-card-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  background: #1d4ed8;
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.chat-listing-card-title {
  font-size: .83rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.3;
  margin-bottom: 3px;
}
.chat-listing-card-price {
  font-size: .82rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 2px;
}
.chat-listing-card-loc {
  font-size: .72rem;
  color: #6b7280;
  margin-bottom: 6px;
}
.chat-listing-card-cta {
  font-size: .72rem;
  font-weight: 600;
  color: #1d4ed8;
}



/* ── Inquiry Modal Tabs ─────────────────────────────────────────────────────── */
.inq-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}
.inq-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.inq-tab.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.inq-tab:hover:not(.active) { color: #374151; }

/* ── Inquiry Chat Panel ─────────────────────────────────────────────────────── */
.inq-chat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 8px;
  gap: 14px;
}
.inq-chat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inq-chat-desc {
  color: #6b7280;
  font-size: .85rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Sheet Handle (hidden on desktop) ───────────────────────────────────────── */
.sheet-handle { display: none; }

/* ── Mobile Draw-Ready Overlay (hidden on desktop) ──────────────────────────── */
.draw-ready-overlay { display: none; }

/* ── Mobile Bottom Nav (hidden on desktop) ──────────────────────────────────── */
.mobile-bottom-nav { display: none; }
.mob-tab { display: flex; }
.mob-tab.hidden { display: none; }


/* ── Mobile — Full Bottom-Sheet Design ──────────────────────────────────────── */
@media (max-width: 768px) {

  :root { --nav-h: 48px; --bottom-nav-h: 68px; --safe-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-grid { width: 100%; max-width: 100%; height: 96vh; }
  .grid-modal-body { grid-template-columns: 1fr; padding: 10px 12px 16px; gap: 10px; }
  .grid-modal-header { padding: 14px 16px 12px; }
  .btn-view-all { display: none; }

  /* ── Compact top navbar ── */
  .navbar {
    padding: 0 16px;
    gap: 8px;
    height: var(--nav-h);
  }
  .brand-name   { font-size: 1.4rem; }
  .brand-icon   { font-size: 1.4rem; }
  .nav-admin-btn  { display: none; }
  .nav-user-name  { display: none; }
  .nav-logout-btn { padding: 5px 10px; font-size: .7rem; }
  .nav-login-btn  { padding: 7px 14px; font-size: .75rem; }

  /* ── Hide old nav-tabs from navbar on mobile ── */
  .nav-tabs { display: none; }

  /* ── Mobile bottom nav (direct body child — iOS Safari safe) ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    min-height: var(--bottom-nav-h);
    background: var(--white);
    border-top: 1.5px solid var(--border);
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 600;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,.12);
    /* Horizontal scroll fallback for very narrow screens */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-bottom-nav::-webkit-scrollbar { display: none; }

  /* Push Leaflet attribution above the bottom nav */
  .leaflet-bottom { bottom: var(--bottom-nav-h) !important; }
  .mob-tab {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    font-size: .62rem;
    font-weight: 600;
    min-width: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
  }
  .mob-tab svg { width: 22px; height: 22px; opacity: .5; }
  .mob-tab.active     { color: var(--green); }
  .mob-tab.active svg { opacity: 1; }
  .mob-tab span       { line-height: 1; }

  /* ── App layout — map fills full space, sidebar is a fixed overlay ── */
  .app-layout { position: relative; }
  .map-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }

  /* ── Bottom sheet handle ── */
  .sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 20px 12px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 68px;
    background: #F5F4F1;
    border-radius: 20px 20px 0 0;
  }
  .sheet-handle-pill {
    width: 40px;
    height: 4px;
    background: #c5c2bc;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .sheet-handle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .sheet-handle-count {
    font-size: .82rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.01em;
  }
  .sheet-chevron {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .32s;
  }
  .sidebar.sheet-half .sheet-chevron,
  .sidebar.sheet-full .sheet-chevron { transform: rotate(180deg); }

  /* ── Sidebar → fixed bottom sheet overlay ── */
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    /* Sit on top of the bottom nav bar (56px) + safe area */
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    min-width: 0;
    height: calc(100dvh - var(--nav-h) - var(--bottom-nav-h) - env(safe-area-inset-bottom, 0px));
    border-right: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 32px rgba(0,0,0,.14);
    /* Collapsed: only 68px peeking above bottom nav */
    transform: translateY(calc(100% - 68px));
    transition: transform .34s cubic-bezier(.32, 0, .67, 0),
                border-radius .2s;
    z-index: 550;
    overflow: hidden;
    flex-shrink: unset;
  }
  /* Half-expanded (~55% visible) */
  .sidebar.sheet-half {
    transform: translateY(42%);
  }
  /* Fully expanded */
  .sidebar.sheet-full {
    transform: translateY(0);
    border-radius: 0;
  }

  /* Smooth scroll inside sheet */
  .listing-list { -webkit-overflow-scrolling: touch; }

  /* Panel fills remaining sheet height after handle */
  .panel { flex: 1; height: auto; min-height: 0; }

  /* ── Map legend — hidden on mobile ── */
  .map-legend { display: none; }

  /* ── Map search — smaller width on mobile, stay top ── */
  .map-search-box {
    top: 14px;
    width: calc(100vw - 190px);
    left: 50px;
    right: auto;
    transform: none;
  }

  /* ── Layer toggle (map) — keep accessible ── */
  .layer-toggle-btn { top: 8px; right: 8px; }

  /* ── Hide map controls when listing panel is fullscreen ── */
  .sidebar.sheet-full ~ .map-wrapper .map-search-box,
  .sidebar.sheet-full ~ .map-wrapper .leaflet-control-zoom,
  .sidebar.sheet-full ~ .map-wrapper .layer-toggle-btn {
    display: none !important;
  }

  /* ── Modals → bottom sheet ── */
  .overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    padding: 6px 20px 32px;
    margin: 0;
  }
  .modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 4px auto 18px;
  }
  .modal-wide  { max-height: 93vh; }
  .modal-auth  {
    padding: 6px 20px 32px;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }
  .modal-auth::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 4px auto 20px;
  }
  .auth-heading    { font-size: 1.35rem; }
  .auth-brand-name { font-size: 2rem; }

  /* Account settings box — full-width bottom sheet */
  .acc-settings-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }

  /* ── Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) ── */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* ── Search & filter — compact on mobile ── */
  .panel-header { padding: 10px 12px 8px; }
  .search-box { margin-bottom: 7px; border-radius: 10px; padding: 0 10px; }
  .search-box input { padding: 9px 8px; font-size: 16px !important; }
  .filter-chips { gap: 5px; margin-bottom: 6px; }
  .chip-select { padding: 7px 28px 7px 10px; font-size: 13px !important; border-radius: 8px; }
  .result-count-row { padding: 0 0 4px; }
  .result-count { font-size: .72rem; }

  /* ── Forms / fields ── */
  .filter-chips   { flex-wrap: wrap; gap: 6px; }
  .chip-select-wide { width: 100%; }
  .field-row.three-col { flex-direction: column; }
  .locate-hint    { display: none; }
  .draw-bar       { flex-wrap: wrap; }

  /* ── Chat — above bottom nav + safe area ── */
  .chat-launcher   {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    right: 16px;
  }
  .chat-conv-panel {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 64px);
    right: 0; left: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
  }
  .chat-window {
    width: 100% !important;
    left: 0 !important;
    right: 0;
    border-radius: 16px 16px 0 0;
  }

  /* ── Disclaimer ── */
  .disc-overlay { align-items: flex-end; padding: 0; }
  .disc-card {
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
    max-width: 100%;
  }

  /* ── Draw-ready overlay — floating card above bottom nav ── */
  .draw-ready-overlay:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    left: 16px;
    right: 16px;
    z-index: 560;
    background: var(--white);
    border-radius: 16px;
    padding: 16px 20px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    text-align: center;
  }
  .dro-hint {
    font-size: .84rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
  }
  .dro-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
  }
  .dro-cancel-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── Extra-small phones (< 420px) — smaller labels ─────────────────────────── */
@media (max-width: 420px) {
  .brand-name     { font-size: 1.2rem; }
  .nav-tab-label  { font-size: .52rem; }
  .nav-tab        { min-width: 46px; padding: 4px 4px; }
}

/* ── Mobile readability — reduce "zoomed-in" feel ───────────────────────────── */
@media (max-width: 768px) {

  /* ── My Listings cards — mobile ── */
  .ml-card            { border-radius: 10px; min-height: 100px; }
  .ml-card-photo      { width: 88px; min-width: 88px; min-height: 100px; }
  .ml-no-photo        { width: 88px; min-width: 88px; min-height: 100px; font-size: 1.5rem; }
  .ml-card-body       { padding: 11px 68px 11px 12px; }
  .ml-card-title      { font-size: .84rem; line-height: 1.3; }
  .ml-card-price      { font-size: .92rem; }
  .ml-card-meta       { font-size: .72rem; }
  .card-meta-row      { font-size: .7rem; gap: 4px; }
  .tag                { font-size: .62rem; padding: 3px 8px; }

  /* ── Listing panel header ── */
  .sheet-handle-count { font-size: .75rem; }
  .listing-list       { padding: 8px 10px 12px; gap: 8px; }

  /* ── Sell / listing form — less padding ── */
  .sell-form          { padding: 12px 14px 20px; }
  .form-section-title { font-size: .65rem; }
  .field label        { font-size: .72rem; }
  .field input,
  .field select,
  .field textarea     { padding: 8px 11px; }

  /* ── Dashboard / account panels ── */
  #dashboard-content, #dashboard-body { padding: 12px 14px; gap: 10px; }

  /* ── Modal close button — pinned to top-right corner on mobile ── */
  .modal-close {
    width: 44px; height: 44px;
    top: 6px; right: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    border-radius: 50%;
    z-index: 10;
  }

  /* ── Force scroll on all content containers so scrollbar always shows ── */
  .my-listings-body           { overflow-y: scroll; }
  .account-body               { overflow-y: scroll; }
  .sell-form                  { overflow-y: scroll; }
  #dashboard-content,
  #dashboard-body             { overflow-y: scroll; }

  /* ── Always-visible thin scrollbar (Android Chrome / mobile WebKit) ── */
  .listing-list,
  .my-listings-body,
  .account-body,
  .sell-form,
  .modal,
  #dashboard-content,
  #dashboard-body,
  body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
  }
  .listing-list::-webkit-scrollbar,
  .my-listings-body::-webkit-scrollbar,
  .account-body::-webkit-scrollbar,
  .sell-form::-webkit-scrollbar,
  .modal::-webkit-scrollbar,
  #dashboard-content::-webkit-scrollbar,
  #dashboard-body::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 3px;
    display: block;
  }
  .listing-list::-webkit-scrollbar-thumb,
  .my-listings-body::-webkit-scrollbar-thumb,
  .account-body::-webkit-scrollbar-thumb,
  .sell-form::-webkit-scrollbar-thumb,
  .modal::-webkit-scrollbar-thumb,
  #dashboard-content::-webkit-scrollbar-thumb,
  #dashboard-body::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 3px;
  }
  .listing-list::-webkit-scrollbar-track,
  .my-listings-body::-webkit-scrollbar-track,
  .account-body::-webkit-scrollbar-track,
  .sell-form::-webkit-scrollbar-track,
  .modal::-webkit-scrollbar-track,
  #dashboard-content::-webkit-scrollbar-track,
  #dashboard-body::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    background: transparent;
  }
}
