/* =============================================================================
 * styles.css — Design system + layout for the interactive plat map.
 * -----------------------------------------------------------------------------
 * Sections
 *   01  Design tokens
 *   02  Reset & base
 *   03  Primitives (buttons, chips, switch, fields, badges)
 *   04  Masthead
 *   05  Control bar
 *   06  Map frame, SVG lots, zoom controls
 *   07  Tooltip
 *   08  Lot drawer
 *   09  Toast, loader, footer
 *   10  Responsive
 * ========================================================================== */

/* ==========================================================================
   01  DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand — deep navy */
  --navy-900: #061625;
  --navy-800: #0b2239;
  --navy-700: #123152;
  --navy-600: #1b4470;
  --navy-500: #2b5c8f;

  /* Accent — emerald */
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-50:  #ecfdf5;

  /* Status — pending (amber) & sold (rose) */
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --amber-50:  #fffbeb;
  --rose-700:  #be123c;
  --rose-600:  #e11d48;
  --rose-400:  #fb7185;
  --rose-50:   #fff1f2;

  /* Neutrals */
  --gray-0:   #ffffff;
  --gray-25:  #fbfcfd;
  --gray-50:  #f6f8fa;
  --gray-100: #eef2f6;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Semantic */
  --page-bg: var(--gray-50);
  --surface: var(--gray-0);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--navy-900);
  --text-muted: var(--gray-500);
  --text-invert: #eef4fb;

  /* Type */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(6, 22, 37, .06), 0 1px 3px rgba(6, 22, 37, .05);
  --shadow: 0 4px 16px rgba(6, 22, 37, .07), 0 1px 3px rgba(6, 22, 37, .05);
  --shadow-lg: 0 24px 60px rgba(6, 22, 37, .18), 0 2px 8px rgba(6, 22, 37, .08);

  --ring: 0 0 0 3px rgba(16, 185, 129, .35);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Per-status colour assignments, shared by the map, chips, badges & tooltip. */
[data-status="available"] {
  --status-fill: var(--emerald-400);
  --status-stroke: var(--emerald-700);
  --status-ink: #053b2c;
  --status-soft: var(--emerald-50);
  --status-strong: var(--emerald-600);
}
[data-status="pending"] {
  --status-fill: var(--amber-400);
  --status-stroke: var(--amber-600);
  --status-ink: #452405;
  --status-soft: var(--amber-50);
  --status-strong: var(--amber-600);
}
[data-status="sold"] {
  --status-fill: var(--rose-400);
  --status-stroke: var(--rose-700);
  --status-ink: #4c0519;
  --status-soft: var(--rose-50);
  --status-strong: var(--rose-600);
}

/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, p, dl, dd, dt { margin: 0; }
button { font: inherit; color: inherit; }

/* The `hidden` attribute must beat the author `display` values below it —
   without this, anything styled `display: flex` ignores being hidden. */
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: .92em; }
a { color: var(--emerald-700); }

:focus-visible {
  outline: 2px solid var(--emerald-600);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--text-invert);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.icon { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   03  PRIMITIVES
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              transform .12s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--primary {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(4, 120, 87, .3);
}
.btn--primary:hover:not(:disabled) {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
}
/* A faded emerald button reads as "almost enabled" — grey it out properly. */
.btn--primary:disabled {
  background: var(--gray-200);
  border-color: var(--gray-200);
  color: var(--gray-500);
  box-shadow: none;
  opacity: 1;
}

.btn--ghost { background: transparent; border-color: transparent; color: var(--gray-600); }
.btn--ghost:hover:not(:disabled) { background: var(--gray-100); border-color: transparent; }

.btn--danger { color: var(--rose-600); }
.btn--danger:hover:not(:disabled) { background: var(--rose-50); }

.btn--sm { padding: 7px 11px; font-size: 13px; }
.btn--block { width: 100%; }

/* Icon-only button */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-700);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover:not(:disabled) { background: var(--gray-100); }
.iconbtn:disabled { opacity: .4; cursor: not-allowed; }
.iconbtn--plain { border-color: transparent; background: transparent; }

