:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --surface: #fdfaf4;
  --ink: #2f231e;
  --muted: #62554a;
  --line: #e3d7c6;
  --red: #8e3228;
  --red-dark: #542720;
  --gold: #af8253;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --heritage: #9a4034;
  --alleys: #795027;
  --culture: #485b64;
  --wall: #566143;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.64 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; width: 100%; object-fit: cover; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a04b38; outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 1.16em; height: 1.16em; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.site-header { background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #412722; font-size: 1.08rem; font-weight: 770; letter-spacing: .045em; line-height: 1.15; }
.brand small { display: block; font: 650 .59rem/1.1 system-ui,sans-serif; letter-spacing: .16em; margin-top: 5px; }
.mark { display: grid; place-items: center; color: #f8ead0; background: #853127; border: 1px solid #9a483a; border-radius: 8px; width: 37px; height: 37px; font-size: 1.39rem; }
.header-inner nav { display: flex; gap: 35px; align-self: stretch; align-items: stretch; font-size: .94rem; color: var(--muted); }
.header-inner nav a { display: grid; place-items: center; position: relative; white-space: nowrap; }
.header-inner nav a:hover { color: var(--red); }
.header-inner nav a[aria-current] { color: var(--red); font-weight: 750; }
.header-inner nav a[aria-current]::after { position: absolute; content: ""; height: 2px; bottom: 0; width: 76%; background: var(--red); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 11px; border: 1px solid #e2d4c0; border-radius: 7px; background: #fcf8f0; font-size: .875rem; font-weight: 680; white-space: nowrap; }
.button:hover { background: #f0e6d8; border-color: #d8c4aa; }
.header-tool { justify-self: end; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 232px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; color: #fff4df; background: #612820; border-radius: 12px; }
.hero-inner { z-index: 1; align-self: center; padding: 24px clamp(20px, 3.4vw, 48px); }
.hero-image { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; height: 100%; object-position: 50% 26%; filter: saturate(.87) brightness(.86); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#53251b35,transparent 22%),linear-gradient(0deg,#2517139c,transparent 39%); pointer-events: none; }
.hero h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 15px; margin: 0; font-family: var(--serif); font-weight: 800; line-height: 1; }
.hero-city { font-size: clamp(3.05rem,7vw,6.75rem); letter-spacing: -.085em; }
.hero-title-part { font-size: clamp(1.7rem,3.1vw,3.1rem); letter-spacing: -.035em; white-space: nowrap; color: #f4d7a9; }
.hero-subtitle { margin: 12px 0 15px; color: #f6e1cb; font-size: .99rem; }
.hero-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #ebcda4; border-radius: 5px; background: #f4e2c0; color: #4c271e; font-weight: 760; font-size: .9rem; transition: background-color .16s, box-shadow .16s; }
.hero-button:hover { background: #ffeac7; box-shadow: 0 3px 11px #2b160b5e; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.hero-cities { background: #40221ac9; color: #fff4df; }
.hero-cities:hover { background: #603025; }
.hero-credit { position: absolute; z-index: 1; right: 12px; bottom: 10px; display: inline-flex; gap: 5px; align-items: center; padding: 3px 7px; background: #372019d9; border: 1px solid #c9a07951; border-radius: 5px; color: #fff1dc; font-size: .8rem; }
.hero-credit:hover { background: #4a2820; }

.atlas { padding: 26px 0 0; scroll-margin-top: 12px; }
.references-section { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,3fr); gap: clamp(14px, 3vw, 38px); padding: 39px 0 48px; }
.photo-spots { padding-top: 33px; }
.photo-spots .section-head h2 { margin-bottom: 12px; }
.photo-spots-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.photo-spot { position: relative; display: grid; align-items: end; isolation: isolate; height: clamp(132px,17vw,220px); overflow: hidden; border: 1px solid #ccb29b; border-radius: 8px; color: #fff4e4; background: #614034; }
.photo-spot:is(:first-child,:last-child) { grid-column: span 2; }
.photo-spot img { position: absolute; inset: 0; height: 100%; z-index: -2; transition: transform .28s ease; }
.photo-spot:hover img { transform: scale(1.04); }
.photo-spot::after { content: ""; position: absolute; inset: 28% 0 0; z-index: -1; background: linear-gradient(0deg,#231512ee,transparent); }
.photo-spot span { display: flex; justify-content: space-between; align-items: end; gap: 6px; padding: 7px 10px; font: 760 clamp(.96rem,2.55vw,1.33rem)/1.25 var(--serif); }
.references-section .section-head { display: grid; align-content: start; justify-items: start; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-head h2 { font: 800 clamp(1.85rem,3.2vw,2.5rem)/1.09 var(--serif); margin: 0 0 7px; letter-spacing: -.015em; }
.section-head p { margin: 0; color: var(--muted); font-size: .96rem; }
.atlas-controls { padding: 12px 0 11px; }
.ratings-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #74422a; }
.ratings-button:hover { text-decoration: underline; }
.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #e3d7c4; border-radius: 7px; background: #fbf8f1; color: #5f4c3d; font-weight: 670; font-size: .885rem; white-space: nowrap; }
.filter:hover { background: #f0e4d6; }
.filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff5e5; }
.atlas-grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(295px, 1fr); align-items: stretch; overflow: hidden; border: 1px solid #d9c9b6; border-radius: 12px; box-shadow: 0 9px 26px #57351a12; }
.map-card, .list-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: #f3e2c9; background: #2b221f; border-bottom: 1px solid #514036; }
.map-title { display: flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 750; white-space: nowrap; }
.map-title .icon { color: #dbb282; }
.map-toolbar { display: flex; gap: 7px; align-items: center; }
.scope-switch, .view-switch { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid #665243; border-radius: 7px; background: #3a2f29; }
.scope-switch button, .view-switch button { min-height: 29px; padding: 3px 8px; border: 0; border-radius: 5px; color: #e2c9ad; background: transparent; white-space: nowrap; font-size: .81rem; font-weight: 680; }
.scope-switch button:hover, .view-switch button:hover { background: #514036; }
.scope-switch button[aria-pressed="true"] { color: #4b2e23; background: #f3e0bf; }
.view-switch button { display: flex; gap: 4px; align-items: center; justify-content: center; }
.view-switch button[aria-pressed="true"] { background: #a54d3d; color: #fff3dc; }
.map-toolbar :focus-visible { outline-color: #f3cb97; }
.map-viewport { position: relative; height: clamp(400px, 41vw, 568px); overflow: hidden; isolation: isolate; overscroll-behavior-x: contain; background-color: #eee7d9; background-image: radial-gradient(ellipse at 58% 47%,#f6f0e5,#eee8da); touch-action: pan-y; }
.map-viewport:focus-visible { outline-offset: -3px; }
.map-viewport.is-pannable { cursor: grab; }
.map-viewport.is-zoomed { touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-viewport.is-orbiting, .map-viewport.is-orbiting :is(.map-pin,.map-label) { cursor: grabbing; }
.basemap, .building-layer, .map-shade, .leader-lines, .markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.basemap, .building-layer, .map-shade, .leader-lines { pointer-events: none; }
.basemap { right: auto; bottom: auto; overflow: hidden; transform-origin: center; }
.basemap .map-feature { vector-effect: non-scaling-stroke; fill-rule: evenodd; }
.map-greens { fill: #dfe4cf; }
.map-urban { fill: #e9ddce; }
.map-lakes { fill: #aebfc2; stroke: #a2b2b5; stroke-width: .45; }
.map-rivers { fill: none; stroke: #b1c2c5; stroke-width: 1; }
.map-roads { fill: none; stroke: #d9cabb; stroke-width: .70; stroke-linecap: round; }
.map-main { fill: none; stroke: #cbbaa8; stroke-width: 1.15; stroke-linecap: round; }
.map-axis { fill: none; stroke: #9f5543; stroke-width: 1.7; stroke-dasharray: 5 4; opacity: .68; }
.map-zone { position: absolute; pointer-events: none; color: #736454; text-align: center; font-size: .71rem; letter-spacing: .12em; font-weight: 750; white-space: nowrap; transform: translate(-50%,-50%); text-shadow: 0 0 4px #fef5e7, 0 0 4px #fef5e7; }
.leader-lines line { stroke: #9c806d; stroke-width: 1; }
.leader-lines line.active { stroke: #8c372a; stroke-width: 1.3; }
.map-label, .map-pin { --accent: var(--heritage); position: absolute; color: var(--ink); background: #fcf9ef; }
:is(.map-label, .map-pin, .place-item)[data-type="alleys"] { --accent: var(--alleys); }
:is(.map-label, .map-pin, .place-item)[data-type="culture"] { --accent: var(--culture); }
:is(.map-label, .map-pin, .place-item)[data-type="wall"] { --accent: var(--wall); }
.map-label { display: flex; align-items: center; gap: 5px; justify-content: space-between; height: 30px; padding: 0 6px 0 7px; border: 1px solid #cabbab; border-radius: 6px; font-size: .78rem; font-weight: 730; line-height: 1; white-space: nowrap; box-shadow: 0 2px 4px #4e35251a; }
.map-label .icon { color: var(--accent); font-size: .97rem; }
.map-label strong { color: var(--accent); font: 800 .81rem/1 system-ui,sans-serif; }
.map-label:is(:hover,:focus-visible,.active) { border-color: var(--accent); }
.map-label.active { color: #fff7e8; background: var(--red); z-index: 1; }
.map-label.active :is(.icon,strong) { color: #fff1d5; }
.map-pin { display: grid; place-items: center; width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fffcf2; background: var(--accent); box-shadow: 0 0 0 1px #716252,0 2px 4px #573c2c4c; transform: translate(-50%,-50%); }
.map-pin.active { box-shadow: 0 0 0 3px #9c493f4c,0 0 0 1px var(--red-dark); }
.map-pin.pin-only { width: 26px; height: 26px; color: #fff; font: 750 .61rem/1 system-ui,sans-serif; }
.markers { pointer-events: none; }
.markers button { pointer-events: auto; }
.map-north { position: absolute; right: 10px; top: 11px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #c9b8a5; border-radius: 50%; color: #704836; background: #fff9ef; font-size: .74rem; font-weight: 800; }
.compass-needle { display: grid; justify-items: center; line-height: 1; }
.map-north .icon { width: 17px; height: 17px; fill: #a06248; }
.map-north:hover { background: #f6e6d2; }
.map-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; overflow: hidden; border: 1px solid #cdbca7; border-radius: 8px; background: #fff9ef; box-shadow: 0 2px 6px #4d382b23; }
.square-button { display: grid; place-items: center; border: 0; min-width: 36px; min-height: 34px; padding: 0; color: #634335; background: transparent; font-size: 1.08rem; }
.square-button:hover { background: #eee0cd; }
.map-zoom button + button { border-top: 1px solid #e7dac8; }
.map-zoom button:disabled { opacity: .45; }
.map-zoom button:focus-visible { outline-offset: -3px; }
.scale { position: absolute; left: 14px; bottom: 12px; display: grid; justify-items: start; gap: 2px; font-size: .72rem; color: #654f3e; padding: 3px 6px; border-radius: 4px; background: #f9f5eade; pointer-events: none; }
#scale-length { display: block; max-width: 114px; height: 5px; border: 1px solid #755746; border-top: 0; }
.map-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; color: #675445; background: #fbf7ef; font-size: .75rem; min-height: 38px; }
.map-foot > span { display: inline-flex; gap: 5px; align-items: center; }
.map-foot .map-credits { margin-left: auto; gap: 4px; font-size: .71rem; }
.map-credits a:hover { text-decoration: underline; }
.axis-swatch { width: 18px; border-top: 2px dashed #9f5543; }
.point-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
#map-gestures { font-weight: 670; }
.touch-gestures { display: none; }
@media (hover: none) and (pointer: coarse) {
  #map-gestures .pointer-gestures { display: none; }
  #map-gestures .touch-gestures { display: inline; }
}

.map-viewport.is-tilted { background: radial-gradient(ellipse at 51% 64%,#332721 0%,#29231f 58%,#211d1a 100%); }
.is-tilted .basemap { will-change: transform; }
.is-tilted .map-greens { fill: #363b30; }
.is-tilted .map-urban { fill: #402f25; }
.is-tilted .map-lakes { fill: #334548; stroke: #526569; stroke-width: .6; }
.is-tilted .map-rivers { stroke: #4c6163; }
.is-tilted .map-roads { stroke: #564638; stroke-width: .62; }
.is-tilted .map-main { stroke: #867053; stroke-width: 1.08; }
.is-tilted .map-axis { stroke: #ed9b62; opacity: .94; }
.is-tilted .map-shade { background: linear-gradient(180deg,#21191840,transparent 24%,transparent 84%,#20171938); }
.building-shadow { fill: #16100e; opacity: .72; }
.building-wall { fill: #754c35; stroke: #3b211c; stroke-width: .28px; }
.building-roof { fill: #b58858; stroke: #ebbe7c; stroke-width: .31px; }
.is-tilted .map-zone { color: #bda78b; text-shadow: 0 1px 4px #231b18,0 0 4px #231b18; }
.is-tilted .leader-lines line { stroke: #a58c6f; }
.is-tilted .leader-lines line.active { stroke: #e5af72; }
.is-tilted .map-label { color: #f5e7d1; background: #332924ed; border-color: #715744; box-shadow: 0 3px 9px #170e0d62; }
.is-tilted .map-label :is(.icon,strong) { color: #e8bb86; }
.is-tilted .map-label:is(:hover,:focus-visible) { border-color: #edb878; background: #54392b; }
.is-tilted .map-label.active { background: #a84937; border-color: #eea366; color: #fff2df; }
.is-tilted .map-label.active :is(.icon,strong) { color: #ffdfae; }
.is-tilted .map-pin { border-color: #f4c98c; box-shadow: 0 0 0 1px #211915,0 2px 7px #0d0807a2; }
.is-tilted .map-pin.active { background: #de7960; box-shadow: 0 0 0 4px #e5835744; }
.is-tilted .map-north { color: #fcdfad; border-color: #9a7456; background: #2d231eec; }
.is-tilted .map-north:hover { background: #543c2e; }
.is-tilted .map-north .icon { fill: #b27045; }
.is-tilted .map-zoom { color: #fbdfb2; background: #322621f5; border-color: #896b50; box-shadow: 0 4px 15px #150e0bc0; }
.is-tilted .map-zoom .square-button { color: inherit; }
.is-tilted .map-zoom button + button { border-color: #66513e; }
.is-tilted .map-zoom .square-button:hover { background: #543c2e; }
.is-tilted .scale { color: #f5d9ad; background: #2b221cd9; }
.is-tilted #scale-length { border-color: #d9b787; }

.list-card { min-height: 0; border-left: 1px solid #ddcfbf; }
.list-head { padding: 14px 14px 10px; border-bottom: 1px solid #e6dbcd; }
.list-title-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.list-title-line h3 { font: 800 1.35rem/1.2 var(--serif); margin: 0; }
#count { color: #705840; font-size: .82rem; }
.search-box { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #e6d8c8; border-radius: 7px; background: #f8f1e5; color: #765c46; }
.search-box:focus-within { outline: 2px solid #a55c4b; outline-offset: 1px; }
.search-box input { min-width: 0; width: 100%; border: 0; background: none; outline: none; font-size: .86rem; }
.search-box input::placeholder { color: #796b5d; }
.place-list { padding: 8px; overflow-y: auto; flex: 1 1 0; scrollbar-width: thin; scrollbar-color: #cbb6a0 transparent; }
.place-item { --accent: var(--heritage); display: grid; grid-template-columns: 67px minmax(0,1fr) auto; min-height: 77px; align-items: center; gap: 9px; border: 1px solid transparent; border-bottom-color: #ede1d4; border-radius: 7px; padding: 6px; margin-bottom: 2px; transition: background-color .15s, border-color .15s; }
.place-item:is(:hover,.is-previewed) { background: #f3e5d6; border-color: #e2c7b1; }
.place-item.active { border-color: #d2a393; background: #f7e8df; box-shadow: inset 3px 0 #a04938; }
.map-label.is-previewed { border-color: var(--accent); box-shadow: 0 0 0 2px #b77b5480; z-index: 2; }
.is-tilted .map-label.is-previewed { background: #513427; border-color: #e7b77c; box-shadow: 0 0 0 2px #e7b77c52; }
.map-pin.is-previewed { outline: 2px solid #bd8354; outline-offset: 3px; }
.is-tilted .map-pin.is-previewed { outline-color: #f4c88c; }
.leader-lines line.is-previewed { stroke: #a8633a; stroke-width: 2; }
.is-tilted .leader-lines line.is-previewed { stroke: #f4c88c; }
.place-thumb { width: 67px; height: 57px; align-self: center; overflow: hidden; border-radius: 5px; background: #e7d6bd; }
.place-thumb img { height: 100%; }
.photo-fallback { display: grid; width: 100%; height: 100%; place-items: center; background: #e5d7c2; color: #8d5f49; font-size: 1.4rem; }
.place-name { display: block; font-weight: 800; line-height: 1.25; font-size: .99rem; }
.place-meta { display: block; color: #6c594a; font-size: .75rem; margin-top: 4px; }
.place-score { display: grid; grid-auto-flow: column; align-items: center; gap: 3px; color: var(--accent); font: 795 .96rem/1 system-ui,sans-serif; padding-right: 3px; }
.place-score .icon { font-size: .78rem; }
.empty-list { margin: 13px 9px; color: var(--muted); }
#load-error { padding: 10px 12px; border: 1px solid #d6a48f; background: #f8e4d7; border-radius: 7px; }

.wiki-reading { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.wiki-topic { display: grid; align-content: start; gap: 4px; border: 1px solid #e7d8c9; background: #fdf8f0; border-radius: 8px; padding: 12px; }
.wiki-topic:hover { border-color: #c5967f; background: #f9eddf; }
.wiki-topic strong { color: #633428; }
.wiki-topic span { color: var(--muted); font-size: .875rem; }
.text-link { color: #854438; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #592c25; }
.site-foot { border-top: 1px solid #e2d5c4; background: #efe5d8; }
.footer-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 17px; padding-block: 15px; }
.footer-inner > div { display: flex; align-items: center; gap: 16px; color: #684a3d; font-size: .88rem; }
.link-button { border: 0; background: transparent; padding: 0; }
.footer-inner :is(a,button):hover { text-decoration: underline; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(530px, calc(100vw - 28px)); padding: 0; max-width: none; max-height: min(91dvh, 920px); border: 1px solid #ddc5ae; border-radius: 13px; box-shadow: 0 20px 80px #24151270; background: #fdf9f1; color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: #31201cc2; backdrop-filter: blur(4px); }
dialog.guide { width: min(940px, calc(100vw - 30px)); }
#dialog.guide.is-expanded { position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
dialog[open] { animation: open-guide .18s ease-out; }
@keyframes open-guide { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.dialog-top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #e2d6c6; color: #64443a; background: #fbf3e7; font-size: .87rem; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 5px 12px 5px 16px; }
.dialog-actions { display: flex; flex: none; gap: 7px; }
.dialog-top button { border-radius: 6px; }
#guide-expand { border-color: #ddc5ae; color: #733629; min-height: 34px; padding-block: 3px; }
#guide-expand[aria-pressed="true"] { background: #f1dfcc; }
.is-expanded .dialog-toolbar, .is-expanded .guide-jumps, .is-expanded .guide-heading, .is-expanded .guide-inner { width: min(1190px,100%); margin-inline: auto; }
.is-expanded .guide-head { min-height: clamp(224px,38dvh,430px); }
.small-body { padding: 21px; }
.small-body h2 { font: 800 1.85rem/1.15 var(--serif); margin: 0 0 12px; }
.small-body p { margin: 0 0 9px; color: #604c41; }
.small-body ul { padding-left: 19px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.guide-head { isolation: isolate; position: relative; display: flex; align-items: end; min-height: 253px; overflow: hidden; color: #fff5e6; background: #6b372d; }
.guide-head img { position: absolute; inset: 0; z-index: -2; height: 100%; object-position: 50% 48%; }
.guide-head[data-place-id="forbidden-city"] img { object-position: 50% 72%; }
.guide-head::after { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(0deg,#381d16ed,#42231733 78%); }
.guide-heading { width: 100%; padding: 19px 25px 22px; }
.guide-heading p { margin: 0 0 5px; font-size: .87rem; font-weight: 650; color: #f2d6b3; }
.guide-heading h2 { font: 800 clamp(2.2rem,5.8vw,3.9rem)/1.06 var(--serif); margin: 0 0 8px; letter-spacing: -.025em; }
.guide-heading .guide-summary { margin: 0; max-width: 68ch; color: #f5e6d1; font-size: .98rem; font-weight: 570; padding-right: 60px; }
.guide-photo { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #f3e1c882; border-radius: 6px; background: #452920d9; color: #fff5e6; }
.guide-photo:hover { background: #6b372d; }
.guide-inner { padding: 14px 25px 25px; }
.guide-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 11px; border-bottom: 1px solid #e8daca; color: #6a4639; font-size: .9rem; }
.guide-facts > span { display: inline-flex; align-items: center; gap: 5px; }
.guide-facts strong { color: var(--red); }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.guide-links { padding-top: 10px; }
.guide-jumps { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 1px 12px 7px 16px; }
.guide-jumps button { flex: none; padding: 4px 8px; border: 1px solid #e7d9c8; border-radius: 5px; background: #f9efe2; color: #6b4b3d; font-size: .875rem; white-space: nowrap; }
.guide-jumps button:focus-visible { outline-offset: -2px; }
.guide-jumps button:hover { background: #efe2d1; }
.guide-jumps button[data-jump="place-history"] { color: #733629; border-color: #c9907b; font-weight: 700; }
.place-history { margin-top: 18px; scroll-margin-top: 96px; overflow: hidden; border: 1px solid #dbc3a9; border-radius: 12px; background: #fffaf1; }
.history-masthead { background: #562a25; color: #fff1dc; }
.history-masthead.has-photo { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.history-lead { padding: clamp(17px,3.6vw,36px); }
.history-eyebrow { display: flex; align-items: center; gap: .45em; margin: 0 0 .75rem; color: #f0c895; font-size: .875rem; font-weight: 720; letter-spacing: .14em; }
.history-lead h3 { margin: 0; font: 800 clamp(1.65rem,4vw,2.65rem)/1.16 var(--serif); text-wrap: balance; }
.history-lead > p:last-child { margin: .8rem 0 0; color: #fae3ce; font-size: 1rem; line-height: 1.65; }
.history-photo { position: relative; display: grid; grid-template-rows: 1fr auto; min-width: 0; min-height: 165px; margin: 0; border-left: 1px solid #ffffff29; }
.history-photo button { position: relative; min-height: 125px; width: 100%; padding: 0; overflow: hidden; border: 0; background: #361e19; cursor: zoom-in; }
.history-photo button:focus-visible { outline-color: #f0c895; outline-offset: -4px; }
.history-photo img { position: absolute; inset: 0; height: 100%; transition: transform .28s ease; }
.history-photo button:hover img { transform: scale(1.04); }
.history-photo figcaption { padding: 4px 9px; background: #452721; color: #f6dfc6; font-size: .82rem; }
.history-body { display: grid; grid-template-columns: minmax(165px,.78fr) minmax(0,1.8fr); }
.history-timeline { padding: clamp(13px,2.15vw,22px); border-right: 1px solid #e2cdb5; background: #f7ecdd; }
.place-history h4 { margin: 0 0 .8rem; color: #612d24; font: 800 1.25rem/1.18 var(--serif); }
.history-timeline ol { display: grid; gap: .95rem; margin: 0 0 0 .23rem; padding: .08rem 0 0 .9rem; border-left: 1px solid #c6a381; list-style: none; }
.history-timeline li { position: relative; }
.history-timeline li::before { position: absolute; top: .49rem; left: -1.16rem; width: .49rem; height: .49rem; border: 1px solid #f7ecdd; border-radius: 50%; background: #8c4134; content: ""; }
.history-year { display: block; color: #863a2d; font-size: .875rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.history-timeline strong { display: block; margin: .08rem 0; }
.history-timeline p { margin: 0; color: #584438; font-size: .9rem; line-height: 1.62; }
.history-story { padding: clamp(16px,2.7vw,26px); }
.history-story section + section { margin-top: 1rem; padding-top: .94rem; border-top: 1px solid #ead8c6; }
.history-story h5 { margin: 0 0 .28rem; color: #402820; font-size: 1.05rem; }
.history-story p { margin: 0; color: #493a31; line-height: 1.77; }
.history-story .history-detail { border: 1px solid #e5cbb0; border-left: 3px solid #a35847; border-radius: 6px; padding: 12px 14px; background: #fbefe0; }
.history-detail > a { display: inline-block; margin-top: 6px; font-size: .9rem; }
.history-cite { display: inline-block; margin-inline-start: .19em; color: #884035; font-size: .84rem; font-weight: 670; text-decoration: underline; text-underline-offset: .15em; }
.history-observations { padding: 15px clamp(14px,2.7vw,26px) 17px; border-top: 1px solid #e2cdb5; }
.history-observations h4 { display: flex; align-items: center; gap: .38rem; }
.history-observations ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.history-observations li { min-width: 0; border: 1px solid #e8d3bd; border-radius: 6px; padding: .65rem .7rem; background: #faf0e3; }
.history-observations strong { color: #622f25; }
.history-observations p { margin: .25rem 0 0; color: #533e33; font-size: .95rem; }
.history-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; padding: 10px clamp(14px,2.7vw,26px); border-top: 1px solid #e8d5bf; background: #f7ecdd; }
.history-sources { max-width: 100%; }
.history-sources summary { padding: 6px 0; color: #6d382c; font-size: .9rem; font-weight: 720; cursor: pointer; }
.history-sources ul { margin: .36rem 0 .3rem; padding: 0; list-style: none; }
.history-sources li { padding: .18rem 0; font-size: .9rem; overflow-wrap: anywhere; }
.guide-section { margin-top: 25px; scroll-margin-top: 96px; }
.guide-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: #5c3027; font: 800 1.52rem/1.2 var(--serif); }
.guide-section p { margin: 0 0 8px; color: #57473d; }
.walk-choice { padding: 9px 13px; border-left: 3px solid #ac5946; border-radius: 0 6px 6px 0; background: #f6e8d8; }
.walk-steps { display: grid; gap: 10px; padding: 0; margin: 0; counter-reset: route; list-style: none; }
.walk-step { position: relative; display: grid; padding: 12px; border: 1px solid #e8dbc9; border-radius: 8px; background: #fffcf5; counter-increment: route; }
.walk-step::before { content: counter(route); position: absolute; top: 13px; left: 12px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #edd7c4; color: #773a2d; font-weight: 750; font-size: .85rem; }
.walk-copy { padding-inline-start: 34px; min-width: 0; }
.walk-copy h4 { margin: 0 0 .5rem; color: #512b22; font: 800 1.16rem/1.35 var(--serif); }
.guide-detail-list { display: grid; gap: 7px; margin: 0; }
.guide-detail-list > div { display: grid; grid-template-columns: 5.2em minmax(0,1fr); gap: 5px; }
.guide-detail-list dt { color: #824333; font-size: .9rem; font-weight: 740; }
.guide-detail-list dd { margin: 0; color: #493931; line-height: 1.62; }
.walk-step > .guide-photo-grid { align-self: start; }
.guide-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.guide-gallery-head h3 { margin: 0; }
.guide-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.guide-photo-grid:has(.guide-figure:only-child) { grid-template-columns: 1fr; }
.guide-food-photos .guide-photo-grid:has(.guide-figure:only-child) { max-width: 445px; }
.guide-figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e8d7c5; border-radius: 7px; background: #faf1e5; }
.guide-figure button { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; background: #e7d7c3; cursor: zoom-in; }
.guide-figure button:focus-visible { outline-offset: -4px; }
.guide-figure img { height: 100%; transition: transform .28s ease; }
.guide-figure button:hover img { transform: scale(1.035); }
.guide-figure figcaption { padding: 5px 8px; color: #65493d; font-size: .82rem; }
.photo-expand { position: absolute; bottom: 6px; right: 6px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 4px; background: #3a231fd9; color: #fff9ed; }
.photo-expand .icon { width: 15px; height: 15px; }
.guide-food-photos { margin-top: 10px; }
.guide-food-photos > p { color: #65493d; }
#photo-viewer { position: fixed; width: min(1080px, calc(100vw - 24px)); max-height: 95dvh; border-color: #80574a; background: #281c18; color: #f8ebdb; }
#photo-viewer::backdrop { background: #211510cf; }
.photo-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 10px; font-size: .85rem; font-variant-numeric: tabular-nums; }
#photo-viewer .square-button { border-color: #955f4d; background: #39251f; color: #fff4e4; }
#photo-viewer .square-button:hover { background: #64382b; }
.photo-viewer-figure { margin: 0; }
.photo-viewer-stage { position: relative; height: min(69dvh, 650px); background: #18110f; }
.photo-viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-viewer-figure figcaption { padding: 8px 80px 10px 12px; }
#photo-viewer-caption { margin: 0 0 2px; font-weight: 650; }
#photo-viewer-credit { margin: 0; color: #e5c9b4; font-size: .8rem; overflow-wrap: anywhere; }
#photo-viewer-credit a { color: inherit; }
.photo-viewer-nav { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 5px; }
.photo-viewer-nav[hidden] { display: none; }
.guide-hints { background: #f4e9da; border-left: 3px solid #af8258; padding: 9px 11px; border-radius: 0 6px 6px 0; }
.guide-hints p { margin: 0; }
.guide-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.guide-box { padding: 9px 10px; border: 1px solid #e7daca; border-radius: 7px; background: #fdf8ef; }
.guide-box h4 { margin: 0 0 4px; font-size: .98rem; }
.guide-box p { margin: 0; }
.meal-card { overflow: hidden; padding: 0; }
.meal-copy { padding: 12px 13px 13px; }
.meal-copy h4 { color: #5c3027; font: 800 1.15rem/1.35 var(--serif); }
.meal-copy > p { margin: 0 0 10px; }
.meal-copy .guide-detail-list > div { grid-template-columns: 4.5em minmax(0,1fr); }
.meal-card > .guide-photo-grid { gap: 0; background: #f4e6d6; }
.meal-card > .guide-photo-grid:has(.guide-figure:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.meal-card .guide-figure { border: 0; border-bottom: 1px solid #e5ccb5; border-radius: 0; background: transparent; }
.meal-card .guide-figure + .guide-figure { border-left: 1px solid #fdf0df; }
.meal-links { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 10px; font-size: .89rem; }
.guide-section .guide-source-list { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .91rem; margin-top: 9px; }
.source-small { font-size: .87rem; }
.travel-note-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); gap: 10px; }
.travel-note { min-width: 0; padding: 13px 15px; border: 1px solid #e5cec0; border-left: 3px solid #a35847; border-radius: 7px; background: #fff7ed; overflow-wrap: anywhere; }
.travel-note h4 { margin: 4px 0 6px; color: #622f25; font-size: 1.05rem; }
.travel-note p { margin: 0; }
.travel-note .travel-note-credit { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; color: #793f32; font-size: .88rem; }
.travel-note-credit span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.travel-note .travel-note-evidence { margin-top: 7px; color: #72564c; font-size: .84rem; }
.related-list { display: flex; flex-wrap: wrap; gap: 6px; }
.related-list a { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e6d8c7; padding: 5px 7px; border-radius: 6px; font-size: .85rem; }
.related-list a:hover { background: #f2e7d6; }
.copy-fallback { max-width: 100%; }
@media (min-width: 761px) {
  #guide-gallery .guide-photo-grid:has(.guide-figure:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .walk-step:has(.guide-photo-grid) { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 14px; }
  .walk-step > .guide-photo-grid { grid-template-columns: minmax(0,1fr); }
  .walk-step > .guide-photo-grid:has(.guide-figure + .guide-figure) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 56px); }
  .atlas-grid { grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; height: 60px; gap: 9px; }
  .header-inner nav { display: none; }
  .hero { min-height: 214px; grid-template-columns: minmax(0,1fr); }
  .hero-image { position: absolute; inset: 0; }
  .hero-photo { object-position: 64% 40%; }
  .hero-image::after { background: linear-gradient(90deg,#381c15f2 0%,#47251bc7 51%,#381d1760 100%); }
  .hero-inner { pointer-events: none; padding: 24px 13px 33px; }
  .hero-inner a { pointer-events: auto; }
  .hero-city { font-size: clamp(2.95rem,13vw,4rem); }
  .hero-title-part { font-size: clamp(1.6rem,7vw,2.3rem); }
  .hero-subtitle { font-size: .91rem; margin-top: 9px; }
  .hero-credit { right: 8px; bottom: 7px; }
  .atlas { padding-top: 20px; }
  .section-head { align-items: start; }
  .section-head p { font-size: .9rem; line-height: 1.45; }
  .atlas-controls { padding-block: 9px; }
  .filter-bar { gap: 6px; }
  .filter { padding: 5px 8px; font-size: .79rem; }
  .atlas-grid { grid-template-columns: minmax(0,1fr); }
  .map-top { padding: 7px 9px; }
  .map-title { font-size: .83rem; }
  .scope-switch button { padding-inline: 6px; }
  .view-switch button { padding-inline: 7px; }
  .map-viewport { height: clamp(341px, 95vw, 480px); }
  .map-foot { gap: 5px 10px; padding: 6px 8px; }
  .map-foot .map-credits { font-size: .68rem; }
  .list-head { padding: 9px 10px 7px; }
  .list-card { border-left: 0; border-top: 1px solid #ddcfbf; }
  .place-list { flex: none; max-height: 310px; }
  .place-item { min-height: 69px; }
  .place-thumb { height: 51px; }
  .wiki-reading { grid-template-columns: 1fr; gap: 8px; }
  .references-section { grid-template-columns: minmax(0,1fr); padding: 28px 0 31px; }
  .photo-spots { padding-top: 25px; }
  .photo-spots-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .photo-spot:is(:first-child,:last-child) { grid-column: span 1; }
  .footer-inner { flex-wrap: wrap; }
  dialog.guide { width: calc(100vw - 14px); max-height: 94dvh; }
  .guide-head { min-height: 201px; }
  .guide-heading { padding: 16px 13px; }
  .guide-heading .guide-summary { font-size: .91rem; padding-right: 38px; }
  .guide-inner { padding: 11px 13px 17px; }
  .history-masthead.has-photo, .history-body { grid-template-columns: minmax(0,1fr); }
  .history-photo { min-height: auto; border-left: 0; }
  .history-photo button { aspect-ratio: 16 / 9; }
  .history-timeline { border-right: 0; border-bottom: 1px solid #e2cdb5; padding: 16px; }
  .history-observations ul { grid-template-columns: minmax(0,1fr); }
  .guide-columns { grid-template-columns: 1fr; }
  .walk-step > .guide-photo-grid { margin-top: 9px; }
  .walk-copy .guide-detail-list > div { grid-template-columns: minmax(0,1fr); gap: 0; }
  .photo-viewer-stage { height: min(68dvh, 520px); }
}
@media (max-width: 360px) {
  .map-top { gap: 6px; }
  .map-title { gap: 4px; }
  .map-title .icon { display: none; }
  .map-toolbar { gap: 5px; }
  .scope-switch, .view-switch { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
