.map-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-block: clamp(1.5rem, 4vw, 3.25rem) clamp(1.3rem, 3vw, 2.2rem);
}
.map-intro h1 {
  width: auto;
  margin: 0 0 .15em -.035em;
  padding: 0;
  font: 800 clamp(2.6rem, 6.6vw, 5.9rem)/1.15 var(--body);
  letter-spacing: -.085em;
}
.map-intro h1 span {
  display: inline;
  color: var(--accent);
  font: 800 1.2em/.8 var(--display);
  letter-spacing: -.035em;
}
.map-intro p { font-size: clamp(.98rem, 1.5vw, 1.16rem); }
.intro-actions { display: grid; justify-items: center; gap: .25rem; }
.map-primary {
  min-height: 46px;
  padding: .68rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-weight: 750;
}
.map-primary:hover { background: #fc896c; }
.map-primary span { display: inline-block; margin-inline: .1em; }
.simple-link, .text-button { font-weight: 650; text-underline-offset: .25em; }
.intro-actions .simple-link { padding: .5rem .2rem; font-size: .85rem; }
.text-button { padding: .45rem 0; color: var(--accent); background: transparent; border: 0; text-decoration: underline; }
.map-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(17rem, 1fr); border: 1px solid var(--ink); }
.map-board { min-width: 0; background: #faf6eb; }
.map-toolbar { display: flex; gap: .7rem; align-items: center; padding: .45rem .85rem; border-bottom: 1px solid var(--ink); }
.map-toolbar label { font-size: .85rem; font-weight: 650; }
.map-toolbar select { min-height: 38px; padding: .25rem 1.4rem .25rem .55rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: 650 .9rem/1.4 var(--body); }
.geo-map { position: relative; z-index: 0; width: 100%; background: #dfdfd2; }
#shop-map { height: clamp(23rem, 52svh, 38rem); }
.geo-map:focus-visible { outline-offset: -4px; }
.geo-map .leaflet-tile-pane { filter: saturate(.7); }
.geo-map .leaflet-control-zoom { box-shadow: 0 1px 3px #191a1725; border: 1px solid var(--ink); border-radius: 0; }
.geo-map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; border-radius: 0; color: var(--ink); background: #fffdf5; }
.geo-map .leaflet-control-zoom a:hover { background: var(--paper); }
.geo-map .leaflet-control-attribution { padding: .1rem .3rem; font: 11px/1.5 sans-serif; background: #fffdf4ed; }
.geo-map .leaflet-control-attribution a { color: #383c32; text-decoration: underline; }
.map-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; min-height: 38px; border-top: 1px solid var(--rule); padding: .35rem .85rem; color: var(--muted); font-size: .78rem; }
.pin-key { display: inline-flex; align-items: center; gap: .55em; }
.pin-key i, .map-pin i, .picker-needle i {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 55% 55% 55% 0;
  background: var(--orange);
  transform: rotate(-45deg);
}
.pin-key i { width: 11px; height: 11px; border-width: 1.5px; }
.map-pin i, .picker-needle i { position: absolute; width: 25px; height: 25px; top: 2px; left: 4px; box-shadow: -1px 2px 2px #191a173d; }
.map-pin i::after, .picker-needle i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; transform: translate(-50%, -50%); }
.shop-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 1.2rem; border-left: 1px solid var(--ink); }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.list-heading h2, .map-dialog h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
#shop-count { font: 800 1.55rem/1 var(--display); }
#shop-search, .map-dialog input:not([type="checkbox"]), .map-dialog form select, .map-dialog textarea {
  width: 100%;
  padding: .55rem .65rem;
  min-height: 42px;
  background: #fffdf5;
  color: var(--ink);
  border: 1px solid #87867a;
  border-radius: 0;
  font: 400 1rem/1.4 var(--body);
}
#shop-search { margin: .9rem 0 .1rem; }
.shop-scroll { overflow-y: auto; flex: 1 1 0; }
#list-status { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
#list-status:empty { margin: 0; }
.shops { list-style: none; margin: 0; padding: 0; }
.shops li + li { border-top: 1px solid var(--rule); }
.shop-link { display: block; width: 100%; padding: .8rem .2rem; border: none; text-align: left; color: var(--ink); background: transparent; }
.shop-link:hover, .shop-link:focus-visible { background: #e7e1d1; }
.shop-link strong, .shop-link small { display: block; overflow-wrap: anywhere; }
.shop-link strong { font-size: 1rem; }
.shop-link small { color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: .2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 7vw, 8rem); padding-block: clamp(2.4rem, 5vw, 5rem); }
.guide-grid h2 { font-size: clamp(1.45rem, 2.3vw, 2.15rem); margin-bottom: .75rem; }
.guide-grid p + p, .guide-grid .simple-link { margin-top: .65rem; }
.guide-grid .simple-link { display: inline-block; }
.map-footer { color: var(--paper); background: var(--ink); }
.map-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 1.6rem; gap: 1rem; }
.map-footer .wordmark { font-size: 1.4rem; }
.map-footer a:hover { color: var(--orange); }
.map-footer a:last-child { font-size: .87rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map-dialog { max-width: min(32rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); width: 100%; padding: 1rem clamp(1rem, 3vw, 1.8rem) 1.6rem; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); overscroll-behavior: contain; }
.map-dialog::backdrop { background: rgb(25 26 23 / .65); }
body:has(.map-dialog[open]) { overflow: hidden; }
.dialog-heading, .location-summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 0 0 .55rem; margin: 0 0 1rem; }
.dialog-heading button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; }
.map-dialog h3 { font-size: 1.1rem; }
.field-note, .location-summary span { font-size: .85rem; color: var(--muted); }
.pick-toolbar { margin-top: .7rem; border: 1px solid var(--rule); padding: .3rem .6rem; }
.picker-frame { position: relative; border: 1px solid var(--rule); border-top: 0; }
#pick-map { height: clamp(12rem, 34svh, 19rem); }
.picker-needle { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -100%); pointer-events: none; }
#pick-status { min-height: 1.7em; margin-block: .55rem; font-variant-numeric: tabular-nums; }
.location-summary span { display: block; font-variant-numeric: tabular-nums; }
.map-dialog form > label, .map-dialog .field-pair label { display: block; margin: .75rem 0; font-size: .95rem; font-weight: 650; }
.map-dialog form input:not([type="checkbox"]), .map-dialog form select, .map-dialog textarea { display: block; margin-top: .25rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.map-dialog .field-pair label { margin: 0; }
.map-dialog form .confirm-check { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; font-weight: 500; cursor: pointer; }
.confirm-check input { width: 1.2rem; height: 1.2rem; flex: none; margin: .15rem 0; accent-color: var(--ink); }
.form-status:not(:empty) { color: var(--accent); font-weight: 650; margin-top: .5rem; }
.map-dialog form > .map-primary, #report-receipt button { margin-top: .85rem; width: 100%; }
.report-shop { font-weight: 700; }
.map-dialog textarea { resize: vertical; }
#report-reference { display: block; overflow-wrap: anywhere; padding: .7rem; margin-block: .7rem; border: 1px solid var(--rule); background: #fffdf5; }
.geo-map .leaflet-popup-content-wrapper, .geo-map .leaflet-popup-tip { color: var(--ink); background: #fffdf5; }
.geo-map .leaflet-popup-content-wrapper { border-radius: 0; }
.geo-map .leaflet-popup-content { margin: .85rem 1.4rem .75rem .95rem; font: .9rem/1.45 var(--body); overflow-wrap: anywhere; }
.popup-shop + .popup-shop { border-top: 1px solid var(--rule); margin-top: .4rem; padding-top: .4rem; }
.popup-shop strong { display: block; font-size: 1.08rem; }
.popup-shop small { display: block; color: var(--muted); }
.popup-shop .text-button { padding-bottom: 0; }
@media (max-width: 760px) {
  .map-layout { grid-template-columns: 1fr; }
  .shop-panel { border-left: none; border-top: 1px solid var(--ink); padding: 1rem; }
  .shop-scroll { flex: auto; max-height: 19rem; }
  #shop-map { height: clamp(17rem, 45svh, 28rem); }
}
@media (max-width: 600px) {
  .map-intro { display: block; }
  .intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid section + section { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
}

/* The rainy shopfront and muted amber lighting follow the original series still. */
.map-hero { position: relative; overflow: hidden; isolation: isolate; color: #f1ecdd; background: #171c1a; }
.hero-portrait, .hero-portrait::after, .hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-portrait { z-index: -1; left: 29%; width: 71%; }
.hero-portrait img { object-fit: cover; object-position: 50% 30%; }
.hero-portrait::after { content: ''; background: linear-gradient(90deg,#171c1a 0%,rgb(23 28 26 / .9) 9%,rgb(23 28 26 / .5) 30%,transparent 60%), linear-gradient(0deg,rgb(23 28 26 / .26),transparent 58%); }
.map-intro { display: block; padding-block: clamp(1.2rem, 3.4vw, 3rem); }
.map-intro h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
.map-intro h1 span { color: #f69b72; }
.map-intro p { max-width: 28em; font-weight: 600; }
.intro-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: .95rem; }
.intro-actions .simple-link:hover { color: #f69b72; }
.intro-actions .map-primary { border-color: #f9b190; }
.map-layout { margin-top: clamp(1rem, 2.6vw, 2rem); }
.map-board { position: relative; background: #27312d; }
.map-board .map-toolbar, .map-caption { background: #26302c; color: #f1ecdd; }
.map-board .map-toolbar { border-bottom: 2px solid #101a17; }
.map-board .map-toolbar select, .pick-toolbar select { color: #fff2d8; border-color: #778477; background: #35423c; }
.map-caption { border-color: #101a17; color: #dfdfce; }
.map-board::before, .map-board::after { content: ''; position: absolute; pointer-events: none; z-index: 1; width: 1.1rem; height: 1.1rem; }
.map-board::before { top: 3.4rem; left: .35rem; border-top: 2px solid #ddbd89; border-left: 2px solid #ddbd89; }
.map-board::after { bottom: 2.8rem; right: .35rem; border-bottom: 2px solid #ddbd89; border-right: 2px solid #ddbd89; }
.geo-map { background: #293a35; }
.geo-map .leaflet-tile-pane { filter: saturate(.48) sepia(.28) contrast(1.09) brightness(.91); }
.geo-map::after { content: ''; position: absolute; z-index: 450; pointer-events: none; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 3px, #1b1b2510 3px 4px); }
.geo-map .leaflet-control-zoom { box-shadow: 2px 2px 0 rgb(18 28 24 / .45); }
.geo-map .leaflet-control-zoom a { color: #fff3d6; background: #27342e; border-color: #627067; }
.geo-map .leaflet-control-zoom a:hover { background: #465046; }
.geo-map .leaflet-control-zoom a.leaflet-disabled { color: #b1b7aa; }
.pin-key i, .map-pin i, .picker-needle i { border: 0; border-radius: 0; transform: none; background: #27291f; clip-path: polygon(24% 0,76% 0,100% 22%,100% 57%,76% 79%,50% 100%,24% 79%,0 57%,0 22%); }
.map-pin i, .picker-needle i { width: 29px; height: 33px; top: 0; left: 2px; }
.map-pin i::before, .picker-needle i::before, .pin-key i::before { content: ''; position: absolute; inset: 2px 2px 3px; background: linear-gradient(125deg, #ffcb97 0 36%, #f68a5c 36% 72%, #c46046 72%); clip-path: inherit; }
.map-pin i::after, .picker-needle i::after { top: 35%; width: 7px; height: 7px; border-radius: 0; background: #383c30; }
.pin-key i { position: relative; width: 13px; height: 16px; }
.pin-key i::before { inset: 1px 1px 2px; }
@media (max-width: 600px) {
  .hero-portrait { left: 36%; width: 64%; }
  .hero-portrait img { object-position: 50% 30%; }
  .hero-portrait::after { background: linear-gradient(90deg,#171c1a 0%,rgb(23 28 26 / .74) 20%,transparent 66%),linear-gradient(0deg,#171c1a 0%,transparent 75%); }
  .map-intro { min-height: 12.75rem; }
  .map-intro h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .map-intro p { max-width: 56%; line-height: 1.5; }
  .intro-actions { gap: .72rem; }
  .intro-actions .simple-link { text-shadow: 0 1px 3px #111; }
}
