* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #f7f7f7; }

/* ─── TOP FILTER BAR (two-row) ───────────────────────────────────────────────── */
#filter-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── Row 1: Logo + Search ── */
#header-row {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 58px; flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
.logo-svg { width: 28px; height: 28px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 16px; color: #2A2A33; letter-spacing: -0.3px; line-height: 1.1;
}
.logo-sub { font-size: 9px; font-weight: 600; color: #006AFF; letter-spacing: 1px; text-transform: uppercase; }

/* Search bar */
#header-search-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
  max-width: 560px;
}
.header-search-icon {
  position: absolute; left: 14px; width: 18px; height: 18px;
  color: #999; pointer-events: none;
}
#search-input {
  width: 100%; padding: 9px 14px 9px 42px; border-radius: 24px;
  border: 1.5px solid #e0e0e0; background: #f7f7f7;
  color: #2A2A33; font-size: 14px; outline: none; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
#search-input::placeholder { color: #aaa; }
#search-input:focus {
  background: #fff; border-color: #006AFF;
  box-shadow: 0 0 0 3px rgba(0,106,255,0.1);
}

/* Listing count badge */
#listing-count {
  margin-left: auto; font-size: 12px; font-weight: 600; color: #006AFF;
  background: #e8f2ff; border: 1px solid #b3d4ff;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

/* Mobile filter button */
#mob-filter-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e0e0e0; background: #fff;
  cursor: pointer; flex-shrink: 0; color: #2A2A33;
  -webkit-tap-highlight-color: transparent;
}

/* ── Row 2: Filter pills ── */
#filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 46px; flex-shrink: 0;
  overflow-x: auto;
}
#filter-row::-webkit-scrollbar { display: none; }

