body {
  margin: 0;
  /* An element selector outranks the `*` rule in App.css, so body has to name
     the token itself or it keeps the old system sans. */
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS Safari zooms the page in when a focused field's text is under 16px, and
   doesn't zoom back out. Only iOS matches this @supports test, so the smaller
   designed sizes stay everywhere else. !important because the per-component
   rules (lead form, plot search) are more specific. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}


* {
  box-sizing: border-box;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  background: transparent;
  font-family: var(--font-display);
}

.map-container img {
  display: block;
  max-width: none;
  -webkit-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.map-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.map-plot-hit {
  fill: rgba(0, 0, 0, 0.001);
  stroke: transparent;
  stroke-width: 18;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: pointer;
}

.map-plot {
  fill: #E3C58E;
  fill-opacity: 0;
  stroke: none;
  cursor: pointer;
  transition: fill-opacity 0.15s ease;
}

.map-plot.is-hovered {
  fill-opacity: 0.55;
}

/* Sizes are in map-artwork units (10090x6777 viewBox), so the numbers scale with zoom.
   Inter rather than the app's Montserrat: Montserrat's wide bold digits read as
   stretched inside the narrow plots. */
.map-plot-number {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 36px; /* about the size of the numbers printed on the master plan */
  font-weight: 400;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  paint-order: stroke;
  -webkit-user-select: none;
          user-select: none;
}

.loading-logo {
  width: 120px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 16px;
  animation: pulseLogo 1.6s ease-in-out infinite;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid #1F3523;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.top-map-toolbar,
.legend-panel,
.map-info-card,
.persistent-tooltip,
.plot-hover-label,
.plot-center-label {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.map-info-card,
.popup-content,
.video-popup-content {
  pointer-events: auto;
}

.tooltip {
  position: absolute;
  z-index: 2000;
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.86);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-display);
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  overscroll-behavior: none;
}

.popup-content {
  position: relative;
  width: min(500px, 92vw);
  min-width: 300px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.popup-content h2 {
  margin-top: 0;
  color: #111;
}

.popup-content p {
  margin: 10px 0;
  color: #555;
}

.popup-content .popup-image {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
}

.popup-content button,
.video-popup-content button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background-color: #1F3523;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
}

.popup-content button:hover,
.video-popup-content button:hover {
  background-color: #142619;
}

.video-popup {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.video-popup.animate-in {
  animation: fadeSlideIn 0.3s ease-out forwards;
  pointer-events: auto;
}

.video-popup video {
  cursor: default;
}

.video-popup-content {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-popup-content::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  z-index: 2001;
}

.video-popup-content video {
  display: block;
  width: 100%;
  height: 169px;
  margin: 0 auto;
}

.video-popup-content button {
  width: 100%;
  margin-top: 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* ── Brand ─────────────────────────────── */
.ui-top-brand {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1550;
  width: 170px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  /* No plate behind the mark — the logo artwork is white on transparent, so it
     sits straight on the map and only needs the drop-shadow below to separate
     it from the paler fields. */
}

.ui-top-brand img {
  width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

/* ── Top info button ───────────────────── */
.top-info-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1700;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* ── Share / action buttons ────────────── */
.mobile-map-actions {
  position: fixed;
  right: 24px;
  bottom: 150px;
  z-index: 1650;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.round-action-btn,
.status-switch-pill,
.mini-mode-btn,
.search-filter-btn,
.bottom-large-buttons button {
  font-family: var(--font-display);
  -webkit-tap-highlight-color: transparent;
}

.round-action-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.round-action-btn span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.round-action-btn small {
  display: none;
}

.share-btn {
  margin: 0;
}

/* ══════════════════════════════════════
   BOTTOM BAR  (replaces bottom-ui-wrap)
══════════════════════════════════════ */

/* ── Wrapper ── */
.bbar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1650;
  width: min(820px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  font-family: var(--font-display);
}

/* ── Filter expansion ── */
.bbar-filters {
  display: flex;
  gap: 8px;
  pointer-events: auto;
  animation: sheetUp 0.26s cubic-bezier(0.32,1.1,0.64,1) both;
}

@keyframes bbar-slide-down {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bbar-select {
  flex: 1 1;
  height: 40px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255,255,255,0.97);
  color: #111;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  outline: none;
  cursor: pointer;
  min-width: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Search row ── */
.bbar-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border-radius: 18px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 6px 0 16px;
  gap: 10px;
  pointer-events: auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bbar-search:focus-within {
  border-color: rgba(31, 53, 35,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 3px rgba(31, 53, 35,0.08);
}

.bbar-search-icon {
  font-size: 20px;
  color: #aaa;
  line-height: 1;
  flex-shrink: 0;
}

.bbar-search input {
  flex: 1 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.bbar-search input::placeholder {
  color: rgba(0,0,0,0.32);
}

.bbar-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: #1F3523;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.14s ease, background 0.14s ease;
}

.bbar-search-btn:active { transform: scale(0.9); }

/* ── Desktop single-row layout ── */
.bbar-desktop-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: auto;
  animation: bbar-slide-down 0.18s ease both;
  flex-wrap: nowrap;
}

/* Desktop row sizing */
.bbar-desktop-row .bbar-filt-btn {
  height: 42px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
}

.bbar-desktop-row .bbar-filt-icon { font-size: 14px; }

.bbar-desktop-row .bbar-avail {
  height: 42px;
  min-width: 58px;
  padding: 0 11px;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.bbar-desktop-row .bbar-avail strong { font-size: 14px; }
.bbar-desktop-row .bbar-avail small  { font-size: 8px; }

.bbar-desktop-row .bbar-action-btn {
  height: 42px;
  padding: 0 14px;
  font-size: 11px;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.bbar-desktop-row .bbar-action-btn span { font-size: 14px; }

.bbar-desktop-row .bbar-divider { height: 22px; }

/* Inline selects */
.bbar-inline-select {
  flex: 0 0 110px;
  width: 110px;
  height: 42px;
  border-radius: 13px;
  font-size: 11px;
  padding: 0 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  animation: bbar-slide-down 0.16s ease both;
}

/* Search */
.bbar-desktop-row .bbar-search {
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
  min-width: initial;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
}

.bbar-desktop-row .bbar-search input { font-size: 12px; }
.bbar-desktop-row .bbar-search-icon  { font-size: 18px; }
.bbar-desktop-row .bbar-search-btn   { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }

/* Mobile stacked col — hidden on desktop */
.bbar-mobile-col { display: none; }

/* ── Main row (mobile reuse) ── */
.bbar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

/* Merged filter button */
.bbar-filt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.97);
  color: #111;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.bbar-filt-icon { font-size: 15px; }

.bbar-filt-btn.open,
.bbar-filt-btn.active {
  background: #1F3523;
  color: #fff;
  border-color: #1F3523;
}

.bbar-filt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Available count */
.bbar-avail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 60px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.bbar-avail strong {
  font-size: 15px;
  font-weight: 900;
  color: #16a34a;
  line-height: 1;
}

.bbar-avail small {
  font-size: 7px;
  font-weight: 700;
  color: rgba(0,0,0,0.38);
  margin-top: 2px;
}

/* Divider */
.bbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(0,0,0,0.1);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Action buttons */
.bbar-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.97);
  color: #111;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.18s ease;
  white-space: nowrap;
}

.bbar-action-btn span { font-size: 14px; color: #1F3523; }

/* Desktop hover */
@media (min-width: 768px) {
  .bbar-filt-btn:hover,
  .bbar-action-btn:hover,
  .bbar-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  }
}

/* ── News ticker ── */


/* ── Legend ── */
.bbar-legend {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 1600;
  min-width: 96px;
  max-width: 160px;
  max-height: 56vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-display);
  animation: bbar-slide-down 0.16s ease both;
}

.bbar-legend-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}

.bbar-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.bbar-legend-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
  white-space: nowrap;
}

.bbar-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.bbar-legend-label { flex: 1 1; }

.bbar-legend-count {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: rgba(0, 0, 0, 0.45);
  padding-left: 6px;
}

/* ── Filter mode buttons (Status / Facing / Size) ── */
.bbar-mode-btn {
  flex: 1 1;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  color: #111;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.14s cubic-bezier(0.34, 1.3, 0.64, 1),
              background 0.16s ease,
              border-color 0.16s ease,
              color 0.16s ease;
}

.bbar-inline-mode {
  flex: 0 0 auto;
  height: 42px;
  animation: popSlideUp 0.2s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@media (hover: hover) {
  .bbar-mode-btn:hover { border-color: rgba(31, 53, 35, 0.25); background: #fff; }
}

.bbar-mode-btn:active { transform: scale(0.94); }

.bbar-mode-btn.active {
  background: #1F3523;
  border-color: #1F3523;
  color: #fff;
}

.bbar-mode-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 53, 35, 0.25);
}

/* ── Mobile: bottom sheet ── */
@media (max-width: 767px) {
  /* hide desktop row, show mobile col */
  .bbar-desktop-row { display: none; }

  /* floating transparent wrapper */
  .bbar {
    bottom: 16px;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 12px;
    gap: 8px;
    pointer-events: none;
  }
  .bbar::before { display: none; }

  .bbar-mobile-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
  }

  /* Selects — frosted glass */
  .bbar-filters { gap: 7px; }
  .bbar-select {
    height: 40px;
    border-radius: 13px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 11px;
    padding: 0 10px;
    color: #111;
  }

  /* Search — frosted */
  .bbar-search {
    flex: initial;
    width: 100%;
    min-width: 0;
    min-width: initial;
    height: 48px;
    border-radius: 15px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .bbar-search:focus-within {
    background: rgba(255,255,255,0.96);
    border-color: rgba(31, 53, 35,0.3);
    box-shadow: 0 4px 18px rgba(0,0,0,0.15), 0 0 0 3px rgba(31, 53, 35,0.08);
  }

  .bbar-row { gap: 7px; }

  /* Row pills — frosted */
  .bbar-filt-btn {
    height: 44px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 13px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #111;
  }
  .bbar-filt-btn.open,
  .bbar-filt-btn.active {
    background: #1F3523;
    border-color: #1F3523;
    color: #fff;
    box-shadow: 0 4px 14px rgba(31, 53, 35,0.35);
  }

  .bbar-avail {
    height: 44px;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 13px;
    background: rgba(250, 246, 240,0.92);
    border: 1px solid rgba(22,163,74,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .bbar-divider { display: none; }

  .bbar-action-btn {
    flex: 1 1;
    height: 44px;
    padding: 0 6px;
    border-radius: 13px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 12px;
    color: #111;
  }
  .bbar-action-btn span { font-size: 14px; }


  .bbar-legend {
    top: auto;
    bottom: 185px;
    transform: none;
    left: 12px;
    max-height: 40vh;
    padding: 7px 9px;
    border-radius: 10px;
  }

  .bbar-mode-btn {
    height: 38px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .bbar-mode-btn.active { background: #1F3523; border-color: #1F3523; }

  .mobile-map-actions { bottom: 190px; right: 12px; }
  .top-info-btn { top: 12px; right: 12px; }
}

@media (max-width: 420px) {
  .bbar { bottom: 12px; padding: 0 10px; }
  .bbar-filt-btn { padding: 0 10px; font-size: 11px; }
  .bbar-action-btn { font-size: 10px; }
}

/* old .bottom-ui-wrap removed — replaced by .bbar above */
.bottom-ui-wrap--removed {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1650;
  width: min(800px, calc(100vw - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "filters filters filters"
    "controls search actions";
  align-items: center;
  justify-content: center;
  grid-column-gap: 8px;
  column-gap: 8px;
  grid-row-gap: 8px;
  row-gap: 8px;
  pointer-events: none;
}

/* Filter row — sits inside the wrap, spans full width */
.bottom-filter-row {
  grid-area: filters;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.bottom-control-row {
  grid-area: controls;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.status-side-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

/* Status pill */
.status-switch-pill {
  pointer-events: auto;
  width: 104px;
  height: 40px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.status-switch-pill span {
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.status-switch-pill i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d0d4d8;
  transition: background 0.2s ease;
}

.status-switch-pill i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.status-switch-pill.active i {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.status-switch-pill.active i::after {
  transform: translateX(14px);
}

/* Mini mode buttons (Facing / Size) */
.mini-mode-btn {
  pointer-events: auto;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mini-mode-btn small {
  font-size: 10px;
  font-weight: 700;
}

/* Available counter */
.available-mini-card {
  pointer-events: auto;
  width: 54px;
  min-width: 54px;
  height: 40px;
  padding: 5px 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.available-mini-card span {
  font-size: 14px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
}

.available-mini-card small {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
}

/* Search bar */
.bottom-search-bar {
  grid-area: search;
  pointer-events: auto;
  width: 100%;
  height: 42px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  padding: 0 5px 0 13px;
  gap: 7px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-big-icon {
  color: #555;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}

.bottom-search-bar input {
  flex: 1 1;
  height: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}

.bottom-search-bar input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.search-filter-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Action buttons (Gallery / Info / Locate) */
.bottom-large-buttons {
  grid-area: actions;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bottom-large-buttons button {
  width: 86px;
  height: 40px;
  border-radius: 15px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bottom-large-buttons button span {
  font-size: 15px;
  color: #16a34a;
  line-height: 1;
}

/* ── Filter selects (shared) ─────────── */
.bottom-filter-select {
  flex: 1 1;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  outline: none;
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  min-width: 0;
}

/* ── Legend panel ───────────────────────── */
.legend-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111 !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
}

.legend-panel span,
.legend-panel div {
  color: #111 !important;
}

/* ── News ticker ────────────────────────── */
.bottom-news-ticker {
  position: fixed;
  left: 50%;
  bottom: 6px;
  z-index: 1600;
  width: min(760px, calc(100vw - 48px));
  height: 16px;
  transform: translateX(-50%);
  overflow: hidden;
  color: rgba(0, 0, 0, 0.55);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.bottom-news-ticker span {
  display: inline-block;
}

/* ── Hover / Active states ───────────────── */
/* Desktop hover effects */
@media (min-width: 768px) {
  .top-info-btn:hover,
  .round-action-btn:hover,
  .status-switch-pill:hover,
  .mini-mode-btn:hover,
  .search-filter-btn:hover,
  .bottom-large-buttons button:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 14px rgba(22, 163, 74, 0.12);
  }
}

.mini-mode-btn.active {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}

.mini-mode-btn.active small {
  color: #fff;
}

.bottom-search-bar:focus-within {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 14px rgba(22, 163, 74, 0.1);
}

.top-info-btn:active,
.round-action-btn:active,
.status-switch-pill:active,
.mini-mode-btn:active,
.search-filter-btn:active,
.bottom-large-buttons button:active {
  transform: scale(0.94);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .ui-top-brand { width: 140px; min-height: 74px; }
  .ui-top-brand img { width: 132px; }
  .bottom-ui-wrap { width: min(720px, calc(100vw - 32px)); }
  .bottom-large-buttons button { width: 78px; }
}

/* ── Mobile: unified bottom sheet ───────── */
@media (max-width: 767px) {

  /* Brand */
  .ui-top-brand {
    top: 12px;
    left: 12px;
    width: 90px;
    min-height: auto;
  }
  .ui-top-brand img { width: 84px; }

  /* Top info button */
  .top-info-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 19px;
  }

  /* Share button — move above sheet */
  .mobile-map-actions {
    right: 12px;
    bottom: 210px;
  }
  .round-action-btn { width: 40px; height: 40px; border-radius: 13px; }
  .round-action-btn span { font-size: 18px; }

  /* ── The bottom sheet ── */
  .bottom-ui-wrap {
    /* anchor to the real bottom edge */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;

    /* layout: simple column */
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* appearance */
    background: #fff;
    border-radius: 22px 22px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.1);
    padding: 16px 14px 20px;
    pointer-events: auto;
    z-index: 1650;
  }

  /* drag handle cosmetic */
  .bottom-ui-wrap::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.12);
    margin: -6px auto 2px;
  }

  /* Filter row */
  .bottom-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .bottom-filter-select {
    flex: 1 1;
    height: 38px;
    font-size: 11px;
    border-radius: 12px;
    background: #f5f6f7;
    border-color: transparent;
    box-shadow: none;
    padding: 0 10px;
  }

  /* Controls row */
  .bottom-control-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .status-side-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1;
  }

  /* Status pill — flatten for sheet context */
  .status-switch-pill {
    height: 36px;
    width: auto;
    flex: 0 0 auto;
    padding: 0 10px 0 12px;
    border-radius: 999px;
    background: #f5f6f7;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    gap: 8px;
  }
  .status-switch-pill span { font-size: 11px; font-weight: 800; }
  .status-switch-pill i { width: 30px; height: 18px; }
  .status-switch-pill i::after { width: 12px; height: 12px; }
  .status-switch-pill.active i::after { transform: translateX(12px); }

  /* Facing / Size buttons */
  .mini-mode-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 11px;
    background: #f5f6f7;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .mini-mode-btn small { display: inline; font-size: 10px; }
  .mini-mode-btn.active { background: #1F3523; border-color: #1F3523; color: #fff; }
  .mini-mode-btn.active small { color: #fff; }

  /* Available counter */
  .available-mini-card {
    width: 50px;
    min-width: 50px;
    height: 36px;
    border-radius: 12px;
    background: #F7F1EA;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .available-mini-card span { font-size: 13px; }
  .available-mini-card small { font-size: 7px; }

  /* Search bar */
  .bottom-search-bar {
    grid-area: unset;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    background: #f5f6f7;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .bottom-search-bar:focus-within {
    background: #fff;
    border-color: rgba(31, 53, 35, 0.3);
    box-shadow: 0 0 0 3px rgba(31, 53, 35, 0.08);
    transform: none;
  }
  .search-big-icon { font-size: 18px; color: #777; }
  .bottom-search-bar input { font-size: 13px; }
  .search-filter-btn {
    width: 34px; height: 34px;
    background: #1F3523;
    color: #fff;
    border-radius: 11px;
    font-size: 14px;
  }

  /* Action buttons */
  .bottom-large-buttons {
    grid-area: unset;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    gap: 8px;
  }
  .bottom-large-buttons button {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    background: #f5f6f7;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    color: #111;
  }
  .bottom-large-buttons button span {
    font-size: 14px;
    color: #1F3523;
  }
  .bottom-large-buttons button:hover {
    background: #eef0f2;
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }
  .bottom-large-buttons button:active { transform: scale(0.97); }

  /* News ticker — hide on mobile (covered by sheet) */
  .bottom-news-ticker { display: none; }

  /* Legend panel */
  .legend-panel {
    top: auto !important;
    bottom: 210px !important;
    transform: none !important;
    left: 12px !important;
    max-height: 40vh !important;
  }

  /* Popups */
  .popup { align-items: flex-start; }
  .popup-content { min-width: 0; width: 95%; margin-top: 20px; }
  .popup-content h2 { font-size: 1.2rem; }
  .popup-content p { font-size: 0.85rem; }
  .tooltip { padding: 3px 6px; font-size: 10px; }
}

@media (max-width: 420px) {
  .bottom-ui-wrap { padding: 14px 12px 18px; }
  .status-switch-pill { padding: 0 8px 0 10px; }
  .status-switch-pill span { font-size: 10px; }
  .bottom-large-buttons button { font-size: 11px; height: 42px; }
}

@media only screen and (max-width: 428px) and (-webkit-min-device-pixel-ratio: 2) {
  .tooltip, .persistent-tooltip { font-size: 9px; padding: 2px 5px; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   POPUP & BUTTON ANIMATIONS
══════════════════════════════════════ */

/* Overlay fade-in */
@keyframes popOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bottom sheet slide up (Info, Locate) */
@keyframes sheetUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Card pop (AppInfo centered modal) */
@keyframes popSlideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Plot tap flash */
@keyframes plotFlash {
  0%   { fill-opacity: 0.75; stroke-opacity: 1;    transform: scale(1);    }
  60%  { fill-opacity: 0.3;  stroke-opacity: 0.6;  transform: scale(1.01); }
  100% { fill-opacity: 0;    stroke-opacity: 0;    transform: scale(1.02); }
}

/* Gallery top bar slides down */
@keyframes popSlideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Button interactions ── */

/* All clickable bar buttons */
.bbar-filt-btn,
.bbar-action-btn,
.bbar-search-btn,
.top-info-btn,
.round-action-btn {
  transition: transform 0.15s cubic-bezier(0.34,1.5,0.64,1),
              box-shadow 0.15s ease,
              background  0.15s ease,
              border-color 0.15s ease;
  will-change: transform;
}

/* Desktop hover — lift */
@media (hover: hover) {
  .bbar-filt-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }
  .bbar-action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
  .bbar-search-btn:hover {
    background: #2E5238;
    transform: scale(1.06);
  }
  .top-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  }
}

/* Press / tap — quick squish */
.bbar-filt-btn:active,
.bbar-action-btn:active,
.bbar-search-btn:active,
.top-info-btn:active,
.round-action-btn:active {
  transform: scale(0.93) !important;
  transition: transform 0.08s ease !important;
}

/* Filter selects subtle focus ring */
.bbar-select:focus {
  outline: none;
  border-color: rgba(31, 53, 35,0.4);
  box-shadow: 0 0 0 3px rgba(31, 53, 35,0.1);
}

/* bbar-inline-select pop in */
.bbar-inline-select {
  animation: popSlideUp 0.2s cubic-bezier(0.34,1.3,0.64,1) both;
}

/* Thumbnail hover in gallery */
.bbar-thumb-btn {
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bbar-thumb-btn:hover { transform: scale(1.05); opacity: 0.9 !important; }

@keyframes pulseLogo {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeSlideInMobile {
  from { opacity: 0; transform: translateY(-30%); }
  to { opacity: 1; transform: translateY(-40%); }
}

/* ────────────────────────────────────────
   Plot details dialog
   Bottom sheet on desktop and mobile, matching Info / Locate.
──────────────────────────────────────── */
.plot-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
  animation: popOverlay 0.22s ease both;
}

.plot-modal-card {
  width: min(1000px, calc(100vw - 48px));
  height: auto;
  max-height: min(90vh, 860px);
  background: #f2f2f7;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: sheetUp 0.32s cubic-bezier(0.32, 1.1, 0.64, 1) both;
}

.plot-modal-body {
  flex: 0 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Shared bottom-sheet handle. */
.plot-modal-handle { display:flex; justify-content:center; padding:10px 0 4px; flex-shrink:0; }
.plot-modal-handle span { width:36px; height:4px; border-radius:2px; background:rgba(0,0,0,.15); }
@media (prefers-reduced-motion: reduce) {
  .plot-modal-overlay, .plot-modal-card { animation:none !important; }
}

@media (max-width: 767px) {
  .plot-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .plot-modal-card {
    width: 100%;
    max-width: none;
    height: auto;
    /* Leave the map visible above the sheet rather than covering the screen */
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
    animation: sheetUp 0.32s cubic-bezier(0.32, 1.1, 0.64, 1) both;
    /* Keep the sticky action bar clear of the iOS home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .plot-modal-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    flex-shrink: 0;
  }

  .plot-modal-handle span {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
  }
}

/* ════════════════════════════════════════
   Bottom bar refinement
   Same layout, tightened proportions, clearer
   press/active feedback and consistent radii.
════════════════════════════════════════ */

/* Unified corner language + softer, less muddy shadows */
.bbar-search,
.bbar-filt-btn,
.bbar-action-btn,
.bbar-select,
.bbar-avail {
  border-radius: 16px;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.14s cubic-bezier(0.34, 1.3, 0.64, 1),
              background 0.16s ease,
              border-color 0.16s ease,
              box-shadow 0.16s ease;
}

/* Tactile press feedback — previously nothing moved on tap */
.bbar-filt-btn:active,
.bbar-action-btn:active,
.bbar-search-btn:active {
  transform: scale(0.94);
}

.bbar-action-btn:hover,
.bbar-filt-btn:hover {
  border-color: rgba(31, 53, 35, 0.22);
  background: #fff;
}

/* Icon glyphs were optically heavy next to the labels */
.bbar-action-btn span,
.bbar-filt-icon {
  opacity: 0.72;
  font-weight: 600;
}

.bbar-action-btn:hover span,
.bbar-filt-btn.active .bbar-filt-icon {
  opacity: 1;
}

/* Available count reads as data, not as a button */
.bbar-avail strong {
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: #1F3523;
}

.bbar-avail small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.45;
}

/* Active filter state: filled rather than outlined */
.bbar-filt-btn.active {
  background: #1F3523;
  border-color: #1F3523;
  color: #fff;
}

.bbar-filt-btn.active .bbar-filt-icon { opacity: 0.9; }

.bbar-filt-btn.active .bbar-filt-badge {
  background: #fff;
  color: #1F3523;
}

.bbar-search-btn {
  transition: transform 0.14s cubic-bezier(0.34, 1.3, 0.64, 1), background 0.16s ease;
}

/* Selects: match the search field's focus treatment */
.bbar-select:focus {
  border-color: rgba(31, 53, 35, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 0 0 3px rgba(31, 53, 35, 0.08);
}

@media (max-width: 767px) {
  /* Slightly shorter controls so the stack eats less of the map */
  .bbar-search { height: 44px; }
  .bbar-select { height: 38px; }
  .bbar { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .bbar-search, .bbar-filt-btn, .bbar-action-btn,
  .bbar-select, .bbar-avail, .bbar-search-btn { transition: none; }
  .bbar-filt-btn:active, .bbar-action-btn:active,
  .bbar-search-btn:active { transform: none; }
}

/* ══════════════════════════════════════════
   Brand mark
   Was a 170x86 ellipse with a radial-gradient
   halo, left-aligned inside its own box — the
   logo never sat centred and the container
   matched nothing else on screen. Now a proper
   pill that mirrors .top-info-btn on the right:
   same height, radius, surface and shadow.
   Logo is 417x108 (3.86:1), sized by height so
   it can never distort.
══════════════════════════════════════════ */
.ui-top-brand {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1550;
  width: auto;
  min-height: 0;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 12px;
  background: rgba(253, 251, 246, 0.96);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.ui-top-brand img {
  display: block;
  height: 84px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  filter: none;
}

@media (max-width: 1024px) {
  .ui-top-brand { height: auto; }
  .ui-top-brand img { height: 72px; width: auto; }
}

@media (max-width: 767px) {
  .ui-top-brand {
    top: 14px;
    left: 14px;
    height: auto;
    width: auto;
    min-height: 0;
    padding: 6px 10px;
    border-radius: 14px;
  }
  .ui-top-brand img { height: 56px; width: auto; border-radius: 0; }

  /* Keep the info button visually paired with the brand */
  .top-info-btn {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 19px;
  }
}

/* ── Bottom-right credit ─────────────────
   The attribution line. Sits clear of the centred bottom bar (max 820px
   wide) on desktop; on phones that bar goes full-width, so the credit lifts
   above it instead.                                                       */
.ui-credit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1550;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.ui-credit__line {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
}

.ui-credit__line span {
  margin: 0 3px;
}

.ui-credit__line a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.ui-credit__line .ui-credit__product { margin: 0; }

/* Desktop widths where the one-line credit would run into the bottom bar:
   drop "Interactive Map" onto its own line. */
@media (min-width: 768px) and (max-width: 1500px) {
  .ui-credit__line { text-align: right; line-height: 1.5; }
  .ui-credit__line .ui-credit__product { display: block; }
  .ui-credit__line .ui-credit__sep { display: none; }
}

/* Below ~1200px there's no room beside the centred bottom bar: lift the
   credit to sit just above it instead. */
@media (min-width: 768px) and (max-width: 1200px) {
  .ui-credit { bottom: 80px; }
}

.ui-credit__line a:hover,
.ui-credit__line a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1024px) {
    .ui-credit__line { font-size: 9px; }
}

@media (max-width: 767px) {
  .ui-credit {
    right: 14px;
    /* Clear the full-width mobile bottom bar. */
    bottom: 92px;
    gap: 4px;
  }
    .ui-credit__line { font-size: 8px; }
}

/* ── Map layer transition ────────────────
   Explore swaps the estate overview for the Phase 1 layout. The outgoing
   artwork pushes in and dissolves; the incoming one settles back from a
   slight overshoot, so the two read as one continuous zoom rather than a cut.
   This wrapper carries no transform of its own (pan/zoom live on the children),
   so it is free to animate.                                                 */
.map-stage {
  transform-origin: center center;
  animation: map-stage-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

@keyframes map-stage-enter {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.map-stage--leaving {
  animation: none;
  transform: scale(1.14);
  opacity: 0;
  transition: transform 0.46s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.46s ease;
}

/* ── Back to overview ────────────────────
   Sits under the brand mark, mirroring the info button's surface.          */
.ui-back-btn {
  position: fixed;
  top: 108px;
  left: 18px;
  z-index: 1600;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: map-stage-enter 0.4s ease both;
}

.ui-back-btn:hover { background: #fff; }

@media (max-width: 767px) {
  .ui-back-btn {
    top: 74px;
    left: 14px;
    height: 34px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-stage, .ui-back-btn { animation: none; }
  .map-stage--leaving { transition: opacity 0.2s ease; transform: none; }
}
/* Distinct project introduction and location sheets. */
.explore-overlay { position:fixed; inset:0; z-index:3000; display:flex; align-items:flex-end; justify-content:center; background:rgba(10, 30, 18,.58); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:popOverlay .2s ease both; }
.explore-sheet { width:min(600px,100%); max-height:90vh; max-height:90dvh; overflow-y:auto; overscroll-behavior:contain; border-radius:28px 28px 0 0; font-family:var(--font-display); color:#142B1B; box-shadow:0 24px 90px #0004; animation:sheetUp .3s ease both; position:relative; }
.explore-sheet button { font-family:inherit; cursor:pointer; }
.sheet-grip { width:36px; height:4px; border-radius:4px; background:#B5A99F; margin:10px auto; }
.sheet-close { position:absolute; right:18px; top:18px; width:38px; height:38px; border-radius:50%; background:#ffffffed; border:1px solid #ffffff50; color:#1F3523; z-index:1; font-size:16px; }
.sheet-eyebrow { display:block; font-size:10px; line-height:1.6; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }
.info-sheet { background:#FAF6F0; }
.info-cover { position:relative; height:230px; }
.info-cover>img { width:100%; height:100%; object-fit:cover; }
.info-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#142B1Beb,transparent); }
.info-cover-copy { position:absolute; bottom:24px; left:28px; right:24px; color:#fff; z-index:1; }
.info-cover h2,.locate-heading h2 { font-size:clamp(32px,6vw,44px); line-height:1.12; letter-spacing:-.045em; font-weight:300; margin:10px 0; }
.info-cover h2 strong,.locate-heading h2 strong { font-weight:700; }
.info-cover p { font-size:12px; font-weight:400; margin:0; }
.info-content { padding:0 28px calc(24px + env(safe-area-inset-bottom,0px)); }
.info-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:24px 0; border-bottom:1px solid #E2D7CA; }
.info-stats>div { padding:0 12px; border-left:1px solid #E2D7CA; }
.info-stats>div:first-child { padding-left:0; border:0; }
.info-stats strong { display:block; font-size:clamp(23px,5vw,32px); font-weight:700; letter-spacing:-.05em; }
.info-stats span { display:block; font-size:10px; font-weight:400; margin-top:5px; line-height:1.5; }
.info-story { padding:24px 0; }
.info-story h3 { font-size:29px; font-weight:300; margin:10px 0; letter-spacing:-.04em; }
.info-story h3 strong { font-weight:600; }
.info-story p { font-size:12px; font-weight:400; line-height:1.85; margin:0; color:#65554A; }
.info-amenities>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-gap:0 14px; gap:0 14px; margin:12px 0 24px; }
.info-amenities>div>span { display:flex; gap:7px; align-items:center; padding:12px 0; border-bottom:1px solid #E5DACE; font-size:11px; font-weight:500; }
.info-amenities small { font-size:9px; color:#827265; font-weight:400; }
.sheet-action { width:100%; min-height:48px; padding:12px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#1F3523; color:#fff; border:1px solid transparent; border-radius:12px; font-size:12px; font-weight:600; transition:background .2s; }
.sheet-action:hover { background:#2E5238; }
.locate-sheet { background:#fff; }
.locate-sheet>.sheet-grip { position:absolute; left:calc(50% - 18px); background:#ffffff60; }
.locate-heading { background:#1F3523; color:#fff; padding:36px 28px 28px; position:relative; }
.locate-heading>.sheet-eyebrow { padding-right:38px; color:#D3B27C; }
.locate-heading .sheet-close { background:#ffffff15; color:#fff; }
.locate-heading h2 { margin-bottom:0; }
.locate-content { padding:24px 28px calc(24px + env(safe-area-inset-bottom,0px)); }
.locate-address { display:grid; grid-template-columns:90px minmax(0,1fr); grid-gap:18px; gap:18px; align-items:center; }
.locate-address img { width:90px; height:112px; border-radius:45px 45px 12px 12px; object-fit:cover; }
.locate-address h3 { margin:7px 0; font-size:18px; font-weight:600; }
.locate-address address { font-style:normal; font-size:11px; line-height:1.8; color:#705F54; }
.locate-connections { margin-top:28px; }
.locate-connections dl { margin:12px 0 24px; }
.locate-connections dl>div { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #E9E0D6; padding:13px 0; }
.locate-connections dt { font-size:12px; font-weight:500; }
.locate-connections dt span { color:#8A7A6E; margin-right:14px; font-size:10px; font-weight:400; }
.locate-connections dd { margin:0; font-size:26px; font-weight:300; white-space:nowrap; letter-spacing:-.04em; }
.locate-connections dd small { font-size:10px; margin-left:6px; font-weight:600; letter-spacing:0; }
.locate-actions { display:grid; grid-template-columns:1fr 1fr; grid-gap:10px; gap:10px; }
.sheet-action-secondary { background:#F5EFE8; color:#1F3523; }
.sheet-action-secondary:hover { background:#E9DFD3; }
.explore-sheet button:focus-visible { outline:3px solid #bd994d; outline-offset:3px; }
@media(min-width:768px) { .explore-overlay { padding:24px; align-items:center; } .explore-sheet { border-radius:24px; } .info-sheet>.sheet-grip { display:none; } }
@media(max-width:380px) { .info-content,.locate-content { padding-left:20px; padding-right:20px; } .info-amenities>div { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .explore-overlay,.explore-sheet { animation:none; } }
/* Preserve the original bottom-sheet dimensions and slide-up interaction. */
.explore-overlay { padding:0; align-items:flex-end; }
.explore-sheet { width:min(560px,100%); max-height:88vh; max-height:88dvh; border-radius:20px 20px 0 0; animation:sheetUp .32s cubic-bezier(.32,1.1,.64,1) both; }
.info-sheet>.sheet-grip { display:block; }
.info-cover { height:160px; margin:8px 14px 0; border-radius:16px; overflow:hidden; }
.info-cover-copy { bottom:14px; left:16px; }
.info-cover h2 { font-size:29px; margin:6px 0; }
.info-content { padding:0 14px calc(20px + env(safe-area-inset-bottom,0px)); }
.info-stats { padding:14px 0; }
.info-stats strong { font-size:25px; }
.info-story { padding:14px 0; }
.info-story h3 { font-size:24px; margin:6px 0; }
.info-amenities>div { margin:8px 0 14px; }
.info-amenities>div>span { padding:8px 0; }
.locate-heading { padding:28px 20px 16px; }
.locate-heading h2 { font-size:30px; }
.locate-content { padding:16px 14px calc(24px + env(safe-area-inset-bottom,0px)); }
.locate-connections { margin-top:16px; }
.locate-connections dl { margin:8px 0 16px; display:grid; grid-template-columns:1fr 1fr; grid-gap:0 16px; gap:0 16px; }
.locate-connections dl>div { padding:10px 0; }
.locate-connections dt { font-size:10px; }
.locate-connections dt span { display:none; }
.locate-connections dd { font-size:21px; }
@media(prefers-reduced-motion:reduce) { .explore-sheet { animation:none; } }

/* Circular map marker projects: compact editorial sheet. */
.marker-sheet { background:#FAF6F0; }
.marker-heading { position:relative; padding:8px 22px 16px; }
.marker-heading>.sheet-eyebrow { color:#79695E; padding-right:40px; }
.marker-heading .sheet-close { top:4px; right:18px; background:#EFE7DD; border:0; }
.marker-heading h2 { margin:9px 38px 5px 0; color:#1F3523; font-size:clamp(24px,5vw,32px); line-height:1.16; font-weight:600; letter-spacing:-.045em; overflow-wrap:anywhere; }
.marker-heading p { margin:0; color:#76665B; font-size:11px; line-height:1.6; font-weight:400; }
.marker-image { position:relative; height:150px; margin:0 14px; overflow:hidden; border-radius:4px 20px 4px 20px; }
.marker-image>img { width:100%; height:100%; object-fit:cover; }
.marker-state { position:absolute; bottom:12px; left:12px; display:flex; align-items:center; gap:7px; background:#fff; padding:7px 11px; border-radius:5px; color:#5A4B41; font-size:10px; font-weight:600; }
.marker-state i { width:6px; height:6px; background:#9a814b; border-radius:50%; }
.marker-state--selling i { background:#318251; }
.marker-content { padding:18px 22px calc(28px + env(safe-area-inset-bottom,0px)); }
.marker-overview { display:grid; grid-template-columns:100px minmax(0,1fr); grid-gap:14px; gap:14px; align-items:start; }
.marker-overview>.sheet-eyebrow { padding-top:3px; color:#79695E; font-size:9px; }
.marker-overview p { margin:0; font-size:12px; line-height:1.75; font-weight:400; color:#5B4A3F; }
.marker-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-gap:0 22px; gap:0 22px; margin:16px 0; }
.marker-stats>div { border-top:1px solid #E6DCD0; padding:11px 0; min-width:0; }
.marker-stats dt { font-size:10px; font-weight:400; color:#76665B; margin-bottom:5px; }
.marker-stats dd { margin:0; color:#1F3523; font-size:17px; line-height:1.35; font-weight:700; letter-spacing:-.025em; overflow-wrap:anywhere; }
.marker-highlights>.sheet-eyebrow { color:#79695E; font-size:9px; }
.marker-highlights ul { list-style:none; padding:0; margin:10px 0 18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-gap:9px 16px; gap:9px 16px; }
.marker-highlights li { display:flex; gap:8px; align-items:baseline; font-size:11px; line-height:1.5; font-weight:500; color:#2B4A33; }
.marker-highlights li>span { color:#8C7C62; font-weight:300; }
.marker-upcoming { border-top:1px solid #E6DCD0; padding-top:13px; display:flex; justify-content:space-between; align-items:center; gap:12px; color:#75655A; }
.marker-upcoming strong { font-size:12px; font-weight:500; }
@media(max-width:380px) { .marker-content { padding-left:16px; padding-right:16px; } .marker-overview { grid-template-columns:1fr; gap:6px; } }
/* Consistent title weight across Info and Locate sheets. */
.info-cover h2,
.info-cover h2 strong,
.locate-heading h2,
.locate-heading h2 strong,
.info-story h3,
.info-story h3 strong { font-weight:600; }
/* More compact desktop sheets; retain the mobile dimensions. */
@media (min-width:768px) {
  .explore-sheet { width:min(500px,calc(100vw - 48px)); max-height:84vh; max-height:84dvh; }
  .info-cover { height:140px; }
  .marker-image { height:135px; }
  .marker-content { padding-top:14px; padding-bottom:20px; }
  .locate-content { padding-bottom:20px; }
  .plot-modal-card { width:min(860px,calc(100vw - 48px)); max-height:min(84vh,760px); }
}
/* Fit desktop sheet content within the display with compact typography. */
@media (min-width:768px) {
  .explore-sheet { max-height:calc(100dvh - 16px); }
  .explore-sheet .sheet-grip { margin:7px auto; height:3px; }
  .explore-sheet .sheet-eyebrow { font-size:9px; letter-spacing:.1em; }
  .explore-sheet .sheet-close { width:30px; height:30px; font-size:13px; }
  .explore-sheet .sheet-action { min-height:38px; padding:9px 13px; font-size:11px; border-radius:9px; }
  .info-cover { height:clamp(80px,17vh,125px); margin-top:4px; }
  .info-cover h2 { font-size:24px; }
  .info-cover p { font-size:10px; }
  .info-content { padding-bottom:14px; }
  .info-stats { padding:10px 0; }
  .info-stats strong { font-size:21px; }
  .info-stats span { font-size:9px; margin-top:3px; }
  .info-story { padding:10px 0; }
  .info-story h3 { font-size:20px; margin:4px 0; }
  .info-story p { font-size:11px; line-height:1.55; }
  .info-amenities>div { margin:5px 0 10px; }
  .info-amenities>div>span { padding:6px 0; font-size:10px; }
  .locate-heading { padding:24px 20px 12px; }
  .locate-heading h2 { font-size:26px; margin-top:6px; }
  .locate-content { padding:12px 16px 14px; }
  .locate-address { grid-template-columns:70px minmax(0,1fr); gap:14px; }
  .locate-address img { width:70px; height:82px; }
  .locate-address h3 { font-size:16px; margin:4px 0; }
  .locate-address address { font-size:10px; line-height:1.6; }
  .locate-connections { margin-top:12px; }
  .locate-connections dl { margin:6px 0 12px; }
  .locate-connections dl>div { padding:8px 0; }
  .locate-connections dd { font-size:19px; }
  .marker-heading { padding:4px 18px 10px; }
  .marker-heading h2 { font-size:24px; margin-top:6px; }
  .marker-heading p { font-size:10px; line-height:1.4; }
  .marker-image { height:clamp(75px,16vh,115px); }
  .marker-content { padding:12px 18px 14px; }
  .marker-overview { grid-template-columns:85px minmax(0,1fr); gap:10px; }
  .marker-overview p { font-size:11px; line-height:1.5; }
  .marker-stats { margin:10px 0; }
  .marker-stats>div { padding:7px 0; }
  .marker-stats dt { font-size:9px; margin-bottom:3px; }
  .marker-stats dd { font-size:14px; }
  .marker-highlights ul { margin:6px 0 12px; gap:6px 12px; }
  .marker-highlights li { font-size:10px; line-height:1.4; }
  .marker-upcoming { padding-top:10px; }
  .plot-modal-card { max-height:min(86dvh, 860px); }
  .plot-modal-body .pdx-main { padding:14px 20px 0; }
  .plot-modal-body .pdx-rail { padding:16px; }
  .plot-modal-body .pdx-title { font-size:18px; margin:10px 0 6px; }
  .plot-modal-body .pdx-title strong { font-size:23px; }
  .plot-modal-body .pdx-loc { font-size:10px; }
  .plot-modal-body .pdx-rule { margin:10px 0; }
  .plot-modal-body .pdx-facts { gap:10px 16px; }
  .plot-modal-body .pdx-facts dt { font-size:9px; }
  .plot-modal-body .pdx-facts dd { font-size:12px; }
  .plot-modal-body .pdx-facts--dims>div { padding:5px 0; }
  .plot-modal-body .pdx-label { font-size:9px; }
  .plot-modal-body .pdx-chip { font-size:10px; padding:5px 8px; }
  .plot-modal-body .pdx-foot { margin:12px -20px 0; padding:10px 20px 12px; }
  .plot-modal-body .pdx-cta { height:36px; font-size:11px; }
}
/* Desktop: roomier Info and Locate sheets (tablet keeps the compact sizing above). */
@media (min-width:1025px) {
  .info-sheet,.locate-sheet { width:min(720px,calc(100vw - 48px)); }
  .info-cover { height:clamp(150px,24vh,220px); }
  .info-cover h2 { font-size:32px; }
  .info-cover p { font-size:12px; }
  .info-content { padding-bottom:22px; }
  .info-stats { padding:16px 0; }
  .info-stats strong { font-size:26px; }
  .info-stats span { font-size:10px; }
  .info-story { padding:16px 0; }
  .info-story h3 { font-size:24px; }
  .info-story p { font-size:13px; line-height:1.65; }
  .info-amenities>div>span { padding:9px 0; font-size:12px; }
  .locate-heading { padding:36px 28px 18px; }
  .locate-heading h2 { font-size:34px; }
  .locate-content { padding:18px 28px 22px; }
  .locate-address { grid-template-columns:110px minmax(0,1fr); gap:18px; }
  .locate-address img { width:110px; height:120px; }
  .locate-address h3 { font-size:19px; }
  .locate-address address { font-size:12px; }
  .locate-connections dl>div { padding:11px 0; }
  .locate-connections dd { font-size:22px; }
  .info-sheet .sheet-action,.locate-sheet .sheet-action { min-height:44px; font-size:12px; }
}
/* Mobile attribution sits below the navigation, clear of the home indicator. */
@media (max-width:767px) {
  .bbar { bottom:calc(58px + env(safe-area-inset-bottom,0px)); }
  .ui-credit {
    left:12px;
    right:12px;
    bottom:calc(8px + env(safe-area-inset-bottom,0px));
    align-items:center;
    gap:4px;
  }
    .ui-credit__line { font-size:8px; line-height:12px; }
}

/* ══════════════════════════════════════════
   Mobile bottom bar — final layout
   Earlier mobile rules let the five-item row run wider than the screen
   (Locate was clipped at 375px). The row is now an equal-column grid with
   each icon stacked over its label, so it always fits inside the gutters.
   Kept last so it wins over the older mobile blocks above.
══════════════════════════════════════════ */
@media (max-width: 767px) {
  .bbar {
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 12px;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .bbar-mobile-col { gap: 8px; }

  .bbar-search { height: 44px; border-radius: 14px; }

  .bbar-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 6px;
    gap: 6px;
  }
  .bbar-filters .bbar-mode-btn { height: 36px; padding: 0 6px; font-size: 11px; }

  .bbar-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-gap: 6px;
    gap: 6px;
    align-items: stretch;
  }

  .bbar-row .bbar-filt-btn,
  .bbar-row .bbar-avail,
  .bbar-row .bbar-action-btn {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 2px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  .bbar-row .bbar-filt-icon,
  .bbar-row .bbar-action-btn span {
    font-size: 16px;
    line-height: 1;
  }

  .bbar-row .bbar-avail strong { font-size: 17px; line-height: 1; }
  .bbar-row .bbar-avail small { font-size: 7px; letter-spacing: 0.06em; }

  /* Credit sits centred in the strip under the bar. */
  .ui-credit {
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    align-items: center;
  }
  .ui-credit__line { font-size: 8px; line-height: 12px; }

  /* Legend clears the bar even with the filter modes open. */
  .bbar-legend { bottom: calc(196px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .bbar { padding: 0 8px; }
  .bbar-row { gap: 4px; }
  .bbar-row .bbar-filt-btn,
  .bbar-row .bbar-avail,
  .bbar-row .bbar-action-btn { font-size: 9px; }
}

/* Tagline under the logo. */
.ui-top-brand {
  flex-direction: column;
  gap: 4px;
}

.ui-top-brand__by {
  display: block;
  padding-top: 4px;
  border-top: 1px solid rgba(31, 53, 35, 0.18);
  align-self: stretch;
  text-align: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1F3523;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ui-top-brand { gap: 3px; }
  .ui-top-brand__by { font-size: 7px; letter-spacing: 0.12em; padding-top: 3px; }
}

/* SVG icon inside a bar button: sits on the text baseline like the glyph icons. */
.bbar-icon-svg { display: inline-flex; align-items: center; }
.bbar-icon-svg svg { display: block; }

/* Brand block: logo and tagline (final look in the brand layer at the end). */
.ui-top-brand { padding: 8px 14px; gap: 2px; }
.ui-top-brand img { height: 68px; width: auto; }
.ui-top-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  color: #8F6B32;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 1024px) {
  .ui-top-brand img { height: 60px; }
}

@media (max-width: 767px) {
  .ui-top-brand { padding: 6px 10px; border-radius: 14px; gap: 2px; }
  .ui-top-brand img { height: 48px; width: auto; }
  .ui-top-brand__name { font-size: 11px; }
  .ui-top-brand__by { font-size: 7px; letter-spacing: 0.12em; padding-top: 3px; }
}

/* Locate tab: nearby places list (name + type) and the site coordinates. */
.locate-connections dt { display: flex; align-items: center; min-width: 0; }
.locate-connections dt > span:first-child { flex-shrink: 0; }
.locate-place { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.locate-place-name { font-size: 12px; font-weight: 500; line-height: 1.3; }
.locate-place-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A7A6E;
}
.locate-connections dl > div { padding: 10px 0; }
.locate-connections dd { font-size: 22px; }
.locate-coords {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: #998A80;
}

/* ── Compass (top right) ─────────────────
   Static — the map artwork is north-up. Colours are set in the Akshara
   Ananda brand layer at the end of this file.                            */
.map-compass {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1700;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(253, 251, 246, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  box-sizing: border-box;
}

.map-compass svg { display: block; width: 100%; height: 100%; }

.map-compass__ring {
  fill: none;
  stroke: rgba(31, 53, 35, 0.22);
  stroke-width: 1.5;
}

.map-compass__north { fill: #8F6B32; }
.map-compass__south { fill: #1F3523; }
.map-compass__pin { fill: #FDF9F4; stroke: #1F3523; stroke-width: 1.2; }

.map-compass__n,
.map-compass__tick {
  font-family: var(--font-display);
  font-weight: 800;
  text-anchor: middle;
}

.map-compass__n { font-size: 9px; fill: #8F6B32; }
.map-compass__tick { font-size: 7px; fill: rgba(31, 53, 35, 0.7); }

@media (max-width: 767px) {
  .map-compass {
    top: 14px;
    right: 14px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
}

/* An older rule hides every span inside the list rows (it was meant for the
   row numbers); keep the place name and type visible. */
.locate-connections dt .locate-place {
  display: flex;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.locate-connections dt .locate-place-name {
  display: block;
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #142B1B;
}
.locate-connections dt .locate-place-kind {
  display: block;
  margin: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A7A6E;
}

/* ══ Akshara Ananda brand layer ══════════════════════════════════════════
   Sits last so it wins over the older layered rules above.               */

/* Logo: the horizontal Akshara Ananda logo (790x223) recoloured dark green,
   floating free with no card. A soft white halo keeps it legible when the
   map is panned so that trees sit behind it. */
.ui-top-brand {
  padding: 0;
  gap: 4px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
  text-decoration: none;
}
.ui-top-brand img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}
.ui-top-brand__by {
  border-top: 1px solid rgba(31, 53, 35, 0.3);
  color: #1F3523;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  padding-top: 5px;
  margin-left: 30%;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
}
.ui-top-brand:focus-visible { outline: 3px solid #1F3523; outline-offset: 4px; border-radius: 6px; }

@media (max-width: 1024px) {
  .ui-top-brand img { height: 46px; }
}

@media (max-width: 767px) {
  .ui-top-brand { padding: 0; gap: 3px; border-radius: 0; }
  .ui-top-brand img { height: 46px; }
  .ui-top-brand__by { font-size: 6.5px; letter-spacing: 0.2em; padding-top: 4px; }
}

/* Compass on a dark green card, needle in logo gold. */
.map-compass { background: rgba(31, 53, 35, 0.94); }
.map-compass__ring { stroke: rgba(211, 178, 124, 0.35); }
.map-compass__north { fill: #D3B27C; }
.map-compass__south { fill: rgba(235, 227, 221, 0.55); }
.map-compass__pin { fill: #1F3523; stroke: #D3B27C; }
.map-compass__n { fill: #D3B27C; }
.map-compass__tick { fill: rgba(235, 227, 221, 0.75); }

/* Sheet headings: Montserrat, light with a bold accent word. */
.info-cover h2,
.locate-heading h2,
.info-story h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.info-cover h2 strong,
.locate-heading h2 strong {
  font-weight: 600;
  font-style: normal;
  color: #D3B27C;
}
.info-story h3 strong { font-weight: 600; font-style: normal; color: #1F3523; }
.info-cover-copy .sheet-eyebrow { color: #D3B27C; }
.info-cover::after { background: linear-gradient(0deg, rgba(20, 38, 25, 0.92), transparent 75%); }
.info-stats strong { font-weight: 500; color: #1F3523; letter-spacing: -0.04em; }
.sheet-eyebrow { color: #8F6B32; }
.locate-heading { background: #1F3523; }
.locate-address h3 { font-weight: 600; font-size: 20px; color: #1F3523; letter-spacing: -0.02em; }
a.locate-coords { color: #1F3523; text-decoration: none; font-size: 11px; font-weight: 600; }
a.locate-coords:hover { text-decoration: underline; }

/* Primary actions (Open Maps, Explore the map) in the dark green. */
.sheet-action { background: #1F3523; }
.sheet-action:hover { background: #2E5238; }

/* ── Info tabs ── */
.info-tabs {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 10px 28px 0;
  background: #FAF6F0;
  border-bottom: 1px solid #E2D7CA;
  overflow-x: auto;
  scrollbar-width: none;
}
.info-tabs::-webkit-scrollbar { display: none; }
.info-tab {
  flex: 0 0 auto;
  padding: 10px 14px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: #76665B;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.info-tab:hover { color: #1F3523; }
.info-tab.active { color: #1F3523; border-bottom-color: #1F3523; }
.info-tab:focus-visible { outline: 2px solid #8F6B32; outline-offset: -2px; border-radius: 6px; }
.info-panel { padding-bottom: 6px; }
.info-columns { display: grid; grid-gap: 12px; gap: 12px; }
.info-columns p { margin: 0; }
.info-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Life / Farming notes, partners and visit. */
.info-highlights { padding-top: 4px; }
.info-highlights dl { margin: 6px 0 8px; }
.info-highlights dl > div { padding: 12px 0; border-bottom: 1px solid #E5DACE; }
.info-highlights dt { font-size: 14px; font-weight: 600; color: #1F3523; margin-bottom: 4px; }
.info-highlights dd { margin: 0; font-size: 12px; line-height: 1.7; color: #65554A; }

.info-partners { padding: 20px 0 12px; }
.info-partners ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0 16px;
  gap: 0 16px;
}
.info-partners li { padding: 12px 0; border-bottom: 1px solid #E5DACE; min-width: 0; }
.info-partners strong { display: block; font-size: 13px; font-weight: 500; color: #142B1B; line-height: 1.35; }
.info-partners li span { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8F6B32; }

.info-visit { padding: 20px 0 12px; display: grid; grid-gap: 16px; gap: 16px; }
.info-contact {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #1F3523;
  color: #EBE3DD;
}
.info-contact .sheet-eyebrow { color: #D3B27C; }
.info-contact p { margin: 6px 0 12px; font-size: 12px; line-height: 1.7; color: rgba(235, 227, 221, 0.85); }
.info-contact-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.info-contact-links a { color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(211, 178, 124, 0.6); }
.info-contact-links a:hover { color: #D3B27C; }
.info-addresses { margin: 0; display: grid; grid-gap: 12px; gap: 12px; }
.info-addresses dt { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8F6B32; margin-bottom: 3px; }
.info-addresses dd { margin: 0; font-size: 12px; line-height: 1.65; color: #3B4A3E; }

.info-sheet > .sheet-action,
.info-content > .sheet-action { margin-top: 8px; }

@media (max-width: 767px) {
  .info-tabs { padding: 6px 14px 0; }
  .info-tab { padding: 9px 11px 10px; font-size: 11px; }
  .info-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .info-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 380px) {
  .info-partners ul { grid-template-columns: 1fr; }
}

/* ── Desktop: wide Info and Locate sheets ── */
@media (min-width: 1025px) {
  .info-sheet,
  .locate-sheet { width: min(1040px, calc(100vw - 64px)); }

  .info-cover { height: clamp(170px, 26vh, 240px); margin: 0; border-radius: 0; }
  .info-cover h2 { font-size: 38px; }
  .info-cover-copy { left: 36px; bottom: 26px; }
  .info-tabs { padding: 12px 36px 0; }
  .info-tab { font-size: 13px; padding: 12px 18px 13px; }
  .info-content { padding: 0 36px 26px; }
  .info-panel { min-height: 300px; }
  .info-stats { padding: 22px 0; }
  .info-stats strong { font-size: 32px; }
  .info-stats span { font-size: 11px; }
  .info-story h3 { font-size: 28px; }
  .info-columns { grid-template-columns: 1fr 1fr; gap: 28px; }
  .info-story p { font-size: 13px; line-height: 1.75; }
  .info-amenities > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .info-amenities > div > span { padding: 11px 0; font-size: 13px; }
  .info-highlights dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0 32px; gap: 0 32px; }
  .info-highlights dt { font-size: 15px; }
  .info-highlights dd { font-size: 12.5px; }
  .info-partners ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .info-partners li { padding: 16px 0; }
  .info-partners strong { font-size: 14px; }
  .info-visit { grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
  .info-contact { padding: 24px 24px 20px; }
  .info-contact p { font-size: 13px; }
  .info-addresses dd { font-size: 13px; }

  /* Locate: address and actions on the left, nearby places on the right. */
  .locate-heading { padding: 36px 36px 22px; }
  .locate-heading h2 { font-size: 38px; }
  .locate-content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas: "address places" "actions places";
    grid-template-rows: auto 1fr;
    grid-gap: 0 40px;
    gap: 0 40px;
    padding: 26px 36px 28px;
  }
  .locate-address { grid-area: address; grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .locate-address img { width: 100%; height: 190px; border-radius: 120px 120px 14px 14px; }
  .locate-address h3 { font-size: 22px; }
  .locate-address address { font-size: 12.5px; line-height: 1.75; }
  .locate-actions { grid-area: actions; align-self: end; grid-template-columns: 1fr; margin-top: 18px; }
  .locate-connections { grid-area: places; margin-top: 0; }
  .locate-connections dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0 28px; gap: 0 28px; margin: 10px 0 0; }
  .locate-connections dl > div { padding: 12px 0; }
  .locate-connections dd { font-size: 24px; }
  .info-sheet .sheet-action,
  .locate-sheet .sheet-action { min-height: 46px; font-size: 13px; }
}

/* Desktop: the wide Info and Locate sheets stay docked to the bottom edge and
   slide up from it, like the plot details panel (rounded top corners only). */
@media (min-width: 1025px) {
  .explore-overlay { align-items: flex-end; padding: 0 20px; }
  .explore-sheet { border-radius: 22px 22px 0 0; max-height: min(90vh, 860px); }
}

/* Tag labels (eyebrows) in the plain text colour of their surface rather
   than gold. */
.sheet-eyebrow,
.info-addresses dt,
.info-partners li span { color: #65554A; }
.info-cover-copy .sheet-eyebrow,
.locate-heading > .sheet-eyebrow,
.info-contact .sheet-eyebrow { color: rgba(255, 255, 255, 0.82); }

/* Secondary sheet action keeps its light fill (the dark green override above
   would otherwise hide its dark text). */
.sheet-action.sheet-action-secondary { background: #F2EDE6; color: #1F3523; }
.sheet-action.sheet-action-secondary:hover { background: #E8E0D5; }

/* Life at Ananda: the one-line notes sit in a tighter three-column grid. */
.info-panel .info-amenities + .info-highlights dl > div { padding: 10px 0; }
.info-panel .info-amenities + .info-highlights dt { font-size: 13px; margin-bottom: 2px; }
@media (min-width: 1025px) {
  .info-panel .info-amenities + .info-highlights dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
}

/* ── Info & Locate: narrower sheets with roomier text ──────────────────────
   The older compact rules above (min-width:768px) squeezed type and padding;
   these restore breathing room. */
.explore-sheet .sheet-eyebrow { letter-spacing: 0.12em; line-height: 1.7; }
.info-story h3 { margin: 8px 0 14px; line-height: 1.25; }
.info-story p,
.info-columns p { line-height: 1.85; }
.info-columns { gap: 14px; }
.info-stats span { margin-top: 6px; line-height: 1.5; }
.info-amenities > div > span { padding: 12px 0; }
.info-highlights dl > div { padding: 14px 0; }
.info-highlights dt { margin-bottom: 6px; }
.info-highlights dd { line-height: 1.75; }
.info-partners li { padding: 15px 0; }
.info-partners li span { margin-top: 6px; }
.info-contact p { line-height: 1.85; margin: 8px 0 14px; }
.info-addresses { gap: 18px; }
.info-addresses dd { line-height: 1.8; }
.locate-address address { line-height: 1.85; }
.locate-address h3 { margin: 8px 0 10px; }
.locate-connections dl > div { padding: 13px 0; }
.locate-place { gap: 4px; }

@media (min-width: 1025px) {
  .info-sheet,
  .locate-sheet { width: min(880px, calc(100vw - 64px)); }

  .info-cover-copy { left: 40px; }
  .info-tabs { padding: 14px 40px 0; gap: 6px; }
  .info-tab { padding: 12px 16px 13px; }
  .info-content { padding: 6px 40px 30px; }
  .info-panel { min-height: 320px; }
  .info-stats { padding: 26px 0; }
  .info-stats strong { font-size: 30px; }
  .info-story { padding: 22px 0; }
  .info-story h3 { font-size: 26px; }
  .info-story p { font-size: 13.5px; }
  .info-columns { gap: 32px; }
  .info-amenities > div { gap: 0 32px; }
  .info-amenities > div > span { padding: 13px 0; font-size: 13px; }
  .info-highlights dl { gap: 0 36px; }
  .info-panel .info-amenities + .info-highlights dl { gap: 0 32px; }
  .info-highlights dd { font-size: 13px; }
  .info-partners ul { gap: 0 32px; }
  .info-partners li { padding: 18px 0; }
  .info-visit { gap: 36px; padding-top: 24px; }
  .info-contact { padding: 26px 26px 22px; }
  .info-sheet .sheet-action { margin-top: 14px; }

  .locate-heading { padding: 38px 40px 24px; }
  .locate-content {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0 44px;
    padding: 30px 40px 32px;
  }
  .locate-address img { height: 170px; }
  .locate-address address { font-size: 13px; }
  .locate-connections dl { gap: 0 32px; margin-top: 12px; }
  .locate-connections dl > div { padding: 14px 0; }
  .locate-connections dt .locate-place-name { font-size: 12.5px; }
  .locate-connections dd { font-size: 22px; }
  .locate-actions { gap: 12px; margin-top: 22px; }
}

/* ── Info sheet, reference layout ─────────────────────────────────────────
   Inset cover photo with rounded corners, the cream logo and one line of copy
   on a dark wash; equal-width tabs with a filled pill for the active one; a
   compact "Explore the map" button on the right. */
.info-sheet .info-cover {
  height: 200px;
  margin: 6px 20px 0;
  border-radius: 18px;
  overflow: hidden;
}
.info-sheet .info-cover::after {
  background:
    linear-gradient(90deg, rgba(14, 28, 18, 0.9) 0%, rgba(14, 28, 18, 0.62) 50%, rgba(14, 28, 18, 0.3) 100%);
}
.info-sheet .info-cover-copy {
  top: 26px;
  bottom: auto;
  left: 26px;
  right: 80px;
}
.info-cover-logo { margin: 0 0 14px; line-height: 0; }
.info-cover-logo img {
  display: block;
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.info-sheet .info-cover p {
  max-width: 470px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.info-sheet .info-cover .sheet-close {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1F3523;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tabs: equal segments, active one a filled dark green pill. */
.info-sheet .info-tabs {
  position: -webkit-sticky;
  position: sticky;
  gap: 8px;
  padding: 14px 20px 14px;
  border-bottom: 1px solid #E5DACE;
}
.info-sheet .info-tab {
  flex: 1 1;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: #6D5D52;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.info-sheet .info-tab:hover { color: #1F3523; background: #F2EDE6; }
.info-sheet .info-tab.active { color: #fff; background: #1F3523; border: 0; }
.info-sheet .info-tab.active:hover { background: #2E5238; }

/* Compact button, right-aligned. */
.info-content > .sheet-action {
  width: auto;
  min-width: 240px;
  margin: 14px 0 0 auto;
  gap: 28px;
}

@media (min-width: 1025px) {
  .info-sheet .info-cover { height: 210px; margin: 8px 40px 0; }
  .info-sheet .info-cover-copy { top: 30px; left: 32px; }
  .info-sheet .info-tabs { padding: 16px 40px; }
}

/* Phones: tabs scroll sideways rather than squeezing five into the width. */
@media (max-width: 767px) {
  .info-sheet .info-cover { height: 170px; margin: 4px 14px 0; border-radius: 16px; }
  .info-sheet .info-cover-copy { top: 18px; left: 18px; right: 60px; }
  .info-cover-logo { margin-bottom: 10px; }
  .info-cover-logo img { height: 38px; }
  .info-sheet .info-cover p { font-size: 11.5px; }
  .info-sheet .info-tabs { padding: 10px 14px; gap: 6px; }
  .info-sheet .info-tab { flex: 0 0 auto; padding: 9px 14px; font-size: 12px; }
  .info-content > .sheet-action { min-width: 200px; }
}

/* Info sheet: one 24px gutter for the cover photo (top, left, right), the tab
   row and the content, so every edge lines up; logo and line of copy centred
   vertically in the photo. */
.info-sheet > .sheet-grip { margin: 8px auto 6px; }
.info-sheet .info-cover-copy {
  top: 50%;
  bottom: auto;
  left: 30px;
  right: 90px;
  transform: translateY(-50%);
}
.info-cover-logo { margin: 0 0 14px; }

@media (min-width: 768px) {
  .info-sheet .info-cover { height: 200px; margin: 10px 24px 0; }
  .info-sheet .info-cover-copy { top: 50%; left: 32px; }
  .info-sheet .info-tabs { padding: 16px 24px; }
  .info-sheet .info-content { padding: 4px 24px 24px; }
  .info-cover-logo img { height: 54px; }
}

@media (max-width: 767px) {
  .info-sheet .info-cover { margin: 6px 14px 0; }
  .info-sheet .info-cover-copy { left: 18px; right: 62px; }
}

/* ══ Filter panel (multi-select, like the Aurora Hills masterplan) ═════════ */

/* Numbers on filled plots: white over the deep fill. */
.map-plot-number--filled {
  font-size: 34px;
  font-weight: 600;
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2px;
  paint-order: stroke;
}

.bbar-filt-badge {
  width: auto;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 2px;
  background: #D3B27C;
  color: #1F3523;
  font-size: 10px;
  font-weight: 700;
}

.filter-panel {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 1700;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 190px);
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  color: #142B1B;
  overflow: hidden;
  animation: filter-panel-up 0.28s cubic-bezier(0.32, 1.1, 0.64, 1) both;
}

@keyframes filter-panel-up {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.filter-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid #ECEEF0;
}
.filter-panel__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.filter-panel__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #1F3523;
  font-size: 11px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.filter-panel__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #F3F4F6;
  color: #1F3523;
  font-size: 13px;
  cursor: pointer;
}

.filter-panel__body { padding: 2px 18px; overflow-y: auto; overscroll-behavior: contain; }

.filter-group { padding: 13px 0 14px; border-bottom: 1px solid #ECEEF0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
}
.filter-group__any {
  padding: 0;
  border: 0;
  background: none;
  color: #1F3523;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 7px 0 12px;
  border: 1px solid #E6E8EB;
  border-radius: 999px;
  background: #fff;
  color: #142B1B;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover:not(:disabled) { border-color: #1F3523; }
.filter-chip__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.filter-chip__count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 10.5px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.filter-chip.is-selected { background: #1F3523; border-color: #1F3523; color: #fff; }
.filter-chip.is-selected .filter-chip__dot { box-shadow: 0 0 0 2px #fff; }
.filter-chip.is-selected .filter-chip__count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.filter-chip:disabled { opacity: 0.42; cursor: default; }
.filter-chip:focus-visible,
.filter-segmented button:focus-visible,
.filter-panel__foot button:focus-visible { outline: 2px solid #8F6B32; outline-offset: 2px; }

.filter-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 4px;
  gap: 4px;
  margin-top: 10px;
  padding: 4px;
  border-radius: 12px;
  background: #F3F4F6;
}
.filter-segmented button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4B5563;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.filter-segmented button.is-active { background: #1F3523; color: #fff; }

.filter-panel__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 14px;
  border-top: 1px solid #ECEEF0;
  background: #F6F7F8;
}
.filter-panel__clear,
.filter-panel__show {
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter-panel__clear { border: 1px solid #E6E8EB; background: #fff; color: #1F3523; }
.filter-panel__clear:disabled { opacity: 0.45; cursor: default; }
.filter-panel__show { border: 0; background: #1F3523; color: #fff; }
.filter-panel__show:hover { background: #2E5238; }

/* Legend: brand card with counts. */
.bbar-legend { border-radius: 14px; padding: 10px 12px; max-width: 190px; }
.bbar-legend-title { color: #65554A; font-weight: 600; }
.bbar-legend-list li { font-weight: 500; color: #142B1B; }
.bbar-legend-swatch { border-radius: 50%; border: 0; }

/* Phones: a bottom sheet over the bar, like the app's other sheets. */
@media (max-width: 767px) {
  .filter-panel {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    width: 100%;
    max-height: 82dvh;
    transform: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: sheetUp 0.32s cubic-bezier(0.32, 1.1, 0.64, 1) both;
  }
  .filter-chip { height: 32px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-panel { animation: none; }
}

/* ── Compass rose: free of any card ──────────────────────────────────────
   Floats over the map like the logo; a soft light halo keeps it legible
   over trees. North point in gold, south in the brand green. */
.map-compass.map-compass--rose {
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}
.map-compass--rose .map-compass__ring { fill: none; stroke: rgba(31, 53, 35, 0.35); stroke-width: 1; }
.map-compass--rose .map-compass__ew { fill: rgba(31, 53, 35, 0.32); }
.map-compass--rose .map-compass__north { fill: #B08A3E; }
.map-compass--rose .map-compass__south { fill: #1F3523; }
.map-compass--rose .map-compass__pin { fill: #FDF9F4; stroke: #1F3523; stroke-width: 1.4; }
.map-compass--rose .map-compass__n { font-size: 12px; font-weight: 700; fill: #8F6B32; }
.map-compass--rose .map-compass__tick { font-size: 9px; font-weight: 600; fill: #1F3523; }

@media (max-width: 767px) {
  .map-compass.map-compass--rose { width: 66px; height: 66px; top: 12px; right: 10px; }
}

/* Show / hide labels, in the bottom bar. Filled dark green while the labels
   are hidden, so the off state is obvious. */
.bbar-action-btn.bbar-labels-btn.is-off {
  background: #1F3523;
  border-color: #1F3523;
  color: #fff;
}
.bbar-action-btn.bbar-labels-btn.is-off span { color: #fff; opacity: 1; }
.bbar-action-btn.bbar-labels-btn.is-off:hover { background: #2E5238; }

/* Icon-only bar button (the labels toggle): square, icon a touch larger. */
.bbar-action-btn.bbar-icon-only { padding: 0; width: 42px; flex: 0 0 42px; }
.bbar-action-btn.bbar-icon-only .bbar-icon-svg { font-size: 17px; }
@media (max-width: 767px) {
  /* Five equal buttons plus a narrow column for the icon-only toggle. */
  .bbar-row { grid-template-columns: repeat(5, minmax(0, 1fr)) 44px; }
  .bbar-row .bbar-action-btn.bbar-icon-only { width: 100%; flex: none; padding: 0; }
  .bbar-action-btn.bbar-icon-only .bbar-icon-svg { font-size: 18px; }
}

/* Plot details: a little wider than before on desktop for the full set of
   facts, and taller, with the contact footer kept at the bottom. */
@media (min-width: 768px) {
  .plot-modal-card { width: min(940px, calc(100vw - 48px)); min-height: min(72vh, 660px); }
  .plot-modal-body { flex: 1 1 auto; display: flex; flex-direction: column; }
  .plot-modal-body > .pd-app-page--modal { flex: 1 0 auto; display: flex; flex-direction: column; }
  .plot-modal-body .pdx { flex: 1 0 auto; align-items: stretch; }
  .plot-modal-body .pdx-main { display: flex; flex-direction: column; }
}

/* "Powered by Luminexa": dark green with a soft white halo, so it reads on
   the white page behind the map (where white text vanished) and over trees. */
.ui-credit__line {
  color: #1F3523;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Credit is short now ("Powered by Luminexa | Interactive Map"): one line at
   every width, sitting low in the corner. */
@media (min-width: 768px) {
  .ui-credit { bottom: 10px; }
  .ui-credit__line { line-height: 1.4; }
  .ui-credit__line .ui-credit__product,
  .ui-credit__line .ui-credit__sep { display: inline; }
}
/* Narrower desktops/tablets: no room beside the centred bar, so the credit
   sits just above the bar's right end instead. */
@media (min-width: 768px) and (max-width: 1339px) {
  .ui-credit { bottom: 72px; }
}

/* ── Brand: Akshara Ananda ─────────────────
   Dark forest green (aksharaananda.com) for actions, headings and dark
   surfaces, the logo's gold for accents, and cream paper from the brochure.
   One family across the app: Montserrat. --font-ui is kept as a separate
   name so dense text can move to its own face later.                     */
:root {
  --font-display: 'Montserrat', system-ui, 'Segoe UI', sans-serif;
  --font-ui: 'Montserrat', system-ui, 'Segoe UI', sans-serif;

  --brand-ink: #1F3523;       /* dark green: primary buttons, headings, dark cards */
  --brand-ink-hover: #2E5238;
  --brand-ink-deep: #142619;
  --brand-gold: #D3B27C;      /* logo gold: accents on dark surfaces */
  --brand-gold-text: #8F6B32; /* gold dark enough for text on white (4.8:1) */
  --brand-cream: #EBE3DD;
  --brand-paper: #FBF7F2;     /* brochure page cream */
}

/* App.css */

* { font-family: 'Montserrat', system-ui, 'Segoe UI', sans-serif; font-family: var(--font-display); box-sizing: border-box; }

body { margin: 0; padding: 0; }

.app-container {
  position: relative;
  height: 100vh;
  width: 100vw;
}

/* ────────────────────────────────────────
   Loading Screen
──────────────────────────────────────── */
.ls-shell {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', system-ui, 'Segoe UI', sans-serif;
  font-family: var(--font-ui);
  z-index: 9999;
  animation: ls-in 0.25s ease both;
}

@keyframes ls-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Plot-grid blocks ── */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
  gap: 5px;
  margin-bottom: 18px;
}

.ls-cell {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: rgba(31, 53, 35, 0.1);
  border: 1.5px solid rgba(31, 53, 35, 0.14);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ls-cell--on {
  background: #1F3523;
  border-color: #1F3523;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(31, 53, 35, 0.35);
}

/* Brand name below grid */
.ls-brand-name {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #111;
  animation: ls-fade-up 0.5s 0.6s ease both;
}

@keyframes ls-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress line at very bottom */
.ls-bar-track {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.ls-bar-fill {
  height: 100%;
  background: #1F3523;
  transition: width 0.18s ease;
}

/* Smaller grid on very narrow screens */
@media (max-width: 380px) {
  .ls-cell { width: 13px; height: 13px; }
  .ls-grid { gap: 4px; }
}

/* ────────────────────────────────────────
   Legacy loading-logo (used in Map.jsx)
──────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #f0f2f4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-container { text-align: center; }

.loading-logo {
  width: 80px;
  height: auto;
  border-radius: 16px;
  animation: ls-float 2s ease-in-out infinite;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-container {
  text-align: center;
}

.loading-logo3 {
  width: 160px; /* Adjust size as needed */
  margin-bottom: 20px;
  border-radius: 16px;
}


.app-container {
  height: 100vh;
  width: 100%;
}



/* Form Styles */
.hfe-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
}

.hfe-form-content {
  background: white;
  padding: 2rem;
  border-radius: 56px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  border: 1px solid #ccc;
  width: 100%;
  text-align: center;
}

.hfe-form-logo {
  width: 180px;

}
p{
  margin: 5px;
}
.hfe-entry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hfe-form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hfe-form-group label {
  font-weight: 500;
  color: #1F3523;
}

.hfe-form-group input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.hfe-form-group input:focus {
  border-color: #1F3523;
  outline: none;
}

.hfe-form-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hfe-form-error {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.hfe-submit-button {
  background-color: #1F3523;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hfe-submit-button:hover {
  background-color: #2E5238;
}

.hfe-retry-button {
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hfe-retry-button:hover {
  background-color: #c82333;
}

/* Thank You Message Styles */
.hfe-thank-you-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
}

.hfe-thank-you-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.hfe-thank-you-content h2 {
  color: #1F3523;
  margin-bottom: 1rem;
}

.hfe-thank-you-content p {
  font-size: 1rem;
  color: #333;
}

:root {
  --pd-bg: #f0f2f4;
  --pd-bg-soft: #f8f9fa;
  --pd-panel: rgba(255, 255, 255, 0.96);
  --pd-panel-soft: rgba(248, 249, 250, 0.98);
  --pd-panel-deep: rgba(255, 255, 255, 0.92);
  --pd-green: #1F3523;
  --pd-green-2: #142619;
  --pd-lime: #16a34a;
  --pd-lime-2: #15803d;
  --pd-text: #111;
  --pd-muted: rgba(0, 0, 0, 0.45);
  --pd-border: rgba(0, 0, 0, 0.08);
  --pd-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

@keyframes popOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.pd-app-page {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-display);
  color: #111;
  color: var(--pd-text);
  background: #f0f2f4;
  background: var(--pd-bg);
  padding: 18px;
  overflow-x: hidden;
}

.pd-mobile-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-app-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.pd-icon-btn,
.pd-status-dot {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
  background: rgba(255, 255, 255, 0.96);
  background: var(--pd-panel);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  box-shadow: var(--pd-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.pd-icon-btn {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pd-icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pd-icon-btn:active {
  transform: scale(0.94);
}

.pd-icon-btn img,
.pd-status-dot img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0);
}

.pd-top-title {
  min-width: 0;
  text-align: center;
}

.pd-top-title span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-top-title strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 900;
  color: #111;
  color: var(--pd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Hero card ─────────────────────────── */
.pd-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(135deg, #1F3523 0%, #2E5238 60%, #142619 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(31, 53, 35, 0.28);
}

.pd-hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.pd-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.pd-location-pill {
  width: -webkit-fit-content;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-hero-card h1 {
  margin: 14px 0 6px;
  font-size: clamp(28px, 6vw, 50px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.pd-hero-card p {
  max-width: 480px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.pd-status-chip {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pd-status-available {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #fff !important;
}

.pd-status-booked {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.pd-status-sold {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.pd-status-default {
  background: rgba(0, 0, 0, 0.25) !important;
}

.pd-quick-stats {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.pd-stat-card {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.pd-stat-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
}

/* ── Tab bar ────────────────────────────── */
.pd-tab-bar {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  background: var(--pd-panel);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  box-shadow: var(--pd-shadow);
}

.pd-tab-bar button {
  flex: 1 1;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
  font-family: var(--font-display);
}

.pd-tab-bar button:hover {
  color: #111;
  color: var(--pd-text);
  background: rgba(0, 0, 0, 0.04);
}

.pd-tab-bar button.active {
  background: #1F3523;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 53, 35, 0.3);
}

/* ── Content area ───────────────────────── */
.pd-content-area {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding-bottom: 88px;
}

.pd-app-card {
  color: #111;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.96);
  background: var(--pd-panel);
  border-radius: 24px;
  padding: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  box-shadow: var(--pd-shadow);
  animation: pd-fade-up 0.32s ease both;
}

@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pd-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pd-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #1F3523;
  letter-spacing: -0.02em;
}

.pd-card-subtitle {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  line-height: 1.5;
  font-weight: 600;
}

.pd-mini-compass {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.85;
}

/* ── Plot shape ─────────────────────────── */
.pd-plot-shape-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #F7F1EA, #e8f5ed);
  border: 1.5px solid rgba(22, 163, 74, 0.15);
  position: relative;
}

.pd-plot-shape-svg {
  width: 100%;
  height: 260px;
  display: block;
  overflow: hidden; /* clip zoomed content to container */
}

.pd-plot-shape-fill {
  fill: rgba(22, 163, 74, 0.12) !important;
  stroke: #16a34a !important;
  stroke-width: 2.5;
}

.pd-plot-corner-dot {
  fill: #ffffff !important;
  stroke: #16a34a !important;
  stroke-width: 1.8;
}

.pd-plot-side-label {
  font-size: 10px;
  font-weight: 900;
  fill: #1F3523 !important;
  letter-spacing: 0.02em;
}

.pd-plot-center-label {
  font-size: 12px;
  font-weight: 900;
  fill: #16a34a !important;
  letter-spacing: 0.04em;
}

/* ── Info & detail grids ────────────────── */
.pd-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-top: 14px;
}

.pd-info-list div,
.pd-detail-card {
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8f9fa;
  background: var(--pd-bg-soft);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
}

.pd-info-list span,
.pd-detail-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-info-list strong,
.pd-detail-card strong {
  display: block;
  color: #111;
  color: var(--pd-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  word-break: break-word;
}

.pd-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-top: 14px;
}

/* ── Unit toggle ────────────────────────── */
.pd-unit-toggle {
  flex-shrink: 0;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f8f9fa;
  background: var(--pd-bg-soft);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
}

.pd-unit-toggle button {
  min-width: 40px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
  font-family: var(--font-display);
}

.pd-unit-toggle button:hover {
  transform: translateY(-1px);
  color: #111;
  color: var(--pd-text);
}

.pd-unit-toggle button.active {
  background: #1F3523;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 53, 35, 0.25);
}

/* ── Bottom action bar ──────────────────── */
.pd-bottom-action {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(1120px, calc(100% - 36px));
  min-height: 64px;
  padding: 10px 10px 10px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  background: var(--pd-panel);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #111;
  color: var(--pd-text);
}

.pd-bottom-action span {
  display: block;
  margin-bottom: 3px;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-bottom-action strong {
  display: block;
  color: #1F3523;
  font-size: 14px;
  font-weight: 900;
}

.pd-bottom-action button {
  height: 44px;
  min-width: 126px;
  border: none;
  border-radius: 16px;
  background: #1F3523;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(31, 53, 35, 0.3);
  transition: 0.22s ease;
}

.pd-bottom-action button:hover {
  transform: translateY(-2px);
  background: #2E5238;
  box-shadow: 0 8px 24px rgba(31, 53, 35, 0.35);
}

.pd-bottom-action button:active {
  transform: scale(0.96);
}

/* ── Loading / empty states ─────────────── */
.pd-loading-page {
  display: grid;
  place-items: center;
}

.pd-loader-card,
.pd-empty-state {
  position: relative;
  z-index: 1;
  width: min(380px, 94%);
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  background: var(--pd-panel);
  color: #111;
  color: var(--pd-text);
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  box-shadow: var(--pd-shadow);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--pd-border);
}

.pd-loader-ring {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #16a34a;
  animation: pd-spin 0.9s linear infinite;
}

@keyframes pd-spin {
  to { transform: rotate(360deg); }
}

.pd-loader-card h3 {
  margin: 0;
  font-size: 15px;
  color: #1F3523;
}

.pd-loader-card p {
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
}

.pd-empty-mini {
  padding: 28px 16px;
  color: rgba(0, 0, 0, 0.45);
  color: var(--pd-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ── Status dot colors ───────────────────── */
.pd-status-dot.pd-status-available {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.08);
}

.pd-status-dot.pd-status-sold {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.pd-status-dot.pd-status-booked {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

/* ── Responsive ─────────────────────────── */
@media (min-width: 900px) {
  .pd-content-area {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .pd-content-area > .pd-app-card:only-child {
    grid-column: 1 / -1;
  }

  .pd-tab-bar {
    width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .pd-app-page {
    padding: 10px;
  }

  .pd-mobile-shell {
    min-height: calc(100vh - 20px);
  }

  .pd-hero-card {
    min-height: 200px;
    border-radius: 22px;
    padding: 16px;
  }

  .pd-hero-content {
    flex-direction: column;
  }

  .pd-quick-stats {
    margin-top: 20px;
    grid-template-columns: repeat(3, 1fr);
  }

  .pd-stat-card {
    padding: 10px;
  }

  .pd-stat-card strong {
    font-size: 11px;
  }

  .pd-info-list,
  .pd-detail-grid {
    grid-template-columns: 1fr;
  }

  .pd-plot-shape-svg {
    height: 200px;
  }

  .pd-section-head {
    flex-direction: column;
  }

  .pd-bottom-action {
    width: calc(100% - 20px);
    bottom: 10px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .pd-app-topbar {
    grid-template-columns: 40px 1fr 40px;
  }

  .pd-icon-btn,
  .pd-status-dot {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .pd-hero-card h1 {
    font-size: 28px;
  }

  .pd-tab-bar button {
    font-size: 10px;
  }

  .pd-app-card {
    padding: 14px;
    border-radius: 20px;
  }

  .pd-bottom-action {
    min-height: 58px;
    border-radius: 18px;
  }

  .pd-bottom-action strong {
    font-size: 12px;
  }

  .pd-bottom-action button {
    min-width: 108px;
    height: 40px;
    border-radius: 14px;
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .pd-mobile-shell {
    width: min(980px, calc(100vw - 80px));
    gap: 14px;
  }

  .pd-hero-card {
    min-height: 220px;
    padding: 24px;
    border-radius: 28px;
  }

  .pd-hero-card h1 {
    font-size: 44px;
  }

  .pd-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 200px));
    gap: 12px;
  }

  .pd-tab-bar {
    width: 480px;
    margin: 0 auto;
  }

  .pd-content-area {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    padding-bottom: 96px;
  }

  .pd-plot-shape-svg {
    height: 300px;
  }

  .pd-bottom-action {
    width: min(980px, calc(100vw - 80px));
    min-height: 64px;
    border-radius: 22px;
    bottom: 16px;
  }
}

/* ════════════════════════════════════════
   MODAL MODE OVERRIDES
   Applied when rendered inside Map modal
════════════════════════════════════════ */
.pd-app-page--modal {
  background: #f2f2f7;
  padding: 0;
  min-height: 0;
  min-height: initial;
  height: auto;
  /* Do NOT set overflow here — the Map.jsx scroll container handles it */
}

.pd-app-page--modal::before { display: none; }

/* Shell: full width inside the modal, no auto-width from desktop rules */
.pd-app-page--modal .pd-mobile-shell {
  width: 100%         !important;
  max-width: 100%     !important;
  min-height: 0   !important;
  min-height: initial   !important;
  margin: 0           !important;
  padding: 16px 18px 0 !important;
  gap: 12px           !important;
}

/* Remove extra bottom padding — sticky bar replaces the fixed bar */
.pd-app-page--modal .pd-content-area {
  padding-bottom: 0 !important;
}

/* Bottom action bar: sticky to the Map.jsx scroll container */
.pd-bottom-action--sticky {
  position: -webkit-sticky    !important;
  position: sticky    !important;
  bottom: 0           !important;
  left: 0             !important;
  right: 0            !important;
  transform: none     !important;
  width: 100%         !important;
  max-width: 100%     !important;
  min-height: 62px    !important;
  border-radius: 0    !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.07) !important;
  margin-top: 16px;
  z-index: 10;
}

/* ── Home button ─────────────────────────── */
.pd-home-btn {
  background: #f8f9fa !important;
  background: var(--pd-bg-soft) !important;
  color: #111 !important;
  color: var(--pd-text) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid var(--pd-border) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
  box-shadow: var(--pd-shadow) !important;
}

.pd-home-btn:hover {
  transform: translateY(-2px) !important;
}



/* ══════════════════════════════════════════
   Split card — media rail + facts
   Mobile (default): media on top, facts below,
   full-width CTA. Desktop: two-column split.
══════════════════════════════════════════ */

.pdx {
  --pdx-ink: #142B1B;
  --pdx-muted: #8A7F78;
  --pdx-line: rgba(0, 0, 0, 0.09);
  --pdx-green: #1F3523;
  --pdx-sage: #EFE7DE;

  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--pdx-ink);
  font-family: var(--font-display);
}

/* ── Media rail ── */
.pdx-rail {
  background: var(--pdx-sage);
  border-bottom: 1px solid var(--pdx-line);
  padding: 14px 16px 16px;
}

.pdx-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #E8DED2;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Strip the layout card's own chrome — the rail provides it */
.pdx-thumb .pd-app-card,
.pdx-thumb .pd-plot-card {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.pdx-thumb .pd-section-head { display: none; }
.pdx-thumb .pd-plot-shape-wrap { height: 168px; }

.pdx-headline { padding: 14px 2px 0; }

.pdx-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--pdx-muted);
}

.pdx-figure {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--pdx-ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.pdx-figure em {
  margin-left: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--pdx-muted);
}

.pdx-figure-sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--pdx-muted);
}

.pdx-minifacts {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pdx-minifacts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.pdx-minifacts dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--pdx-muted);
}

.pdx-minifacts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--pdx-ink);
}

/* ── Facts column ── */
.pdx-main { padding: 16px 16px 0; }

.pdx-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pdx-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(31, 53, 35, 0.09);
  color: var(--pdx-green);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  box-shadow: 0 2px 8px rgba(31, 53, 35, 0.1);
}

.pdx-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pdx-status.pd-status-available { background: #08752d !important; color: #fff !important; }
.pdx-status.pd-status-sold { background: #c62828 !important; color: #fff !important; }
.pdx-status.pd-status-booked { background: #a84d00 !important; color: #fff !important; }
.pdx-status.pd-status-default { background: #4b5563 !important; color: #fff !important; }

.pdx-status-value {
  width: -webkit-fit-content;
  width: fit-content;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(31, 53, 35, 0.1);
  color: var(--pdx-green);
}

.pdx-status-value i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pdx-status-value.pd-status-available { background: #e4f5e9 !important; color: #075f25 !important; }
.pdx-status-value.pd-status-sold { background: #fde8e8 !important; color: #a51212 !important; }
.pdx-status-value.pd-status-booked { background: #fff0dc !important; color: #8a3f00 !important; }
.pdx-status-value.pd-status-default { background: #e8eaed !important; color: #374151 !important; }

.pdx-ref {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pdx-muted);
}

.pdx-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--pdx-line);
  background: #fff;
  color: var(--pdx-muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdx-close:hover { color: var(--pdx-ink); border-color: rgba(0, 0, 0, 0.2); }

.pdx-title {
  margin: 11px 0 3px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--pdx-ink);
}

.pdx-loc {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pdx-muted);
}

.pdx-rule {
  height: 1px;
  background: var(--pdx-line);
  margin: 15px 0;
}

/* ── Two-column fact grid ── */
.pdx-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px 18px;
  gap: 14px 18px;
}

.pdx-facts dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--pdx-muted);
}

.pdx-facts dd {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pdx-ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pdx-facts--dims { grid-template-columns: repeat(3, 1fr); }

/* ── Blocks ── */
.pdx-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

/* ── Chips ── */
.pdx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--pdx-line);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pdx-ink);
}

.pdx-chip b {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdx-muted);
}

/* ── Footer ── */
.pdx-foot {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  margin: 18px -16px 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--pdx-line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdx-contact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.pdx-contact span {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pdx-muted);
}

.pdx-contact strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--pdx-ink);
  white-space: nowrap;
}

.pdx-cta {
  margin-left: auto;
  flex: 1 1;
  max-width: 190px;
  height: 42px;
  border: none;
  border-radius: 9px;
  background: var(--pdx-green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.14s ease, background 0.16s ease;
}

.pdx-cta:active { transform: scale(0.98); }
.pdx-cta:hover  { background: #142619; }

.pdx-loading-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 53, 35, 0.12);
  border-radius: 10px;
  background: rgba(31, 53, 35, 0.055);
  color: var(--pdx-green);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pdx-loading-banner strong { font-size: 11.5px; font-weight: 800; }

.pdx-loading-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid rgba(31, 53, 35, 0.18);
  border-top-color: var(--pdx-green);
  border-radius: 50%;
  animation: pd-spin 0.75s linear infinite;
}

.pdx-sk {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 5px;
  background: #e4e7e3;
}

.pdx-sk::after,
.pdx-sk-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.68), transparent);
  animation: pdx-shimmer 1.35s ease-in-out infinite;
}

.pdx-sk-thumb { position: relative; min-height: 200px; overflow: hidden; }

@keyframes pdx-shimmer {
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .pdx-loading-spinner,
  .pdx-sk::after,
  .pdx-sk-thumb::after { animation: none; }
}

/* ── Desktop: split into media rail + facts ── */
@media (min-width: 768px) {
  .pdx {
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    align-items: start;
  }

  .pdx-rail {
    border-bottom: none;
    border-right: 1px solid var(--pdx-line);
    padding: 20px;
    height: 100%;
  }

  .pdx-thumb .pd-plot-shape-wrap { height: 200px; }

  .pdx-main { padding: 20px 24px 0; }
  .pdx-title { font-size: 22px; }
  .pdx-foot { margin: 22px -24px 0; padding: 14px 24px 18px; }
  .pdx-facts { gap: 16px 22px; }
}

@media (max-width: 400px) {
  .pdx-facts--dims { grid-template-columns: repeat(2, 1fr); }
  .pdx-figure { font-size: 24px; }
  .pdx-contact { display: none; }
  .pdx-cta { max-width: none; }
}

/* Plot dossier: horizontal summary above the detailed schedule. */
.pdx { --pdx-muted:#73635A; display:flex; flex-direction:column; font-family:var(--font-display); background:#FCF9F5; }
.pdx-rail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-gap:16px 24px; gap:16px 24px; padding:24px; background:#F3ECE4; border-right:0; border-bottom:1px solid #E3D8CB; height:auto; }
.pdx-thumb { grid-row:span 2; border-radius:16px; background:#FAF6F0; }
.pdx-headline { padding:8px 0 0; }
.pdx-figure { font-size:34px; font-weight:300; letter-spacing:-.055em; flex-wrap:wrap; }
.pdx-figure em { font-size:11px; font-weight:600; letter-spacing:0; }
.pdx-figure-sub { font-weight:400; color:#685749; }
.pdx-label { font-weight:600; font-size:10px; letter-spacing:.12em; }
.pdx-minifacts { margin:0; padding:0; border:0; }
.pdx-minifacts dt { font-weight:400; color:#685749; }
.pdx-minifacts dd { font-weight:600; overflow-wrap:anywhere; }
.pdx-main { padding:24px 28px 0; min-width:0; }
.pdx-title { display:flex; flex-direction:column; gap:6px; margin:22px 0 10px; font-size:24px; font-weight:300; line-height:1.2; letter-spacing:-.035em; }
.pdx-title span { font-weight:300; }
.pdx-title strong { font-size:38px; font-weight:700; }
.pdx-loc { font-size:11px; font-weight:400; color:#73635A; }
.pdx-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.pdx-facts dt { font-size:10px; font-weight:400; text-transform:none; letter-spacing:.02em; color:#73635A; }
.pdx-facts dd { font-size:14px; font-weight:600; }
.pdx-facts--dims { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 20px; }
.pdx-facts--dims>div { padding:13px 0; border-bottom:1px solid #EAE0D4; }
.pdx-facts--dims dd { font-size:17px; font-weight:500; }
.pdx-chip { background:#F3ECE4; border:0; border-radius:6px; font-weight:400; }
.pdx-chip b { font-weight:700; }
.pdx-foot { margin:24px -28px 0; padding:16px 28px calc(18px + env(safe-area-inset-bottom,0px)); }
.pdx-contact span { font-weight:400; }
.pdx-cta { font-weight:600; border-radius:12px; }
.pdx button:focus-visible { outline:3px solid #ad883d; outline-offset:3px; }
@media(max-width:480px) { .pdx-rail { padding:20px; gap:12px; } .pdx-figure { font-size:27px; } .pdx-main { padding:20px 20px 0; } .pdx-foot { margin:24px -20px 0; padding-left:20px; padding-right:20px; } .pdx-facts--dims { grid-template-columns:repeat(2,minmax(0,1fr)); } .pdx-thumb .pd-plot-shape-wrap { height:180px; } .pdx-title strong { font-size:32px; } }

/* Keep the original plot-detail footprint and responsive column structure. */
.pdx-rail { display:block; padding:14px 16px 16px; }
.pdx-headline { padding:14px 2px 0; }
.pdx-minifacts { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--pdx-line); }
.pdx-main { padding:16px 16px 0; }
.pdx-title { font-size:18px; gap:4px; margin:14px 0 8px; }
.pdx-title strong { font-size:27px; }
.pdx-figure { font-size:27px; }
.pdx-foot { margin:18px -16px 0; padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px)); }
.pdx-facts { gap:14px 18px; }
.pdx-facts--dims>div { padding:8px 0; }
/* Phones: the card is full-width, so match the drawing's 320x250 viewBox
   instead of letterboxing it into a short strip. */
.pdx-thumb .pd-plot-shape-wrap { height:auto; aspect-ratio:320 / 250; max-height:300px; }
@media(min-width:768px) {
  .pdx { display:grid; grid-template-columns:minmax(240px,34%) 1fr; align-items:start; }
  .pdx-rail { padding:20px; height:100%; border-bottom:0; border-right:1px solid var(--pdx-line); }
  .pdx-thumb .pd-plot-shape-wrap { height:200px; aspect-ratio:auto; max-height:none; }
  .pdx-main { padding:20px 24px 0; }
  .pdx-title { font-size:22px; }
  .pdx-foot { margin:22px -24px 0; padding:14px 24px 18px; }
  .pdx-facts { gap:16px 22px; }
}

/* ── Plot diagram: facing arrow and north marker ── */
.pd-facing-arrow {
  stroke: #8F6B32;
  stroke-linecap: round;
  fill: none;
}

.pd-facing-arrow-head { fill: #8F6B32; }

.pd-facing-label {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: #8F6B32;
}

.pd-north-marker path { fill: #1F3523; }

.pd-north-marker text {
  font-family: var(--font-display);
  font-weight: 800;
  fill: #1F3523;
}

/* North badge in the card's top-left corner, opposite "Tap to zoom". */
.pd-north-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 6px 3px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 53, 35, 0.15);
  pointer-events: none;
}

.pd-north-badge svg path { fill: #1F3523; }

.pd-north-badge span {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  color: #1F3523;
}

/* Road strip drawn along the plot's facing side. */
.pd-road-strip { fill: #A69C95; }
.pd-road-centre { stroke: #ffffff; fill: none; }
.pd-road-label {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.2em;
  fill: #ffffff;
  paint-order: stroke;
  stroke: #A69C95;
  stroke-width: 3px;
}

/* Finer plot outline: the 2.5px stroke read heavy at card size. */
.pd-plot-shape-fill { stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pd-plot-corner-dot { stroke-width: 1.1; }

/* Contact number is a tap-to-call link; keep it looking like the label it was. */
.pdx-contact a {
  color: inherit;
  text-decoration: none;
}
.pdx-contact a:hover { text-decoration: underline; }

/* ── Plot details: all facts, trees, notes and contact actions ─────────── */
.pdx-facts--all dd { font-size: 13.5px; }
@media (min-width: 768px) {
  .pdx-facts--all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
}

.pdx-block-note { font-size: 11px; color: #73635A; }

.pdx-trees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px 16px;
  gap: 8px 16px;
}
.pdx-trees li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F3ECE4;
}
.pdx-tree-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #26703E; /* orchard green */
  color: #ffffff;
}
.pdx-tree-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdx-tree-text strong { font-size: 13px; font-weight: 600; color: #142B1B; }
.pdx-tree-text small { font-size: 11.5px; line-height: 1.45; color: #685749; }
@media (max-width: 480px) { .pdx-trees { grid-template-columns: 1fr; } }

.pdx-notes { margin: 0; font-size: 12.5px; line-height: 1.7; color: #4A3328; }

/* Footer: Contact us and WhatsApp, on the right. */
.pdx-foot { gap: 10px; flex-wrap: wrap; justify-content: flex-end; background: #FCF9F5; border-top: 1px solid #E5DACE; }
.pdx-spacer { flex: 1 0 auto; min-height: 18px; }
.pdx-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}
.pdx-action:active { transform: scale(0.98); }
.pdx-action--call { background: #1F3523; color: #fff; }
.pdx-action--call:hover { background: #2E5238; }
.pdx-action--whatsapp { background: #1F3523; color: #ffffff; }
.pdx-action--whatsapp:hover { background: #2E5238; }
.pdx-action:focus-visible { outline: 3px solid #ad883d; outline-offset: 3px; }


/* Plot drawing in the details panel: no separate fade-in (the panel already
   slides up, and a half-finished fade left the drawing looking masked), and
   stronger contrast so it reads clearly on the cream rail. */
.pdx-thumb .pd-app-card { animation: none; opacity: 1; transform: none; }
.pdx-thumb .pd-plot-shape-wrap { background: #FBF7F2; border: 1px solid #E2D7CA; }
.pdx-thumb .pd-plot-shape-fill { fill: rgba(38, 112, 62, 0.16) !important; stroke: #26703E !important; stroke-width: 2; }
.pdx-thumb .pd-plot-corner-dot { stroke: #26703E !important; stroke-width: 1.4; }
.pdx-thumb .pd-plot-side-label { fill: #142B1B !important; font-weight: 700; }
.pdx-thumb .pd-road-strip { fill: #8C8279; }

/* Phones: Contact us and WhatsApp float over the bottom of the sheet as two
   rounded pills with a shadow (no solid bar), over a soft fade so they stay
   legible above the content scrolling beneath. */
@media (max-width: 767px) {
  .pdx-foot {
    justify-content: center;
    gap: 10px;
    margin: 0 -16px;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    background: linear-gradient(to top, rgba(252, 249, 245, 0.96) 45%, rgba(252, 249, 245, 0));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    z-index: 5;
  }
  .pdx-foot .pdx-action {
    flex: 1 1;
    max-width: 200px;
    height: 48px;
    padding: 0 12px;
    border-radius: 999px;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  }
}

/* The page wrapper inside the plot modal must not become a scroll container:
   overflow-x: hidden forces overflow-y to auto, so the sticky footer stuck to
   this (non-scrolling) box instead of the modal body and never floated.
   `clip` still trims sideways overflow without creating a scroller. */
.plot-modal-body .pd-app-page--modal { overflow: visible; overflow-x: clip; }

/* ══ Plot details: roomier, white and light grey ═══════════════════════════
   Overrides the older compact rules in map.css (.plot-modal-body .pdx-*),
   hence the extra .plot-modal-card in each selector. */
.plot-modal-card { background: #ffffff; }
.plot-modal-card .pdx { background: #ffffff; --pdx-muted: #6B7280; --pdx-line: #ECEEF0; }
.plot-modal-card .plot-modal-body .pdx-rail { background: #F6F7F8; border-color: #ECEEF0; padding: 22px; }
.plot-modal-card .pdx-thumb { background: #ffffff; border: 1px solid #E6E8EB; }
.plot-modal-card .pdx-thumb .pd-plot-shape-wrap { background: #FAFAFA; border-color: #E6E8EB; }
.plot-modal-card .pdx-minifacts { border-top-color: #E6E8EB; }
.plot-modal-card .pdx-minifacts dt,
.plot-modal-card .pdx-figure-sub,
.plot-modal-card .pdx-loc,
.plot-modal-card .pdx-block-note { color: #6B7280; }
.plot-modal-card .plot-modal-body .pdx-main { padding: 22px 22px 0; }
.plot-modal-card .plot-modal-body .pdx-rule { margin: 18px 0; background: #ECEEF0; border-color: #ECEEF0; }
.plot-modal-card .plot-modal-body .pdx-title { font-size: 18px; margin: 14px 0 6px; }
.plot-modal-card .plot-modal-body .pdx-title strong { font-size: 28px; }
.plot-modal-card .plot-modal-body .pdx-loc { font-size: 11.5px; }
.plot-modal-card .plot-modal-body .pdx-label { font-size: 10.5px; color: #4B5563; }
.plot-modal-card .plot-modal-body .pdx-facts { gap: 18px 24px; }
.plot-modal-card .plot-modal-body .pdx-facts dt { font-size: 11px; color: #6B7280; }
.plot-modal-card .plot-modal-body .pdx-facts dd { font-size: 14px; margin-top: 5px; }
.plot-modal-card .plot-modal-body .pdx-facts--dims > div { padding: 12px 0; border-bottom-color: #ECEEF0; }
.plot-modal-card .plot-modal-body .pdx-chip { font-size: 12px; padding: 8px 12px; background: #F3F4F6; color: #374151; }
.plot-modal-card .pdx-trees li { background: #F6F7F8; padding: 12px 14px; }
.plot-modal-card .pdx-tree-icon { background: #1F3523; color: #ffffff; }
.plot-modal-card .pdx-empty { margin: 0; font-size: 12.5px; color: #6B7280; }
.plot-modal-card .plot-modal-body .pdx-foot {
  margin: 0 -22px;
  padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #ECEEF0;
}

/* Desktop: wider gutters on both sides of each column. */
@media (min-width: 768px) {
  .plot-modal-card .plot-modal-body .pdx-rail { padding: 28px; }
  .plot-modal-card .plot-modal-body .pdx-main { padding: 30px 36px 0; }
  .plot-modal-card .plot-modal-body .pdx-title strong { font-size: 32px; }
  .plot-modal-card .plot-modal-body .pdx-facts { gap: 20px 32px; }
  .plot-modal-card .plot-modal-body .pdx-rule { margin: 22px 0; }
  .plot-modal-card .plot-modal-body .pdx-foot { margin: 0 -36px; padding: 16px 36px 20px; }
}

/* Phones keep the floating buttons, over a white fade. */
@media (max-width: 767px) {
  .plot-modal-card .plot-modal-body .pdx-foot {
    border-top: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 45%, rgba(255, 255, 255, 0));
  }
}

/* ══ Plot details: roomier left column, Back to map, plot drawing ══════════ */

/* Left column: the drawing, the area figure and the short facts each get
   their own space instead of running into one another. */
.plot-modal-card .plot-modal-body .pdx-rail { display: flex; flex-direction: column; gap: 24px; }
.plot-modal-card .pdx-headline { padding: 0; }
.plot-modal-card .pdx-headline .pdx-label { margin-bottom: 8px; }
.plot-modal-card .pdx-figure-sub { margin-top: 8px; font-size: 11.5px; }
.plot-modal-card .pdx-minifacts { margin: 0; padding: 0; border-top: 1px solid #E6E8EB; gap: 0; }
.plot-modal-card .pdx-minifacts > div { padding: 12px 0; border-bottom: 1px solid #E6E8EB; }
.plot-modal-card .pdx-minifacts dt { font-size: 12px; }
.plot-modal-card .pdx-minifacts dd { font-size: 13px; font-weight: 600; }
@media (min-width: 768px) {
  .plot-modal-card .pdx { grid-template-columns: minmax(260px, 36%) 1fr; }
  .plot-modal-card .plot-modal-body .pdx-rail { padding: 32px 30px; gap: 28px; }
  .plot-modal-card .pdx-thumb .pd-plot-shape-wrap { height: 220px; }
  .plot-modal-card .pdx-minifacts > div { padding: 14px 0; }
}

/* Back to map sits with Contact us and WhatsApp, in the same style. */
.pdx-action { border: 0; cursor: pointer; }
.pdx-action--back { background: #1F3523; color: #ffffff; }
.pdx-action--back:hover { background: #2E5238; }

/* Phones: three equal floating pills, sitting lower in the sheet. */
@media (max-width: 767px) {
  .plot-modal-card .plot-modal-body .pdx-foot {
    gap: 8px;
    padding: 16px 14px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .plot-modal-card .pdx-foot .pdx-action {
    flex: 1 1;
    min-width: 0;
    max-width: none;
    height: 46px;
    padding: 0 8px;
    gap: 6px;
    font-size: 12px;
    border-radius: 12px; /* same corners as on desktop, not pills */
  }
}
@media (max-width: 359px) {
  .plot-modal-card .pdx-foot .pdx-action svg { display: none; }
}

/* Plot drawing: plain white, with a gold dashed boundary (like a survey line),
   dark green corner pegs, and the facing arrow in the theme green. */
.pdx-thumb .pd-plot-shape-wrap,
.plot-modal-card .pdx-thumb .pd-plot-shape-wrap { background: #ffffff; border: 0; }
.pdx-thumb .pd-plot-shape-fill {
  fill: rgba(31, 53, 35, 0.06) !important;
  stroke: #B08A4E !important;
  stroke-width: 2;
  stroke-dasharray: 7 4;
  stroke-linecap: round;
}
.pdx-thumb .pd-plot-corner-dot { fill: #1F3523 !important; stroke: #ffffff !important; stroke-width: 1.2; }
.pdx-thumb .pd-facing-arrow { stroke: #1F3523; }
.pdx-thumb .pd-facing-arrow-head { fill: #1F3523; }
.pdx-thumb .pd-facing-label { fill: #1F3523; font-weight: 700; }
.pdx-thumb .pd-plot-side-label { fill: #1F3523 !important; font-weight: 600; }
.pdx-thumb .pd-road-strip { fill: #A3A8AE; }
.pdx-thumb .pd-road-label { stroke: #A3A8AE; font-weight: 700; }

/* Phones: the buttons are pinned to the bottom of the sheet itself rather than
   made sticky inside the facts column. A sticky bar can't rise above the
   column's top edge, and on phones that column starts below the first
   screenful (the plot drawing comes first), so the buttons sat off-screen
   until you scrolled. The sheet's slide-up transform makes it the containing
   block for `fixed`, so the bar spans the sheet and moves with it. */
@media (max-width: 767px) {
  .plot-modal-card .plot-modal-body .pdx-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 18px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  /* Room at the end so the last section scrolls clear of the buttons. */
  .plot-modal-card .plot-modal-body .pdx-spacer { min-height: 84px; }
}

/* ══ Plot details: tighter spacing for the shorter sheet ═══════════════════
   The sheet is capped at 86% of the screen height (map.css), so the gaps
   between sections are pulled in to show more of the plot without scrolling. */
@media (min-width: 768px) {
  .plot-modal-card .plot-modal-body .pdx-rail { padding: 22px 26px; gap: 18px; }
  .plot-modal-card .pdx-thumb .pd-plot-shape-wrap { height: 190px; }
  .plot-modal-card .pdx-headline .pdx-label { margin-bottom: 6px; }
  .plot-modal-card .pdx-figure-sub { margin-top: 6px; }
  .plot-modal-card .pdx-minifacts > div { padding: 10px 0; }

  .plot-modal-card .plot-modal-body .pdx-main { padding: 20px 32px 0; }
  .plot-modal-card .plot-modal-body .pdx-title { margin: 10px 0 4px; }
  .plot-modal-card .plot-modal-body .pdx-title strong { font-size: 28px; }
  .plot-modal-card .plot-modal-body .pdx-rule { margin: 14px 0; }
  .plot-modal-card .plot-modal-body .pdx-facts { gap: 12px 28px; }
  .plot-modal-card .plot-modal-body .pdx-facts dd { margin-top: 3px; }
  .plot-modal-card .plot-modal-body .pdx-facts--dims > div { padding: 8px 0; }
  .plot-modal-card .plot-modal-body .pdx-spacer { min-height: 10px; }
  .plot-modal-card .plot-modal-body .pdx-foot { margin: 0 -32px; padding: 12px 32px 14px; }
}

/* Phones: the same idea, a little closer together. */
@media (max-width: 767px) {
  .plot-modal-card .plot-modal-body .pdx-rail { padding: 16px 18px; gap: 16px; }
  .plot-modal-card .plot-modal-body .pdx-main { padding: 16px 18px 0; }
  .plot-modal-card .plot-modal-body .pdx-rule { margin: 12px 0; }
  .plot-modal-card .plot-modal-body .pdx-facts { gap: 12px 20px; }
  .plot-modal-card .plot-modal-body .pdx-facts--dims > div { padding: 8px 0; }
  .plot-modal-card .pdx-minifacts > div { padding: 9px 0; }
}

/* Minimal loading screen */

.spl-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FBF7F2; /* brochure cream, which the gold logo is drawn for */
  font-family: var(--font-display);
  animation: spl-in 0.25s ease both;
}

@keyframes spl-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.spl-logo {
  /* The horizontal logo is 790x223; sized by height, well under native. */
  height: 68px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
  /* Breathe: a slow swell and settle, so the wait feels alive rather than
     stalled. Transform + opacity only, so it composites on the GPU. */
  animation: spl-breathe 3.2s ease-in-out infinite;
}

.spl-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  color: #8F6B32;
}

.spl-by {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(31, 53, 35, 0.18);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1F3523;
}

.spl-progress {
  width: 180px;
  height: 5px;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(31, 53, 35, 0.12);
  overflow: hidden;
}

.spl-progress__bar {
  height: 100%;
  background: #1F3523; /* theme dark green */
  border-radius: inherit;
  transform-origin: left center;
  transition: transform 0.25s ease-out;
}

.spl-percent {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1F3523;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .spl-logo { height: 64px; }
  .spl-name { font-size: 19px; }
}

@keyframes spl-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .spl-logo { animation: none; }
  .spl-progress__bar { transition: none; }
}

/* LocationLabel.css */

/* Base styles for all animated labels (locations array) */
.animated-label {
    position: absolute;
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: black;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgb(85, 85, 85);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping */
  }

  .project-8-label{
    background-color: none;
    font-size: 8px;
  }

  
  
  /* Hover effect for animated labels */
  .animated-label:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Specific styles for project-5-label (most locations) */
  .project-5-label {
    font-family: var(--font-display);
    border: 1px solid #d6d6d6;
  }
  
  /* Specific styles for project-8-label (Club House) */
  .project-8-label {
    font-family: var(--font-display);
    border: 1px solid #666;
    color: white !important;
    background-color: rgba(31, 53, 35, 0.85) !important;
  }
  
  /* Separate styles for plotLabel (Plot 1 in locations array) */
  .plotLabel {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    color: #007bff !important; /* Bootstrap blue for distinction */
    background-color: rgba(230, 240, 255, 0.9); /* Light blue background */
    padding: 8px 14px;
    border-radius: none !important;
  }
  
  /* Hover effect for plotLabel */
  .plotLabel:hover {
    background-color: rgba(230, 240, 255, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Base styles for persistent tooltips (tooltips array) */
  .persistent-tooltip {
    position: absolute;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.4; /* Improve readability for multi-line text */
  }
  
  /* Specific styles for project-6-label (Survey- No. 215) */
  .project-6-label {
    font-family: var(--font-display);
    font-weight: bold;
  }
  
  /* Specific styles for project-7-label (Mogg’s Terra Hill) */
  .project-7-label {
    font-family: var(--font-display);
    border: 1px solid rgb(82, 82, 82); /* Matches the border prop in JS */
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  /* Ensure strong tags in tooltips are bold */
  .persistent-tooltip strong {
    font-weight: bold;
  }
  
  /* Styles for plot hover labels (plot blocks on hover) */
  .plot-hover-label {
    position: absolute;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(185, 185, 185, 0.1);
    pointer-events: none; /* Prevents interference with mouse events */
    white-space: nowrap;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    /* Adjustments for animated labels */
    .animated-label {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 2px;
    }
    
    .plot-center-label{
      font-size: 2px !important;
      padding: 2px 1px !important;
    }
    .project-5-label {
        border: 1px solid #ccc;
        border-radius: none !important;
      }
    /* Adjustments for plotLabel */
    .plotLabel {
      font-size: 14px;
      padding: 6px 10px;
    }
  
    /* Adjustments for persistent tooltips */
    .persistent-tooltip {
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 1px;
    }
  
    /* Decrease size of project-6-label on mobile */
    .project-6-label {
      font-size: 10px; /* Smaller size for mobile */
      padding: 4px 8px;
      border: none !important; /* Adjust padding to match smaller size */
    }
  
    /* Decrease size of project-7-label on mobile */
    .project-7-label {
      font-size: 8px; /* Smaller size for mobile */
      padding: 4px 8px; /* Adjust padding to match smaller size */
    }
  
    /* Adjustments for plot hover labels */
    .plot-hover-label {
      font-size: 12px;
      padding: 4px 8px;
    }
    
  }
/* Nearby-place labels on the map artwork. They live inside the map stage, so
   they pan and zoom with the map; positions are % of the map (see
   projectLocation.js). Sits above the artwork, under the plot overlays. */
.direction-labels {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.direction-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-family: var(--font-display);
  white-space: nowrap;
}

.direction-label__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 4px;
  border-radius: 50%;
  background: #1F3523;
  box-sizing: border-box;
}

.direction-label__arrow svg { display: block; }
.direction-label__arrow path { fill: #ffffff; }

.direction-label__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.direction-label__name {
  font-size: 9.5px;
  font-weight: 600;
  color: #142B1B;
}

.direction-label__km {
  font-size: 8px;
  font-weight: 400;
  color: #8F6B32;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.direction-labels--compact .direction-label {
  gap: 4px;
  padding: 2px 6px 2px 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.direction-labels--compact .direction-label__arrow {
  width: 13px;
  height: 13px;
  padding: 3px;
}

.direction-labels--compact .direction-label__name { font-size: 7.5px; }
.direction-labels--compact .direction-label__km { font-size: 6.5px; }

/* Road names along the road, under the plot overlays and place labels. */
.road-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 12;
}

.road-label__bg {
  fill: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.road-label {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: #142B1B;
  -webkit-user-select: none;
          user-select: none;
}

/* Amenity callouts on the master plan. Sizes are in map-artwork units
   (10090x6777 viewBox), so they scale with zoom like the plot numbers. Above
   the artwork and place labels, under the plot overlays. */
.amenity-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 14;
}

.amenity-leader {
  stroke: #C9A24A;
  stroke-width: 7;
  stroke-dasharray: 26 18;
  stroke-linecap: round;
}

.amenity-dot {
  fill: #C9A24A;
  stroke: #ffffff;
  stroke-width: 6;
}

.amenity-label {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #1F3523;
  /* White halo so a label stays legible where it meets the trees. */
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 10px;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* Droplet: rings spread from each dot and fade, like a drop landing on
   water. Scaled with transform (not r) so Safari animates it too. */
.amenity-ripple {
  fill: none;
  stroke: #C9A24A;
  stroke-width: 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: amenity-droplet 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.amenity-ripple--late { animation-delay: 1.2s; }

@keyframes amenity-droplet {
  0% { transform: scale(1); opacity: 0.9; stroke-width: 6; }
  80% { opacity: 0; }
  100% { transform: scale(4.6); opacity: 0; stroke-width: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .amenity-ripple { display: none; }
}

/* Entry enquiry form, shown over the map. Two panels: an estate photograph
   on the left with a few facts, the form on the right; on phones the photo
   becomes a slim banner above the form. The card is docked to the bottom
   edge and slides up from it, like Info, Locate and the plot details. Dark green actions like the rest of the
   app. */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  /* Docked to the bottom edge like the plot details panel. flex-start plus
     margin-top: auto on the card keeps it at the bottom, yet still lets a
     card taller than a short screen scroll instead of losing its top. */
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
  background: rgba(10, 24, 14, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow-y: auto;
  font-family: var(--font-display);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lead-overlay.is-in { opacity: 1; }

.lead-shell {
  width: min(1000px, 100%);
  margin: auto auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #FDF9F4;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.32);
  /* A plain slide up from below the bottom edge: no fade on the card and no
     overshoot, slow enough to read as a sheet rising. Parked below the screen
     until LeadForm adds .is-in to the overlay. */
  transform: translateY(100%);
  /* Even and gentle: eases in and settles, no fast launch or sudden stop. */
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.lead-overlay.is-in .lead-shell { transform: translateY(0); }

/* ── Left: gallery slideshow ── */
.lead-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #1F3523;
}

/* Slides stack and crossfade; the showing one drifts slowly back from a
   slight zoom. */
.lead-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 6s linear;
}

.lead-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.lead-dots {
  position: absolute;
  top: 32px;
  right: 26px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.lead-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.lead-dot:hover { background: rgba(255, 255, 255, 0.8); }
.lead-dot.is-active { width: 22px; background: #fff; }
.lead-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lead-slide-caption {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.lead-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 25, 0.05) 30%, rgba(20, 38, 25, 0.88) 100%);
}

.lead-visual-copy {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 1;
  color: #fff;
}

.lead-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D3B27C;
}

.lead-visual-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lead-facts {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(211, 178, 124, 0.45);
}

.lead-facts li {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

.lead-facts strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}

/* ── Right: form ── */
.lead-card {
  min-width: 0;
  padding: 40px 42px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: #142B1B;
}

/* Logo floating free on the photo, no card: the cream copy of the logo with
   a soft dark shadow so it reads over the image. */
.lead-brand {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 1;
}

.lead-logo {
  display: block;
  height: 44px;
  width: auto;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.lead-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8F6B32;
}

.lead-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1F3523;
}

.lead-subtitle {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6D5D52;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2B4A33;
}

.lead-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #998A80; }

.lead-field > input,
.lead-phone {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #E6DCD0;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: #142B1B;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lead-field > input { padding: 0 14px; }

.lead-field > input:hover,
.lead-phone:hover { border-color: #D3C4B2; }

.lead-field > input:focus,
.lead-phone:focus-within {
  outline: none;
  border-color: #1F3523;
  box-shadow: 0 0 0 4px rgba(31, 53, 35, 0.1);
}

.lead-field > input[aria-invalid="true"],
.lead-phone--invalid { border-color: #c2410c; }

.lead-phone {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.lead-phone-prefix {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px 0 14px;
  border-right: 1.5px solid #EFE7DE;
  font-size: 14px;
  font-weight: 500;
  color: #1F3523;
  background: #F6F0E8;
}

.lead-phone input {
  flex: 1 1;
  min-width: 0;
  height: 100%;
  border: none;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: inherit;
}

.lead-phone input:focus { outline: none; }

.lead-error {
  font-size: 11px;
  font-weight: 500;
  color: #c2410c;
}

.lead-error--consent { margin-top: -6px; }

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.55;
  color: #5E4D42;
  cursor: pointer;
}

.lead-consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #1F3523;
}

.lead-failed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1e8;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9a3412;
}

.lead-skip {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #1F3523;
  text-decoration: underline;
  cursor: pointer;
}

.lead-submit {
  height: 50px;
  margin-top: 4px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: #1F3523;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.lead-card--success .lead-submit { justify-content: center; }

.lead-submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #D3B27C;
  color: #1F3523;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.lead-submit:hover { background: #2E5238; }
.lead-submit:hover .lead-submit-arrow { transform: translateX(3px); }
.lead-submit:active { transform: scale(0.985); }
.lead-submit:disabled { opacity: 0.7; cursor: progress; }

.lead-submit:focus-visible,
.lead-skip:focus-visible {
  outline: 3px solid rgba(31, 53, 35, 0.35);
  outline-offset: 2px;
}

.lead-privacy {
  margin: 0;
  text-align: center;
  font-size: 10px;
  color: #998A80;
}


/* Tablet: narrower photo. */
@media (max-width: 900px) {
  .lead-shell { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .lead-visual { min-height: 540px; }
  .lead-visual-title { font-size: 19px; }
}

/* Phones: photo becomes a banner above the form, and the card rises from
   the bottom like the app's other sheets. */
@media (max-width: 640px) {
  .lead-overlay { padding: 0; }
  .lead-shell {
    grid-template-columns: 1fr;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .lead-visual { min-height: 170px; height: 170px; }
  .lead-dots { top: 18px; right: 16px; }
  .lead-slide-caption { margin-bottom: 4px; font-size: 11px; }
  .lead-visual-copy { left: 18px; right: 18px; bottom: 14px; }
  .lead-visual-title { font-size: 15px; margin: 0; }
  .lead-facts { display: none; }
  .lead-card { padding: 18px 18px 14px; gap: 10px; }
  .lead-brand { top: 14px; left: 16px; }
  .lead-logo { height: 32px; }
  .lead-title { font-size: 22px; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .lead-visual { min-height: 0; }
  .lead-card { padding-top: 22px; gap: 9px; }
  .lead-field > input,
  .lead-phone { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-overlay,
  .lead-shell,
  .lead-card,
  .lead-visual-copy { animation: none; }
  .lead-shell { transition: none; }
  .lead-slide { transition: opacity 0.3s ease; transform: none; }
  .lead-slide.is-active { transform: none; }
}

/* ── Success state ── */
.lead-card--success {
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding-top: 36px;
}

.lead-success-icon {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
}

.lead-success-icon svg { display: block; width: 100%; height: 100%; }

.lead-success-ring {
  fill: #F2EADF;
  stroke: #1F3523;
  stroke-width: 2;
}

.lead-success-check {
  fill: none;
  stroke: #1F3523;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: lead-check 0.45s 0.15s ease-out forwards;
}

.lead-success-phone {
  color: #1F3523;
  white-space: nowrap;
}

@keyframes lead-check {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-success-check { animation: none; stroke-dashoffset: 0; }
}

