/* Tokyo cherry blossom map + itinerary builder (added Oct 19, 2026).
   The map-specific layer for japan/sakura-map/, carried over from the
   Christmas map's stylesheet block (christmas/styles.css) so both
   exemplars render the tool identically on top of the site design
   system in /styles.css. Template v2 note: this block is the part of
   the Christmas sheet that belongs to the ENGINE, not the section. */
:root { --brass-pale: #F7E9E2; }

#map { height: 520px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); z-index: 0; }
@media (max-width: 760px) { #map { height: 420px; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; min-height: 40px; }
.chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.poi-pop h3 { font-size: 1.25rem; margin: 2px 0 6px 0; }
.poi-pop p { margin: 0 0 7px 0; font-size: 0.95rem; line-height: 1.5; }
.poi-pop .pop-cat { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0; }
.poi-pop .pop-dates { font-family: var(--font-mono); font-size: 0.85rem; }
.poi-pop .pop-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 3px; }
.poi-pop .pop-note { font-size: 0.88rem; border-left: 3px solid var(--sage); padding-left: 9px; }
.poi-pop .btn { min-height: 38px; padding: 6px 14px; font-size: 0.95rem; }
.booking-slot .btn { margin-top: 2px; }
.vibe-btn.on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.filters .field { margin-bottom: 0; flex: 1 1 180px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input[type="date"] { font-family: var(--font-body); font-size: 1rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); min-height: 44px; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--sage);
  color: var(--ink);
  background: var(--sage-pale);
}
.badge.phase { border-color: var(--brass); background: var(--brass-pale); }
.badge.stage { border-color: var(--muted); background: transparent; color: var(--muted); }
.pick-list { margin-bottom: 16px; }
.pick-group { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; background: var(--paper); }
.pick-group summary { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 1.1rem; cursor: pointer; padding: 4px 0; }
.pick { display: flex; align-items: baseline; gap: 9px; padding: 7px 0; border-bottom: 1px dotted var(--line-pale); cursor: pointer; }
.pick:last-child { border-bottom: none; }
.pick input { width: 19px; height: 19px; accent-color: var(--brass); flex: none; position: relative; top: 3px; }
.pick-name { font-weight: 600; }
.pick-dates { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.day-card { border: 1px solid var(--line); border-left: 5px solid var(--brass); border-radius: 6px; background: var(--paper); padding: 18px 20px; margin-bottom: 16px; }
.day-card h3 { margin-top: 0; }
.day-where { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: -6px; }
.day-list { margin: 0 0 6px 0; padding-left: 22px; }
.day-list li { margin-bottom: 12px; }
.day-list .booking-slot { margin: 5px 0 0 0; }
.day-list .booking-slot .btn { min-height: 36px; padding: 4px 12px; font-size: 0.9rem; }
.trip-warn { border: 1px solid var(--brass); background: var(--brass-pale); border-radius: 6px; padding: 14px 18px; margin-bottom: 16px; }
.trip-warn h3 { margin-top: 0; font-size: 1.2rem; }
.trip-warn ul { margin: 0; padding-left: 20px; }
.trip-warn li { margin-bottom: 5px; font-size: 0.97rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-head { margin-top: 30px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.poi-card { margin-bottom: 16px; }
/* Presentation redesign, Oct 19, 2026: the single placed disclosure
   line, the collapsible stop groups, and the collapsible explainer. */
.disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 26px 0;
}
.stop-group { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; background: var(--paper); }
.stop-group > summary { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 1.15rem; cursor: pointer; padding: 6px 0; }
.stop-group .poi-card { margin-top: 14px; margin-bottom: 14px; }
details.explainer { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--paper); }
details.explainer > summary { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; cursor: pointer; padding: 4px 0; }
.leaflet-popup-content { font-family: var(--font-body); }
@media print {
  header.site, footer.site, #map-section, #all-stops, #stop-details,
  #bloom-timing, #booking-note, #builder-form, .share-row, #export-panel .btn, #export-panel form,
  #shared-banner { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .day-card { break-inside: avoid; border-color: #999; }
  #export-panel { border: none; padding: 0; }
}

/* Popup containment (Oct 19, 2026): popups stay inside the map on phones;
   content scrolls inside the popup instead of overflowing the container. */
.leaflet-popup-content-wrapper { max-width: calc(100vw - 56px); }
.leaflet-popup-content { overflow-y: auto; -webkit-overflow-scrolling: touch; }