/* ─── PILL DROPDOWNS ─────────────────────────────────────────────────────────── */
.pill-wrap { position: relative; flex-shrink: 0; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px 6px 11px; border-radius: 20px;
  border: 1.5px solid #e0e0e0; background: #fff;
  color: #2A2A33; font-family: inherit; cursor: pointer;
  transition: all 0.15s; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.pill-btn:hover { background: #f4f4f4; border-color: #bbb; }
.pill-btn.open  { border-color: #006AFF; background: #f0f6ff; }
.pill-btn.active { background: #006AFF; border-color: #006AFF; color: #fff; }
.pill-btn.active:hover { background: #0059d6; }
.pill-btn.active.open  { background: #0059d6; border-color: #0059d6; }

.pill-label {
  font-size: 11px; font-weight: 500; color: #888;
  letter-spacing: 0.2px;
}
.pill-btn.active .pill-label { color: rgba(255,255,255,0.75); }

.pill-value { font-size: 13px; font-weight: 600; }

.chevron-icon {
  width: 10px; height: 6px; flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #888;
}
.pill-btn.active .chevron-icon { color: rgba(255,255,255,0.8); }
.pill-btn.open .chevron-icon { transform: rotate(180deg); }

/* Dropdown menu */
.pill-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 600;
  background: #fff; border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  min-width: 170px; overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: top left;
}
.pill-menu.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.pill-menu-scroll { max-height: 240px; overflow-y: auto; }
.pill-menu-scroll::-webkit-scrollbar { width: 4px; }
.pill-menu-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.pill-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 16px;
  background: none; border: none;
  color: #2A2A33; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.1s; white-space: nowrap;
}
.pill-opt:hover { background: #f7f7f7; }
.pill-opt.active { color: #006AFF; font-weight: 600; }
.pill-opt.active::after { content: '✓'; font-size: 12px; color: #006AFF; }

/* Keep chip styles for mobile filter sheet */
.chip {
  padding: 5px 13px; border-radius: 20px;
  border: 1.5px solid #e0e0e0; background: #fff;
  color: #2A2A33; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: #f4f4f4; border-color: #bbb; }
.chip.active { background: #006AFF; border-color: #006AFF; color: #fff; font-weight: 600; }
.chip.active.g { background: #e6f4ea; border-color: #34a853; color: #1e8e3e; }
.chip.active.y { background: #fef9e7; border-color: #f9a825; color: #a56200; }
.chip.active.b { background: #e8f0fe; border-color: #4285f4; color: #1967d2; }

/* ─── MAIN LAYOUT (split view) ───────────────────────────────────────────────── */
#app-body {
  position: fixed; top: 104px; left: 0; right: 0; bottom: 0;
  display: flex; overflow: hidden;
}

/* ─── LEFT: LISTINGS PANEL ───────────────────────────────────────────────────── */
#listings-panel {
  width: 390px; min-width: 390px;
  background: #f7f7f7;
  border-right: 1px solid #e8e8e8;
  display: flex; flex-direction: column;
  overflow: hidden;
}

#lp-list-header {
  padding: 11px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
#lp-result-count { font-size: 13px; font-weight: 600; color: #2A2A33; }

#lp-cards {
  flex: 1; overflow-y: auto;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
#lp-cards::-webkit-scrollbar { width: 5px; }
#lp-cards::-webkit-scrollbar-track { background: transparent; }
#lp-cards::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
#lp-cards::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

.lp-loading, .lp-empty {
  text-align: center; color: #888; font-size: 13px;
  padding: 52px 20px; line-height: 1.65;
}

/* ─── PROPERTY CARDS ─────────────────────────────────────────────────────────── */
.prop-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #e8e8e8; overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.prop-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.13);
  transform: translateY(-2px);
  border-color: #b3d4ff;
}
.prop-card:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.prop-img {
  height: 118px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prop-img-icon { font-size: 42px; opacity: 0.4; user-select: none; }

.prop-price-pill {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.68);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.1px; max-width: calc(100% - 16px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prop-blacklist-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(211,47,47,0.88); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; letter-spacing: 0.2px;
}

.prop-body { padding: 10px 12px 12px; }

.prop-name {
  font-size: 13px; font-weight: 700; color: #2A2A33;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.prop-config {
  font-size: 12px; color: #444; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prop-loc {
  font-size: 11px; color: #767676; margin-bottom: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.prop-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.prop-tag {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px;
}
.tag-t1   { background: #e6f4ea; color: #1e8e3e; }
.tag-t2   { background: #fef9e7; color: #a56200; }
.tag-rera { background: #ede7f6; color: #5e35b1; }
.tag-apt  { background: #e8f2ff; color: #006AFF; }
.tag-plot { background: #fff3e0; color: #e65100; }
.tag-land { background: #e8f5e9; color: #2e7d32; }
.tag-other { background: #f3f3f3; color: #555; }

/* ─── RIGHT: MAP WRAPPER ─────────────────────────────────────────────────────── */
#map-wrapper {
  flex: 1; position: relative; overflow: hidden;
  background: #e8eaed;
}

/* ─── MAP ─────────────────────────────────────────────────────────────────────── */
#map { position: absolute; inset: 0; }

/* ─── BOTTOM NAV BAR (mobile only) ───────────────────────────────────────────── */
#bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 56px; background: #fff; border-top: 1px solid #e8e8e8;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
  align-items: center; justify-content: space-around; padding: 0 8px;
}
.bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 12px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; color: #767676; font-size: 10px; font-weight: 500;
  -webkit-tap-highlight-color: transparent; transition: background 0.15s; flex: 1;
}
.bnav-btn:active { background: #f4f4f4; }
.bnav-btn.active { color: #006AFF; }
.bnav-btn svg { width: 20px; height: 20px; }

/* ─── MOBILE FILTER SHEET ────────────────────────────────────────────────────── */
#filter-sheet {
  display: none; position: fixed; bottom: 56px; left: 0; right: 0; z-index: 1100;
  background: #fff; border-radius: 20px 20px 0 0;
  border-top: 1px solid #e8e8e8; padding: 16px 16px 12px;
  box-shadow: 0 -6px 28px rgba(0,0,0,0.13);
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#filter-sheet.open { transform: translateY(0); }
.fs-handle { width: 36px; height: 4px; border-radius: 2px; background: #ddd; margin: 0 auto 14px; }
.fs-title { font-size: 14px; font-weight: 700; color: #2A2A33; margin-bottom: 14px; }
.fs-section { margin-bottom: 14px; }
.fs-label {
  font-size: 10px; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 7px;
}
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-select {
  width: 100%; padding: 9px 32px 9px 12px; border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center no-repeat;
  color: #2A2A33; font-size: 14px; font-family: inherit;
  appearance: none; -webkit-appearance: none; outline: none;
}
.fs-search-wrap { position: relative; }
.fs-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: #999; pointer-events: none; width: 16px; height: 16px;
}
#fs-search {
  width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px;
  border: 1.5px solid #e0e0e0; background: #f7f7f7;
  color: #2A2A33; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
#fs-search:focus { background: #fff; border-color: #006AFF; }

/* ─── MAP TYPE TOGGLE ────────────────────────────────────────────────────────── */
#map-type-toggle {
  position: absolute; bottom: 12px; right: 10px; z-index: 100;
  display: flex; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.12);
}
.map-type-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 50px; cursor: pointer; font-family: inherit;
  font-size: 10px; font-weight: 600; border: none; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.map-type-btn.active::after {
  content: ''; position: absolute; inset: 0;
  border: 2.5px solid #006AFF; border-radius: inherit; pointer-events: none;
}
#btn-map { background: #f5f5f5; color: #2A2A33; }
#btn-satellite {
  background: #4a7c59; color: #fff;
  background-image: url("https://mt1.google.com/vt/lyrs=y&x=1310&y=799&z=11");
  background-size: cover; background-position: center;
}
.map-type-label { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
#btn-map .map-type-label { text-shadow: none; }

/* ─── POPUPS ─────────────────────────────────────────────────────────────────── */
.ls-popup { font-family: 'Inter', sans-serif; min-width: 220px; color: #2A2A33; }
.popup-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.popup-score-badge {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.popup-score-label { font-weight: 600; font-size: 13px; color: #2A2A33; }
.popup-score-sub { font-size: 11px; color: #767676; margin-top: 2px; }
.popup-drivers { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; }
.popup-driver { font-size: 12px; color: #2e7d32; font-weight: 500; }
.popup-hr { border: none; border-top: 1px solid #e8e8e8; margin: 8px 0; }
.popup-title { font-weight: 700; font-size: 14px; color: #2A2A33; margin-bottom: 5px; line-height: 1.35; }
.popup-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 12px; color: #444; margin-bottom: 5px; flex-wrap: wrap;
}
.popup-badge { padding: 2px 7px; border-radius: 5px; font-weight: 600; font-size: 11px; }
.popup-desc { font-size: 12px; color: #555; line-height: 1.4; margin-bottom: 4px; }
.popup-links { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.popup-link {
  font-size: 12px; color: #006AFF; text-decoration: none; font-weight: 500;
  padding: 5px 12px; border-radius: 7px;
  background: #e8f2ff; border: 1px solid #b3d4ff;
  transition: background 0.12s;
}
.popup-link:hover { background: #d0e8ff; }
.popup-blacklist { color: #d32f2f; font-size: 12px; font-weight: 600; margin-top: 6px; }

/* Mapbox popup shell overrides */
.mapboxgl-popup-content {
  border-radius: 14px !important; padding: 15px !important; background: #fff !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-width: 220px;
}
.mapboxgl-popup-tip { border-top-color: #fff !important; border-bottom-color: #fff !important; }
.mapboxgl-popup-close-button {
  color: #999 !important; font-size: 20px !important;
  padding: 6px 10px !important; line-height: 1; background: none !important;
}
.mapboxgl-popup-close-button:hover { color: #555 !important; background: none !important; }

/* Mapbox nav control */
.mapboxgl-ctrl-top-left { top: 12px !important; left: 6px !important; }
.mapboxgl-ctrl-group { box-shadow: 0 2px 8px rgba(0,0,0,0.14) !important; border-radius: 10px !important; }
.mapboxgl-ctrl-group button { width: 32px !important; height: 32px !important; }

/* ─── LEGEND ─────────────────────────────────────────────────────────────────── */
#legend {
  position: absolute; bottom: 12px; left: 10px; z-index: 100;
  background: #fff; border-radius: 10px;
  padding: 10px 13px; border: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.11);
}
.legend-title {
  font-weight: 700; font-size: 10px; text-transform: uppercase;
  color: #888; letter-spacing: 0.8px; margin-bottom: 7px;
}
.legend-item {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 5px; color: #2A2A33; font-size: 11px; font-weight: 500;
}
.legend-item:last-child { margin-bottom: 0; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid rgba(0,0,0,0.1); }

/* ─── TOAST ─────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2000; background: #2A2A33; color: #fff;
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity 0.25s; pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
#toast.show { opacity: 1; }

/* ─── LAYERS BUTTON & PANEL ──────────────────────────────────────────────────── */
#layers-btn {
  position: absolute; top: 12px; right: 10px; z-index: 100;
  background: #fff; border: 1.5px solid #e0e0e0; border-radius: 10px;
  padding: 7px 12px; font-size: 12px; font-weight: 600; color: #2A2A33;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}
#layers-btn:hover { border-color: #bbb; }
#layers-btn.active { border-color: #006AFF; color: #006AFF; background: #e8f2ff; }

#layers-panel {
  position: absolute; top: 52px; right: 10px; z-index: 100;
  background: #fff; border-radius: 14px; border: 1px solid #e8e8e8;
  box-shadow: 0 6px 28px rgba(0,0,0,0.14); width: 234px;
  overflow: hidden; display: none;
  animation: fadeIn 0.15s ease;
}
#layers-panel.open { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.lp-header { padding: 11px 14px 8px; border-bottom: 1px solid #f0f0f0; }
.lp-title { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.8px; }

.lp-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; cursor: pointer; transition: background 0.1s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lp-row:hover { background: #f7f7f7; }
.lp-row:active { background: #f0f0f0; }
.lp-icon-cell { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.lp-name { flex: 1; font-size: 12px; font-weight: 500; color: #2A2A33; }
.lp-count { font-size: 10px; color: #aaa; margin-right: 4px; }

.lp-toggle {
  width: 32px; height: 18px; border-radius: 9px; background: #ddd;
  position: relative; transition: background 0.2s; flex-shrink: 0;
}
.lp-toggle::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.lp-toggle.on { background: #006AFF; }
.lp-toggle.on::after { transform: translateX(14px); }

/* ─── LANDMARK MARKERS ───────────────────────────────────────────────────────── */
.lm-wrap { display: flex; flex-direction: column; align-items: center; }
.lm-box {
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); font-size: 11px;
  transition: transform 0.12s;
}
.lm-box:hover { transform: scale(1.1); }
.lm-label {
  font-size: 8.5px; font-weight: 700; white-space: nowrap; margin-top: 2px;
  color: #2A2A33; line-height: 1; font-family: 'Inter', sans-serif;
  text-shadow: 0 0 3px #fff, 0 0 5px #fff;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis;
}

.lm-popup { font-family: 'Inter', sans-serif; min-width: 190px; }
.lm-popup-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 4px; }
.lm-popup-name { font-size: 14px; font-weight: 700; color: #2A2A33; margin-bottom: 5px; line-height: 1.3; }
.lm-popup-note { font-size: 12px; color: #555; line-height: 1.4; }
.lm-popup-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }

/* ─── CLUSTER LABEL ──────────────────────────────────────────────────────────── */
.cluster-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  color: #fff; background: transparent; border: none; box-shadow: none;
  padding: 0; margin: 0; pointer-events: none;
}
.cluster-label::before { display: none; }

/* ─── MOBILE RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide listings panel — full-screen map on mobile */
  #listings-panel { display: none; }

  /* App body: single header row only (no filter row) */
  #app-body { top: 58px; bottom: 56px; }

  /* Filter row hidden on mobile — use bottom sheet instead */
  #filter-row { display: none; }

  /* Header row tweaks */
  #header-row { padding: 0 12px; gap: 8px; }
  #header-search-wrap { max-width: none; }
  #search-input { font-size: 13px; padding: 8px 12px 8px 38px; }
  .header-search-icon { left: 11px; width: 16px; height: 16px; }
  #mob-filter-btn { display: flex; }
  #listing-count { font-size: 11px; padding: 3px 9px; }

  /* Show bottom nav */
  #bottom-bar { display: flex; }

  /* Map controls positioned above bottom bar */
  #map-type-toggle { bottom: 70px; right: 10px; }
  #legend { bottom: 70px; left: 10px; }
  #layers-btn { top: auto; bottom: 128px; right: 10px; }
  #layers-panel { top: auto; bottom: 182px; right: 10px; max-height: 60vh; overflow-y: auto; }
  #toast { bottom: 70px; }

  /* Popup sizing */
  .ls-popup { min-width: 0; width: calc(100vw - 80px); max-width: 320px; }
  .lm-popup { min-width: 0; width: calc(100vw - 80px); max-width: 280px; }

  /* Compact landmark markers */
  .lm-label { display: none; }
  .lm-box { width: 20px !important; height: 20px !important; font-size: 10px; border-radius: 5px; }

  /* Mapbox nav control */
  .mapboxgl-ctrl-top-left { top: 12px !important; left: 6px !important; }
}

@media (min-width: 769px) {
  /* Desktop: no filter sheet or bottom nav */
  #filter-sheet { display: none !important; }
}
