/* PORCELAIN + PLAYBILL — gallery-minimal map with a high-contrast banner.
   Ink banner: Didot title over a gold rule, stats beneath, Start Tour
   glowing at the right. One floating command bar (search + Filters / Era /
   Near me) replaces the old chip row and bottom boxes. */
:root {
  --porcelain: #fbfaf7;
  --paper: #f3f1ea;
  --greige: #e7e3d7;
  --hairline: #e3ded2;
  --ink: #26241f;
  --ink-soft: #55503f;
  --gray: #8f887a;
  --brass: #b28c2e;
  --brass-hi: #d9b45e;
  --gold: #c9a227;
  --gold-hi: #ffe9a0;
  --red: #9e2020;
  --banner-sub: #b3a67f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Assistant", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--porcelain);
}

body {
  display: flex;
  flex-direction: column;
}

/* ---------- the Playbill banner ---------- */
.controls {
  position: relative;
  z-index: 620;
  background: linear-gradient(180deg, #26241f 0%, #33302a 100%);
  border-bottom: 3px solid var(--gold);
  text-align: center;
  transition: opacity .22s ease;
}
body.card-over-controls .controls { opacity: .35; }
body.card-over-controls .controls * { pointer-events: none; }

/* the banner is permanent — it only softens (see card-over-controls above)
   when an open card slides underneath it */
.hero { position: relative; }

.hero-inner { padding: 22px 190px 18px; }

.map-title {
  /* matches the Dawn theme headings on brighamlarsonpianos.com */
  font-family: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--porcelain);
  margin: 0;
  line-height: 1.15;
  pointer-events: none;
  text-wrap: balance;
}
.gold-rule {
  width: 150px;
  height: 1px;
  margin: 9px auto 8px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* maker's mark — small badge signed into the map's corner */
.map-brand {
  position: absolute;
  right: 14px;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  opacity: .92;
  filter: drop-shadow(0 2px 6px rgba(60, 54, 40, .35));
}
.map-brand:hover { opacity: 1; }
.map-brand img { display: block; height: 30px; width: auto; }
.map-stats {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--banner-sub);
  margin: 0;
  pointer-events: none;
}
.map-stats .ms-dot { color: var(--gold); padding: 0 .45em; }
.map-stats .ms-num { color: var(--gold-hi); font-weight: 600; }
.map-stats .ms-lbl { margin-left: .35em; }

