﻿:root {
  --navy: #142d38;
  --navy-soft: #233e48;
  --teal: #17675f;
  --teal-dark: #124f49;
  --sand: #b2874a;
  --gold: #e7c58c;
  --ink: #1e343b;
  --muted: #637373;
  --line: #dfe2da;
  --paper: #fffefa;
  --background: #f5f3ec;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:where(button, a, input, select, [tabindex]):focus-visible {
  outline: 3px solid #b78843;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font: 400 clamp(26px, 2.5vw, 36px)/1.15 var(--serif); letter-spacing: -.7px; }
h3 { font-size: 16px; }
a { color: var(--teal); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 3000; padding: 12px 18px; background: white; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 1000; min-height: 84px;
  padding: 16px max(32px, calc((100vw - 1560px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-bottom: 1px solid var(--line); background: var(--background);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex-shrink: 0; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--teal); border: 1px solid #aab9ac; border-radius: 50%;
}
.brand__mark svg { width: 32px; height: 32px; }
.brand strong { display: block; font: 400 25px/1 var(--serif); letter-spacing: -.7px; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 25px; font-size: 13px; }
.desktop-nav a, .desktop-nav .text-button { color: var(--ink); font-size: inherit; font-weight: 600; }
.desktop-nav a:hover, .text-button:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.text-button { padding: 3px 0; border: 0; background: none; color: var(--teal); font-size: 13px; font-weight: 600; line-height: 1.4; }
.language-picker { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.language-picker__icon { font-size: 23px; color: var(--teal); }
.language-picker select { max-width: 140px; padding: 7px 3px; border: 0; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; }
.intro-shell, .page-shell { width: min(100%, 1624px); margin-inline: auto; padding-inline: 32px; }
.intro-shell { padding-top: 26px; }
.atlas-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 470px;
  display: flex; align-items: center; padding: 54px 56px 82px; color: white; border-radius: 4px;
  background-color: var(--navy);
  background-image: linear-gradient(90deg, #142d38fa 0%, #142d38ef 29%, #142d38a8 53%, #142d3824 83%), url("../assets/images/destinations/07-ayaz-qala-i-02.jpg");
  background-size: cover; background-position: center, right 48%;
}
.atlas-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background: repeating-radial-gradient(ellipse at -10% 110%, transparent 0 30px, #c0c4b4 31px 32px, transparent 33px 48px);
  mask-image: linear-gradient(90deg, black, transparent 60%);
}
.atlas-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(0deg, #142d38bd, transparent); pointer-events: none;
}
.atlas-hero__content { max-width: 610px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--teal); font-size: 10px; font-weight: 650; letter-spacing: 1.8px; text-transform: uppercase; }
.atlas-hero__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; color: #e8c88e; letter-spacing: 2.5px; }
.atlas-hero__eyebrow > span:first-child { width: 26px; height: 1px; background: currentColor; }
.atlas-hero h1 { font: 400 clamp(42px, 4.5vw, 68px)/1.04 var(--serif); letter-spacing: -2px; }
.atlas-hero h1 > span, .atlas-hero h1 em { display: block; }
.atlas-hero h1 em { margin-top: 7px; color: #edcf9c; font-weight: 400; }
.atlas-hero__description { max-width: 450px; margin-top: 25px; color: #e2e7e3; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px 17px; border: 1px solid var(--teal); border-radius: 5px;
  background: var(--teal); color: white; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: center;
}
.button:hover { background: var(--teal-dark); color: white; }
.button--sand { padding: 13px 20px; background: var(--gold); border-color: var(--gold); color: var(--navy); }
.button--sand:hover { background: #f1d7ad; color: var(--navy); }
.button--ghost { padding: 13px 20px; background: #142d3833; border-color: #ffffff66; color: #fff; }
.button--ghost:hover { background: #ffffff1c; border-color: #fff; }
.button--secondary { background: transparent; color: var(--teal); border-color: #bfd0c3; }
.button--secondary:hover { background: #edf3e9; color: var(--teal-dark); }
.button--small { padding: 7px 11px; }
.hero-place { position: absolute; right: 28px; bottom: 25px; display: flex; align-items: center; gap: 12px; color: white; }
.hero-place__symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff65; border-radius: 50%; font-size: 21px; }
.hero-place strong { display: block; font-size: 13px; font-weight: 600; }
.hero-place > div > span { display: block; margin-top: 2px; font-size: 12px; color: #e1e7e2; }
.hero-credit { display: flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 15px; border-left: 1px solid #ffffff55; font-size: 12px; color: #e7ebe3; text-decoration: underline; text-underline-offset: 3px; }
.atlas-overview { display: grid; grid-template-columns: 1fr minmax(380px, 1.25fr) 1fr; align-items: center; gap: 28px; min-height: 132px; border-bottom: 1px solid #cfd5ca; }
.atlas-overview__intro { max-width: 260px; color: var(--navy); font: 400 21px/1.45 var(--serif); }
.atlas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.atlas-stats > div { display: flex; flex-direction: column-reverse; align-items: center; border-left: 1px solid var(--line); }
.atlas-stats dt { margin-top: 3px; color: var(--muted); font-size: 12px; text-align: center; }
.atlas-stats dd { margin: 0; font: 400 39px/1 var(--serif); color: var(--navy); }
.atlas-overview__note { display: flex; align-items: center; justify-self: end; gap: 10px; max-width: 220px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.atlas-overview__note > span:first-child { font-size: 28px; color: var(--sand); }
.page-shell { width: min(100%, 1920px); padding-top: 48px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 54px; }
.atlas-section { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-description { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.workspace-controls { position: sticky; top: 83px; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding-block: 10px; background: var(--background); }
.workspace-controls__label { color: var(--muted); font-size: 12px; }
.workspace-controls__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 42px; padding: 9px 13px; border: 1px solid #cbd5c9; border-radius: 6px; background: var(--paper); color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.panel-toggle [data-panel-label] { min-width: 0; overflow-wrap: anywhere; }
.panel-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.panel-toggle:hover { background: #edf3e9; border-color: #a5baa7; }
.panel-toggle[aria-expanded="true"] { background: #e8eee3; border-color: #b9c9b5; }
.panel-toggle__arrow { flex-shrink: 0; min-width: 12px; margin-left: 3px; color: var(--teal); font-size: 18px; font-weight: 400; line-height: 1; }
.workspace { --workspace-height: clamp(660px, calc(100svh - 135px), 960px); display: grid; grid-template-columns: 246px minmax(0, 1fr) 330px; grid-template-areas: "filters map details"; gap: 16px; align-items: stretch; }
.workspace--filters-collapsed { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "map details"; }
.workspace--details-collapsed { grid-template-columns: 246px minmax(0, 1fr); grid-template-areas: "filters map"; }
.workspace--filters-collapsed.workspace--details-collapsed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map"; }
.workspace > .filters-panel { grid-area: filters; }
.workspace > .map-panel { grid-area: map; }
.workspace > .details-panel { grid-area: details; }
.workspace > .filters-panel, .workspace > .details-panel { height: var(--workspace-height); min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8d1c3 transparent; scroll-margin-top: 95px; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-panel { padding: 20px 18px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { font: 400 20px/1.2 var(--serif); }
.panel-heading .text-button { max-width: 92px; text-align: right; font-size: 12px; }
.category-list { padding: 11px 0; display: grid; gap: 3px; }
.category-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 1px; color: #425750; font-size: 13px; cursor: pointer; border-radius: 5px; }
.category-option:hover { background: #edf3e9; }
.category-option > div, .category-label { display: flex; align-items: center; gap: 7px; }
.category-label { flex: 1; min-width: 0; }
.category-label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.category-input { width: 15px; height: 15px; flex-shrink: 0; margin: 0; accent-color: var(--teal); }
.category-count { flex-shrink: 0; min-width: 23px; padding: 2px 5px; border: 1px solid #e2e7dd; border-radius: 4px; color: #647163; background: #f4f5ee; font-size: 11px; text-align: center; }
.filter-group { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-group label { display: block; margin-bottom: 8px; color: #485e59; font-size: 12px; font-weight: 650; }
.filter-group select { width: 100%; max-width: 100%; min-width: 0; padding: 10px 5px; color: var(--ink); background: #f7f8f2; border: 1px solid #dce1d5; border-radius: 5px; font-size: 13px; }
.field-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.map-panel { position: relative; overflow: hidden; isolation: isolate; height: var(--workspace-height, 760px); }
#map-container { width: 100%; height: 100%; min-height: 400px; z-index: 0; background: #e3e9de; }
.map-search { position: absolute; top: 18px; left: 18px; right: 69px; max-width: 460px; z-index: 500; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--paper); border: 1px solid #ccd5c8; border-radius: 7px; box-shadow: 0 3px 14px #142d3812; }
.map-search > span { color: var(--teal); font-size: 25px; }
.map-search input { width: 100%; min-width: 0; padding: 13px 0; background: none; border: 0; color: var(--ink); font-size: 13px; }
.map-search input:focus-visible { outline-offset: 0; }
.map-toolbar { position: absolute; right: 14px; top: 18px; z-index: 500; display: grid; gap: 6px; }
.map-toolbar button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #ccd5c8; border-radius: 6px; background: var(--paper); font-size: 21px; box-shadow: 0 2px 8px #142d3810; }
.map-toolbar button:hover { background: #edf3e9; }
.map-key { position: absolute; left: 13px; bottom: 44px; right: 13px; z-index: 500; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; color: #304c41; font-size: 10px; }
.map-key > span { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #d4dfcd; border-radius: 4px; background: #fffefaf2; }
.map-key i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.map-pin, .capital-pin { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid white; border-radius: 50%; color: white; font-size: 15px; box-shadow: 0 2px 7px #142d3840; cursor: pointer; }
.map-pin:hover { outline: 3px solid #fff9; }
.map-pin--selected { outline: 4px solid #e0b96e; outline-offset: 3px; }
.capital-pin { background: #294b69; font-size: 16px; }
.custom-destination-pin, .custom-nukus-pin { background: transparent; border: 0; }
.leaflet-container { font: 13px "Segoe UI", Arial, sans-serif; }
.leaflet-control-layers { border-radius: 6px !important; font-size: 13px !important; }
.leaflet-top.leaflet-left .leaflet-control-layers { margin-top: 80px; }
.leaflet-control-attribution { max-width: 90%; font-size: 11px !important; line-height: 1.4; }
.leaflet-control-attribution a { font-size: 12px; }
.details-panel { padding: 17px; }
.gallery { position: relative; overflow: hidden; border-radius: 7px; background: #e9eee3; }
.gallery__image { width: 100%; height: 186px; object-fit: cover; }
.gallery__controls { position: absolute; left: 9px; bottom: 9px; display: flex; align-items: center; gap: 6px; }
.gallery__counter { padding: 5px 8px; background: #142d38df; border-radius: 4px; color: white; font-size: 11px; }
.gallery__controls button { width: 29px; height: 29px; padding: 0; background: #fffefaef; border: 0; border-radius: 4px; color: var(--navy); font-size: 21px; }
.favorite-button { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: var(--paper); border: 1px solid #ffffff88; border-radius: 50%; color: #405b50; font-size: 22px; box-shadow: 0 2px 8px #142d381a; }
.favorite-button[aria-pressed="true"] { color: #a63b47; }
.photo-badge { position: absolute; top: 9px; left: 9px; max-width: calc(100% - 64px); padding: 4px 6px; border-radius: 3px; background: #174f46eb; color: white; font-size: 11px; }
.photo-badge--overview { background: #75552beb; }
.photo-credit { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.photo-credit a { font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.photo-credit__caption { color: #435c4f; font-weight: 600; }
.photo-credit__required { display: block; margin-top: 6px; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 186px; padding: 20px; background: #eceee3; color: var(--muted); font-size: 12px; text-align: center; }
.photo-placeholder > span:first-child { color: var(--sand); font-size: 30px; }
.destination-title { margin-top: 19px; font: 400 27px/1.15 var(--serif); letter-spacing: -.6px; }
.destination-district { margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.destination-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.tag { padding: 3px 6px; border: 1px solid #d5e2cf; border-radius: 4px; background: #eef3e8; color: #245e4a; font-size: 11px; line-height: 1.6; }
.tag--sand { color: #795a2f; background: #f7f0e1; border-color: #e7dcc3; }
.destination-description { margin-bottom: 16px; color: #4f625c; font-size: 14px; line-height: 1.85; }
.stats { display: grid; gap: 11px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.stat dt { max-width: 52%; color: var(--muted); }
.stat dd { flex: 1; min-width: 0; margin: 0; color: var(--navy); font-weight: 650; line-height: 1.6; text-align: right; overflow-wrap: anywhere; }
.route-note { margin-top: 12px; padding: 9px 10px; border-left: 2px solid #c5a166; background: #f8f3e8; color: #765d36; font-size: 12px; line-height: 1.7; }
.route-note:empty { display: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.detail-actions .button { flex: 1; min-width: 110px; padding: 10px 8px; font-size: 13px; }
.navigation-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.navigation-links .button { flex: 1; min-width: 100px; padding: 8px 5px; border-color: #dce2d4; font-size: 13px; }
.coordinates-line { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.coordinates-line a { text-decoration: underline; text-underline-offset: 2px; }
.places-section, .routes-section { padding: 0; border: 0; border-radius: 0; background: transparent; }
.places-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.place-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.place-card:hover { border-color: #9eaf97; }
.place-card__open { display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; background: none; text-align: left; }
.place-card__open:focus-visible { outline-offset: -4px; }
.place-card__photo { width: 100%; height: 190px; object-fit: cover; background: #e8ede0; }
.place-card .photo-placeholder { width: 100%; height: 190px; }
.place-card__body { width: 100%; padding: 18px; }
.place-card__body h3 { margin-bottom: 7px; color: var(--navy); font: 400 21px/1.3 var(--serif); }
.place-card__district { margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.place-card__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.place-card .favorite-button { z-index: 1; }
.section-actions { margin-top: 25px; text-align: center; }
.section-actions .button { min-width: 180px; }
.empty-state { grid-column: 1/-1; padding: 40px 22px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; }
.empty-state .button { margin-top: 18px; }
.details-panel.details-panel--empty { display: flex; align-items: center; justify-content: center; }
.routes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; counter-reset: route; }
.route-card { position: relative; display: flex; flex-direction: column; align-items: start; gap: 13px; padding: 27px 28px; border: 1px solid #d6decf; border-radius: 8px; background: #ebeee2; counter-increment: route; }
.route-card::before { content: "0" counter(route); position: absolute; right: 22px; top: 16px; color: #d3dbc8; font: 400 54px/1 var(--serif); pointer-events: none; }
.route-card h3 { position: relative; max-width: calc(100% - 60px); color: var(--navy); font: 400 26px/1.2 var(--serif); }
.route-card__meta { position: relative; color: var(--muted); font-size: 12px; line-height: 1.8; }
.route-card ol { margin: 0; padding-left: 20px; color: #42614e; font-size: 13px; line-height: 2; }
.route-card li button { padding: 0; border: 0; background: none; color: var(--teal); font-size: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.route-card .field-note { max-width: 500px; margin-top: 0; }
.route-card .button { margin-top: auto; }
.site-footer { max-width: 1560px; margin: 0 auto; padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #cfd5ca; color: var(--muted); font-size: 12px; }
.site-footer > span:first-child { max-width: 360px; color: var(--navy); font-size: 10px; letter-spacing: 1.3px; }
.site-footer .text-button { font-size: 13px; }
.mobile-nav { display: none; }
.status-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid #cadcc5; border-radius: 6px; background: #edf5e8; color: var(--teal-dark); font-size: 12px; line-height: 1.7; }
.status-banner--error { border-color: #e4cfc1; background: #fff0e6; color: #8d442d; }
.filter-status { flex-wrap: wrap; }
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; background: #142d38c9; }
.modal__dialog { position: relative; width: 100%; max-width: 800px; max-height: 90vh; overflow: auto; padding: 28px; border-radius: 12px; background: var(--paper); box-shadow: 0 24px 80px #0003; }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 23px; }
.modal .gallery__image { height: 370px; object-fit: contain; background: #e9eee3; }
.modal h2 { margin: 20px 0 9px; padding-right: 28px; font-size: 33px; }
.modal-section { margin-top: 22px; font-size: 14px; line-height: 1.9; }
.modal-section h3 { margin-bottom: 9px; font: 400 22px/1.2 var(--serif); }
.modal-section p { color: #4b6255; }
.place-summary, .modal-section .place-summary { color: var(--muted); font-size: 14px; line-height: 1.8; }
.modal .navigation-links { margin-block: 16px 20px; }
.about-profile { padding: 8px 8px 6px; }
.about-profile__eyebrow { max-width: calc(100% - 35px); }
.modal .about-profile h2 { margin-top: 18px; max-width: 620px; padding-right: 0; font-size: clamp(28px, 4vw, 39px); }
.about-profile__name { display: block; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--navy); font: 400 27px/1.25 var(--serif); }
.about-profile__position { max-width: 610px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-profile__text { max-width: 610px; margin-top: 22px; padding-left: 17px; border-left: 2px solid var(--sand); color: #4b6255; font-size: 14px; line-height: 1.9; }
.gallery-thumbnails { display: flex; gap: 8px; margin-top: 10px; padding: 3px; overflow: auto; }
.gallery-thumbnails button { flex-shrink: 0; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 4px; }
.gallery-thumbnails button[aria-pressed="true"] { border-color: var(--teal); }
.gallery-thumbnails img { width: 68px; height: 50px; object-fit: cover; }
.source-list { list-style: none; padding: 0; font-size: 12px; line-height: 1.8; }
.source-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-list strong { display: block; font-size: 13px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 2500; width: max-content; max-width: min(550px, 90vw); padding: 13px 20px; border: 1px solid #426150; border-radius: 7px; background: var(--navy); color: white; font-size: 12px; line-height: 1.7; transform: translateX(-50%); box-shadow: 0 8px 30px #0002; }
.desktop-nav [data-action="favorites"][aria-pressed="true"], .mobile-nav [data-action="favorites"][aria-pressed="true"] { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 1600px) {
  .workspace { gap: 20px; }
}
@media (max-width: 1270px) {
  .desktop-nav { gap: 18px; }
  .atlas-hero { padding: 50px 40px 85px; }
  .atlas-hero h1 { font-size: 58px; }
  .atlas-overview { grid-template-columns: 1fr 1.35fr; }
  .atlas-overview__note { display: none; }
  .site-footer { margin-inline: 32px; }
  .place-card__photo, .place-card .photo-placeholder { height: 160px; }
  .place-card__body { padding: 15px; }
  .place-card__body h3 { font-size: 19px; }
}
@media (max-width: 1000px) {
  .site-header { gap: 18px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav [data-action="favorites"] { display: none; }
  .brand strong { font-size: 23px; }
  .brand small { letter-spacing: .8px; font-size: 9px; }
  .language-picker { padding-left: 12px; }
  .atlas-hero { min-height: 450px; background-position: center, 65% center; }
  .atlas-hero__content { max-width: 550px; }
  .atlas-hero h1 { font-size: 53px; }
  .hero-credit { max-width: 160px; }
  .places-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-description { max-width: 240px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: "map details" "filters filters"; }
  .workspace--filters-collapsed { grid-template-areas: "map details"; }
  .workspace--details-collapsed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "filters"; }
  .workspace--filters-collapsed.workspace--details-collapsed { grid-template-areas: "map"; }
  .workspace > .filters-panel { height: auto; max-height: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
  .filters-panel > .panel-heading, .filters-panel > .category-list { grid-column: 1/-1; }
  .filters-panel > .category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 84px; }
  .site-header { min-height: 74px; padding: 13px 20px; }
  .desktop-nav { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 28px; height: 28px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 9px; letter-spacing: .4px; }
  .language-picker select { max-width: 125px; font-size: 16px; }
  .intro-shell, .page-shell { padding-inline: 20px; }
  .intro-shell { padding-top: 16px; }
  .atlas-hero { min-height: 465px; padding: 35px 30px 95px; background-image: linear-gradient(90deg, #142d38f5, #142d38cb 52%, #142d3870), url("../assets/images/destinations/07-ayaz-qala-i-02.jpg"); background-position: center, 60% center; }
  .atlas-hero h1 { font-size: clamp(39px, 7vw, 57px); letter-spacing: -1.6px; }
  .atlas-hero__description { max-width: 420px; margin-top: 20px; font-size: 14px; }
  .atlas-hero__eyebrow { margin-bottom: 20px; font-size: 10px; }
  .hero-actions { margin-top: 24px; }
  .hero-place { left: 30px; right: 22px; bottom: 21px; }
  .hero-credit { max-width: none; margin-left: auto; }
  .atlas-overview { gap: 20px; min-height: 128px; }
  .atlas-overview__intro { max-width: 200px; font-size: 18px; }
  .atlas-stats { gap: 12px; }
  .atlas-stats dd { font-size: 33px; }
  .atlas-stats dt { max-width: 110px; font-size: 12px; }
  .page-shell { padding-top: 35px; gap: 40px; }
  .section-heading { align-items: start; gap: 16px; }
  .section-description { display: none; }
  .workspace-controls { top: 73px; align-items: start; flex-direction: column; gap: 10px; }
  .workspace-controls__buttons { width: 100%; }
  .panel-toggle { flex: 1; min-height: 44px; }
  .workspace { --workspace-height: clamp(510px, 77svh, 780px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "filters" "details"; gap: 16px; }
  .workspace--filters-collapsed { grid-template-areas: "map" "details"; }
  .workspace--details-collapsed { grid-template-areas: "map" "filters"; }
  .workspace--filters-collapsed.workspace--details-collapsed { grid-template-areas: "map"; }
  .map-panel { width: 100%; }
  .workspace > .filters-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; width: 100%; padding: 18px; }
  .panel-heading, .category-list { grid-column: 1/-1; }
  .panel-heading { align-items: center; padding-bottom: 12px; }
  .panel-heading .text-button { max-width: none; }
  .filters-panel > .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 20px; padding: 2px 0; }
  .category-option { font-size: 13px; }
  .filter-group { min-width: 0; padding-top: 12px; margin-top: 0; }
  .filter-group label { min-height: 36px; font-size: 12px; }
  .filter-group select, .map-search input { font-size: 16px; }
  .workspace > .details-panel { width: 100%; height: auto; max-height: none; padding: 18px; overflow: visible; }
  .details-panel .destination-title { margin-top: 19px; }
  .gallery__image, .photo-placeholder { height: 300px; }
  .destination-description { font-size: 14px; }
  .photo-credit { font-size: 11px; }
  .stats { font-size: 13px; }
  .destination-district { font-size: 13px; }
  .route-note { font-size: 12px; }
  .tag { font-size: 11px; }
  .detail-actions .button, .navigation-links .button { font-size: 13px; }
  .coordinates-line { font-size: 12px; }
  .places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .place-card__photo, .place-card .photo-placeholder { height: 190px; }
  .routes-grid { grid-template-columns: 1fr; gap: 16px; }
  .route-card { padding: 24px; }
  .site-footer { margin-inline: 20px; padding-bottom: 100px; gap: 18px; line-height: 1.8; }
  .site-footer > span:first-child { max-width: none; width: 100%; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; display: flex; align-items: center; justify-content: space-around; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #d4ddd0; background: var(--paper); }
  .mobile-nav a, .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 50px; padding: 3px 4px; border: 0; background: none; color: var(--navy); font-size: 12px; font-weight: 600; }
  .mobile-nav a > span:first-child, .mobile-nav button > span:first-child { font-size: 22px; }
  .toast { bottom: 86px; }
  .modal { padding: 14px; }
  .modal__dialog { max-height: 87vh; padding: 20px; }
  .modal .gallery__image { height: 290px; }
}
@media (max-width: 480px) {
  .site-header { gap: 10px; padding-inline: 14px; }
  .brand { flex: 1; gap: 8px; min-width: 0; }
  .brand > span:last-child { min-width: 0; }
  .brand__mark { width: 31px; height: 31px; flex-shrink: 0; }
  .brand__mark svg { width: 23px; height: 23px; }
  .brand strong { font-size: 19px; letter-spacing: -.8px; }
  .brand small { max-width: 165px; font-size: 9px; letter-spacing: .1px; }
  .language-picker { gap: 2px; padding-left: 8px; }
  .language-picker__icon { display: none; }
  .language-picker select { max-width: 104px; padding-inline: 0; font-size: 16px; }
  .intro-shell, .page-shell { padding-inline: 14px; }
  .atlas-hero { min-height: 480px; padding: 30px 22px 110px; }
  .atlas-hero h1 { font-size: clamp(32px, 8.8vw, 42px); letter-spacing: -1px; }
  .atlas-hero__description { font-size: 14px; line-height: 1.85; }
  .hero-actions { align-items: start; flex-direction: column; gap: 10px; }
  .hero-actions .button { max-width: 100%; padding: 12px 15px; font-size: 13px; }
  .hero-place { left: 22px; right: 18px; flex-wrap: wrap; gap: 9px; }
  .hero-place strong { font-size: 13px; }
  .hero-credit { width: calc(100% - 43px); max-width: none; margin: 0 0 0 43px; padding: 0; border: 0; font-size: 12px; }
  .atlas-overview { grid-template-columns: 1fr; gap: 15px; padding: 22px 0; }
  .atlas-overview__intro { max-width: none; font-size: 17px; text-align: center; }
  .atlas-stats { gap: 0; }
  .atlas-stats > div:first-child { border-left: 0; }
  .atlas-stats dd { font-size: 32px; }
  .atlas-stats dt { font-size: 12px; }
  .page-shell { padding-top: 31px; gap: 36px; }
  h2 { font-size: 28px; letter-spacing: -.6px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .section-heading { margin-bottom: 19px; gap: 12px; }
  .section-heading > .text-button { max-width: 100px; flex-shrink: 0; font-size: 12px; }
  .workspace { --workspace-height: clamp(500px, 76svh, 680px); }
  .workspace-controls__label { font-size: 11px; }
  .workspace-controls__buttons { gap: 7px; }
  .panel-toggle { gap: 6px; padding: 9px 8px; font-size: 11px; line-height: 1.45; }
  .panel-toggle svg { width: 18px; height: 18px; }
  .panel-toggle__arrow { margin-left: 0; font-size: 17px; }
  .map-search { top: 13px; left: 11px; right: 72px; padding-inline: 9px; }
  .map-search input { padding-block: 12px; font-size: 16px; }
  .map-toolbar { top: 13px; right: 10px; gap: 5px; }
  .map-toolbar button { width: 32px; height: 32px; }
  .map-key { left: 10px; right: 10px; bottom: 72px; gap: 4px; font-size: 10px; }
  .map-key > span { padding: 3px 4px; gap: 4px; }
  .workspace > .filters-panel { grid-template-columns: minmax(0, 1fr); gap: 9px 12px; padding: 16px; }
  .filters-panel > .category-list { grid-template-columns: minmax(0, 1fr); column-gap: 13px; }
  .category-option { font-size: 13px; }
  .category-label { gap: 5px; }
  .category-count { min-width: 23px; padding-inline: 5px; font-size: 11px; }
  .filter-group label { min-height: 0; font-size: 12px; }
  .filter-group select { font-size: 16px; }
  .workspace > .details-panel { padding: 16px; }
  .gallery__image, .photo-placeholder { height: 230px; }
  .places-grid { gap: 10px; }
  .place-card__photo, .place-card .photo-placeholder { height: 132px; }
  .place-card__body { padding: 12px 10px; }
  .place-card__body h3 { font-size: 17px; }
  .place-card__district { margin-bottom: 10px; font-size: 12px; }
  .place-card__meta { align-items: start; flex-direction: column; gap: 5px; font-size: 12px; }
  .place-card__meta .tag { font-size: 11px; }
  .place-card .favorite-button { width: 29px; height: 29px; top: 7px; right: 7px; font-size: 20px; }
  .route-card { padding: 21px; }
  .route-card h3 { font-size: 24px; }
  .route-card li { margin-bottom: 4px; }
  .site-footer { margin-inline: 14px; }
  .modal { padding: 9px; }
  .modal__dialog { padding: 16px; }
  .modal .gallery__image { height: 230px; }
  .modal h2 { font-size: 28px; }
}
@media (max-width: 359px) {
  .brand__mark { display: none; }
  .brand strong { font-size: 20px; }
  .brand small { max-width: 176px; }
  .atlas-hero h1 { font-size: 31px; }
  .atlas-hero { padding-inline: 18px; }
  .hero-actions .button { padding-inline: 13px; font-size: 13px; }
  .stat { gap: 10px; }
}
@media (pointer: coarse) {
  .map-toolbar button, .gallery__controls button, .favorite-button,
  .place-card .favorite-button, .icon-button {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  }
  .map-search { right: 76px; }
  .filter-group select, .language-picker select, .map-search input { font-size: 16px; }
  .category-option, .button, .text-button,
  .filter-group select, .language-picker select, .panel-toggle { min-height: 44px; }
  .category-input { width: 18px; height: 18px; }
  .route-card li button { min-height: 44px; padding-block: 7px; }
  .leaflet-control-layers-toggle { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