/* --- Chips (filter + legend, one control) -------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), opacity .16s var(--ease);
}
.chip__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--status-fill, var(--gray-400));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-fill, #94a3b8) 25%, transparent);
}
.chip__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chip--status[aria-pressed="true"] {
  border-color: var(--status-strong);
  background: var(--status-soft);
  color: var(--status-ink);
}
.chip--status[aria-pressed="true"] .chip__count {
  background: color-mix(in srgb, var(--status-strong) 16%, #fff);
  color: var(--status-strong);
}
.chip--status[aria-pressed="false"] { opacity: .55; }
.chip--status[aria-pressed="false"] .chip__label { text-decoration: line-through; }
.chip--status:hover { border-color: var(--status-strong); }

.chip--edited {
  padding: 3px 9px;
  border: 1px dashed var(--navy-500);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--navy-700);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* --- Status badge -------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--status-strong);
  border-radius: 999px;
  background: var(--status-soft);
  color: var(--status-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-strong);
}

/* --- Toggle switch ------------------------------------------------------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-invert);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.switch:hover { background: rgba(255, 255, 255, .12); }
.switch__track {
  position: relative;
  width: 38px; height: 21px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  transition: background .2s var(--ease);
}
.switch__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.switch.is-on { border-color: var(--emerald-400); background: rgba(16, 185, 129, .18); }
.switch.is-on .switch__track { background: var(--emerald-500); }
.switch.is-on .switch__knob { transform: translateX(17px); }

/* --- Form fields --------------------------------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.field__optional { color: var(--gray-400); font-weight: 500; text-transform: none; }

.field input, .input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .input:focus {
  border-color: var(--emerald-500);
  box-shadow: var(--ring);
  outline: none;
}
select.input { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.input-affix { position: relative; }
.input-affix__prefix {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-weight: 600;
  pointer-events: none;
}
.input-affix .input { padding-left: 26px; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   04  MASTHEAD
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-invert);
}
.masthead__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: var(--emerald-400);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { min-width: 0; }
.brand__eyebrow {
  display: block;
  color: var(--emerald-400);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.brand__subtitle { color: rgba(238, 244, 251, .62); font-size: 12.5px; }

.masthead__stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.stat {
  padding: 4px 18px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  text-align: right;
}
.stat:first-child { border-left: 0; }
.stat__value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat__label {
  display: block;
  color: rgba(238, 244, 251, .55);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stat--accent .stat__value { color: var(--emerald-400); }

.masthead__admin { display: flex; align-items: center; gap: 8px; }
.masthead__admin .btn--danger { color: #fda4af; }
.masthead__admin .btn--danger:hover { background: rgba(225, 29, 72, .16); }
.masthead__admin .btn--ghost { color: rgba(238, 244, 251, .78); text-decoration: none; }
.masthead__admin .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Admin banner */
.admin-strip {
  background: linear-gradient(90deg, #fef3c7, #fffbeb);
  border-bottom: 1px solid #fcd34d;
  color: #6b3d05;
  font-size: 13px;
}
.admin-strip p { max-width: 1560px; margin: 0 auto; padding: 9px 24px; }
.admin-strip code { background: rgba(107, 61, 5, .1); padding: 1px 5px; border-radius: 4px; }

/* ==========================================================================
   05  CONTROL BAR
   ========================================================================== */
.shell {
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.controls__group { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.controls__group--search { margin-left: auto; gap: 14px; }
.controls__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.controls__group--quick {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}
.controls__results {
  color: var(--text-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search { position: relative; display: block; }
.search__icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  display: flex;
}
.search input {
  width: 158px;
  padding: 8px 12px 8px 33px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--gray-25);
  font: inherit;
  font-size: 14px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), width .18s var(--ease);
}
.search input:focus {
  width: 180px;
  border-color: var(--emerald-500);
  background: var(--surface);
  box-shadow: var(--ring);
  outline: none;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ==========================================================================
   06  MAP
   ========================================================================== */
.map { position: relative; }   /* anchors the overlaid zoom controls */

.map__frame {
  position: relative;
  height: clamp(420px, 62vh, 760px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 400px at 50% -10%, #ffffff 0%, var(--gray-50) 60%),
    var(--gray-50);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map__frame.is-panning { cursor: grabbing; }

/* The canvas fades in once the inventory has loaded and the lots are drawn.
   (Fading the frame itself would hide the loader sitting inside it.) */
.map__svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;   /* we handle pan/zoom gestures ourselves */
  user-select: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.map__frame.is-ready .map__svg { opacity: 1; }
.map__frame.is-panning .map__svg { cursor: grabbing; }
.map__svg:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: -2px; }

/* --- Site map underlay --------------------------------------------------- */
.mp-underlay { pointer-events: none; }

/* Over a real blueprint the lots become translucent overlays so the drawing
   stays readable underneath. */
.map__svg.has-underlay .mp-lot-shape { fill-opacity: .42; stroke-width: 1.75; }
.map__svg.has-underlay .mp-lot:hover .mp-lot-shape { fill-opacity: .68; }
.map__svg.has-underlay .mp-lot.is-selected .mp-lot-shape { fill-opacity: .68; }
.map__svg.has-underlay .mp-lot-label {
  fill: var(--navy-900);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 4;
  stroke-linejoin: round;
}

/* "Underlay focus": fade the lots right back to check traced shapes. */
.map__svg.underlay-focus .mp-lot-shape { fill-opacity: .12; }
.map__svg.underlay-focus .mp-lot-label { opacity: .45; }

/* --- Decorative parcel + streets ---------------------------------------- */
.mp-ground { fill: #eaeff5; }
.mp-road { fill: #dde4ed; }
.mp-road-line {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-dasharray: 14 12;
  vector-effect: non-scaling-stroke;
}
.mp-street-label {
  fill: #8a99ad;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: var(--font-sans);
}

/* --- Lots ---------------------------------------------------------------- */
.mp-lot { cursor: pointer; outline: none; }

.mp-lot-shape {
  fill: var(--status-fill, var(--gray-300));
  stroke: var(--status-stroke, var(--gray-500));
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transition: fill .18s var(--ease), filter .18s var(--ease), stroke-width .12s var(--ease);
}

/* Invisible click-catcher: a transparent, screen-constant stroke widens each
   lot's hit area by ~5px a side, so the small ones are grabbable when the whole
   plan is fitted to the screen. See the note in map.js renderLots(). */
.mp-lot-hit {
  fill: transparent;
  stroke: transparent;
  /* Deliberately modest. At the fitted view neighbouring lots are only ~3px
     apart on screen, so a wide ring reaches past the gap and starts answering
     for the wrong lot. 5px (2.5 a side) covers the gap without overreaching;
     the lot list is the route to use when you want certainty. */
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
}
.mp-lot-hit.is-filtered { pointer-events: none; }
/* While the outline editor is open, nothing on the map should steal the drag. */
.map__svg.is-editing-shape .mp-hits { pointer-events: none; }

.mp-lot-label {
  fill: var(--status-ink, var(--gray-700));
  font-family: var(--font-sans);
  /* Fallback only — map.js sets a per-shape font-size attribute so the number
     fits its lot, from cottage footprints up to multi-acre estate parcels. */
  font-size: 27px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
}

.mp-lot:hover .mp-lot-shape {
  filter: brightness(1.08);
  stroke-width: 2.5;
}

.mp-lot.is-selected .mp-lot-shape {
  stroke: var(--navy-800);
  stroke-width: 4;
  filter: drop-shadow(0 3px 8px rgba(6, 22, 37, .35));
}

/* `:focus` rather than `:focus-visible` — browser support for focus-visible on
   SVG elements is still uneven, and a clicked lot gets the selected outline
   anyway, so the two states look almost identical. */
.mp-lot:focus .mp-lot-shape {
  stroke: var(--navy-800);
  stroke-width: 3.5;
  filter: brightness(1.08);
}

/* Admin-edited lots carry a dashed outline so changes are obvious. */
.mp-lot.is-edited .mp-lot-shape { stroke-dasharray: 7 4; }

/* Filtered out: stays as context, no longer interactive. */
.mp-lot.is-filtered { cursor: default; pointer-events: none; }
.mp-lot.is-filtered .mp-lot-shape { fill: var(--gray-300); stroke: var(--gray-400); opacity: .3; }
.mp-lot.is-filtered .mp-lot-label { opacity: .25; }

/* Geometry with no matching inventory row. */
.mp-lot.is-unlisted { cursor: default; pointer-events: none; }
.mp-lot.is-unlisted .mp-lot-shape {
  fill: #fff;
  stroke: var(--gray-400);
  stroke-dasharray: 5 4;
}

/* --- Zoom controls & help ----------------------------------------------- */
.map__controls {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.map__zoom {
  text-align: center;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.map__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.map__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
  color: var(--gray-500);
  font-size: 12px;
}
.map__help span { display: inline-flex; align-items: center; }
.map__help span + span::before {
  content: "";
  width: 4px; height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--gray-300);
}
/* `.map__help span` (class + type) outranks a bare class, so the override for
   the keyboard hint has to be at least as specific. */
.map__help .map__help-kbd { color: var(--gray-400); }

.source {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12.5px;
}
.source .icon { color: var(--gray-400); }
.source--warn { color: #92400e; }
.source--warn .icon { color: var(--amber-600); }
.source code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-700);
}

/* ==========================================================================
   07  TOOLTIP
   ========================================================================== */
.mp-tooltip {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(6, 22, 37, .95);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(6, 22, 37, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s var(--ease);
  will-change: transform;
}
.mp-tooltip.is-visible { opacity: 1; }
.mp-tooltip.has-fields { display: block; }
.mp-tooltip-head { display: flex; align-items: center; gap: 9px; }
.mp-tooltip-fields {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.mp-tooltip-field { display: flex; gap: 8px; justify-content: space-between; font-size: 12px; }
.mp-tooltip-field b { color: rgba(255, 255, 255, .62); font-weight: 500; }
.mp-tooltip-field i { color: #fff; font-style: normal; font-weight: 600; }
.mp-tooltip-number { font-weight: 700; }
.mp-tooltip-price {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mp-tooltip-status {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--status-fill);
  color: var(--status-ink);
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   08  LOT DRAWER
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 22, 37, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--text-invert);
}
.drawer__eyebrow {
  color: var(--emerald-400);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.drawer__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.drawer__head .iconbtn { color: rgba(238, 244, 251, .8); }
.drawer__head .iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.drawer__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.drawer__price-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
}

.facts {
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.fact dt { color: var(--text-muted); font-size: 13px; }
.fact dd {
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.drawer__section { margin-bottom: 20px; }
.drawer__section-title {
  margin-bottom: 7px;
  color: var(--gray-500);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.drawer__notes { color: var(--gray-700); font-size: 14px; line-height: 1.6; }

.drawer__cta { padding-top: 4px; }
.drawer__hint { margin-top: 10px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }

/* Inquiry (mocked) */
.inquiry { margin-top: 16px; }
.inquiry__form {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-25);
}
.inquiry__actions { display: flex; gap: 8px; }
.inquiry__done {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius);
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.inquiry__done .icon { width: 20px; height: 20px; margin-top: 2px; }
.inquiry__done strong { display: block; color: var(--navy-900); }
.inquiry__done span { color: var(--gray-700); font-size: 13.5px; }

/* Admin face */
.admin-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: #6b3d05;
  font-size: 12.8px;
  line-height: 1.5;
}
.admin-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--amber-600); }

.admin-form {
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-25);
}
.admin-form__actions { display: flex; gap: 8px; margin-top: 4px; }

/* ==========================================================================
   08b  ADMIN PAGE — workspace, editor, shape handles
   ========================================================================== */

.masthead--admin {
  background: linear-gradient(135deg, #0a1a2b 0%, var(--navy-800) 55%, var(--navy-600) 100%);
}
.masthead--admin .brand__eyebrow { color: #7dd3fc; }

/* Map left, editor right; the editor is a fixed column so the map gets the rest. */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  align-items: start;
}
.workspace__map { min-width: 0; }
.controls--compact { padding: 10px 12px; margin-bottom: 12px; }
.map__frame--tall { height: clamp(460px, calc(100vh - 300px), 900px); }

/* --- Editor column ------------------------------------------------------- */
.editor {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- Lot picker ---------------------------------------------------------- */
.editor__head--list { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }

.editor__back {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3fc;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.editor__back:hover { color: #fff; text-decoration: underline; }

.editor__listsearch { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.editor__listsearch .search input { width: 100%; }
.editor__listsearch .search input:focus { width: 100%; }
.editor__listsearch .editor__hint { margin-top: 8px; }

.lotlist {
  flex: 1;
  min-height: 160px;
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.lotrow {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  cursor: pointer;
}
.lotrow:hover { background: var(--gray-50); border-color: var(--border); }
.lotrow:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: -2px; }
.lotrow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--status-fill, var(--gray-300));
  box-shadow: 0 0 0 1px var(--status-stroke, var(--gray-400));
}
.lotrow__number { font-size: 14px; font-weight: 700; color: var(--navy-900); }
.lotrow__price {
  color: var(--gray-600);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lotrow__marks { display: inline-flex; gap: 3px; }
.lotrow__mark {
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--navy-700);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.lotrow__mark--shape { background: var(--emerald-600); }
.lotrow__mark--fields { background: var(--amber-600); font-style: normal; }

.editor__foot--legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 11.5px;
}

.editor__empty {
  padding: 28px 22px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.editor__empty .icon { width: 26px; height: 26px; color: var(--gray-300); }
.editor__empty h2 { margin: 10px 0 6px; color: var(--navy-900); font-size: 17px; }
.editor__legend { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.editor__legend dt { margin-top: 10px; color: var(--navy-800); font-size: 12.5px; font-weight: 700; }
.editor__legend dd { margin: 2px 0 0; font-size: 12.5px; }

.editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--text-invert);
}
.editor__eyebrow {
  color: #7dd3fc;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.editor__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.editor__head .iconbtn { color: rgba(238, 244, 251, .8); }
.editor__head .iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.editor__body { flex: 1; overflow-y: auto; padding: 16px 18px; overscroll-behavior: contain; }

.editor__section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.editor__section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.editor__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.editor__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 11px;
  letter-spacing: 0;
}
.editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.editor__hint { margin-top: 8px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.editor__hint code { background: var(--gray-100); padding: 1px 5px; border-radius: 4px; }
.editor__empty-line { color: var(--gray-400); font-size: 12.5px; font-style: italic; }
.editor__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.editor textarea.input { resize: vertical; min-height: 62px; line-height: 1.5; }
.input--sm { padding: 7px 10px; font-size: 13.5px; }

.editor__editing {
  padding: 12px 14px;
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 12.8px;
  line-height: 1.5;
}
.editor__editing strong { color: var(--navy-900); }
.editor__editing b { color: var(--navy-900); }

.editor__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--gray-25);
}
.editor__dirty { color: var(--amber-600); font-size: 12.5px; font-weight: 600; }

/* Custom field rows */
.fieldrows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fieldrow { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 6px; align-items: center; }
.fieldrow .iconbtn { width: 28px; height: 28px; color: var(--gray-400); }
.fieldrow .iconbtn:hover { color: var(--rose-600); background: var(--rose-50); }
.fact--custom dt { color: var(--navy-700); font-weight: 600; }

/* --- Shape editor handles ------------------------------------------------ */
.map__svg.is-editing-shape { cursor: default; }
.map__svg.is-editing-shape .mp-lot { pointer-events: none; }
.mp-editor { pointer-events: none; }
.mp-editor > * { pointer-events: auto; }

.mp-edit-outline {
  fill: rgba(43, 92, 143, .16);
  stroke: var(--navy-600);
  stroke-dasharray: 6 3;
  pointer-events: none;
}
.mp-edit-vertex {
  fill: #fff;
  stroke: var(--navy-700);
  cursor: grab;
}
.mp-edit-vertex:hover { fill: var(--emerald-400); }
.mp-edit-vertex.is-selected { fill: var(--emerald-500); stroke: var(--emerald-700); }
.mp-edit-add {
  fill: rgba(255, 255, 255, .9);
  stroke: var(--emerald-600);
  cursor: copy;
}
.mp-edit-add:hover { fill: var(--emerald-400); }
.mp-edit-move {
  fill: var(--navy-700);
  stroke: #fff;
  cursor: move;
}
.mp-edit-move:hover { fill: var(--navy-500); }

/* --- Who's signed in ------------------------------------------------------ */
.whoami {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: 12.5px;
  white-space: nowrap;
}
.whoami__label { color: rgba(238, 244, 251, .55); }
.whoami__email { color: var(--text-invert); font-weight: 600; }
.whoami__out {
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  color: #7dd3fc;
  text-decoration: none;
}
.whoami__out:hover { color: #fff; text-decoration: underline; }

/* --- Status manager (modal) ---------------------------------------------- */
body.has-modal { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 22, 37, .5); }
.modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: calc(100vh - 60px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--text-invert);
}
.modal__head .iconbtn { color: rgba(238, 244, 251, .8); }
.modal__head .iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.modal__title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.modal__body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.modal__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--gray-25);
}
.modal__foot .btn:last-child { margin-left: auto; }

.statusrows { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.statusrow {
  display: grid;
  grid-template-columns: 34px 1fr auto auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-25);
}
.statusrow__colour {
  width: 34px; height: 30px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}
.statusrow__sellable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-600);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.statusrow__count {
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.statusrow .iconbtn { width: 26px; height: 26px; font-size: 13px; }
.editor__hint--warn {
  padding: 9px 12px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  background: var(--amber-50);
  color: #6b3d05;
}

/* Prices that haven't been set read as words, never as $0. */
.drawer__price-value.is-unset { font-size: 20px; color: var(--gray-500); font-weight: 600; }
.mp-tooltip-price.is-unset { color: rgba(255, 255, 255, .7); font-weight: 500; }

/* --- Admin passphrase gate ----------------------------------------------- */
body.is-gated { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  overflow-y: auto;
}
.gate__card {
  width: min(400px, 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.gate__eyebrow {
  color: var(--emerald-600);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gate__title { margin: 4px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.gate__intro { margin-bottom: 20px; color: var(--text-muted); font-size: 13.5px; }
.gate__error {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid var(--rose-600);
  border-radius: var(--radius-sm);
  background: var(--rose-50);
  color: var(--rose-700);
  font-size: 13px;
}
.gate__hint { margin-top: 14px; color: var(--text-muted); font-size: 12.5px; }
.gate__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--gray-400);
  font-size: 11.5px;
  line-height: 1.5;
}
.gate__back { margin-top: 12px; font-size: 12.5px; }

/* ==========================================================================
   09  TOAST, LOADER, FOOTER
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 120;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--text-invert);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 130%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast[data-tone="warn"] { background: #92400e; }

.loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.loader__spinner {
  width: 26px; height: 26px;
  border: 2.5px solid var(--gray-200);
  border-top-color: var(--emerald-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loader__error { color: var(--rose-600); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer {
  padding: 18px 24px 30px;
  border-top: 1px solid var(--border);
  color: var(--gray-400);
  font-size: 12px;
  text-align: center;
}
.footer p { max-width: 720px; margin: 0 auto; }

/* ==========================================================================
   10  RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  /* Editor drops below the map rather than squeezing it. */
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .editor { position: static; max-height: none; }
  .map__frame--tall { height: clamp(400px, 60vh, 700px); }
}

@media (max-width: 1180px) {
  .masthead__inner { flex-wrap: wrap; gap: 14px 20px; }
  .masthead__stats { order: 3; width: 100%; margin-left: 0; }
  .stat { flex: 1; padding: 4px 12px; text-align: left; }
  .stat:first-child { padding-left: 0; }
  .masthead__admin { margin-left: auto; }
}

@media (max-width: 900px) {
  .controls { align-items: stretch; }
  .controls__group--quick { padding-left: 0; border-left: 0; }
  .controls__group--search { margin-left: 0; width: 100%; }
  .search { flex: 1; }
  .search input, .search input:focus { width: 100%; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .masthead__inner { padding: 12px 16px; }
  .brand__title { font-size: 17px; }
  .brand__subtitle { display: none; }
  .shell { padding: 14px 16px 22px; }
  .controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .controls__group { flex-wrap: wrap; }
  /* Keep the frame near the canvas's own aspect ratio so a width-fitted map
     doesn't leave big empty bands above and below the lots. */
  .map__frame { height: clamp(240px, min(52vh, 62vw), 460px); }
  .map__help { font-size: 11.5px; }
  .map__help .map__help-kbd { display: none; }   /* no keyboard on a phone */

  /* Zoom controls drop below the canvas rather than covering lots. */
  .map__controls {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .map__zoom { order: -1; margin-right: auto; }

  /* Three stats can't sit on one narrow row — let them wrap instead of
     pushing the page into horizontal scroll. */
  .masthead__inner { gap: 10px 14px; }
  .masthead__stats { flex-wrap: wrap; gap: 2px 0; }
  .stat { flex: 1 1 auto; min-width: 0; padding: 3px 10px; }
  .stat__value { font-size: 15px; white-space: nowrap; }
  .stat__label { font-size: 9.5px; letter-spacing: .05em; }
  .switch__label { display: none; }
  .switch { padding: 6px; }

  /* Drawer becomes a bottom sheet */
  .drawer {
    top: auto; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: min(84vh, 640px);
    border-left: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transform: translateY(100%);
  }
  .drawer.is-open { transform: translateY(0); }
  .drawer__head { padding: 16px 16px 14px; }
  .drawer__body { padding: 16px; }
}

/* Backdrop is only needed when the drawer covers the map (small screens). */
@media (min-width: 701px) {
  .backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .masthead__admin, .controls, .map__controls, .map__help, .drawer, .backdrop,
  .toast, .skip-link, .source { display: none !important; }
  .map__frame { height: auto; aspect-ratio: 2 / 1; box-shadow: none; }
}