/* Start Tour — the playbill's glowing marquee button */
.tour-cta {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: transparent;
  border: 2px solid var(--gold-hi);
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: inset 0 0 16px rgba(255, 233, 160, .16), 0 0 20px rgba(255, 233, 160, .18);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.tour-cta:hover {
  background: var(--gold-hi);
  color: var(--ink);
  box-shadow: 0 0 26px rgba(255, 233, 160, .45);
}

/* ---------- the floating command bar ---------- */
.cmdbar {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(640px, calc(100% - 20px));
  transition: opacity .22s ease;
}
body.card-over-cmdbar .cmdbar,
body.card-over-cmdbar .panel {
  opacity: 0;
  pointer-events: none;
}
.cmdbar .searcharea {
  position: relative;
  flex: 1;
  min-width: 110px; /* search stays usable even in a squeezed embed */
}
.searchwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  color: var(--brass);
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(201, 162, 39, .55);
  border-radius: 999px;
  padding: 11px 10px 11px 16px;
  box-shadow: 0 12px 30px rgba(60, 54, 40, .22);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cmdbar .searcharea:focus-within .searchwrap {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .16);
}
.searchwrap input {
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.searchwrap input::placeholder { color: #8f887a; }
/* the browser's own blue clear-x is hidden; ours is ink on all sizes */
.searchwrap input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.searchwrap input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-x {
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.search-x:hover { background: var(--hairline); }
.searcharea.has-text .search-x { display: block; }
.cmd-btn {
  font: inherit;
  border: 1px solid rgba(201, 162, 39, .55);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  min-width: 72px;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(60, 54, 40, .18);
}
.cmd-btn em { font-style: normal; line-height: 1; color: var(--brass); display: flex; }
.cmd-btn em svg { display: block; }
.cmd-btn:hover { color: var(--ink); background: var(--paper); }
.cmd-btn.active { color: var(--ink); font-weight: 700; background: var(--paper); border-color: var(--gold); }
.cmd-btn.gold {
  color: #8a6a14;
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(60, 54, 40, .18), 0 0 14px rgba(201, 162, 39, .3);
}
.cmd-btn.gold:hover, .cmd-btn.gold.active { color: #8a6a14; background: #f7f0dd; }

/* ---------- panels that rise from the command bar ---------- */
.panel {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 1300;
  width: min(440px, calc(100% - 20px));
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(60, 54, 40, .24);
  padding: 16px 18px 16px;
  text-align: left;
  animation: panelUp .22s ease;
  transition: opacity .22s ease;
}
@keyframes panelUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.panel-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a49c8b;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.panel-x:hover { color: var(--ink); background: var(--paper); }
.panel-title {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}
/* the tour's closing nudge on the Near-me panel */
@keyframes lbPulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(60, 54, 40, .24); }
  50% { box-shadow: 0 0 30px rgba(201, 162, 39, .75); }
}
.panel.pulse { animation: lbPulse 1.4s ease-in-out 2; }

/* ---------- search autocomplete dropdown (opens upward) ---------- */
.suggest {
  position: absolute;
  bottom: calc(100% + 14px);
  left: -6px;
  right: -6px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(60, 54, 40, .2);
  overflow-y: auto;
  max-height: min(380px, 48vh);
  text-align: left;
  z-index: 1400;
}
.sg-head {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 12px 16px 4px;
}
.sg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
}
.sg-item:hover,
.sg-item.active { background: var(--paper); }
.sg-item .sg-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-item .sg-sub {
  flex: none;
  color: var(--gray);
  font-size: .76rem;
  letter-spacing: .03em;
}
.sg-none {
  padding: 12px 16px 14px;
  color: var(--gray);
  font-size: .85rem;
}
.sg-cta,
.leaflet-container a.sg-cta {
  display: block;
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
.sg-cta:hover,
.leaflet-container a.sg-cta:hover { background: #7c1515; color: #ffffff; }
.suggest > .sg-sect + .sg-sect { border-top: 1px solid var(--hairline); }
.sg-sect { padding-bottom: 6px; }

/* ---------- filter chips (inside the Filters panel) ---------- */
.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font: inherit;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on {
  background: var(--ink);
  color: var(--porcelain);
  border-color: var(--ink);
  font-weight: 700;
}
.chip.select { padding: 6px 10px; }
select.chip option { background: #ffffff; color: var(--ink); }

.resetlink {
  font: inherit;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--gray);
  background: transparent;
  border: 0;
  padding: 4px 0 0;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.resetlink:hover { color: var(--ink); }

/* ---------- map ---------- */
#map {
  flex: 1;
  min-height: 420px;
  background: var(--porcelain);
  position: relative;
}

/* required tile credits: small, neutral, never blue */
.leaflet-control-attribution {
  background: rgba(251, 250, 247, .85);
  color: #a49c8b;
  font-size: 9px;
}
.leaflet-control-attribution a { color: #a49c8b; }

/* warm the light basemap into greige */
.leaflet-tile-pane { filter: sepia(.14) saturate(.75) brightness(.99); }
/* light label tiles render place names blue-gray — neutralize to warm gray */
.leaflet-labels-pane { filter: grayscale(1) sepia(.18) brightness(1.05); opacity: .8; }

/* zoom + locate controls, porcelain */
.leaflet-bar a {
  background: #ffffff;
  color: var(--ink);
  border-bottom-color: var(--hairline);
}
.leaflet-bar a:hover { background: var(--paper); color: var(--ink); }
.leaflet-control-container { transition: opacity .2s ease; }
body.suggest-open .leaflet-control-container {
  opacity: 0;
  pointer-events: none;
}

/* ---------- heirloom content (inside the Near-me panel) ---------- */
.lead-box { position: static; }
.lb-title {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-weight: 500;
  font-size: 1.18rem;
  margin: 0 24px 4px 0;
  color: var(--ink);
}
.lb-hint {
  font-size: .85rem;
  color: var(--gray);
  margin: 0 0 8px;
  line-height: 1.45;
}
#zipForm { display: flex; gap: 6px; }
#zipInput {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: .95rem;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--porcelain);
  color: var(--ink);
}
#zipInput::placeholder { color: #a49c8b; }
#zipInput:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
#zipForm button {
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--porcelain);
  cursor: pointer;
  flex-shrink: 0;
}
#zipForm button:hover { background: #3a362e; }
.lb-result {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 8px 0 0;
}
.lb-result:empty { display: none; }
.lb-ask {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--ink);
  text-align: center;
  margin: 12px 0 0;
}
.lb-cta,
.leaflet-container a.lb-cta {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 999px;
}
.lb-cta:hover,
.leaflet-container a.lb-cta:hover { background: #7c1515; color: #ffffff; }

/* ---------- era timeline (inside the Era panel) ---------- */
.timebar { position: static; }
.tb-label {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-align: center;
  margin: 0 20px 6px;
}
#timeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) var(--fill, 100%), var(--hairline) var(--fill, 100%));
  outline: none;
  cursor: ew-resize;
  margin: 8px 0 6px;
}
#timeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #e7c256 45%, #c9a227 75%, #8a6a14);
  border: 2px solid #fffbe9;
  box-shadow: 0 2px 8px rgba(60, 54, 40, .45);
  cursor: ew-resize;
}
#timeSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #e7c256 45%, #c9a227 75%, #8a6a14);
  border: 2px solid #fffbe9;
  box-shadow: 0 2px 8px rgba(60, 54, 40, .45);
  cursor: ew-resize;
}
#timeSlider:focus-visible { box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }
.tb-ends {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--gray);
}

