:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #475569;

  --primary: #15803d;
  --primary-hover: #166534;
  --primary-soft: #dcfce7;

  --available: #15803d;
  --available-bg: #dcfce7;
  --available-text: #14532d;

  --hold: #b45309;
  --hold-bg: #fef3c7;
  --hold-text: #78350f;

  --sold: #dc2626;
  --sold-bg: #fee2e2;
  --sold-text: #7f1d1d;

  --whatsapp: #16a34a;
  --whatsapp-hover: #15803d;
  --call: #1d4ed8;
  --call-hover: #1e40af;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #15803d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.28);
  flex-shrink: 0;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-btn:hover {
  background: var(--surface-soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.header-cta:hover {
  background: var(--whatsapp-hover);
}

.mobile-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 1 260px;
}

.mobile-filter-btn {
  display: inline-flex;
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: 999px;
  white-space: nowrap;
}

.extra-filters {
  display: none;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.extra-filters.open {
  display: flex;
}

/* Search & Filter Toolbar */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-input {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 190px;
  flex: 1 1 200px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 130px;
}

.results-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-left: auto;
}

/* Full-height Map + Right Plots Panel */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - 134px);
  min-height: 520px;
}

.sheet-handle {
  display: none;
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.map-legend {
  position: absolute;
  bottom: 18px;
  left: 14px;
  z-index: 800;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-available { background: var(--available); }
.dot-hold { background: var(--hold); }
.dot-sold { background: var(--sold); }

/* Modern Pill Map Pin (Airbnb / Housing style) */
.plot-pill-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease;
}

.plot-pill-pin:hover {
  transform: scale(1.1);
}

/* Listing Feed */
.list-panel {
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  align-content: start;
  gap: 14px;
}

.empty-state {
  grid-column: 1 / -1;
}

.plot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.plot-card.highlighted {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

.card-media {
  position: relative;
  width: 100%;
  height: 185px;
  background: #e2e8f0;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.card-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-price-tag {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.card-rate-tag {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.card-project {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-available { background: var(--available-bg); color: var(--available-text); }
.badge-hold { background: var(--hold-bg); color: var(--hold-text); }
.badge-sold { background: var(--sold-bg); color: var(--sold-text); }

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-soft);
  border-color: #94a3b8;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-call {
  background: var(--call);
  color: #fff;
}

.btn-call:hover {
  background: var(--call-hover);
}

.btn-danger {
  background: var(--sold);
  color: #fff;
}

/* Leaflet Popup */
.popup-box {
  min-width: 200px;
  font-family: inherit;
}

.popup-box h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.popup-link {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Detail Page (2-Column Desktop Portal Layout) */
.detail-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.gallery-wrap {
  position: relative;
}

.gallery-main {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
  display: block;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.price-banner {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-rate {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.spec-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.spec-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.spec-value {
  font-size: 0.98rem;
  font-weight: 800;
  margin-top: 2px;
}

.detail-desc {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.65;
}

.sidebar-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

#detail-map {
  width: 100%;
  height: 290px;
  border-radius: 10px;
  margin-top: 10px;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.trust-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.trust-footer strong {
  color: var(--text);
}

.sticky-cta-bar {
  display: none;
}

/* Full-screen Image Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Priority Ribbons & Shortlist Star */
.ribbon-tag {
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.star-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.star-btn.active {
  color: #f59e0b;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.preset-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.preset-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Floating Shortlist & Compare Bar */
.shortlist-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  max-width: 95vw;
  flex-wrap: wrap;
}

.shortlist-bar.show {
  display: flex;
}

/* Compare Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.compare-modal.open {
  display: flex;
}

.compare-box {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.compare-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

/* Admin Panel */
.admin-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-box {
  max-width: 400px;
  margin: 40px auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
}

textarea.form-control {
  min-height: 70px;
  resize: vertical;
}

#admin-map {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.photo-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.photo-preview-item {
  position: relative;
  width: 76px;
  height: 58px;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.photo-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--sold);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.private-section {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

.private-section h4 {
  font-size: 0.88rem;
  color: #854d0e;
  margin-bottom: 8px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 75vh;
  overflow-y: auto;
}

.admin-row {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.status-msg {
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: 8px;
  display: none;
}

.status-msg.show {
  display: block;
}

.status-msg.ok {
  background: var(--available-bg);
  color: var(--available-text);
}

.status-msg.err {
  background: var(--sold-bg);
  color: var(--sold-text);
}

/* Mobile Responsive: Full-Screen Map + Pull-Up Plots Sheet */
@media (max-width: 860px) {
  body.map-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .site-header {
    padding: 8px 12px;
    flex-shrink: 0;
  }

  .brand-sub {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-btn,
  .header-cta {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .filters-bar {
    padding: 8px 10px;
    gap: 6px;
    flex-shrink: 0;
  }

  .mobile-search-row {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .mobile-search-row .search-input {
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.88rem;
  }

  .mobile-filter-btn {
    display: inline-flex;
    padding: 7px 12px;
    font-size: 0.82rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .chip-group {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .chip-btn {
    padding: 5px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .extra-filters {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .extra-filters.open {
    display: flex;
  }

  .filter-select {
    font-size: 0.82rem;
    padding: 6px 10px;
    min-width: 105px;
    flex: 1 1 45%;
  }

  .main-layout {
    display: block;
    position: relative;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
  }

  .map-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .trust-footer {
    display: none;
  }

  .map-legend {
    bottom: 64px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    gap: 10px;
  }

  .list-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    height: 76vh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.22);
    padding: 0 12px 24px;
    transform: translateY(calc(100% - 54px));
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .list-panel.sheet-open {
    transform: translateY(0);
  }

  .sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    padding: 8px 0 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    margin: 0 -12px 4px;
  }

  .sheet-pill {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #94a3b8;
  }

  .sheet-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
  }

  .shortlist-bar {
    bottom: 64px;
  }

  .results-count {
    margin-left: 0;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .gallery-main {
    height: 240px;
  }

  .detail-page {
    padding-bottom: 86px;
  }

  .sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.12);
  }

  .sticky-cta-bar .btn {
    padding: 12px;
    font-size: 1rem;
  }

  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
