/* Castelo Vivo — heritage, cartography and a considered mobile experience. */
:root {
  color-scheme: light;
  --navy: #0b2637;
  --deep: #071e2b;
  --gold: #d6aa60;
  --gold-light: #efce8f;
  --bronze: #886027;
  --paper: #f3f2ed;
  --surface: #fffefa;
  --ink: #18313e;
  --muted: #68777b;
  --line: #e2e5df;
  --green: #24786c;
  --shadow: 0 12px 36px #071e2b1c;
  --header-height: 96px;
  --bottom-height: 76px;
  font: 14px/1.5 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { color: inherit; }
button { cursor: pointer; border: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #3f9dc0; outline-offset: 4px; }
input, textarea, select { min-width: 0; color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
p { line-height: 1.7; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.svg-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px; color: var(--ink); background: var(--surface); }
.skip-link:focus { top: 12px; }
.app-header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 30px; color: #f7f2e5; background: var(--deep); border-bottom: 1px solid #d6aa602b; position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 60px; height: 51px; }
.brand > span { font: 34px/1.05 Georgia, serif; letter-spacing: -1.4px; white-space: nowrap; }
.brand em { color: var(--gold-light); font-weight: 400; }
.brand small { display: block; text-align: right; font: 9px/1.3 'Segoe UI', sans-serif; letter-spacing: .7px; margin-top: 8px; color: #b8c3c7; }
.brand strong { color: var(--gold-light); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-actions form { margin: 0; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: none; color: inherit; }
.icon-button:hover { background: #d6aa601a; }
.language-form { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; border: 1px solid #ffffff24; border-radius: 7px; font-size: 11px; letter-spacing: .6px; white-space: nowrap; }
.language-form .svg-icon { width: 18px; height: 18px; color: var(--gold-light); }
.language-form select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.language-form:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.language-submit { position: relative; z-index: 1; background: var(--navy); color: var(--gold); padding: 5px; }
.language-form.enhanced .language-submit { display: none; }
.account-link { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid #d6aa6066; border-radius: 7px; color: var(--gold-light); background: #d6aa6010; font-size: 12px; white-space: nowrap; }
.account-link:hover { background: #d6aa6024; text-decoration: none; }
.top-nav { display: flex; align-self: stretch; align-items: stretch; justify-content: center; gap: 8px; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 68px; padding: 10px 12px; background: none; color: #b9c7cc; font-size: 11px; font-weight: 500; text-align: center; }
.nav-item .svg-icon { width: 24px; height: 24px; padding: 0; }
.nav-item.active { color: var(--gold-light); }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 24%; right: 24%; height: 2px; background: var(--gold); }
.nav-item:hover { color: var(--gold-light); text-decoration: none; }
.mobile-account { display: none; }
.explorer { height: calc(100dvh - var(--header-height)); min-height: 0; display: grid; grid-template-columns: 410px minmax(0, 1fr); overflow: clip; }
.discovery-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 24px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8cfc8 transparent; background: var(--surface); border-right: 1px solid var(--line); z-index: 3; }
.view-panel { min-width: 0; }
.welcome-row { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.visitor-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold-light); background: var(--navy); border: 1px solid #d6aa6040; border-radius: 50%; }
.welcome-row p { font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.welcome-row div > span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.welcome-row div .svg-icon { width: 12px; height: 12px; }
.destination-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px #24786c0d; margin-left: auto; }
.destination-hero { position: relative; isolation: isolate; min-height: 326px; display: flex; align-items: end; overflow: hidden; border-radius: 10px; background: var(--navy); color: white; }
.destination-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% center; z-index: -2; }
.destination-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #071e2b00 5%, #071e2b70 35%, #071e2bf5 85%); }
.hero-content { padding: 24px; width: 100%; }
.eyebrow { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--bronze); }
.hero-content .eyebrow, .route-cover .eyebrow, .featured-route .eyebrow { color: var(--gold-light); }
.hero-content h1 { font-size: 33px; letter-spacing: -1px; margin: 12px 0 13px; }
.hero-content h1 em { color: var(--gold-light); font-weight: 400; }
.hero-content p { color: #e1e8e7; font-size: 12px; margin-bottom: 20px; max-width: 320px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 18px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; }
.primary-button { color: #142c39; background: linear-gradient(180deg, #edc783, #d4a356); box-shadow: inset 0 1px #fff5; }
.primary-button:hover { background: #edc783; text-decoration: none; }
.primary-button .svg-icon, .secondary-button .svg-icon { width: 18px; height: 18px; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.secondary-button[aria-pressed=true] { color: var(--bronze); border-color: var(--gold); background: #d6aa6010; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: 21px; margin: 0; }
.section-heading > .svg-icon { color: var(--bronze); width: 18px; }
.home-heading { margin: 23px 0 15px; }
.home-heading h2 { font-size: 19px; white-space: nowrap; }
.heading-line { flex: 1; height: 1px; background: var(--line); }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 94px; padding: 12px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 500; line-height: 1.4; transition: transform .18s, border-color .18s, background .18s; }
.quick-action .svg-icon { width: 25px; height: 25px; }
.quick-action span { max-width: 105px; }
.quick-action:hover { transform: translateY(-2px); border-color: var(--gold); }
.action-green { background: #edf5f0; border-color: #d6e6dc; color: #255f52; }
.action-gold { background: #faf3e7; border-color: #eddec2; color: #825b25; }
.action-blue { background: #edf2f5; border-color: #dae3e9; color: #34536a; }
.featured-route { display: flex; align-items: end; isolation: isolate; position: relative; min-height: 200px; overflow: hidden; border-radius: 9px; margin-top: 21px; color: white; background: var(--navy); }
.featured-route > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: -2; }
.featured-route::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #071e2bfa, #071e2b99 48%, #071e2b00); z-index: -1; }
.featured-route > div { padding: 21px; width: 100%; }
.featured-route h2 { font-size: 23px; margin: 7px 0 10px; }
.feature-meta { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #e2e7e4; }
.feature-meta .svg-icon { width: 15px; height: 15px; }
.feature-button { display: inline-flex; padding: 0; min-height: 34px; margin-top: 9px; color: var(--gold-light); background: none; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.browse-heading { padding: 5px 0 18px; }
.browse-heading h1 { font-size: 30px; letter-spacing: -.7px; margin: 10px 0 0; }
.browse-heading h1 em { display: block; color: var(--bronze); }
.search-box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.search-box > .svg-icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input { flex: 1; width: 100%; height: 100%; background: none; border: 0; outline: 0; font-size: 12px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-search-button { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 5px; background: none; color: var(--muted); }
.clear-search-button .svg-icon { width: 16px; height: 16px; }
.search-box:focus-within { outline: 2px solid #3f9dc0; }
.category-filters { display: flex; gap: 7px; padding: 12px 0 23px; overflow-x: auto; scrollbar-width: none; }
.filter { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 11px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); white-space: nowrap; font-size: 10px; }
.filter .svg-icon { width: 15px; height: 15px; }
.filter.active { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.count-badge { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; color: var(--bronze); background: #d6aa601a; border: 1px solid #d6aa6026; border-radius: 50%; font-size: 11px; }
.place-card { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 15px; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.place-card:hover { background: var(--paper); }
.place-symbol { display: grid; place-items: center; width: 66px; height: 74px; border: 1px solid #d6aa6033; border-radius: 8px; color: var(--bronze); background: #f5eddd; }
.place-symbol .svg-icon { width: 28px; height: 28px; }
.place-symbol.castle-thumb { background: url('/static/images/castle.webp') center/cover; }
.place-symbol.culture { color: var(--green); background: #edf4ed; border-color: #dce7da; }
.place-copy { min-width: 0; }
.card-category { font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--bronze); }
.place-card h3 { font-size: 13px; line-height: 1.4; font-weight: 600; margin: 6px 0; color: var(--ink); }
.card-hours { display: block; font-size: 10px; color: var(--muted); }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding: 24px 0 3px; }
.panel-footer small { font-size: 8px; color: var(--muted); text-align: right; }
.panel-footer strong { display: block; margin-top: 4px; color: var(--ink); font-size: 10px; font-weight: 500; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 0; background: none; color: var(--ink); font-size: 11px; }
.text-button .svg-icon { width: 16px; height: 16px; }
.text-button:hover { color: var(--bronze); }
.fine-print { font-size: 11px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.map-area { position: relative; min-width: 0; min-height: 0; background: #e6e7db; overflow: clip; }
#map { position: absolute; inset: 0; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px #071e2b10; }
.map-topline { position: absolute; top: 24px; left: 26px; right: 26px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.map-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 15px; color: #f5f2e7; background: #071e2bf0; border: 1px solid #d6aa6055; box-shadow: var(--shadow); border-radius: 8px; font-size: 12px; }
.map-pill > .svg-icon { color: var(--gold-light); width: 21px; height: 21px; }
.map-pill small { display: block; font-size: 7px; letter-spacing: 1px; color: #bcc9ce; margin-top: 3px; }
.map-time { font-size: 9px; color: #becbd0; }
.map-time time { display: block; color: white; font-size: 15px; margin-top: 2px; }
.map-tools { position: absolute; top: 115px; right: 26px; display: flex; flex-direction: column; align-items: center; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.map-tools button { display: grid; place-items: center; width: 42px; height: 44px; background: none; color: var(--ink); border-radius: 5px; }
.map-tools button:hover { background: var(--paper); }
.map-tools .svg-icon { width: 20px; height: 20px; }
.tool-divider { height: 1px; width: 24px; background: var(--line); margin: 3px 0; }
.map-status { position: absolute; top: 112px; left: 26px; max-width: calc(100% - 115px); padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 12px; }
.map-story { display: grid; grid-template-columns: 142px minmax(0, 1fr); position: absolute; left: 26px; bottom: 50px; width: min(440px, calc(100% - 110px)); min-height: 145px; overflow: hidden; border: 1px solid #d6aa6066; border-radius: 10px; background: #071e2bf5; box-shadow: var(--shadow); color: white; }
.map-story > img { width: 100%; height: 100%; object-fit: cover; object-position: 37% center; }
.story-copy { padding: 22px 21px; }
.story-copy .eyebrow { font-size: 8px; color: var(--gold-light); letter-spacing: 1px; }
.story-copy h2 { font-size: 23px; margin: 10px 0 5px; }
.story-copy .text-button { color: var(--gold-light); min-height: 32px; }
.map-caption { position: absolute; bottom: 12px; left: 26px; padding: 4px 8px; color: #28424a; background: #fffefae6; border-radius: 3px; font-size: 9px; pointer-events: none; }
.marker { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #e4be78; border-radius: 50%; background: var(--deep); color: #f5d393; box-shadow: 0 0 0 5px #fffefacc, 0 5px 20px #071e2b44; }
.marker .svg-icon { width: 24px; height: 24px; }
.marker.culture { background: #246b60; color: white; border-color: #c5e0ca; }
.marker:hover { box-shadow: 0 0 0 7px #e4be7844, 0 5px 20px #071e2b44; }
.gps-marker { width: 18px; height: 18px; background: #3287bf; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 12px #3287bf22; }
:is(.maplibregl-ctrl-attrib, .mapboxgl-ctrl-attrib) { font-size: 9px !important; }
.mobile-list-toggle, .map-search-slot { display: none; }
.route-cover { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 222px; border-radius: 9px; overflow: hidden; color: white; margin-bottom: 20px; background: var(--navy); }
.route-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.route-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #071e2bf5, #071e2b00); z-index: -1; }
.route-cover > div { padding: 22px; }
.route-cover h1 { font-size: 29px; margin: 10px 0 13px; }
.route-description { font-size: 12px; color: var(--muted); margin-bottom: 23px; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--green); margin: 12px 0 22px; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
.route-stops { list-style: none; counter-reset: stops; padding: 0; margin: 0 0 22px; }
.route-stops li { counter-increment: stops; display: flex; align-items: center; gap: 11px; position: relative; min-height: 74px; }
.route-stops li::before { content: counter(stops); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 3px solid var(--surface); border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 11px; }
.route-stops li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 43px; bottom: -28px; width: 1px; background: var(--line); }
.route-stops li > button:first-of-type { flex: 1; min-width: 0; min-height: 44px; background: none; padding: 5px 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink); }
.stop-check { display: inline-flex; align-items: center; gap: 4px; padding: 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-height: 44px; }
.stop-check .svg-icon { width: 17px; height: 17px; }
.stop-check span { display: none; }
.stop-check.is-visited { color: var(--green); border-color: var(--green); background: #24786c0a; }
.route-start { width: 100%; }
.route-note { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 13px; border-radius: 7px; margin-top: 18px; }
.route-note .svg-icon { width: 16px; height: 16px; margin-top: 2px; }
.information-content h1 { font-size: 31px; margin: 15px 0 20px; }
.information-content > p { font-size: 12px; color: var(--muted); }
.information-content h2 { display: flex; align-items: center; gap: 9px; font-size: 22px; margin: 27px 0 12px; }
.information-content h2 .svg-icon { width: 20px; color: var(--bronze); }
.section-emblem { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #d6aa6044; color: var(--bronze); border-radius: 50%; background: #d6aa600f; margin: 5px 0 23px; }
.information-content a { text-decoration: underline; text-underline-offset: 3px; color: var(--bronze); }
.place-dialog { width: 560px; max-width: calc(100vw - 40px); max-height: min(850px, 90dvh); padding: 0; border: 1px solid #d6aa6044; border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #071e2b55; overscroll-behavior: contain; }
.place-dialog::backdrop { background: #071e2b99; backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 12px; margin: 12px 12px -56px 0; background: var(--surface); color: var(--ink); box-shadow: 0 3px 15px #071e2b20; z-index: 2; }
.detail-image { height: 220px; background: url('/static/images/castle.webp') center 38%/cover; }
.detail-body { padding: 30px; }
.detail-body h2 { font-size: 32px; letter-spacing: -.6px; margin: 13px 0 18px; }
.detail-body > p { font-size: 13px; }
.hours-label { display: flex; align-items: center; gap: 8px; color: var(--muted); padding-top: 17px; border-top: 1px solid var(--line); }
.hours-label .svg-icon { width: 17px; height: 17px; }
.place-facts { margin: 0 0 25px; }
.place-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 11px; }
.place-facts dt { color: var(--muted); }
.place-facts dd { margin: 0; text-align: right; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-actions > * { flex: 1; }
.detail-sources { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 10px; }
.detail-sources a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.detail-sources small { display: block; width: 100%; color: var(--muted); }
.notice { background: #d6aa6012; padding: 13px; border-left: 2px solid var(--gold); font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(500px, calc(100vw - 30px)); z-index: 50; padding: 15px 20px; border: 1px solid #d6aa6055; border-radius: 8px; color: white; background: var(--deep); box-shadow: var(--shadow); font-size: 12px; }
.flash { padding: 15px 30px; color: #20594f; background: #dcece5; font-size: 13px; }
.flash.error { color: #8d2d24; background: #f6e1dd; }
.back-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #c6d1d4; }
.back-link .svg-icon { width: 18px; height: 18px; }
.auth-layout { min-height: calc(100dvh - var(--header-height)); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 6vw, 90px); color: white; background: linear-gradient(0deg, #071e2bf5, #071e2b10), url('/static/images/village.webp') 45% center/cover; }
.auth-art h1 { font-size: clamp(38px, 4vw, 62px); max-width: 490px; margin: 20px 0; }
.auth-art .eyebrow { color: var(--gold-light); }
.auth-art p { max-width: 400px; color: #e1e6e5; }
.auth-card { align-self: center; justify-self: center; width: 100%; max-width: 480px; padding: 50px 40px; }
.auth-card h1 { font-size: 40px; margin: 15px 0; }
.stack-form { display: flex; flex-direction: column; gap: 23px; margin: 30px 0; }
.stack-form label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; font-weight: 600; }
.stack-form input:not([type=checkbox]), .stack-form textarea { width: 100%; min-height: 46px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
.stack-form textarea { resize: vertical; line-height: 1.6; font-weight: 400; }
.stack-form .checkbox-label { flex-direction: row; align-items: center; min-height: 44px; }
.stack-form .primary-button { align-self: flex-start; min-width: 150px; }
.auth-card .primary-button { align-self: stretch; }
.auth-switch { display: inline-block; color: var(--bronze); margin-bottom: 17px; font-size: 13px; text-decoration: underline; }
.admin-main { max-width: 1150px; padding: 45px 35px; margin: 0 auto; }
.admin-main h1 { font-size: 40px; letter-spacing: -1px; margin: 18px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 33px 0; }
.stats article { padding: 25px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 18px #071e2b04; }
.stats span { font-size: 12px; color: var(--muted); }
.stats strong { display: block; font: 42px Georgia, serif; margin-top: 15px; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--ink); font-size: 14px; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: #d6aa6009; }
td, th { padding: 20px; border-bottom: 1px solid var(--line); }
td a { color: var(--bronze); display: inline-flex; align-items: center; gap: 7px; }
.status-badge { display: inline-block; padding: 6px 10px; border: 1px solid #24786c20; border-radius: 5px; background: #24786c0b; color: var(--green); font-size: 11px; }
.edit-main { max-width: 850px; }
.edit-main > a { font-size: 12px; }
.locale-tag { font-size: 10px; font-weight: 400; color: var(--muted); }
.error-main { max-width: 700px; padding: 30px; margin: 70px auto; }
.error-main h1 { font-size: 40px; }
.error-main p { margin-bottom: 30px; }
body.dark { color-scheme: dark; --paper: #0b2330; --surface: #102b39; --ink: #ecede4; --muted: #afbec2; --line: #2c4551; --bronze: #e0b978; --green: #7ac9b1; --shadow: 0 12px 36px #0004; }
.dark .action-green { color: #a5d5c4; background: #163c37; border-color: #2b5149; }
.dark .action-gold { color: #e5c48c; background: #383422; border-color: #52482d; }
.dark .action-blue { color: #b5ccd7; background: #203b4c; border-color: #345160; }
.dark .place-symbol { background: #383422; border-color: #52482d; }
.dark .place-symbol.culture { background: #163c37; border-color: #2b5149; }
@media (min-width: 1600px) {
  .explorer { grid-template-columns: 440px minmax(0, 1fr); }
  .discovery-panel { padding: 28px; }
  .destination-hero { min-height: 360px; }
  .hero-content h1 { font-size: 37px; }
  .top-nav { gap: 16px; }
}
@media (max-width: 1180px) {
  .app-header { padding: 0 22px; gap: 14px; }
  .brand img { width: 47px; height: 42px; }
  .brand > span { font-size: 29px; }
  .top-nav { gap: 0; }
  .nav-item { min-width: 58px; padding: 9px; font-size: 10px; }
  .header-actions { gap: 7px; }
  .account-link { padding: 10px; }
  .account-link > span { display: none; }
  .explorer { grid-template-columns: 365px minmax(0, 1fr); }
  .discovery-panel { padding: 21px; }
  .hero-content { padding: 22px; }
  .hero-content h1 { font-size: 30px; }
  .map-story { grid-template-columns: 108px minmax(0, 1fr); }
  .story-copy { padding: 19px 17px; }
  .story-copy h2 { font-size: 21px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  :root { --header-height: 80px; }
  .destination-hero { min-height: 280px; }
  .hero-content h1 { font-size: 29px; }
  .map-story { bottom: 40px; min-height: 120px; }
}
@media (min-width: 821px) and (max-width: 980px) {
  .brand > span { font-size: 25px; }
  .brand img { width: 38px; height: 36px; }
  .nav-item { min-width: 49px; padding-inline: 6px; font-size: 9px; }
  .theme-button { display: none; }
  .map-story { grid-template-columns: 83px minmax(0, 1fr); width: calc(100% - 90px); }
  .story-copy { padding: 17px 13px; }
  .story-copy h2 { font-size: 19px; }
  .story-copy .text-button { font-size: 10px; }
}
@media (max-width: 820px) {
  :root { --header-height: calc(76px + env(safe-area-inset-top, 0px)); --bottom-height: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .app-header { padding: env(safe-area-inset-top, 0px) 20px 0; gap: 15px; }
  .brand { gap: 9px; }
  .brand img { width: 42px; height: 39px; }
  .brand > span { font-size: 27px; }
  .brand small { font-size: 8px; margin-top: 5px; }
  .header-actions { gap: 8px; }
  .language-form { height: 40px; padding: 0 10px; }
  .account-link { width: 40px; min-height: 40px; padding: 9px; }
  .header-actions .admin-link { display: none; }
  .top-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-height); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d6aa6038; background: var(--deep); z-index: 20; box-shadow: 0 -4px 20px #071e2b10; }
  .nav-item { flex: 1; min-width: 0; padding: 5px 3px; gap: 5px; font-size: 10px; }
  .nav-item .svg-icon { width: 21px; height: 21px; }
  .nav-item.active::after { display: none; }
  .nav-item.active .svg-icon { filter: drop-shadow(0 0 6px #d6aa6033); }
  .mobile-account { display: flex; }
  .desktop-information { display: none; }
  .explorer { position: relative; display: block; height: calc(100dvh - var(--header-height) - var(--bottom-height)); }
  .map-area { position: absolute; inset: 0; }
  .discovery-panel { position: absolute; inset: 0; padding: 22px max(20px, calc((100% - 560px) / 2)); border: 0; background: var(--paper); }
  .explorer:not([data-view=explore]) .map-area { visibility: hidden; pointer-events: none; }
  .welcome-row { margin-bottom: 18px; }
  .welcome-row p { font-size: 15px; }
  .home-content { width: 100%; max-width: 560px; margin: 0 auto; }
  .destination-hero { min-height: 310px; }
  .hero-content { padding: 24px; }
  .hero-content h1 { font-size: clamp(29px, 6vw, 39px); }
  .hero-content p { max-width: 380px; }
  .hero-content .primary-button { width: 100%; }
  .quick-action { min-height: 96px; }
  .quick-action span { font-size: 12px; }
  .featured-route { min-height: 215px; }
  .panel-footer { padding: 25px 0 5px; }
  .explorer[data-view=explore] .discovery-panel { inset: auto 0 0; height: 44%; min-height: 190px; padding: 25px 20px 15px; border: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -7px 28px #071e2b18; background: var(--surface); transition: transform .22s; }
  .explorer[data-view=explore] .discovery-panel::before { content: ''; position: absolute; top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 4px; background: var(--line); }
  .explorer[data-view=explore] .browse-heading, .explorer[data-view=explore] .panel-footer { display: none; }
  .explorer[data-view=explore].map-only .discovery-panel { transform: translateY(105%); pointer-events: none; }
  .map-search-slot { display: block; position: absolute; top: 15px; left: 14px; right: 14px; }
  .map-search-slot .search-box { height: 47px; background: var(--surface); box-shadow: 0 3px 18px #071e2b16; border-color: #071e2b12; }
  .map-search-slot .search-box input { font-size: 13px; }
  .map-search-slot .category-filters { padding: 10px 0 0; gap: 6px; }
  .map-search-slot .filter { padding: 8px 12px; min-height: 40px; box-shadow: 0 2px 9px #071e2b12; }
  .map-search-slot .filter.active { background: #e6bc70; color: #142c39; border-color: #e6bc70; }
  .map-tools { top: 128px; right: 14px; padding: 3px; }
  .map-tools button { width: 38px; height: 40px; }
  .map-tools .svg-icon { width: 19px; height: 19px; }
  .map-topline, .map-story, .map-caption { display: none; }
  .map-status { top: 126px; left: 14px; max-width: calc(100% - 85px); padding: 12px; font-size: 11px; }
  .mobile-list-toggle { position: absolute; right: 14px; bottom: calc(44% + 13px); display: flex; align-items: center; gap: 7px; padding: 11px 15px; min-height: 44px; border: 1px solid #d6aa6070; border-radius: 8px; color: var(--gold-light); background: var(--deep); box-shadow: var(--shadow); font-size: 12px; }
  .mobile-list-toggle .svg-icon { width: 18px; height: 18px; }
  .map-only .mobile-list-toggle { bottom: 28px; }
  .map-area :is(.maplibregl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-right) { bottom: calc(44% + 4px); right: 8px; left: auto; max-width: calc(100% - 115px); }
  .map-only .map-area :is(.maplibregl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-right) { bottom: 0; }
  .explorer:not([data-view=explore]) .mobile-list-toggle { display: none; }
  .section-heading h2 { font-size: 21px; }
  .place-card { padding: 12px 0; grid-template-columns: 58px minmax(0, 1fr); gap: 13px; }
  .place-symbol { width: 58px; height: 62px; }
  .place-card h3 { font-size: 13px; }
  .browse-heading { padding-bottom: 20px; }
  .route-cover { min-height: 260px; }
  .route-cover h1 { font-size: 33px; max-width: 370px; }
  .route-description { font-size: 13px; }
  .route-stops li { min-height: 78px; }
  .route-stops li > button:first-of-type { font-size: 13px; }
  .route-start { min-height: 50px; }
  .information-content { padding-top: 3px; }
  .information-content > p { font-size: 13px; }
  .toast { bottom: calc(var(--bottom-height) + 15px); }
  .place-dialog { width: 100%; max-width: 100%; max-height: 91dvh; margin: auto 0 0; border-radius: 17px 17px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .detail-image { height: 220px; }
  .detail-body { padding: 26px max(22px, calc((100% - 540px) / 2)); }
  .detail-body h2 { font-size: 31px; }
  .detail-body > p { font-size: 13px; }
  .back-link { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card { padding: 45px 25px; }
  .admin-main { padding: 30px 20px; }
  .admin-main h1 { font-size: 32px; }
  .stats { gap: 10px; }
  .stats article { padding: 18px 12px; }
  .stats span { font-size: 11px; }
  .stats strong { font-size: 32px; }
  td, th { padding: 15px; }
  .error-main { margin: 35px auto; padding: 25px; }
  .error-main h1 { font-size: 32px; }
}
@media (max-width: 430px) {
  :root { --header-height: calc(70px + env(safe-area-inset-top, 0px)); }
  .app-header { padding: env(safe-area-inset-top, 0px) 14px 0; gap: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 32px; }
  .brand > span { font-size: 24px; letter-spacing: -1px; }
  .brand small { font-size: 7px; letter-spacing: .3px; margin-top: 4px; }
  .header-actions { gap: 7px; }
  .theme-button { display: none; }
  .language-form { padding: 0 8px; gap: 6px; height: 38px; font-size: 10px; letter-spacing: .1px; }
  .language-form .svg-icon { width: 15px; height: 15px; }
  .account-link { width: 36px; min-height: 38px; padding: 8px; }
  .account-link .svg-icon { width: 18px; height: 18px; }
  .discovery-panel { padding: 18px 16px; }
  .hero-content { padding: 22px 20px; }
  .destination-hero { min-height: 308px; }
  .hero-content h1 { font-size: 32px; }
  .quick-actions { gap: 8px; }
  .quick-action { min-height: 91px; padding: 11px 5px; }
  .quick-action span { font-size: 10px; }
  .featured-route { min-height: 210px; }
  .home-heading h2 { font-size: 20px; }
  .route-cover { min-height: 238px; }
  .route-cover h1 { font-size: 30px; }
  .detail-actions { flex-direction: column; }
  .place-facts > div { grid-template-columns: .8fr 1.2fr; gap: 10px; }
}
@media (max-width: 350px) {
  .app-header { padding: env(safe-area-inset-top, 0px) 10px 0; gap: 6px; }
  .brand > span { font-size: 21px; }
  .brand img { width: 29px; height: 30px; }
  .language-form { padding: 0 7px; gap: 5px; font-size: 9px; }
  .header-actions { gap: 5px; }
  .account-link { width: 32px; }
  .nav-item { font-size: 9px; }
  .discovery-panel { padding: 16px 13px; }
  .hero-content { padding: 21px 18px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 11px; }
  .section-heading h2 { font-size: 19px; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 820px) and (max-height: 600px) and (orientation: landscape) {
  :root { --header-height: 58px; --bottom-height: 54px; }
  .brand small { display: none; }
  .explorer[data-view=explore] .discovery-panel { left: 0; right: auto; width: 45%; height: calc(100% - 115px); min-height: 0; }
  .mobile-list-toggle { bottom: 28px; }
  .map-tools { top: 122px; flex-direction: row; }
  .tool-divider { width: 1px; height: 24px; margin: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Administration: explicit foregrounds keep both themes readable. */
.admin-page { --muted: #51646d; }
.admin-page.dark { --muted: #bdcbd2; }
.admin-workspace { display:grid; grid-template-columns:225px minmax(0,1fr); min-height:calc(100dvh - var(--header-height)); }
.admin-sidebar { display:flex; flex-direction:column; gap:7px; padding:29px 17px 22px; color:#dce7ec; background:#0b2637; border-right:1px solid #244251; }
.admin-section-label { padding:0 14px; margin-bottom:16px; color:#aec1cc; font-size:11px; letter-spacing:1.4px; text-transform:uppercase; }
.admin-side-link { display:flex; align-items:center; gap:12px; min-height:46px; padding:12px 14px; color:#dce7ec; border-radius:7px; font-size:14px; }
.admin-side-link .svg-icon { width:20px; height:20px; color:#b7cbd5; }
.admin-side-link.active { background:#e3ba7330; color:#ffe0a3; border:1px solid #e3ba7340; }
.admin-side-link.active .svg-icon { color:#ffe0a3; }
.admin-side-link:hover { background:#ffffff0d; text-decoration:none; }
.admin-tourism-link { border-top:1px solid #ffffff18; margin-top:22px; border-radius:0; padding-top:21px; }
.admin-user { display:flex; align-items:flex-start; gap:10px; padding:22px 10px 0; border-top:1px solid #ffffff18; margin-top:auto; }
.admin-user>.svg-icon { color:#e5c180; width:20px; height:20px; }
.admin-user strong { display:block; font-size:12px; color:#f4f7f7; }
.admin-user span { display:block; overflow-wrap:anywhere; font-size:10px; color:#b2c5d0; margin-top:5px; }
.admin-dashboard { min-width:0; padding:36px clamp(22px,3.2vw,52px) 45px; max-width:1500px; width:100%; margin:0 auto; }
.admin-title-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:28px; scroll-margin-top:20px; }
.admin-title-row h1 { color:var(--ink); font:600 32px/1.2 'Segoe UI',sans-serif; letter-spacing:-1px; margin:10px 0; }
.admin-title-row p { color:var(--muted); font-size:14px; margin:0; }
.admin-live-badge { display:inline-flex; align-items:center; gap:7px; color:var(--green); background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:9px 12px; font-size:12px; white-space:nowrap; }
.admin-live-badge .svg-icon { width:17px; height:17px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:27px; }
.admin-metrics article { position:relative; padding:23px 21px 20px; background:var(--surface); border:1px solid var(--line); border-radius:9px; box-shadow:0 4px 16px #071e2b04; }
.admin-metrics article>span { display:block; color:var(--muted); font-size:13px; font-weight:500; padding-right:25px; }
.admin-metrics article>strong { display:block; color:var(--ink); font:650 36px/1.2 'Segoe UI',sans-serif; letter-spacing:-1px; margin:16px 0 8px; }
.admin-metrics strong em { font-style:normal; font-size:22px; margin-left:3px; color:var(--muted); }
.admin-metrics small { color:var(--muted); font-size:11px; }
.metric-icon { position:absolute; right:18px; top:22px; color:var(--bronze); }
.metric-icon .svg-icon { width:20px; height:20px; }
.metric-green { color:var(--green); }
.metric-blue { color:#3c89ad; }
.admin-card { min-width:0; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:9px; overflow:hidden; scroll-margin-top:24px; }
.admin-card-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:23px 24px; border-bottom:1px solid var(--line); }
.admin-card-heading h2 { color:var(--ink); font:600 17px/1.3 'Segoe UI',sans-serif; margin:0 0 7px; }
.admin-card-heading p { color:var(--muted); font-size:12px; margin:0; }
.admin-card-heading>.svg-icon { color:var(--bronze); width:21px; height:21px; }
.admin-count { display:grid; place-items:center; width:31px; height:31px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:50%; font-weight:600; font-size:12px; }
.admin-table-tools { display:flex; align-items:center; gap:14px; padding:18px 24px; }
.admin-search { display:flex; align-items:center; gap:10px; flex:1; padding:0 12px; border:1px solid var(--line); border-radius:6px; background:var(--paper); min-height:44px; }
.admin-search .svg-icon { width:18px; height:18px; color:var(--muted); }
.admin-search input { width:100%; min-height:44px; border:0; outline:0; color:var(--ink); background:none; font-size:13px; }
.admin-search:focus-within { outline:2px solid #3f9dc0; }
.admin-status-filter { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; }
.admin-status-filter select { min-height:44px; padding:8px 11px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font-size:12px; }
.admin-card .table-scroll { border:0; border-radius:0; }
.admin-card table { font-size:14px; color:var(--ink); }
.admin-card th { color:var(--muted); background:var(--paper); padding:13px 24px; font-size:11px; font-weight:600; letter-spacing:.6px; }
.admin-card td { padding:19px 24px; color:var(--ink); }
.admin-card tr:last-child td { border-bottom:0; }
.admin-place-name { display:flex; align-items:center; gap:12px; }
.admin-place-name>span { display:grid; place-items:center; width:38px; height:42px; flex:0 0 auto; border:1px solid var(--line); border-radius:6px; color:var(--bronze); background:var(--paper); }
.admin-place-name>span .svg-icon { width:20px; height:20px; }
.admin-place-name strong { color:var(--ink); font-size:14px; font-weight:600; }
.admin-place-name small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.admin-card .status-badge { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:500; white-space:nowrap; }
.status-badge .svg-icon { width:13px; height:13px; }
.status-badge.is-draft { background:#d6aa6010; color:var(--bronze); border-color:#d6aa6040; }
.admin-translation-count { color:var(--ink); font-size:14px; font-weight:600; }
.admin-translation-count span { color:var(--muted); font-weight:400; }
.admin-edit-button { color:var(--ink); border:1px solid var(--line); border-radius:6px; padding:8px 12px; background:var(--surface); font-size:12px; white-space:nowrap; }
.admin-edit-button .svg-icon { width:15px; height:15px; }
.admin-lower-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:25px; }
.language-coverage { padding:7px 24px 19px; }
.language-coverage>div { margin:18px 0; }
.language-coverage>div>div { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:var(--ink); }
.language-coverage strong { color:var(--muted); font-size:11px; }
.language-coverage progress { margin:10px 0 0; height:6px; }
.admin-activity { list-style:none; margin:0; padding:5px 24px 18px; }
.admin-activity li { display:flex; gap:12px; padding:17px 0; border-bottom:1px solid var(--line); }
.admin-activity li:last-child { border:0; }
.admin-activity li>span { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border:1px solid var(--line); border-radius:50%; color:var(--bronze); }
.admin-activity li>span .svg-icon { width:14px; height:14px; }
.admin-activity strong { color:var(--ink); font-size:13px; font-weight:600; }
.admin-activity p { color:var(--muted); font-size:12px; margin:3px 0; }
.admin-activity time { color:var(--muted); font-size:10px; }
.admin-activity .admin-no-activity { padding:35px 0; align-items:center; color:var(--muted); }
.admin-no-activity>.svg-icon { color:var(--green); }
.admin-page .stack-form label { color:var(--ink); font-size:14px; }
.admin-page .stack-form input,.admin-page .stack-form textarea { font-size:14px; }
@media(max-width:1180px) { .admin-workspace { grid-template-columns:190px minmax(0,1fr); } .admin-sidebar { padding-inline:12px; } .admin-dashboard { padding:28px 22px; } .admin-metrics { gap:11px; } .admin-metrics article { padding:20px 16px; } .admin-metrics article>strong { font-size:31px; } .admin-card td,.admin-card th { padding-inline:18px; } }
@media(max-width:600px) { .admin-dashboard { padding:25px 15px; } .admin-title-row { align-items:flex-start; flex-direction:column; gap:14px; } .admin-title-row h1 { font-size:29px; } .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .admin-metrics article { padding:18px 15px; } .admin-metrics article>span { font-size:12px; } .metric-icon { right:12px; top:18px; } .metric-icon .svg-icon { width:17px; height:17px; } .admin-card-heading { padding:19px 18px; } .admin-table-tools { align-items:stretch; flex-direction:column; padding:15px 18px; } .admin-status-filter { justify-content:space-between; } .admin-status-filter select { flex:1; max-width:75%; } .admin-lower-grid { grid-template-columns:1fr; gap:20px; } .admin-card table { min-width:590px; } .admin-card td,.admin-card th { padding:16px; } }

.map-3d-note { position:absolute; left:26px; bottom:34px; font-size:9px; padding:4px 7px; background:#fff9e9e6; color:#4d593c; border:1px solid #d9d1b2; border-radius:4px; }
.navigation-panel { position:absolute; left:25px; bottom:53px; z-index:5; width:min(410px,calc(100% - 110px)); max-height:calc(100% - 150px); overflow:auto; overscroll-behavior:contain; padding:20px; background:var(--surface); color:var(--ink); border:1px solid #d6aa6077; border-radius:11px; box-shadow:0 15px 50px #071e2b30; }
.navigation-heading { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.navigation-heading>div { min-width:0; }
.navigation-heading>div>span { display:flex; align-items:center; gap:7px; color:var(--bronze); font-size:11px; }
.navigation-heading>div>span .svg-icon { width:16px; height:16px; }
.navigation-heading h2 { font-size:25px; line-height:1.2; margin:9px 0 0; }
.navigation-heading>.icon-button { flex-shrink:0; width:35px; height:35px; border:1px solid var(--line); }
.navigation-status { color:var(--green); background:var(--paper); border-radius:5px; padding:9px 11px; margin:17px 0 13px; font-size:12px; }
.navigation-consent { color:var(--muted); font-size:12px; line-height:1.7; margin:0 0 16px; }
.navigation-summary { display:flex; align-items:center; gap:23px; padding:3px 0 17px; border-bottom:1px solid var(--line); }
.navigation-summary>div { flex:1; }
.navigation-summary strong { display:block; font-size:25px; font-weight:650; color:var(--ink); letter-spacing:-.6px; }
.navigation-summary span { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.navigation-instruction { font-size:16px; font-weight:600; line-height:1.5; color:var(--ink); margin:18px 0; }
.navigation-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.navigation-actions>.primary-button { flex:1; min-height:47px; }
.navigation-actions>.text-button { width:100%; font-size:12px; }
.navigation-steps { list-style:none; margin:12px 0; padding:0; max-height:190px; overflow:auto; border-top:1px solid var(--line); }
.navigation-steps li { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.navigation-steps li>span { display:grid; place-items:center; height:23px; min-width:23px; border-radius:50%; color:var(--bronze); background:var(--paper); font-size:10px; }
.navigation-steps li p { color:var(--ink); font-size:12px; margin:0; }
.navigation-hint { margin:15px 0 0; color:var(--muted); font-size:10px; line-height:1.7; }
.navigation-hint a { color:var(--bronze); text-decoration:underline; }
.navigation-destination-marker { display:grid; place-items:center; width:43px; height:43px; border:3px solid #fff7e4; border-radius:50%; color:#fff7e4; background:#ad4d2e; box-shadow:0 3px 15px #071e2b44; }
.navigation-destination-marker .svg-icon { width:23px; height:23px; }
.navigation-origin-marker { display:grid; place-items:center; width:35px; height:35px; border:2px solid #87612f; border-radius:50%; background:#fff6df; color:#87612f; }
.navigation-origin-marker .svg-icon { width:19px; height:19px; }
.navigation-preview { color:var(--bronze); font-size:11px; margin-top:8px; }
.navigating .map-story,.navigating .mobile-list-toggle,.navigating .map-3d-note { display:none; }
@media(min-width:821px) {
  .explorer.navigating { grid-template-columns:0 minmax(0,1fr); }
  .navigating .discovery-panel { visibility:hidden; overflow:hidden; padding:0; border:0; }
}
@media(max-width:820px) {
  .map-3d-note { left:14px; bottom:calc(44% + 24px); max-width:calc(100% - 100px); font-size:7px; }
  .map-only .map-3d-note { bottom:22px; }
  .navigating .map-search-slot { display:none; }
  .navigating .map-tools { top:15px; }
  .navigation-panel { left:0; right:0; bottom:0; width:100%; max-height:56%; min-height:180px; padding:18px 20px; border-radius:16px 16px 0 0; }
  .navigation-heading h2 { font-size:23px; }
  .navigation-status { margin-top:13px; }
  .navigation-consent { font-size:12px; }
  .navigation-hint { font-size:9px; }
  .navigating .map-area :is(.maplibregl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-right) { bottom:57%; left:10px; }
}
@media(max-width:350px) { .navigation-panel { padding:15px; } .navigation-heading h2 { font-size:21px; } .navigation-actions>.primary-button { font-size:11px; } }

/* Mapbox keeps its provider attribution and logo visible in every layout. */
.map-style-switch { position:absolute; top:115px; left:26px; display:flex; gap:3px; padding:4px; border:1px solid var(--line); border-radius:9px; background:var(--surface); box-shadow:var(--shadow); }
.map-style-switch[hidden] { display:none; }
.map-style-switch button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 13px; border-radius:6px; color:var(--ink); background:transparent; font-size:11px; font-weight:600; }
.map-style-switch button[aria-pressed="true"] { background:var(--deep); color:#f2ce8b; }
.map-style-switch .svg-icon { width:16px; height:16px; }
.map-caption { left:auto; right:12px; bottom:31px; }
.map-3d-note { bottom:9px; left:110px; }
.navigating .map-style-switch { top:24px; left:26px; }
@media (max-width:820px) {
  .map-style-switch { top:128px; left:14px; }
  .map-style-switch button { min-height:38px; padding:0 10px; font-size:10px; }
  .map-area .mapboxgl-ctrl-bottom-left { bottom:calc(44% + 4px); }
  .map-only .map-area .mapboxgl-ctrl-bottom-left { bottom:0; }
  .map-3d-note { left:14px; bottom:calc(44% + 47px); }
  .map-only .map-3d-note { left:14px; bottom:43px; }
  .navigating .map-style-switch { top:15px; left:14px; }
  .navigating .map-area .mapboxgl-ctrl-bottom-left { bottom:57%; }
}
@media (max-width:820px) and (max-height:520px) {
  .map-style-switch { top:174px; }
}

@media (max-width:820px) {
  .map-area :is(.maplibregl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-right) { left:100px; right:auto; width:max-content; max-width:calc(100% - 115px); }
  .navigating .map-area :is(.maplibregl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-right) { left:100px; }
}

/* Organization workspaces: precise type, real data and accessible SVG charts. */
.workspace-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; }
.workspace-toolbar>.eyebrow { color:var(--muted); font-size:10px; white-space:nowrap; }
.workspace-selector { display:flex; align-items:center; gap:9px; max-width:65%; }
.workspace-selector label { font-size:11px; color:var(--muted); }
.admin-page select,.admin-page input,.admin-page textarea { color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:6px; font:inherit; }
.admin-page select { min-height:40px; padding:8px 11px; max-width:100%; }
.workspace-selector select { min-width:0; max-width:320px; font-size:12px; }
.workspace-selector .secondary-button { min-height:40px; padding:8px 12px; font-size:11px; }
.admin-title-row .primary-button,.admin-title-row .secondary-button { min-height:44px; font-size:12px; white-space:nowrap; padding:12px 17px; }
.admin-chart-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:22px; margin-bottom:25px; }
.activity-chart-body { padding:23px 24px 14px; }
.activity-chart-body>strong { font-size:29px; letter-spacing:-.8px; font-weight:650; }
.activity-chart-body>strong>span { font-size:11px; color:var(--muted); letter-spacing:0; font-weight:400; }
.activity-chart svg { display:block; width:100%; height:155px; margin-top:15px; overflow:visible; }
.chart-guide { stroke:var(--line); stroke-width:1; fill:none; stroke-dasharray:4 5; }
.chart-line { stroke:#278b9a; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.chart-area { fill:#278b9a16; }
.dark .chart-line { stroke:#72d0d1; }
.dark .chart-area { fill:#72d0d118; }
.chart-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; padding:0 15px; }
.chart-data { margin-top:15px; color:var(--muted); font-size:11px; }
.chart-data ol { display:flex; flex-wrap:wrap; gap:5px 23px; padding-left:20px; }
.category-chart { padding:24px; }
.category-chart>div:not(.publication-key) { display:grid; grid-template-columns:1fr auto; gap:10px; margin-bottom:17px; font-size:12px; }
.category-chart meter { grid-column:1/-1; width:100%; height:10px; appearance:none; border:0; background:var(--paper); border-radius:4px; }
.category-chart meter::-webkit-meter-bar { border:0; background:var(--paper); border-radius:4px; }
.category-chart meter::-webkit-meter-optimum-value { background:#2b8d84; border-radius:4px; }
.publication-key { display:flex; flex-wrap:wrap; gap:9px; padding-top:15px; border-top:1px solid var(--line); }
.admin-edit-form fieldset { padding:0; margin:0; border:0; min-width:0; }
.admin-edit-form fieldset:disabled { opacity:.82; }
.form-section { padding:26px; margin-bottom:22px; }
.form-section h2 { margin:0 0 14px; font:600 18px/1.4 'Segoe UI',sans-serif; }
.form-section label { display:flex; flex-direction:column; gap:9px; font-size:12px; font-weight:500; color:var(--ink); }
.form-section input:not([type=checkbox]),.form-section textarea { width:100%; min-width:0; min-height:44px; padding:11px 12px; }
.form-section textarea { resize:vertical; line-height:1.7; }
.form-section .checkbox-label { display:flex; flex-direction:row; align-items:center; margin:20px 0 8px; }
.form-section .checkbox-label input { width:18px; height:18px; }
.form-section .primary-button { justify-self:start; padding:12px 19px; font-size:13px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:18px; }
.translation-fields { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.translation-fields label:first-child { grid-column:1/-1; }
.hours-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.admin-cover-preview { display:block; width:100%; max-height:260px; object-fit:cover; border-radius:7px; margin:18px 0; }
.admin-cover-preview[hidden] { display:none; }
.form-save-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.form-save-bar p { color:var(--muted); font-size:11px; max-width:60%; }
.form-save-bar .primary-button { white-space:nowrap; }
.form-errors { padding:14px 18px; margin-bottom:20px; border:1px solid #bd6d5e; border-radius:7px; color:var(--ink); background:#bd6d5e12; }
.form-errors p { margin:4px 0; }
.organization-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
.organization-card { position:relative; padding:26px; }
.organization-card-icon { display:grid; place-items:center; width:44px; height:44px; background:var(--paper); border:1px solid var(--line); border-radius:8px; color:var(--bronze); margin-bottom:20px; }
.organization-card .eyebrow { font-size:9px; color:var(--muted); }
.organization-card h2 { font-size:20px; margin:8px 0 10px; overflow-wrap:anywhere; }
.organization-card p { color:var(--muted); font-size:12px; }
.organization-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:22px; }
.organization-actions .secondary-button,.organization-actions .primary-button { font-size:12px; padding:10px 15px; }
.invite-form { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto; align-items:end; gap:16px; }
.member-controls { display:flex; align-items:center; gap:10px; }
.member-controls .checkbox-label { flex-direction:row; white-space:nowrap; font-size:12px; }
.permission-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.permission-cards article { padding:17px; background:var(--paper); border:1px solid var(--line); border-radius:7px; }
.permission-cards strong { font-size:13px; }
.permission-cards p { font-size:12px; line-height:1.7; color:var(--muted); margin-bottom:0; }
.invitation-accept { width:min(620px,calc(100% - 32px)); margin:50px auto; }
.invitation-accept h1 { font-size:28px; }
.detail-image { width:100%; object-fit:cover; background:none; }
#detail-hours { font-size:11px; line-height:1.8; }
#detail-photo-credit:empty { display:none; }
@media (max-width:1100px) {
 .admin-workspace { grid-template-columns:190px minmax(0,1fr); }
 .admin-dashboard { padding:26px 22px; }
 .workspace-toolbar { align-items:flex-start; flex-direction:column; gap:15px; }
 .workspace-selector { max-width:100%; width:100%; }
 .workspace-selector select { flex:1; max-width:none; }
 .admin-chart-grid { grid-template-columns:1fr; }
 .invite-form { grid-template-columns:1fr 1fr; }
 .invite-form button { grid-column:1/-1; }
}
@media (max-width:820px) {
 .admin-workspace { display:block; }
 .admin-sidebar { flex-direction:row; overflow-x:auto; padding:10px 14px; gap:5px; border:0; }
 .admin-sidebar .admin-section-label,.admin-sidebar .admin-user { display:none; }
 .admin-side-link { flex:0 0 auto; white-space:nowrap; font-size:11px; min-height:42px; padding:10px; gap:7px; }
 .admin-side-link .svg-icon { width:16px; height:16px; }
 .admin-tourism-link { border:0; margin:0; padding-top:10px; border-radius:7px; }
 .admin-dashboard { padding:23px 16px 32px; }
 .admin-title-row { align-items:flex-start; gap:12px; }
 .admin-title-row h1 { font-size:26px; }
 .admin-title-row p { font-size:12px; }
 .admin-title-row .primary-button,.admin-title-row .secondary-button { padding:10px 12px; font-size:11px; }
 .workspace-selector { flex-wrap:wrap; }
 .workspace-selector label { width:100%; }
 .admin-metrics { grid-template-columns:1fr 1fr; gap:10px; }
 .admin-metrics article { padding:18px 14px; }
 .admin-metrics article>span { font-size:11px; }
 .admin-metrics article>strong { font-size:29px; }
 .admin-metrics small { font-size:10px; }
 .admin-chart-grid,.organization-grid,.form-grid,.translation-fields,.hours-grid,.invite-form,.permission-cards { grid-template-columns:1fr; }
 .form-section { padding:20px 17px; }
 .form-section h2 { font-size:17px; }
 .admin-card-heading { padding:19px 17px; }
 .admin-card-heading h2 { font-size:15px; }
 .activity-chart-body,.category-chart { padding:18px 17px; }
 .form-save-bar { flex-direction:column; align-items:stretch; padding:16px; }
 .form-save-bar p { max-width:none; margin:0; }
 .admin-table-tools { padding:16px; }
 .admin-lower-grid { grid-template-columns:1fr; }
}
.marker.restaurant,.marker.bar,.marker.cafe,.marker.bakery{background:#287b35;color:#fff;border-color:#b9e29e}.marker.shop,.marker.supermarket{background:#367c58;color:#fff;border-color:#b8dfbe}.marker.service,.marker.hairdresser,.marker.beauty{background:#3158a3;color:#fff;border-color:#bdd4fa}.marker.lodging{background:#7145a8;color:#fff;border-color:#dcc5f8}.place-symbol.restaurant,.place-symbol.bar,.place-symbol.cafe,.place-symbol.bakery,.place-symbol.shop,.place-symbol.supermarket{background:#e7f4e9;color:#256b36;border-color:#cee7d2}.place-symbol.hairdresser,.place-symbol.beauty{background:#e9effb;color:#3158a3;border-color:#d3dff2}
