:root {
  color-scheme: dark;
  --bg: #0c0f0e;
  --bg-raised: #111513;
  --panel: #151a17;
  --panel-2: #1a201c;
  --panel-3: #202720;
  --text: #edf1eb;
  --muted: #a5ada5;
  --muted-2: #737d75;
  --accent: #d7b66b;
  --accent-soft: rgba(215, 182, 107, .14);
  --accent-line: rgba(215, 182, 107, .42);
  --line: #2b342e;
  --line-strong: #3a463e;
  --success: #80bd90;
  --danger: #db7d78;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% -10%, rgba(127, 145, 117, .08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
output {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #f0cf80;
  outline-offset: 3px;
}

button {
  color: inherit;
}

.container {
  width: min(1540px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(20, 25, 22, .92), rgba(10, 12, 11, .72)),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, .012) 26px 27px);
}

.hero::after {
  content: "KORD";
  position: absolute;
  right: -22px;
  bottom: -74px;
  color: rgba(255, 255, 255, .022);
  font-size: clamp(130px, 19vw, 320px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(26px, 5vw, 86px);
  align-items: end;
  margin-top: 10px;
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-copy > p {
  max-width: 620px;
  margin: 0 0 4px;
  color: #c7cec7;
  font-size: clamp(15px, 1.4vw, 18px);
}

.tabs-shell {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 14, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.tabs-shell .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tabs-label {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.location-tabs {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 7px;
  padding: 10px 2px;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.location-tab {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: #ced4ce;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .16s, background .16s, color .16s, transform .16s;
}

.location-tab:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}

.location-tab:active {
  transform: translateY(1px);
}

.location-tab[aria-selected="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #f2dfb4;
}

.tab-name {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.tab-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .24);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.location-tab[aria-selected="true"] .tab-count {
  background: var(--accent);
  color: #17140d;
}

.app-main {
  padding-top: 36px;
  padding-bottom: 76px;
}

.location-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.location-intro h2 {
  margin: 7px 0 7px;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.location-intro h2 span {
  color: #79827b;
  font-size: .52em;
  font-weight: 500;
  letter-spacing: -.01em;
}

.location-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.visible-counter {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 4px;
}

.visible-counter strong {
  color: var(--accent);
  font-size: 26px;
}

.visible-counter span {
  color: var(--muted);
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 14px;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.filter-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.filter-head h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-actions > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--accent);
}

.filter-chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.filter-chip {
  --type-color: var(--accent);
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 8px;
  border: 1px solid color-mix(in srgb, var(--type-color) 44%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--type-color) 9%, var(--panel));
  cursor: pointer;
  transition: opacity .16s, filter .16s, background .16s, border-color .16s;
}

.filter-chip:hover {
  filter: brightness(1.12);
}

.filter-chip[aria-pressed="false"] {
  border-color: var(--line);
  background: #121613;
  opacity: .47;
  filter: grayscale(.72);
}

.filter-chip img {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  object-fit: contain;
}

.filter-chip-copy {
  display: grid;
  text-align: left;
}

.filter-chip-copy strong {
  font-size: 12px;
  line-height: 1.1;
}

.filter-chip-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.filter-chip-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .27);
  color: var(--type-color);
  font-size: 12px;
  font-weight: 900;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.map-panel,
.details-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-panel {
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1a201c, #161b18);
}

.map-caption {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.map-caption-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.map-caption > div {
  display: grid;
  min-width: 0;
}

.map-caption strong,
.map-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-caption strong {
  font-size: 14px;
}

.map-caption span {
  color: var(--muted);
  font-size: 11px;
}

.map-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.control-button,
.zoom-value {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #111512;
}

.control-button {
  display: inline-grid;
  min-width: 38px;
  place-items: center;
  padding: 0 10px;
  color: #d9ded9;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.control-button:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #f1d99f;
}

.control-button-wide {
  display: inline-flex;
  gap: 7px;
  font-size: 12px;
}

.control-button-wide span {
  font-size: 17px;
}

.zoom-value {
  display: inline-grid;
  min-width: 58px;
  place-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.map-viewport {
  position: relative;
  height: clamp(520px, 72vh, 920px);
  overflow: hidden;
  background-color: #070908;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 32px 32px;
  cursor: grab;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}

.map-viewport.dragging {
  cursor: grabbing;
}

.map-viewport:focus-visible {
  outline-offset: -3px;
}

.map-stage {
  --marker-inverse: 1;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.map-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.marker-layer {
  position: absolute;
  inset: 0;
}

.map-marker {
  --type-color: var(--accent);
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 4px;
  border: 2px solid color-mix(in srgb, var(--type-color) 84%, white 6%);
  border-radius: 50% 50% 50% 8px;
  background: rgba(12, 15, 13, .94);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .56), inset 0 0 0 2px rgba(255, 255, 255, .035);
  cursor: pointer;
  transform: scale(var(--marker-inverse)) rotate(-45deg) translate(-50%, -50%);
  transform-origin: 0 0;
  transition: background .14s, border-color .14s, filter .14s;
}

.map-marker > img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transform: rotate(45deg);
  pointer-events: none;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.selected {
  z-index: 9;
  background: color-mix(in srgb, var(--type-color) 18%, #111512);
  filter: brightness(1.16);
}

.map-marker.selected {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--type-color) 26%, transparent), 0 7px 20px rgba(0, 0, 0, .66);
}

.marker-order {
  position: absolute;
  right: -7px;
  bottom: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 4px;
  border: 2px solid #101411;
  border-radius: 999px;
  background: var(--type-color);
  color: #10130f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
  pointer-events: none;
}

.marker-tooltip {
  position: absolute;
  bottom: calc(100% + 13px);
  left: 50%;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 16, 14, .97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .48);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg) translateY(4px);
  transition: opacity .12s, transform .12s;
}

.map-marker:hover .marker-tooltip,
.map-marker:focus-visible .marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.map-marker[hidden] {
  display: none;
}

.map-help,
.map-credit {
  position: absolute;
  z-index: 8;
  bottom: 12px;
  border: 1px solid rgba(67, 79, 70, .76);
  border-radius: 8px;
  background: rgba(11, 14, 12, .86);
  color: #8e988f;
  font-size: 10px;
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.map-help {
  left: 12px;
  display: flex;
  gap: 16px;
  padding: 7px 9px;
}

.map-credit {
  right: 12px;
  padding: 7px 9px;
}

.map-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(7, 9, 8, .86);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.map-loading[hidden] {
  display: none;
}

.map-loading span {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

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

.empty-map-state {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 260px;
  justify-items: center;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(17, 21, 18, .94);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
}

.empty-map-state[hidden] {
  display: none;
}

.empty-map-state span {
  margin: 4px 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.empty-map-state button {
  padding: 8px 11px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #edd59d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.details-panel {
  height: calc(clamp(470px, 68vh, 860px) + 67px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.details-placeholder {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.placeholder-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
  font-weight: 300;
}

.details-placeholder h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.details-placeholder > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.placeholder-tip {
  display: grid;
  max-width: 260px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.placeholder-tip b {
  color: var(--muted);
}

.details-content {
  padding: 18px;
}

.details-content[hidden] {
  display: none;
}

.details-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.details-type {
  --type-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--type-color) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--type-color) 9%, var(--panel));
  color: color-mix(in srgb, var(--type-color) 84%, white 16%);
  font-size: 10px;
  font-weight: 800;
}

.details-type img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.details-close {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101411;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.details-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.details-content > h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.details-desc {
  margin: 0 0 17px;
  color: #c0c8c0;
  font-size: 13px;
  white-space: pre-line;
}

.details-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 11px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111512;
  font-size: 11px;
}

.details-meta dt {
  color: var(--muted-2);
}

.details-meta dd {
  margin: 0;
  color: #d2d8d2;
  word-break: break-word;
}

.gallery-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.details-gallery {
  display: grid;
  gap: 9px;
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080a09;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.gallery-button:hover {
  border-color: var(--accent-line);
}

.gallery-button img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.gallery-button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(7, 9, 8, .82);
  color: #dfe4df;
  font-size: 9px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .15s;
}

.gallery-button:hover span,
.gallery-button:focus-visible span {
  opacity: 1;
}

.source-language-note {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-left: 2px solid var(--accent-line);
  background: var(--accent-soft);
  color: #b9af96;
  font-size: 10px;
}

footer {
  padding: 25px 0 36px;
  border-top: 1px solid var(--line);
  background: #090b0a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  display: grid;
  margin: 0;
  font-size: 12px;
}

.footer-inner span {
  color: var(--muted-2);
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  background: rgba(4, 5, 4, .9);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  display: grid;
  width: min(1760px, 100%);
  height: min(1100px, 100%);
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0e0c;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
}

.lightbox-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #121713;
}

.lightbox-heading {
  min-width: 0;
}

.lightbox-type {
  --type-color: var(--accent);
  display: block;
  margin-bottom: 2px;
  color: var(--type-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lightbox-heading h2 {
  overflow: hidden;
  margin: 0;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.lightbox-actions a {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: #0b0e0c;
  color: #dfe4df;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.lightbox-actions a:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.lightbox-actions button,
.lightbox-nav {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(8, 11, 9, .9);
  color: white;
  cursor: pointer;
}

.lightbox-actions button {
  font-size: 25px;
  line-height: 1;
}

.lightbox-actions .lightbox-zoom-toggle {
  width: auto;
  min-width: 54px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
}

.lightbox-actions button:disabled {
  opacity: .42;
  cursor: default;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(132, 148, 125, .1), transparent 34rem),
    #060806;
}

.lightbox-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.lightbox-canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.lightbox-canvas > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: #080a09;
  object-fit: scale-down;
  object-position: center center;
  cursor: zoom-in;
  transition: transform .16s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-canvas.is-swiping > img {
  cursor: grabbing;
  transition: none;
}

.lightbox-canvas.is-actual-size {
  overflow: auto;
  scrollbar-color: var(--accent) #0b0e0c;
  touch-action: pan-x pan-y;
}

.lightbox-canvas.is-actual-size > img {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: none;
  object-position: center;
  cursor: zoom-out;
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-actions button:not(:disabled):hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav-prev {
  left: 14px;
}

.lightbox-nav-next {
  right: 14px;
}

.lightbox-footer {
  min-width: 0;
  padding: 12px 16px 13px;
  border-top: 1px solid var(--line);
  background: #121713;
}

.lightbox-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lightbox-copy p {
  max-width: 70ch;
  max-height: min(6.5em, 16dvh);
  margin: 0;
  overflow-y: auto;
  color: #bfc7bf;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}

.lightbox-copy span {
  flex: 0 0 auto;
  max-width: 34ch;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-align: right;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.lightbox-thumbs[hidden] {
  display: none;
}

.lightbox-thumbs button {
  width: 78px;
  height: 52px;
  flex: 0 0 auto;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #080a09;
  cursor: pointer;
}

.lightbox-thumbs button[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.lightbox-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.map-layout:fullscreen {
  grid-template-columns: minmax(0, 1fr);
  height: 100vh;
  padding: 14px;
  background: var(--bg);
}

.map-layout:fullscreen .map-panel {
  height: calc(100vh - 28px);
}

.map-layout:fullscreen .map-panel {
  display: flex;
  flex-direction: column;
}

.map-layout:fullscreen .map-viewport {
  height: auto;
  flex: 1;
}

@media (max-width: 1120px) {
  .map-layout,
  .map-layout:fullscreen {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy > p {
    max-width: 720px;
  }

  .map-layout,
  .map-layout:fullscreen {
    grid-template-columns: 1fr;
  }

  .details-panel,
  .map-layout:fullscreen .details-panel {
    height: auto;
    min-height: 250px;
    max-height: none;
  }

  .details-placeholder {
    min-height: 250px;
  }

  .details-gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .map-layout:fullscreen .details-panel {
    display: none;
  }
}

@media (max-width: 700px) {
  .image-lightbox {
    padding: 0;
  }

  .lightbox-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
  }

  .lightbox-header {
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
  }

  .lightbox-actions a {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    font-size: 0;
  }

  .lightbox-actions a::after {
    content: "↗";
    font-size: 19px;
  }

  .lightbox-heading h2 {
    font-size: 16px;
  }

  .lightbox-nav {
    width: 46px;
    height: 50px;
  }

  .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox-nav-next {
    right: 8px;
  }

  .lightbox-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .lightbox-copy {
    display: block;
  }

  .lightbox-copy p {
    max-height: 6.2em;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.5;
  }

  .lightbox-copy span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .container {
    width: min(100% - 24px, 1540px);
  }

  .hero {
    padding: 30px 0 26px;
  }

  .hero h1 {
    font-size: clamp(35px, 12vw, 54px);
  }

  .tabs-shell .container {
    width: 100%;
    gap: 0;
  }

  .tabs-label {
    display: none;
  }

  .location-tabs {
    padding-inline: 12px;
  }

  .app-main {
    padding-top: 27px;
  }

  .location-intro {
    display: block;
  }

  .location-intro h2 span {
    display: block;
    margin-top: 5px;
  }

  .visible-counter {
    margin-top: 12px;
  }

  .filter-head {
    align-items: center;
  }

  .filter-actions {
    align-self: flex-end;
  }

  .map-toolbar {
    display: block;
    padding: 11px;
  }

  .map-caption {
    margin: 0 4px 10px;
  }

  .map-controls {
    width: 100%;
  }

  .control-button-wide {
    flex: 1;
    justify-content: center;
  }

  .map-viewport {
    height: max(390px, 57vh);
  }

  .details-panel {
    height: auto;
  }

  .map-help span:nth-child(2),
  .map-help span:nth-child(3),
  .map-credit {
    display: none;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .location-tab {
    min-height: 39px;
  }

  .filter-panel {
    padding-inline: 12px;
  }

  .filter-head {
    display: block;
  }

  .filter-actions {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .control-button,
  .zoom-value {
    min-width: 34px;
    height: 36px;
  }

  .zoom-value {
    min-width: 50px;
  }

  .map-viewport {
    height: 390px;
  }

  .map-help {
    bottom: 8px;
    left: 8px;
  }
}

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

@media print {
  .tabs-shell,
  .filter-panel,
  .map-controls,
  .details-panel,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .map-layout {
    display: block;
  }

  .map-panel {
    border: 0;
    box-shadow: none;
  }
}
