@font-face{font-family:PlanePixel;src:url(../fonts/plane-pixel.ttf) format('truetype');font-display:swap}:root {
  font-family: var(--gh-font-body, Inter, Geist, system-ui, sans-serif);
  color: #1b3028;
  background: #f7f5ef;
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #1b3028;
  --muted: #4e6359;
  --edge: #ced6c8;
  --control: #fcfbf6;
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto minmax(235px, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  min-width: 0;
}

button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, .map-view:focus-visible {
  outline: 2px solid #397658;
  outline-offset: 3px;
}
button:disabled { cursor: default; }

.masthead {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px clamp(16px, 3vw, 42px);
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 11px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.055em;
}
.brand-mark {
  display: block;
  position: relative;
  height: 32px;
  width: 32px;
  border-radius: 9px;
  background: #244537;
  flex: none;
}
.brand-mark i {
  position: absolute;
  inset-inline: 7px;
  height: 10px;
  clip-path: polygon(50% 0, 100% 48%, 50% 100%, 0 48%);
}
.brand-mark i:nth-child(1) { top: 15px; background: #769b73; }
.brand-mark i:nth-child(2) { top: 12px; background: #a7c490; }
.brand-mark i:nth-child(3) { top: 8px; background: #d8e7b9; }
.place {
  border-left: 1px solid var(--edge);
  padding-left: 22px;
  margin-right: auto;
  min-width: 0;
}
h1 { margin: 0; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.1; letter-spacing: -.045em; }
.place p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.layers {
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #edece3;
  flex: none;
}
.layers button {
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
  cursor: pointer;
}
.layers button:hover:not(:disabled):not([aria-pressed="true"]) { background: #e3e6da; color: var(--ink); }
.layers button[aria-pressed="true"] { color: #fffdf3; background: #294c3b; }

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #eeeee3;
  background-image: radial-gradient(ellipse at 50% 42%, #f5f3e9 0%, #e9ebdf 100%);
}
.map-view {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
  overflow: hidden;
}
.map-view:focus-visible { outline-offset: -4px; }
.map-view[data-dragging] { cursor: grabbing; }
#map, .overview { display: block; position: absolute; width: 100%; height: 100%; pointer-events: none; }
#map, .overview { image-rendering: crisp-edges; image-rendering: pixelated; }
#map { inset: 0; }
.overview { inset: 0; padding: clamp(18px, 3vw, 48px); object-fit: contain; }
.map-view[data-ready] .overview { display: none; }
.banner-planes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.banner-planes[hidden] { display: none; }
/* Fixed native atlas dimensions; the complete aircraft scales with the map. */
.banner-flight { position: absolute; left: 0; top: 0; width: 680px; height: 112px; display: flex; align-items: center; transform-origin: 0 0; filter: drop-shadow(0 6px 2px #233b332b); will-change: transform; }
.banner-flight[data-east="true"] { flex-direction: row-reverse; }
.banner-flight > img { width: 156px; height: auto; image-rendering: pixelated; flex: none; }
.banner-flight[data-east="true"] > img { transform: scaleX(-1); }
.plane-tow-rope { display: block; flex: 0 0 28px; width: 28px; height: 112px; image-rendering: pixelated; }
.plane-banner { display: block; width: 496px; height: 112px; flex: none; image-rendering: pixelated; }
.map-hud, .map-controls, .map-caption, .landmark-card, .map-status { z-index: 2; }
.map-landmarks, .map-areas, .city-areas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.map-areas[data-city-view] { visibility: hidden; }
.city-area-label {
  position: absolute;
  height: 42px;
  padding: 5px 10px;
  display: grid;
  gap: 2px;
  place-content: center;
  border: 1px solid #a9b7ae;
  border-radius: 6px;
  background: #f4f4eaf2;
  box-shadow: 0 2px 5px #253f3220;
  color: #465b53;
  font: 700 10px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  text-align: center;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
}
.city-area-label[hidden] { display: none; }
.city-area-label small { color: #7b877d; font-size: 8px; letter-spacing: .03em; }
.city-area-label[data-status="live"] { border-color: #294c3b; color: #fffbe7; background: #294c3b; }
.city-area-label[data-status="live"] small { color: #d7e7c4; }
.city-area-label:hover, .city-area-label[aria-expanded="true"] { outline: 2px solid #9bad8c; outline-offset: 2px; }
.map-area-label {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 185px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid #b4c1b9;
  border-radius: 3px;
  background: #253639;
  color: #fcf5dc;
  box-shadow: 0 2px 0 #122221;
  font: 700 10px/1.25 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.map-area-label:hover, .map-area-label[aria-current="true"] {
  border-color: #f2ce79;
  color: #ffdf9d;
}
.map-marker {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff5dc;
  pointer-events: auto;
  cursor: pointer;
}
.map-marker::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff5dc;
  border-radius: 50%;
  background: #a36c3c;
  box-shadow: 0 0 0 1px #31281d;
}
.map-marker[data-place]::before { background: #e8b751; }
.map-marker[aria-expanded="true"]::before { background: #2f6a4f; }
.map-landmarks[data-small-pins] .map-marker:not([data-signal])::before {
  width: 6px;
  height: 6px;
  border-width: 1px;
}
.map-marker[data-covered-pin]::before { display: none; }
.map-marker[data-signal]::before {
  width: 9px;
  height: 18px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 23%, #fa6560 1.6px, transparent 2px),
    radial-gradient(circle at 50% 50%, #f6c553 1.6px, transparent 2px),
    radial-gradient(circle at 50% 77%, #5bc787 1.6px, transparent 2px), #263332;
}
.marker-label {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid #d2b18a;
  border-radius: 3px;
  background: #382e24;
  box-shadow: 0 1px 0 1px #221d18;
  font: 700 var(--badge-font-size, 10px)/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.map-marker[data-logo] .marker-label {
  display: block;
  padding: 0;
  overflow: clip;
  border: 0;
  background: none;
  box-shadow: none;
  perspective: 240px;
  pointer-events: none;
}
.map-landmarks[data-badge-size="compact"] .map-marker:not([data-logo]) .marker-label { padding-block: 2px; }
.map-landmarks[data-badge-size="small"] .map-marker:not([data-logo]) .marker-label {
  padding: 1px 4px;
  box-shadow: none;
}
.logo-coin {
  --coin-half-depth: 3px;
  --coin-padding: 5px;
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}
.logo-coin::before, .logo-coin::after, .logo-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.logo-coin::before, .logo-coin::after {
  content: "";
  background: linear-gradient(90deg, #9d5e22, #dc9d3d 48%, #995820);
}
.logo-coin::after {
  left: calc(50% - var(--coin-half-depth));
  right: calc(50% - var(--coin-half-depth));
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #92551f 0 1px, #dc9d3d 1px 2px);
  transform: rotateY(90deg);
}
.logo-face {
  display: block;
  padding: var(--coin-padding);
  border: 1px solid #ffe6a4;
  background-color: #fffdf3;
  box-shadow: inset 0 0 0 1px #805020, inset 0 0 0 3px #e4b658;
  backface-visibility: hidden;
  transform: translateZ(var(--coin-half-depth));
}
.logo-face--back { transform: rotateY(180deg) translateZ(var(--coin-half-depth)); }
.map-marker[data-dark-logo] .logo-face { background-color: #232321; }
.logo-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-landmarks[data-badge-size="compact"] .logo-coin {
  --coin-half-depth: 2px;
  --coin-padding: 4px;
  inset: 1px;
}
.map-landmarks[data-badge-size="small"] .logo-coin {
  --coin-half-depth: 1.5px;
  --coin-padding: 2px;
  inset: 1px;
}
.map-landmarks[data-badge-size="small"] .logo-face { box-shadow: inset 0 0 0 1px #bd8a39; }
.map-marker[aria-expanded="true"] .logo-coin { animation: spin-logo 8s linear infinite; }
@keyframes spin-logo {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.map-landmarks[data-page-hidden] .logo-coin { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .map-marker[aria-expanded="true"] .logo-coin { animation: none; }
}
.map-marker:is(:hover, :focus-visible) { z-index: 1; }
.map-caption, .map-controls {
  position: absolute;
  bottom: 17px;
  display: flex;
  align-items: center;
  border: 1px solid #cbd4c6;
  border-radius: 11px;
  background: var(--control);
  box-shadow: 0 2px 14px #203b2310;
}
.map-caption {
  left: 18px;
  gap: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 630;
  white-space: nowrap;
  pointer-events: none;
}
.caption-dot { width: 4px; height: 4px; border-radius: 50%; background: #7d927c; }
.map-controls { right: 18px; padding: 3px; }
.landmark-picker {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: min(275px, calc(100% - 146px));
  pointer-events: none;
}
.landmark-picker :is(select, button) { pointer-events: auto; }
.landmark-picker:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.map-hud select {
  display: block;
  max-width: 100%;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid #becbbc;
  border-radius: 9px;
  background: #faf9f3;
  color: #243b32;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}
.area-picker {
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: 245px;
  padding: 7px;
  border: 1px solid #cbd4c6;
  border-radius: 11px;
  background: var(--control);
  box-shadow: 0 2px 14px #203b2310;
}
.area-picker label {
  display: block;
  margin: 0 4px 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.area-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.area-heading label { margin-bottom: 0; }
#show-lagos { padding: 3px 8px; border: 1px solid #becbbc; border-radius: 5px; background: #e9eee0; color: #294c3b; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
#show-lagos:disabled { opacity: .45; cursor: wait; }
.area-picker select { width: 100%; }
#toggle-markers, .landmark-actions :is(button, a), .facade-header button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #becbbc;
  border-radius: 8px;
  background: #faf9f3;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.landmark-actions a:not([hidden]) { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.landmark-actions a:hover { background: #eceee4; }
#toggle-markers[aria-pressed="true"] {
  color: #f7f4e8;
  background: #355543;
  border-color: #355543;
}
.landmark-card {
  position: absolute;
  bottom: 64px;
  left: 18px;
  width: min(330px, calc(100% - 36px));
  max-height: calc(100% - 76px);
  overflow: auto;
  padding: 12px 13px;
  border: 1px solid #cad2c5;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 2px 20px #203b2335;
}
.landmark-card h2 { margin: 0 28px 0 0; font-size: 17px; line-height: 1.2; }
.landmark-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.landmark-card #landmark-category { font-size: 11px; font-weight: 700; }
.landmark-summary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 8px;
}
.landmark-summary p { flex: 1; margin: 0; }
.landmark-visual { flex: 0 0 clamp(104px, 40%, 124px); }
.landmark-visual :is(button, figure) {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd4c6;
  border-radius: 7px;
  background: #eeeee3;
}
.landmark-visual button { cursor: zoom-in; }
.landmark-visual button:hover { border-color: #578367; }
.landmark-visual :is(img, canvas) {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  image-rendering: pixelated;
}
.landmark-visual :is(button > span, figcaption) {
  display: block;
  padding: 4px;
  border-top: 1px solid #cbd4c6;
  background: var(--control);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
#close-landmark, #close-district {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
#close-landmark:hover, #close-district:hover { background: #eceee4; }
.district-card .district-status { color: #88682b; font-size: 11px; font-weight: 750; text-transform: uppercase; }
#return-lekki { color: #fffbe7; background: #355543; border-color: #355543; }
.landmark-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.landmark-actions #zoom-landmark { color: #f8f7ee; background: #355543; border-color: #355543; }
#facade-dialog {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 14px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}
#facade-dialog::backdrop { background: #1b3028ad; }
.facade-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.facade-header h2 { margin: 0; font-size: clamp(17px, 3vw, 24px); }
#facade-image:not([hidden]) {
  display: block;
  width: 100%;
  max-height: 70dvh;
  margin: 10px 0;
  object-fit: contain;
  image-rendering: pixelated;
  background: #eeeee3;
}
#facade-full { color: var(--muted); font-size: 13px; font-weight: 650; }
.map-controls button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 43px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 23px;
  font-weight: 560;
  cursor: pointer;
}
.map-controls button:hover:not(:disabled) { background: #e8eee2; }
.map-controls button:active:not(:disabled) { background: #dce8d8; }
.map-controls button:disabled { opacity: .37; }
#zoom-value {
  min-width: 60px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
#fit { width: 60px; margin-left: 3px; font-size: 13px; font-weight: 700; }
.fit-mark {
  width: 13px;
  height: 13px;
  background:
    linear-gradient(currentColor 0 0) top left / 5px 1.5px,
    linear-gradient(currentColor 0 0) top left / 1.5px 5px,
    linear-gradient(currentColor 0 0) top right / 5px 1.5px,
    linear-gradient(currentColor 0 0) top right / 1.5px 5px,
    linear-gradient(currentColor 0 0) bottom left / 5px 1.5px,
    linear-gradient(currentColor 0 0) bottom left / 1.5px 5px,
    linear-gradient(currentColor 0 0) bottom right / 5px 1.5px,
    linear-gradient(currentColor 0 0) bottom right / 1.5px 5px;
  background-repeat: no-repeat;
}
.map-status {
  position: absolute;
  inset: 16px 16px auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: var(--control);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 9px 18px;
  align-items: center;
  padding: 11px clamp(16px, 3vw, 42px);
  border-top: 1px solid var(--edge);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}
.footer p { margin: 0; }
.credits { display: flex; align-items: baseline; gap: 5px 8px; flex-wrap: wrap; }
.credits a { color: inherit; text-underline-offset: 2px; }
.gesture-hint { white-space: nowrap; }
.gesture-hint span { margin: 0 4px; }
.touch-hint { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (pointer: coarse) {
  .mouse-hint { display: none; }
  .touch-hint { display: block; }
  .layers button, .map-controls button { min-width: 44px; min-height: 44px; }
}

@media (max-width: 650px) {
  .masthead { display: grid; grid-template-columns: auto 1fr; gap: 11px 14px; padding-block: 11px; }
  .brand, h1 { font-size: 18px; }
  .brand { gap: 8px; }
  .place { padding-left: 14px; }
  .place p { font-size: 12px; }
  .layers { grid-column: 1 / -1; }
  .layers button { min-height: 41px; padding-inline: 7px; }
  .map-hud {
    position: absolute;
    inset: 10px 10px auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
  }
  .map-overview { display: grid; justify-items: start; gap: 6px; min-width: 0; max-width: 52%; }
  .map-caption { position: static; padding: 6px 8px; }
  .area-picker { position: static; max-width: 100%; padding: 5px; pointer-events: auto; }
  .landmark-picker { position: static; min-width: 0; max-width: 48%; }
  .landmark-card { left: 10px; bottom: 65px; width: min(330px, calc(100% - 20px)); }
  .map-controls { right: 10px; bottom: 10px; }
  .footer { justify-content: flex-start; flex-wrap: wrap-reverse; padding-block: 8px; font-size: 11px; }
  .credits { gap: 2px 6px; }
}

@media (max-width: 380px) {
  .layers button { padding-inline: 4px; font-size: 13px; }
  .map-caption { gap: 5px; padding: 6px; font-size: 10px; }
}

@media (max-width: 380px) and (max-height: 620px) {
  .map-overview { display: flex; flex-direction: column-reverse; align-items: flex-start; }
  .area-picker { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .area-picker label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
}

h1, h2 {font-family:var(--gh-font-heading, inherit);}