/* geolocation control */
.locate-ctrl a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
}
.locate-ctrl a:hover { color: var(--brass); }
.locate-ctrl.locating a svg { animation: locpulse 1s ease-in-out infinite; }
@keyframes locpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* relocated Hawaii label */
.region-label {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 600;
  color: #a49c8b;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* gold pin marker */
.gold-pin { background: none; border: none; }
.gold-pin svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(60, 54, 40, .45));
  transition: filter .18s ease;
}
.gold-pin:hover svg {
  filter: brightness(1.1)
    drop-shadow(0 3px 5px rgba(60, 54, 40, .5))
    drop-shadow(0 0 7px rgba(201, 162, 39, .6));
}

/* home star — red mark at the workshop */
.home-star { background: none; border: none; font-size: 22px; line-height: 1; }
.home-star span {
  color: #c3271e;
  text-shadow: 0 0 8px rgba(195, 39, 30, .55);
}

/* ---------- city medallions (dense-city clusters at country zoom) ---------- */
.city-medallion { text-align: center; }
.city-medallion .cm {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--ink);
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(251, 250, 247, .85), 0 6px 16px rgba(60, 54, 40, .25);
  cursor: pointer;
}
.city-medallion .cm img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.city-medallion .cm-note {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brass);
  font-size: 26px;
}
.city-medallion .cm-n {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--ink);
  color: var(--porcelain);
  border: 1.5px solid var(--porcelain);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  box-shadow: 0 2px 6px rgba(60, 54, 40, .35);
}
.city-medallion .cm-name {
  margin-top: 3px;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(251, 250, 247, .9), 0 0 6px rgba(251, 250, 247, .9);
  white-space: nowrap;
}
.city-medallion:hover .cm { border-color: var(--brass); }

/* share link on the popup card */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}
.share-btn svg { flex: none; }
.share-btn:hover { color: #8a6a14; text-decoration: underline; }

/* ---------- gallery card popup ---------- */
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 44px rgba(60, 54, 40, .2);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-tip { background: #ffffff; box-shadow: 0 0 0 1px var(--hairline); }
.leaflet-popup-close-button { color: #a49c8b !important; }
.leaflet-popup-content { margin: 0; width: 258px !important; }
.pcard { font-family: inherit; text-align: center; }
.pcard .strip {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.pcard .pad { padding: 12px 16px 16px; }
.pcard h3 {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-weight: 500;
  font-size: 1.08rem;
  margin: 0 0 3px;
  line-height: 1.3;
  color: var(--ink);
}
.pcard .meta {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--gray);
  margin-bottom: 8px;
}
.pcard .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; justify-content: center; }
.pcard .tag {
  font-size: .58rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.pcard a.btn,
.leaflet-container .pcard a.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--porcelain);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.pcard a.btn:hover { background: #3a362e; }
.pcard .nolink { font-size: .7rem; color: var(--gray); font-style: italic; }
.pcard .resto {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 2px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.pcard .miles {
  font-size: .66rem;
  color: var(--gray);
  font-style: italic;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

/* circular ink-ringed photo medallion */
.pcard-photo {
  display: block;
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: 50%;
  margin: 14px auto 0;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px var(--paper), 0 8px 22px rgba(60, 54, 40, .2);
  background: var(--paper);
}

/* circular before/after slider medallion */
.pcard .ba {
  position: relative;
  width: 190px;
  height: 190px;
  overflow: hidden;
  border-radius: 50%;
  margin: 14px auto 0;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px var(--paper), 0 8px 22px rgba(60, 54, 40, .2);
  background: var(--paper);
}
.pcard .ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard .ba .ba-before {
  clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0);
}
.pcard .ba .ba-lbl {
  position: absolute;
  bottom: 32px;
  font-size: .48rem;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(38, 36, 31, .78);
  color: #fff;
  pointer-events: none;
  z-index: 2;
}
.pcard .ba .ba-lbl.l { left: 36px; }
.pcard .ba .ba-lbl.r { right: 36px; }
.pcard .ba .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 50%);
  width: 2px;
  background: #ffffff;
  pointer-events: none;
}
.pcard .ba .ba-handle::after {
  content: "\25C2 \25B8";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--porcelain);
  font-size: .6rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(60, 54, 40, .35);
}
.pcard .ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  -webkit-appearance: none;
  touch-action: none;
}

