@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/dm-sans-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/manrope-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/manrope-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f8f4;
  --paper: #fff;
  --ink: #2c342a;
  --muted: #5e6557;
  --ring: #4d703a;
  --field-border: #7d8972;
  --green: #53664a;
  --green-dark: #3e5137;
  --lime: #dce5b8;
  --line: #e8eae3;
  --soft: #edf1e6;
  --orange: #c28b58;
  --radius: 16px;
  --sidebar-width: 16.5rem;
  --sidebar-offset: var(--sidebar-width);
  --shadow: 0 16px 60px #29332216;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  font-size: 100%;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
body:has(> #navigation-panel[hidden]) {
  --sidebar-offset: 0px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
svg {
  flex-shrink: 0;
}
.icon {
  display: block;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  width: var(--sidebar-width);
  background: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 36px 22px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font:
    800 2.125rem 'Manrope',
    sans-serif;
  letter-spacing: -1.9px;
  padding-left: 9px;
}
.workspace-label {
  font-size: 0.75rem;
  letter-spacing: 1.45px;
  color: var(--muted);
  font-weight: 600;
  margin: 18px 0 38px 12px;
  white-space: normal;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 7px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  color: var(--green-dark);
  background: #edf1e6;
  font-weight: 700;
}
.nav-item:hover {
  background: #f2f4ed;
  color: var(--green);
}
.nav-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  margin-left: auto;
  background: #f1f3ed;
  border-radius: 5px;
  color: var(--muted);
}
.active .nav-count {
  background: #e0e6d8;
}
.nav-separator {
  height: 1px;
  background: var(--line);
  margin: 18px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  background: #f3f5ec;
  border-radius: 12px;
  padding: 20px 17px 17px;
  position: relative;
  overflow: hidden;
}
.sidebar-note svg {
  width: 100%;
  height: 68px;
  margin-bottom: 13px;
  color: var(--muted);
}
.sidebar-note strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: -0.45px;
}
.sidebar-note p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 9px 0 0;
}
.local-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 24px;
}
.local-status .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.status-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #88a473;
}
main {
  margin-left: var(--sidebar-offset);
  padding: 0 40px;
  max-width: 1900px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.topbar-leading,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-leading {
  min-width: 0;
}
.topbar-actions {
  flex-shrink: 0;
}
.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.breadcrumb .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.country-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}
.flag {
  font-size: 1.0625rem;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: #7e956b;
  border-radius: 50%;
  margin-left: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 29px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 10px;
}
h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 0;
}
h1 > span {
  color: var(--muted);
}
.page-heading p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 11px 0 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.primary:hover {
  background: var(--green-dark);
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: #626b59;
}
.soft {
  background: var(--soft);
  color: var(--green);
}
.danger {
  background: #faf0ec;
  color: var(--muted);
}
.text-button {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.icon-button:hover {
  background: var(--soft);
}
.topbar .icon-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.panel-toggle[aria-expanded='true'] {
  background: var(--soft);
  border-color: #ccd6c2;
  color: var(--green-dark);
}
.panel-toggle[aria-expanded='true']:hover {
  background: #e4ebdc;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 22px;
}
.dashboard-grid:has(> .journey-panel[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  min-width: 0;
}
.map-toolbar {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 7px;
  background: #f3f4ef;
}
.segmented button {
  font-size: 0.75rem;
  padding: 8px 11px;
  border-radius: 5px;
  white-space: nowrap;
  color: var(--muted);
}
.segmented button.active {
  background: #fff;
  box-shadow: 0 1px 4px #1c2a1212;
  color: #526246;
  font-weight: 600;
}
.map-search {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  max-width: 155px;
}
.map-search .icon {
  width: 15px;
  height: 15px;
}
.map-search input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 0.75rem;
  color: var(--ink);
  padding: 6px 0;
}
.map-search input::placeholder {
  color: var(--muted);
}
.population-toggle {
  width: auto;
  height: 40px;
  gap: 6px;
  padding-inline: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 650;
}
.population-toggle.active {
  color: var(--green-dark);
  border-color: #ccd6c2;
  background: var(--soft);
}
.population-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  flex-basis: 100%;
  align-items: center;
  gap: 0 12px;
  min-width: 0;
  border: 1px solid #dce4d5;
  padding: 7px 12px 10px;
  border-radius: 9px;
  background: #f4f7ef;
  font-size: 0.8125rem;
}
.population-filter .text-button {
  min-height: 28px;
  padding: 0;
  white-space: nowrap;
}
.population-slider,
.population-values {
  grid-column: 1 / -1;
}
.population-slider {
  --thumb-size: 20px;
  position: relative;
  height: 34px;
  min-width: 0;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
}
.population-rail {
  position: absolute;
  inset-inline: calc(var(--thumb-size) / 2);
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #d4ddcf;
}
.population-rail::after {
  position: absolute;
  inset-block: 0;
  inset-inline: var(--population-min, 0%) calc(100% - var(--population-max, 100%));
  border-radius: inherit;
  background: #647f52;
  content: '';
}
.population-slider input {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.population-slider input::-webkit-slider-thumb {
  appearance: none;
  box-sizing: border-box;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 2px solid var(--green);
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #24391a26;
}
.population-slider input::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 2px solid var(--green);
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #24391a26;
}
.population-slider input:focus {
  z-index: 1;
}
.population-slider input:focus-visible {
  outline-offset: 1px;
  border-radius: 8px;
}
.population-values {
  display: flex;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.population-filtered .city.dim {
  display: none;
}
.map-surface {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #f8f9f4, #f4f6ef);
  height: 400px;
  overflow: hidden;
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.map-svg:active {
  cursor: grabbing;
}
.country-shape {
  fill: #e4eadb;
  stroke: #b1bfa0;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.region-shape {
  fill: none;
  stroke: #b7c4a8;
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.river-shape {
  fill: none;
  stroke: #9ec3ca;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}
.country-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  fill: var(--muted);
  font-weight: 500;
}
.mountain-mark {
  fill: none;
  stroke: #bec9b3;
  stroke-width: 1.2;
  opacity: 0.7;
}
.mountain-label {
  fill: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
}
.city {
  cursor: pointer;
  outline: none;
}
.city .hit-target {
  fill: transparent;
}
.city .city-dot {
  fill: #fff;
  stroke: #91a27f;
  stroke-width: 2;
  transition:
    r 0.15s,
    fill 0.15s;
}
.city.visited .city-dot {
  fill: #617b4f;
  stroke: #fff;
  stroke-width: 2.5;
}
.city.wish .city-dot {
  fill: #dcaf7a;
  stroke: white;
  stroke-width: 2.5;
}
.city .pin-halo {
  fill: #d3dec2;
  opacity: 0;
  transition: opacity 0.15s;
}
.city:hover .pin-halo,
.city:focus .pin-halo {
  opacity: 1;
}
.city:hover .city-dot,
.city:focus .city-dot {
  stroke: #4e663b;
  stroke-width: 2.5;
}
.city text {
  font-family: 'DM Sans', sans-serif;
  fill: #66715c;
  font-size: 0.75rem;
  font-weight: 550;
  paint-order: stroke;
  stroke: #edf1e6;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: auto;
}
.city.visited text {
  fill: #435a34;
  font-weight: 650;
}
.city.dim {
  opacity: 0.13;
  pointer-events: none;
}
.map-compass {
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  pointer-events: none;
}
.map-compass svg {
  width: 24px;
  height: 24px;
}
.map-tools {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.map-tools .icon-button {
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 5px #30402006;
}
.map-tools .icon-button .icon {
  width: 14px;
  height: 14px;
}
.map-scale {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 0.75rem;
  color: var(--muted);
  pointer-events: none;
}
.scale-line {
  display: block;
  width: 56px;
  height: 5px;
  border: 1px solid #aeb6a3;
  border-top: 0;
  margin-top: 4px;
}
.map-hint {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
  pointer-events: none;
}
.map-hint .icon {
  width: 12px;
  height: 12px;
}
.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #96a486;
  background: white;
}
.legend-dot.visited {
  background: #648052;
  border-color: #648052;
}
.legend-dot.wish {
  background: #dbad78;
  border-color: #dbad78;
}
.layer-button {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.layer-button .icon {
  width: 14px;
  height: 14px;
}
.map-result-count {
  padding: 9px 20px;
  background: #f7f8f3;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.journey-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.panel-kicker {
  font-size: 0.75rem;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.journey-panel h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  letter-spacing: -0.5px;
  margin: 7px 0 0;
}
.progress-ring {
  position: relative;
  width: 143px;
  height: 143px;
  margin: 23px auto 17px;
}
.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-ring circle {
  fill: none;
  stroke-width: 7;
}
.ring-track {
  stroke: #eff2e8;
}
.ring-progress {
  stroke: #7c9361;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s;
}
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ring-text strong {
  font:
    600 2.1875rem 'Manrope',
    sans-serif;
  letter-spacing: -1px;
}
.ring-text span {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}
.progress-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 19px;
}
.progress-caption strong {
  color: var(--muted);
  font-weight: 650;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eff1e9;
  color: var(--muted);
  font-size: 0.75rem;
}
.stats-row span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.stats-row .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.stats-row strong {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 550;
}
.journey-tip {
  margin-top: auto;
  padding: 13px 12px;
  background: #f5f6ed;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  gap: 8px;
}
.journey-tip .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.journey-tip strong {
  color: var(--muted);
  font-weight: 550;
}
.journey-tip p {
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 29px 0 15px;
}
.section-heading h2 {
  font:
    650 1.1875rem 'Manrope',
    sans-serif;
  letter-spacing: -0.6px;
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 6px 0 0;
}
.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.destination-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  min-width: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.destination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #33411e0a;
}
.destination-image {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #dce3d3;
}
.destination-image > button:first-child {
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
}
.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.destination-card:hover img {
  transform: scale(1.04);
}
.destination-image:after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #12210d45);
  pointer-events: none;
}
.destination-tag {
  background: #182215d9;
  padding: 4px 6px;
  border-radius: 4px;
  position: absolute;
  bottom: 13px;
  left: 16px;
  color: white;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  pointer-events: none;
}
.wishlist-toggle {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffffec;
  color: var(--muted);
  box-shadow: 0 2px 8px #0000000c;
}
.wishlist-toggle .icon {
  width: 14px;
  height: 14px;
}
.wishlist-toggle.selected {
  color: var(--muted);
  background: #fff5e7;
}
.wishlist-toggle.selected .icon {
  fill: #e7c49b;
}
.destination-info {
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.destination-info h3 {
  font:
    650 0.9375rem 'Manrope',
    sans-serif;
  letter-spacing: -0.25px;
  margin: 0 0 5px;
}
.destination-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.destination-info span .icon {
  width: 11px;
  height: 11px;
}
.destination-info > button {
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.destination-info > button .icon {
  width: 16px;
  height: 16px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0 22px;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-flower {
  color: var(--muted);
  margin-left: 3px;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  max-width: 350px;
  width: 100%;
  color: var(--muted);
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  background: none;
  font-size: 0.75rem;
}
.search-box .icon {
  width: 17px;
  height: 17px;
}
.count-label {
  font-size: 0.75rem;
  color: var(--muted);
  align-self: center;
}
.empty-state {
  border: 1px dashed #d7decd;
  background: #fcfdf9;
  border-radius: 16px;
  padding: 65px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 330px;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
  margin-bottom: 20px;
  stroke-width: 1.2;
}
.empty-state h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
.empty-state p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 330px;
  margin: 0 0 22px;
}
.visit-list {
  display: grid;
  gap: 14px;
}
.visit-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.visit-thumb {
  width: 83px;
  height: 83px;
  border-radius: 8px;
  object-fit: cover;
}
.visit-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
}
.visit-placeholder .icon {
  width: 30px;
  height: 30px;
}
.visit-card-body {
  flex: 1;
  min-width: 0;
}
.visit-card h3 {
  font:
    650 1.0625rem 'Manrope',
    sans-serif;
  margin: 0 0 6px;
}
.visit-card p {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.visit-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.visit-meta .icon {
  width: 12px;
  height: 12px;
}
.visit-actions {
  display: flex;
  gap: 6px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.gallery-item {
  padding: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  padding: 30px 12px 12px;
  color: #fff;
  background: #182215d9;
  font-size: 0.75rem;
}
.list-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.list-city-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-city-card h3 {
  font:
    650 1.0625rem 'Manrope',
    sans-serif;
  margin: 0;
}
.list-city-card p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.list-city-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink);
}
.list-city-facts span {
  padding: 5px 8px;
  background: #f1f4eb;
  border-radius: 6px;
}
.list-city-card .list-city-description {
  line-height: 1.55;
}
.list-city-card .button {
  margin-top: auto;
}
.list-city-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.list-city-top > .icon {
  color: var(--muted);
  width: 25px;
  height: 25px;
}
dialog {
  border: 1px solid #e1e5d9;
  box-shadow: var(--shadow);
  padding: 0;
  border-radius: 18px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #26302366;
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: dialog-in 0.2s ease;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 28px 20px;
}
.dialog-header h2 {
  font:
    700 1.4375rem 'Manrope',
    sans-serif;
  letter-spacing: -0.7px;
  margin: 3px 0 6px;
}
.dialog-header p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.close-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #f3f5ee;
  border-radius: 50%;
  flex-shrink: 0;
}
.close-button .icon {
  width: 16px;
  height: 16px;
}
.dialog-body {
  padding: 0 28px 25px;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  background: #fafbf7;
  border-radius: 0 0 18px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
}
.field label,
.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fcfdf9;
  color: var(--ink);
  font-size: 0.75rem;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field-note {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}
.upload-zone {
  border: 1px dashed #bdcbb0;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  background: #f9fbf4;
  position: relative;
  cursor: pointer;
}
.upload-zone .icon {
  color: var(--muted);
  width: 25px;
  height: 25px;
}
.upload-zone strong {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.upload-zone span {
  font-size: 0.75rem;
  color: var(--muted);
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone:focus-within {
  outline: 3px solid var(--ring);
}
.upload-zone.dragging {
  background: #e9f0df;
  border-color: #6e8a56;
}
.photo-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.photo-preview-item {
  aspect-ratio: 1;
  position: relative;
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.photo-preview-item button {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  background: #fffe;
  border-radius: 50%;
  width: 22px;
  height: 22px;
}
.photo-preview-item .icon {
  width: 13px;
  height: 13px;
}
.form-error {
  font-size: 0.75rem;
  color: #aa4937;
  padding: 10px 0;
  line-height: 1.6;
}
.char-count {
  font-size: 0.75rem;
  text-align: right;
  color: var(--muted);
  margin-top: -3px;
}
.small-dialog {
  max-width: 430px;
}
.small-dialog .dialog-body {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
}
.place-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: var(--line);
}
.place-photo {
  display: block;
  width: 100%;
  height: 190px;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
}
.place-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.place-photo:hover img {
  transform: scale(1.06);
}
.place-photo:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
  z-index: 1;
}
.place-photo-credit {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.detail-dialog .dialog-header {
  padding-top: 23px;
}
.detail-description {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.detail-facts > div {
  padding: 13px 15px;
  background: #f5f7f1;
  border-radius: 9px;
}
.detail-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
}
.detail-facts dt small {
  font-size: inherit;
}
.detail-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.detail-actions {
  display: flex;
  gap: 9px;
  margin-bottom: 24px;
}
.detail-section-title {
  font-size: 0.75rem;
  font-weight: 650;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0 0 13px;
}
.detail-visit {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.detail-visit:last-child {
  border: 0;
}
.detail-visit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-visit time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.detail-visit p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-visit-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.detail-visit-photos button {
  padding: 0;
}
.detail-visit-photos img {
  width: 69px;
  height: 69px;
  object-fit: cover;
  border-radius: 7px;
}
.detail-empty {
  padding: 24px 15px;
  border-radius: 9px;
  background: #f7f9f2;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.8;
}
html:has(.settings-dialog[open], .map-expanded-dialog[open]) {
  overflow: hidden;
}
.map-restore,
.map-expanded-dialog .map-expand {
  display: none;
}
.map-expanded-dialog {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.map-expanded-dialog[open] {
  animation: none;
}
.map-expanded-dialog .map-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.map-expanded-dialog .map-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  padding: 10px clamp(12px, 2vw, 24px);
}
.map-expanded-dialog .map-search {
  min-width: 0;
  width: auto;
}
.map-expanded-dialog .segmented {
  width: auto;
}
.map-expanded-dialog .map-restore {
  display: inline-flex;
  width: 44px;
  height: 44px;
}
.map-expanded-dialog .map-surface {
  height: auto;
}
.map-expanded-dialog .map-tools {
  flex-direction: row;
}
.map-expanded-dialog .map-footer {
  padding-block: 8px;
}
.map-expanded-dialog .map-result-count {
  display: flex;
  flex-direction: column;
  max-height: min(25dvh, 14rem);
  overflow: hidden;
}
@media (max-width: 620px) {
  .map-expanded-dialog .map-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .map-expanded-dialog .segmented {
    grid-column: 1 / -1;
  }
}
@media (min-width: 621px) {
  .map-expanded-dialog .segmented button {
    white-space: nowrap;
  }
}
.settings-dialog {
  width: min(90rem, calc(100% - 48px));
  height: min(54rem, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  overflow: hidden;
}
#settings-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}
.settings-dialog .dialog-header {
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.settings-dialog .dialog-header h2 {
  margin: 0;
}
.settings-dialog .dialog-footer {
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 28px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 20%) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 24px;
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.settings-layers {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf7;
}
.settings-layers .source-note {
  margin: 12px 0 0;
}
.settings-label-size {
  margin: 14px 0 8px;
}
.settings-label-preview {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9eee1;
  color: #4d5a45;
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.settings-section-title {
  font:
    650 1rem 'Manrope',
    sans-serif;
  margin: 0;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e7;
  cursor: pointer;
}
.toggle-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  font-weight: 500;
}
.toggle-row small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.switch {
  position: relative;
  display: block;
  width: 33px;
  height: 20px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
.switch-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: #dfe5d7;
  transition: background 0.2s;
}
.switch-track:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.switch input:checked + .switch-track {
  background: #73865f;
}
.switch input:checked + .switch-track:after {
  transform: translateX(13px);
}
.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.settings-cities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.settings-cities-header .text-button {
  font-size: 0.75rem;
  padding: 0;
}
.city-config-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 8px;
  margin-top: 12px;
}
.city-config-list .toggle-row {
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.city-config-list .toggle-row:hover {
  background: #fafbf7;
}
#settings-empty {
  grid-column: 1 / -1;
}
.settings-caption {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 0;
}
@media (max-width: 760px), (max-height: 520px) {
  .settings-dialog {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .settings-dialog .dialog-header {
    padding: 12px 16px;
  }
  .settings-dialog .dialog-footer {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .settings-layout {
    gap: 16px;
    padding: 16px;
  }
  .settings-cities .search-box input {
    font-size: 1rem;
  }
  .city-config-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  }
}
@media (max-width: 760px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.backup-block {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 15px;
}
.backup-block h3 {
  font:
    650 0.9375rem 'Manrope',
    sans-serif;
  margin: 0 0 8px;
}
.backup-block p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 15px;
}
.info-note {
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 9px;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  display: flex;
  gap: 9px;
}
.info-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.source-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
}
.source-note a {
  text-decoration: underline;
}
.lightbox {
  max-width: 1100px;
  width: auto;
  background: #1e251d;
  border: 0;
  overflow: visible;
  padding: 8px;
}
.lightbox img {
  max-width: calc(100vw - 60px);
  max-height: calc(100dvh - 100px);
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox .close-button {
  position: absolute;
  right: -12px;
  top: -12px;
  box-shadow: var(--shadow);
}
.lightbox-caption {
  color: #dae1d2;
  font-size: 0.75rem;
  padding: 12px 6px 5px;
}
.lightbox-caption a {
  color: #fff;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + var(--sidebar-offset) / 2);
  transform: translate(-50%, 15px);
  background: #374b2e;
  color: #fff;
  box-shadow: 0 8px 30px #26331a33;
  padding: 13px 20px;
  border-radius: 10px;
  z-index: 30;
  font-size: 0.75rem;
  max-width: calc(100vw - 36px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  line-height: 1.6;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #934a39;
}
.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 50;
}
.all-cities-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.view-back {
  font-size: 0.75rem;
  color: var(--green);
  display: flex;
  gap: 8px;
  align-items: center;
}
.view-back .icon {
  transform: rotate(180deg);
  width: 15px;
  height: 15px;
}
.mobile-tools {
  display: none;
  gap: 6px;
}
body:has(> #navigation-panel[hidden]) .mobile-tools {
  display: flex;
}
.map-search-results {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.map-search-results .button {
  min-height: 40px;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  main {
    padding: 0 52px;
  }
  .page-heading {
    padding: 40px 0 34px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
  }
  .map-surface {
    height: 455px;
  }
  .journey-panel {
    padding: 27px;
  }
  .progress-ring {
    width: 160px;
    height: 160px;
    margin: 30px auto 23px;
  }
  .stats-row {
    padding: 15px 0;
  }
  .destination-image {
    height: 180px;
  }
  .section-heading {
    margin-top: 33px;
  }
  .map-toolbar {
    padding: 19px 24px;
  }
  .map-footer {
    padding: 17px 24px;
  }
  .segmented button {
    font-size: 0.75rem;
  }
  .legend {
    font-size: 0.75rem;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 15.5rem;
  }
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    padding: 0 25px;
  }
  .brand {
    font-size: 1.9375rem;
  }
  .workspace-label {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
  }
  .nav-item {
    font-size: 0.75rem;
    padding: 12px;
    gap: 9px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 16px;
  }
  .journey-panel {
    padding: 18px;
  }
  .map-toolbar {
    padding: 14px 13px;
  }
  .segmented button {
    font-size: 0.75rem;
    padding: 7px 8px;
  }
  .map-search {
    max-width: 120px;
  }
  .map-search input {
    font-size: 0.75rem;
  }
  .map-surface {
    height: 350px;
  }
  .map-footer {
    padding: 12px 13px;
  }
  .legend {
    gap: 9px;
    font-size: 0.75rem;
  }
  .layer-button {
    font-size: 0.75rem;
  }
  .progress-ring {
    width: 124px;
    height: 124px;
    margin: 18px auto 15px;
  }
  .journey-panel h2 {
    font-size: 1.0625rem;
  }
  .journey-tip {
    font-size: 0.75rem;
    padding: 10px;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .page-heading p {
    font-size: 0.75rem;
  }
  .button {
    font-size: 0.75rem;
    padding: 10px 12px;
    min-height: 39px;
  }
  .heading-actions {
    gap: 7px;
  }
  .destination-image {
    height: 130px;
  }
  .destination-info h3 {
    font-size: 0.875rem;
  }
  .destination-grid {
    gap: 14px;
  }
}
@media (max-width: 1000px) {
  :root {
    --sidebar-width: 14.5rem;
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    font-size: 1.8125rem;
    gap: 7px;
  }
  .brand svg {
    width: 29px;
  }
  .workspace-label {
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    margin-left: 10px;
  }
  .nav-item {
    font-size: 0.75rem;
    padding: 12px 10px;
    gap: 8px;
  }
  .nav-item .icon {
    width: 16px;
    height: 16px;
  }
  .nav-count {
    font-size: 0.75rem;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
  }
  .sidebar-note {
    padding: 15px;
  }
  .sidebar-note strong {
    font-size: 1.0625rem;
  }
  .local-status {
    font-size: 0.75rem;
  }
  main {
    padding: 0 22px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .journey-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 0 18px;
    align-items: center;
    padding: 18px 22px;
  }
  .journey-title {
    grid-column: 1;
  }
  .journey-panel h2 {
    font-size: 0.9375rem;
  }
  .panel-kicker {
    font-size: 0.75rem;
  }
  .progress-ring {
    grid-column: 2;
    grid-row: 1/4;
    width: 83px;
    height: 83px;
    margin: 0 auto;
  }
  .ring-text strong {
    font-size: 1.4375rem;
  }
  .ring-text span {
    font-size: 0.75rem;
  }
  .progress-caption {
    grid-column: 1;
    margin: 5px 0 0;
    font-size: 0.75rem;
    text-align: left;
  }
  .stats-row {
    grid-column: 3/5;
    gap: 20px;
    font-size: 0.75rem;
    padding: 6px 0;
  }
  .stats-row:nth-of-type(3) {
    grid-row: 1;
  }
  .stats-row:nth-of-type(4) {
    grid-row: 2;
  }
  .stats-row:nth-of-type(5) {
    grid-row: 3;
  }
  .journey-tip {
    display: none;
  }
  .map-surface {
    height: 350px;
  }
  .page-heading {
    gap: 15px;
    flex-wrap: wrap;
    padding: 28px 0 23px;
  }
  .heading-actions {
    padding: 0;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .page-heading p {
    font-size: 0.75rem;
  }
  .map-search {
    max-width: 180px;
  }
  .map-search input {
    font-size: 0.75rem;
  }
  .segmented button {
    font-size: 0.75rem;
    padding: 8px 11px;
  }
  .map-footer {
    padding: 13px 18px;
  }
  .legend {
    font-size: 0.75rem;
    gap: 16px;
  }
  .layer-button {
    font-size: 0.75rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px), (max-height: 500px) {
  .sidebar {
    position: sticky;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 14px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    font-size: 1.5625rem;
    gap: 7px;
    padding: 0;
    width: max-content;
  }
  .brand svg {
    width: 25px;
    height: 25px;
  }
  .workspace-label,
  .nav-separator,
  .sidebar-bottom,
  .sidebar > .nav-item {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 14px;
    justify-content: space-between;
  }
  .nav-item {
    padding: 10px 10px 13px;
    justify-content: center;
    border-radius: 6px 6px 0 0;
    margin: 0;
    font-size: 0.75rem;
    gap: 7px;
    width: auto;
    flex: 1;
  }
  .nav-item.active {
    background: none;
    border-bottom: 2px solid var(--green);
    color: var(--green);
  }
  .nav-item .icon {
    width: 15px;
    height: 15px;
  }
  .nav-count {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  .topbar {
    height: auto;
    min-height: 56px;
    padding-block: 6px;
  }
  .breadcrumb {
    font-size: 0.75rem;
    gap: 5px;
  }
  .breadcrumb .icon {
    width: 13px;
    height: 13px;
  }
  .country-pill {
    font-size: 0.75rem;
  }
  .flag {
    font-size: 0.875rem;
  }
  .page-heading {
    padding: 25px 0 22px;
    gap: 19px;
  }
  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  .page-heading h1 {
    font-size: 1.9375rem;
  }
  .page-heading p {
    font-size: 0.75rem;
    line-height: 1.7;
    max-width: 300px;
    margin-top: 8px;
  }
  .heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .heading-actions .button {
    font-size: 0.75rem;
    padding: 10px 14px;
    min-height: 40px;
  }
  .heading-actions .secondary {
    margin-right: auto;
  }
  .map-toolbar {
    padding: 12px;
    flex-wrap: wrap;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    font-size: 0.75rem;
    padding: 8px 5px;
  }
  .map-search {
    max-width: none;
    width: 100%;
    padding: 0 4px;
  }
  .map-search input {
    font-size: 0.75rem;
    padding: 7px 0;
  }
  .map-surface {
    height: 280px;
  }
  .map-hint {
    font-size: 0.75rem;
    top: 12px;
    left: 14px;
  }
  .map-compass {
    top: 14px;
    right: 15px;
  }
  .map-compass svg {
    width: 19px;
    height: 19px;
  }
  .map-tools {
    right: 10px;
    bottom: 12px;
    gap: 4px;
  }
  .map-tools .icon-button {
    width: 27px;
    height: 27px;
  }
  .map-scale {
    left: 15px;
    bottom: 17px;
  }
  .map-footer {
    padding: 13px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .legend {
    font-size: 0.75rem;
    gap: 10px;
  }
  .layer-button {
    font-size: 0.75rem;
  }
  .layer-button .icon {
    width: 12px;
    height: 12px;
  }
  .journey-panel {
    padding: 18px;
    grid-template-columns: 1fr 0.8fr 1fr;
    gap: 0 12px;
  }
  .journey-title h2 {
    font-size: 0.875rem;
  }
  .journey-title .panel-kicker {
    font-size: 0.75rem;
  }
  .progress-ring {
    width: 75px;
    height: 75px;
  }
  .stats-row {
    grid-column: 3;
    font-size: 0.75rem;
    gap: 6px;
    white-space: nowrap;
  }
  .stats-row span {
    gap: 5px;
  }
  .stats-row .icon {
    width: 12px;
    height: 12px;
  }
  .stats-row strong {
    font-size: 0.75rem;
  }
  .progress-caption {
    font-size: 0.75rem;
  }
  .section-heading {
    margin-top: 26px;
  }
  .section-heading h2 {
    font-size: 1.0625rem;
  }
  .section-heading p {
    font-size: 0.75rem;
  }
  .section-heading .text-button {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .destination-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .destination-card {
    display: flex;
    min-height: 116px;
  }
  .destination-image {
    width: 38%;
    height: auto;
    min-height: 116px;
    flex-shrink: 0;
  }
  .destination-tag {
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    left: 10px;
    bottom: 10px;
  }
  .destination-info {
    flex: 1;
    padding: 15px;
    gap: 5px;
  }
  .destination-info h3 {
    font-size: 0.875rem;
  }
  .destination-info span {
    font-size: 0.75rem;
  }
  .wishlist-toggle {
    width: 25px;
    height: 25px;
    top: 8px;
    right: 8px;
  }
  .wishlist-toggle .icon {
    width: 12px;
    height: 12px;
  }
  .footer {
    font-size: 0.75rem;
    line-height: 1.7;
    flex-direction: column;
    gap: 3px;
    padding: 25px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .list-city-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .list-city-card {
    padding: 16px;
  }
  .list-city-card h3 {
    font-size: 0.875rem;
  }
  .list-city-card p {
    font-size: 0.75rem;
  }
  .visit-card {
    padding: 14px;
    gap: 12px;
    align-items: flex-start;
  }
  .visit-thumb {
    width: 57px;
    height: 57px;
  }
  .visit-card h3 {
    font-size: 0.875rem;
  }
  .visit-card p {
    font-size: 0.75rem;
  }
  .visit-meta {
    font-size: 0.75rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  .visit-actions {
    flex-direction: column;
  }
  .visit-actions .icon-button {
    width: 27px;
    height: 27px;
  }
  .visit-actions .icon {
    width: 13px;
    height: 13px;
  }
  .toast {
    left: 50%;
    font-size: 0.75rem;
    bottom: 16px;
  }
  .dialog-header {
    padding: 23px 20px 18px;
  }
  .dialog-header h2 {
    font-size: 1.3125rem;
  }
  .dialog-body {
    padding: 0 20px 22px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .place-photo {
    height: 135px;
  }
  .photo-preview {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-dialog {
    max-height: calc(100dvh - 32px);
  }
  .small-dialog {
    max-width: calc(100vw - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Accessible controls and responsive content. */
button,
.button,
a {
  min-height: 24px;
}
button {
  touch-action: manipulation;
}
.icon-button,
.close-button,
.wishlist-toggle,
.photo-preview-item button {
  min-width: 32px;
  min-height: 32px;
}
.photo-preview-item button {
  right: 2px;
  top: 2px;
}
.layer-button,
.footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.map-search,
.search-box {
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 8px;
}
.map-search:focus-within,
.search-box:focus-within {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.map-toolbar {
  flex-wrap: wrap;
}
.map-search {
  flex: 1 1 150px;
  max-width: none;
}
.map-footer,
.legend {
  flex-wrap: wrap;
}
.map-search-results {
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}
.map-search-results .button {
  min-height: 44px;
  flex: 1 1 130px;
}
.map-svg.compact-labels .city text,
.city text.label-crowded {
  opacity: 0;
  pointer-events: none;
}
.map-svg .city:focus text,
.map-svg .city:hover text {
  opacity: 1;
}
.map-svg .city:not(.dim):hover text {
  pointer-events: auto;
}
.city:focus-visible .hit-target {
  stroke: var(--ring);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.city .hit-target {
  pointer-events: all;
}
.city.dim .hit-target {
  pointer-events: none;
}
.country-label,
.mountain-label {
  display: none;
}
.map-hint {
  max-width: calc(100% - 65px);
}
.local-status {
  flex-wrap: wrap;
}
.sidebar nav,
.sidebar > .nav-item,
.brand {
  flex-shrink: 0;
}
.percent-sign {
  font-size: 1.125rem;
}
.plain-button {
  padding: 0;
}
.text-left {
  text-align: left;
}
.wish-button[aria-pressed='true'] {
  color: #825728;
  background: #faf3e7;
}
.city-selection-actions {
  display: flex;
  gap: 12px;
}
.full-width {
  max-width: none;
}
.spread {
  justify-content: space-between;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.backup-reminder {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--field-border);
  background: var(--soft);
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.lightbox img {
  min-width: 200px;
  min-height: 200px;
}
#main:focus {
  outline: none;
}
@media (max-height: 820px) {
  .sidebar-note {
    display: none;
  }
}
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px), (max-height: 500px) {
  .sidebar {
    position: relative;
    overflow: visible;
  }
  .sidebar nav {
    gap: 4px;
  }
  .sidebar nav .nav-item {
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 10px 2px;
    white-space: normal;
    text-align: center;
    font-size: 0.75rem;
  }
  .mobile-tools {
    display: flex;
  }
  .topbar .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
  .topbar .country-pill {
    display: none;
  }
  .breadcrumb {
    min-width: 0;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
  }
  .journey-title,
  .progress-caption {
    grid-column: 1;
  }
  .progress-ring {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 96px;
    height: 96px;
  }
  .stats-row {
    grid-column: 1 / -1;
    white-space: normal;
  }
  .stats-row:nth-of-type(n) {
    grid-row: auto;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .destination-tag {
    max-width: calc(100% - 16px);
    left: 8px;
    letter-spacing: 0;
  }
  .destination-info {
    min-width: 0;
    padding: 12px;
  }
  .destination-info span {
    flex-wrap: wrap;
  }
  .collection-toolbar {
    flex-wrap: wrap;
  }
  .list-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-city-card {
    min-width: 0;
    padding: 12px;
  }
  .list-city-card h3 {
    overflow-wrap: anywhere;
  }
  .list-city-card .button {
    flex-wrap: wrap;
  }
  .segmented button {
    white-space: normal;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 1rem;
  }
}
@media (max-width: 420px) {
  .topbar .breadcrumb {
    display: none;
  }
}
@media (pointer: coarse) {
  .icon-button,
  .close-button,
  .wishlist-toggle,
  .photo-preview-item button,
  .destination-info > button {
    min-width: 44px;
    min-height: 44px;
  }
  .button,
  .text-button,
  .layer-button {
    min-height: 44px;
  }
}
