:root {
  --ink: #0b1525;
  --paper: #f6f3ed;
  --blue: #2268f6;
  --coral: #ef735f;
  --yellow: #f5c84b;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
button, a { font: inherit; }
button { cursor: pointer; }

.site-shell { min-height: 100vh; overflow: hidden; }
.nav-wrap {
  height: 88px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.brand-mark { display: flex; gap: 2px; align-items: end; height: 24px; }
.brand-mark i { width: 6px; display: block; border-radius: 6px; transform: rotate(25deg); }
.brand-mark i:nth-child(1) { height: 13px; background: var(--blue); }
.brand-mark i:nth-child(2) { height: 20px; background: var(--coral); }
.brand-mark i:nth-child(3) { height: 16px; background: var(--yellow); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-action {
  justify-self: end;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
}
.nav-action span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 8px; border: 1px solid #b9b7b1; border-radius: 50%; }

.hero {
  max-width: 1240px;
  min-height: 560px;
  margin: 0 auto;
  padding: 52px 28px 36px;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 11px;
  font-weight: 700;
}
.eyebrow span { width: 28px; height: 2px; background: var(--coral); }
h1 {
  max-width: 620px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(58px, 6.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -5px;
}
h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 510px; margin: 26px 0 30px; color: #4f5966; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.primary-button {
  height: 52px;
  padding: 0 8px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 0;
  border-radius: 30px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.primary-button span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.text-button { border: 0; background: transparent; color: var(--ink); font-weight: 700; }
.play { width: 34px; height: 34px; display: inline-grid; place-items: center; margin-right: 8px; border: 1px solid #aaa9a3; border-radius: 50%; font-size: 9px; }

.hero-art { position: relative; height: 470px; }
.grid-lines {
  position: absolute; inset: 10px 5px 0 30px;
  background-image: linear-gradient(#d7d2c8 1px, transparent 1px), linear-gradient(90deg, #d7d2c8 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  opacity: .38;
}
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 220px; height: 220px; right: -30px; top: -10px; background: rgba(34,104,246,.12); }
.orb-two { width: 160px; height: 160px; left: 40px; bottom: 20px; background: rgba(239,115,95,.12); }
.art-card { position: absolute; box-shadow: 0 24px 50px rgba(29,39,55,.12); }
.art-card > span { position: absolute; z-index: 3; top: 16px; left: 16px; font-size: 10px; font-weight: 700; }
.card-blue { width: 220px; height: 300px; left: 8%; top: 78px; background: var(--blue); transform: rotate(-7deg); }
.card-coral { width: 220px; height: 280px; right: 4%; top: 28px; background: var(--coral); transform: rotate(8deg); }
.card-yellow { width: 220px; height: 220px; right: 20%; bottom: -8px; background: var(--yellow); transform: rotate(-3deg); }
.blue-rings { position: absolute; width: 180px; height: 180px; left: 20px; top: 62px; border: 18px solid #a7c1ff; border-radius: 50%; }
.blue-rings::before { content: ""; position: absolute; inset: 22px; border: 12px solid #ffd6a3; border-radius: 50%; }
.coral-shape { position: absolute; width: 150px; height: 150px; left: 38px; top: 78px; background: #15243b; border-radius: 50% 50% 12% 50%; transform: rotate(30deg); }
.coral-shape::after { content: ""; position: absolute; width: 70px; height: 70px; left: 40px; top: 40px; background: var(--coral); border-radius: 50%; }
.yellow-sun { position: absolute; width: 110px; height: 110px; left: 55px; top: 65px; border: 18px solid #fff1b8; border-radius: 50%; }
.floating-tag { position: absolute; z-index: 5; right: -10px; bottom: 80px; height: 44px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 12px; border-radius: 24px; background: white; box-shadow: 0 10px 30px rgba(29,39,55,.12); font-size: 12px; font-weight: 700; transform: rotate(-3deg); }
.floating-tag strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--yellow); }

.capabilities { max-width: 1240px; margin: 0 auto; padding: 44px 28px 76px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d5d1c8; }
.capabilities article { position: relative; min-height: 170px; padding: 18px 56px 10px 22px; border-right: 1px solid #d5d1c8; }
.capabilities article:last-child { border-right: 0; }
.capability-number { color: #858890; font-size: 11px; }
.capabilities h2 { margin: 22px 0 10px; font-family: "Manrope", sans-serif; font-size: 23px; }
.capabilities p { max-width: 280px; margin: 0; color: #667080; line-height: 1.55; }
.capabilities button { position: absolute; right: 24px; top: 18px; width: 38px; height: 38px; border: 1px solid #bdbbb4; border-radius: 50%; background: transparent; }
.work-strip { max-width: 1240px; margin: 0 auto 30px; padding: 70px 28px; background: var(--ink); color: white; }
.work-strip p { margin: 0 0 20px; color: var(--yellow); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; }
.work-strip h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 54px; line-height: 1.05; letter-spacing: -3px; }
.contact { max-width: 1240px; margin: 0 auto; padding: 70px 28px 90px; text-align: center; }
.contact p { color: #727984; }
.contact button { border: 0; background: transparent; color: var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
.contact button span { color: var(--coral); }

.map-shell,
.map {
  width: 100%;
  height: 100%;
}

.map-shell {
  position: relative;
}

.map-header {
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 20px;
  height: 58px;
  min-width: 280px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(20, 30, 45, 0.18);
  backdrop-filter: blur(12px);
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 4px solid #ef735f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f5c84b;
}

.map-header h1 {
  flex: 1;
  margin: 0;
  color: #0b1525;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.reload-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #0b1525;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.reload-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.status-card {
  position: absolute;
  z-index: 10;
  left: 20px;
  bottom: 24px;
  max-width: calc(100% - 40px);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 10px;
  background: rgba(11, 21, 37, 0.92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 30, 45, 0.2);
}

.status-card strong { font-size: 13px; }
.status-card span { color: #c6ced8; font-size: 11px; }

.search-bar {
    position: absolute;
  z-index: 12;
  bottom: 20px;
  left: 50%;
  width: min(430px, calc(100% - 740px));
  min-width: 280px;
  height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 32px rgba(20,30,45,.16);
}
.search-bar input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1525;
  font-size: 14px;
}
.search-bar button[type="submit"] {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #0b1525;
  color: #fff;
  font-weight: 700;
}
.search-icon { width: 14px; height: 14px; border: 2px solid #77818d; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -3px; background: #77818d; transform: rotate(45deg); }
.mobile-filter-button { display: none; }
.filter-sliders {
  width: 22px;
  height: 22px;
  display: block;
  background:
    linear-gradient(#303844, #303844) 2px 4px / 18px 2px no-repeat,
    linear-gradient(#303844, #303844) 2px 10px / 18px 2px no-repeat,
    linear-gradient(#303844, #303844) 2px 16px / 18px 2px no-repeat,
    radial-gradient(circle, #fff 0 1.5px, #303844 1.7px 3.5px, transparent 3.7px) 5px 1px / 8px 8px no-repeat,
    radial-gradient(circle, #fff 0 1.5px, #303844 1.7px 3.5px, transparent 3.7px) 11px 7px / 8px 8px no-repeat,
    radial-gradient(circle, #fff 0 1.5px, #303844 1.7px 3.5px, transparent 3.7px) 6px 13px / 8px 8px no-repeat;
}

.poi-panel {
  position: absolute;
  z-index: 11;
  top: 20px;
  right: 0px;
  bottom: 20px;
  width: 330px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 36px rgba(20,30,45,.18);
  backdrop-filter: blur(14px);
}
.poi-panel-header {
  height: 76px;
  padding: 14px 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7e9ec;
}
.poi-panel-header div { display: flex; flex-direction: column; }
.poi-panel-header div span { color: #7b8490; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.poi-panel-header strong { margin-top: 3px; font-size: 17px; }
.poi-panel-header button {
  width: auto;
  min-width: 138px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #1976d2;
  border-radius: 18px;
  background: #fff;
  color: #1976d2;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 34px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.poi-panel-header button:hover:not(:disabled),
.poi-panel-header button:focus-visible:not(:disabled) {
  background: #1976d2;
  color: #fff;
  transform: translateY(-1px);
}
.poi-panel-header button:disabled { opacity: .55; cursor: wait; }
.poi-results { height: calc(100% - 76px); }
.poi-row {
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: transparent;
  color: #0b1525;
  text-align: left;
}
.poi-row:hover, .poi-row:focus-visible { background: #f4f6f8; }
.poi-row img { width: 32px; height: 32px; object-fit: contain; margin-top: 2px; }
.poi-row-copy { min-width: 0; display: flex; flex-direction: column; }
.poi-row-title { min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.poi-row-copy strong {
  min-width: 0;
  flex: 1;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
  font-size: 13px;
}
.poi-visited {
  width: 17px;
  height: 17px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e4f4eb;
  color: #16804a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.poi-category { margin-top: 4px; color: #7b8490; font-size: 11px; }
.poi-city { margin-top: 2px; color: #526170; font-size: 11px; }
.poi-distance { color: #0b1525; font-size: 12px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.poi-empty { padding: 30px 18px; display: flex; flex-direction: column; gap: 6px; color: #69727d; text-align: center; }
.poi-empty strong { color: #0b1525; }

.poi-marker {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 5px rgba(11, 21, 37, 0.28));
  position: relative;
}
.search-marker, .user-marker { width: 32px; height: 32px; filter: drop-shadow(0 4px 5px rgba(11, 21, 37, 0.28)); }

.recenter-button {
  position: static;
  z-index: 12;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: #1976D2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20,30,45,.16);
  cursor: pointer;
}
.recenter-button img {
  width: 30px;
  height: 30px;
  display: block;
}

.category-panel {
  position: absolute;
  z-index: 11;
  top: 0px;
  bottom: 0px;
  left: 0px;
  width: 250px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 36px rgba(20,30,45,.18);
  backdrop-filter: blur(14px);
}
.filters-backdrop { display: none; }
.filters-close { display: none; }
.category-panel-header {
  height: 76px;
  padding: 14px 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7e9ec;
}
.category-panel-header div { display: flex; flex-direction: column; }
.category-panel-header div span { color: #7b8490; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.category-panel-header strong { margin-top: 3px; font-size: 17px; }
.category-panel-header button { border: 0; background: transparent; color: #2268f6; font-size: 12px; font-weight: 700; }
.category-list { height: calc(100% - 134px); overflow-y: auto; padding: 8px 12px 16px; }
.category-node { display: block; }
.category-node label { min-height: 38px; display: flex; align-items: center; gap: 9px; color: #0b1525; font-size: 13px; cursor: pointer; }
.category-node input { width: 17px; height: 17px; accent-color: #2268f6; }
.category-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}
.category-children { margin-left: 22px; padding-left: 8px; border-left: 1px solid #e5e8eb; }
.category-empty { padding: 20px 8px; color: #7b8490; font-size: 12px; }

.preference-row {
  height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e7e9ec;
}
.theme-control {
  height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #9ca9b5;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.theme-control button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #0b1525;
  font-size: 16px;
}
.theme-control button.active { background: #2268f6; color: #fff; }
.language-select {
  height: 38px;
  max-width: 108px;
  border: 1px solid #9ca9b5;
  border-radius: 20px;
  background: #fff;
  color: #0b1525;
  padding: 0 8px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-copy { padding-bottom: 20px; }
  h1 { font-size: clamp(52px, 13vw, 76px); }
  .hero-art { height: 430px; }
  .card-blue { left: 12%; }
  .card-coral { right: 10%; }
  .card-yellow { right: 30%; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities article { border-right: 0; border-bottom: 1px solid #d5d1c8; }
  .map-header { top: 12px; left: 12px; }
  .filters-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(8, 15, 25, .48);
    backdrop-filter: blur(2px);
  }
  .category-panel {
    position: fixed;
    z-index: 31;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    border-radius: 0 16px 16px 0;
    display: none;
  }
  .category-panel.mobile-open { display: block; }
  .category-panel-header { height: 64px; }
  .filters-close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef1f4;
    color: #0b1525;
    font-size: 24px;
    line-height: 1;
  }
  .category-list { height: calc(100% - 122px); }
  .mobile-filter-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #303844;
    font-size: 23px;
  }
  .search-bar { top: 82px; left: 12px; width: calc(100% - 24px); min-width: 0; transform: none; }
  .poi-panel { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; height: 210px; }
  .poi-panel-header { height: 58px; }
  .poi-results { height: calc(100% - 58px); }
  .status-card { display: none; }
  .mapboxgl-ctrl-top-right { top: 152px; right: 12px; }
}
@media (max-width: 560px) {
  .nav-wrap { height: 72px; padding: 0 18px; }
  .nav-action { font-size: 0; }
  .nav-action span { margin: 0; }
  .hero { min-height: auto; padding: 38px 18px 20px; }
  h1 { letter-spacing: -3px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { height: 330px; transform: scale(.86); transform-origin: left top; width: 116%; }
  .card-blue { width: 180px; height: 250px; left: 4%; }
  .card-coral { width: 180px; height: 230px; right: 3%; }
  .card-yellow { width: 180px; height: 180px; right: 24%; }
  .floating-tag { right: 0; }
  .capabilities { padding: 20px 18px 50px; }
  .work-strip { margin: 0 18px 20px; padding: 50px 24px; }
  .work-strip h2 { font-size: 40px; }
  .search-bar { top: auto; bottom: 234px; left: 12px; width: calc(100% - 24px); min-width: 0; transform: none; }
}
@media (max-width: 560px) {
  .map-header {
    top: 12px;
    left: 12px;
    min-width: 260px;
  }

  .recenter-button {
    top: 12px;
    left: 12px;
  }

  .status-card {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .mapboxgl-ctrl-top-right {
    top: 82px;
    right: 12px;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .poi-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: auto;
    width: min(340px, 42vw);
    height: auto;
  }
  .poi-panel-header { height: 58px; }
  .poi-results { height: calc(100% - 58px); }
  .search-bar {
    top: auto;
    right: calc(min(340px, 42vw) + 24px);
    bottom: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    transform: none;
  }
  .mapboxgl-ctrl-top-right {
    top: 12px;
    right: auto;
    left: 12px;
  }
}

.poi-popup strong {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.app-footer {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 60px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(11, 21, 37, .1);
  background: rgba(255, 255, 255, .96);
  color: #0b1525;
  box-shadow: 0 -5px 20px rgba(20, 30, 45, .08);
  backdrop-filter: blur(12px);
}
.footer-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.footer-brand img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.footer-links a {
  color: #344253;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.footer-links a:hover, .footer-links a:focus-visible { color: #0877e8; text-decoration: underline; }
.play-store-link { display: inline-flex; align-items: center; }
.play-store-link:hover, .play-store-link:focus-visible { text-decoration: none !important; }
.play-store-link img { width: 150px; height: auto; display: block; }

.poi-panel { bottom: 76px; }
.search-bar { bottom: 76px; }
.status-card { bottom: 76px; }
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: 62px; }

html[data-theme="dark"] .app-footer {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(20, 28, 38, .96);
  color: #fff;
}
html[data-theme="dark"] .footer-links a { color: #d7dce3; }

@media (max-width: 900px) {
  .poi-panel { bottom: 76px; }
  .search-bar { bottom: 76px; }
}
@media (max-width: 560px) {
  .app-footer { min-height: 76px; padding: 7px 12px; gap: 8px; }
  .footer-brand { gap: 6px; font-size: 13px; }
  .footer-brand img { width: 34px; height: 34px; }
  .footer-links { flex-wrap: wrap; gap: 5px 12px; }
  .footer-links a { font-size: 11px; }
  .poi-panel { bottom: 88px; }
  .search-bar { bottom: 300px; }
  .status-card { bottom: 88px; }
  .mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: 78px; }
}
@media (max-width: 360px) {
  .app-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .footer-brand img { width: 28px; height: 28px; }
  .footer-links { width: 100%; justify-content: space-between; gap: 4px; }
  .footer-links a { font-size: 10px; }
  .poi-panel { bottom: 94px; }
  .search-bar { bottom: 306px; }
  .mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { bottom: 86px; }
}

html[data-theme="dark"] .category-panel,
html[data-theme="dark"] .poi-panel,
html[data-theme="dark"] .search-bar,
html[data-theme="dark"] .recenter-button,
html[data-theme="dark"] .preference-row,
html[data-theme="dark"] .theme-control,
html[data-theme="dark"] .language-select {
  background: rgba(20, 28, 38, 0.96);
  color: #fff;
}
html[data-theme="dark"] .category-node label,
html[data-theme="dark"] .poi-row-copy strong,
html[data-theme="dark"] .poi-distance,
html[data-theme="dark"] .poi-panel-header strong,
html[data-theme="dark"] .category-panel-header strong { color: #fff; }
html[data-theme="dark"] .category-panel-header,
html[data-theme="dark"] .preference-row,
html[data-theme="dark"] .poi-panel-header,
html[data-theme="dark"] .poi-row { border-color: #303a46; }
html[data-theme="dark"] .poi-row:hover,
html[data-theme="dark"] .poi-row:focus-visible { background: #252f3c; }

.poi-detail-panel { display: flex; flex-direction: column; }
.poi-detail-header {
  min-height: 76px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e7e9ec;
}
.poi-detail-header strong {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.poi-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #0b1525;
  font-size: 20px;
}
.poi-detail-body {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}
.poi-description {
  margin: 0;
  color: #36404d;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}
.poi-facts { margin: 18px 0 0; }
.poi-facts div {
  padding: 12px 0;
  border-top: 1px solid #e7e9ec;
}
.poi-facts dt { color: #7b8490; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.poi-facts dd { margin: 5px 0 0; color: #0b1525; font-size: 13px; line-height: 1.45; }
.poi-facts a { color: #2268f6; text-decoration: none; }

.poi-description-loading {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667080;
  text-align: center;
}
.poi-description-loading strong { color: #0b1525; }
.poi-description-loading span:last-child { font-size: 12px; }
.description-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dfe4ea;
  border-top-color: #2268f6;
  border-radius: 50%;
  animation: description-spin .8s linear infinite;
}
.poi-description-error {
  min-height: 200px;
  padding: 24px;
  display: grid;
  place-items: center;
  color: #9f3f32;
  text-align: center;
}
@keyframes description-spin {
  to { transform: rotate(360deg); }
}

html[data-theme="dark"] .poi-panel-header button {
  border-color: #78bdff;
  background: #1b2530;
  color: #78bdff;
}
html[data-theme="dark"] .poi-panel-header button:hover:not(:disabled),
html[data-theme="dark"] .poi-panel-header button:focus-visible:not(:disabled) {
  background: #78bdff;
  color: #111820;
}
html[data-theme="dark"] .theme-control {
  border-color: #667586;
  background: #252f3a;
}
html[data-theme="dark"] .theme-control button {
  color: #d7dce3;
}
html[data-theme="dark"] .theme-control button:hover,
html[data-theme="dark"] .theme-control button:focus-visible {
  background: #303b48;
  color: #fff;
}
html[data-theme="dark"] .theme-control button.active {
  background: #0877e8;
  color: #fff;
}
html[data-theme="dark"] .language-select {
  border-color: #667586;
  color: #f1f5f8;
  color-scheme: dark;
}

.poi-marker-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  max-width: 180px;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(11, 21, 37, .12);
  border-radius: 7px;
  background: #fff;
  color: #0b1525;
  box-shadow: 0 4px 12px rgba(20, 30, 45, .18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  pointer-events: none;
}

.poi-marker-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(11, 21, 37, .12);
  border-bottom: 1px solid rgba(11, 21, 37, .12);
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

html[data-theme="dark"] .poi-marker-label {
  border-color: #303a46;
  background: #1b2530;
  color: #f1f5f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .poi-marker-label::after {
  border-color: #303a46;
  background: #1b2530;
}

html[data-theme="dark"] .poi-detail-header,
html[data-theme="dark"] .poi-detail-header strong,
html[data-theme="dark"] .poi-detail-body,
html[data-theme="dark"] .poi-description,
html[data-theme="dark"] .poi-facts dd,
html[data-theme="dark"] .poi-description-loading strong {
  color: #f1f5f8;
}
html[data-theme="dark"] .poi-detail-header,
html[data-theme="dark"] .poi-facts div {
  border-color: #303a46;
}
html[data-theme="dark"] .poi-description {
  color: #dce4ec;
}
html[data-theme="dark"] .poi-facts dt,
html[data-theme="dark"] .poi-description-loading,
html[data-theme="dark"] .poi-description-loading span:last-child {
  color: #aebbc8;
}
html[data-theme="dark"] .poi-facts a {
  color: #78bdff;
}
html[data-theme="dark"] .poi-back {
  background: #303b48;
  color: #f1f5f8;
}
html[data-theme="dark"] .description-spinner {
  border-color: #465363;
  border-top-color: #78bdff;
}
html[data-theme="dark"] .poi-description-error {
  color: #ffaaa0;
}