/* hover peek: tiny split before/after medallion above gallery pins */
.peek-tip {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.peek-tip::before { display: none !important; }
.peek {
  position: relative;
  cursor: pointer;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(251, 250, 247, .9), 0 8px 20px rgba(60, 54, 40, .3);
  background: var(--paper);
}
.peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.peek .pk-before { clip-path: inset(0 50% 0 0); }
.peek .pk-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: #ffffff;
}

/* glowing delivery route — brass filament */
.route-glow {
  filter: drop-shadow(0 0 4px rgba(217, 180, 94, .9));
  stroke-dasharray: 7 9;
  animation: routeflow 1.4s linear infinite;
}
.route-glow-under { filter: blur(1.5px); }
@keyframes routeflow {
  to { stroke-dashoffset: -16; }
}
@media (prefers-reduced-motion: reduce) {
  .route-glow { animation: none; stroke-dasharray: none; }
}

/* popup opened below a pin near the top edge — hide the pointer tip */
.popup-flipped .leaflet-popup-tip-container { display: none; }

/* ---------- mobile bottom sheet (piano cards) ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 36, 31, .4);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3001;
  background: #ffffff;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 34px rgba(60, 54, 40, .3);
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform .25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sheet.open { transform: none; }
.sheet .pcard .ba { width: 240px; height: 240px; }
.sheet .pcard-photo { width: 230px; height: 230px; }
/* the circle curves inward near the bottom — labels move with its size */
.sheet .pcard .ba .ba-lbl { bottom: 36px; }
.sheet .pcard .ba .ba-lbl.l { left: 46px; }
.sheet .pcard .ba .ba-lbl.r { right: 46px; }
.sheet .pcard h3 { font-size: 1.3rem; }
.sheet .pcard .resto { font-size: .98rem; }
.sheet .pcard .pad { padding: 14px 22px 22px; }
.sheet .share-btn { font-size: .8rem; }
@media (min-width: 681px) {
  /* desktop/tablet: a tall gallery card to the right, not a page-wide strip */
  .sheet {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 420px;
    max-height: 76vh;
    border: 1px solid var(--hairline);
    border-top: 2px solid var(--ink);
    border-radius: 16px;
    transform: translateY(calc(100% + 40px));
  }
  .sheet.open { transform: none; }
  .sheet .pcard .ba { width: 290px; height: 290px; }
  .sheet .pcard-photo { width: 280px; height: 280px; }
  .sheet .pcard .ba .ba-lbl { bottom: 44px; font-size: .54rem; }
  .sheet .pcard .ba .ba-lbl.l { left: 60px; }
  .sheet .pcard .ba .ba-lbl.r { right: 60px; }
  .sheet .pcard h3 { font-size: 1.4rem; }
  .sheet .pcard .resto { font-size: 1rem; }
  .sheet .pcard .meta { font-size: .76rem; }
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .hero-inner { padding: 16px 14px 4px; }
  .map-stats { font-size: .6rem; letter-spacing: .04em; white-space: nowrap; }
  .map-stats .ms-num { font-size: .88rem; }
  .map-stats .ms-lbl { margin-left: .22em; }
  .map-stats .ms-dot { padding: 0 .28em; }
  .tour-cta {
    position: static;
    transform: none;
    display: inline-block;
    margin: 10px auto 16px;
  }
  #zipInput, .searchwrap input { font-size: 16px; }
  .cmdbar { gap: 5px; }
  .cmd-btn { padding: 5px 6px; min-width: 50px; border-radius: 12px; font-size: .5rem; }
  .cmdbar .searchwrap { padding: 9px 8px 9px 12px; }
  /* results pop full-width and stay a comfortable scroll height */
  .suggest {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    max-height: 42vh;
  }
  .map-brand { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .panel { bottom: 76px; }
  #map { min-height: 0; }
  .leaflet-popup-content { width: 225px !important; }
  .pcard .ba { width: 165px; height: 165px; }
  .pcard-photo { width: 155px; height: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-pin svg, .sheet, .sheet-backdrop { transition: none; }
  .locate-ctrl.locating a svg { animation: none; }
}
