:root {
  --ink: #2f221a;
  --muted: #74695f;
  --line: rgba(82, 60, 44, 0.16);
  --paper: #fffaf4;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #fff;
  --ember: #e7472f;
  --orange: #f28c21;
  --gold: #f1b33b;
  --olive: #8fa252;
  --earth: #76513b;
  --shadow: 0 18px 42px rgba(83, 50, 26, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 218, 180, 0.46), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(226, 73, 45, 0.18), transparent 26%),
    linear-gradient(180deg, #fffdf9 0%, #fff3e8 46%, #f8f3ee 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.4px solid #d85630;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 70%, rgba(243, 159, 50, 0.55) 0 5%, transparent 6%),
    radial-gradient(circle at 38% 78%, rgba(226, 89, 36, 0.35) 0 4%, transparent 5%),
    linear-gradient(180deg, #fffdf8, #fff3e6);
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(210, 73, 29, 0.18);
}

.brand-mark::before {
  content: "";
  width: 28px;
  height: 31px;
  background: linear-gradient(135deg, #c9231e 0%, #e85d22 56%, #f39e27 100%);
  clip-path: polygon(
    50% 0,
    58% 23%,
    78% 10%,
    70% 35%,
    98% 35%,
    73% 50%,
    88% 70%,
    61% 62%,
    54% 100%,
    46% 100%,
    39% 62%,
    12% 70%,
    27% 50%,
    2% 35%,
    30% 35%,
    22% 10%,
    42% 23%
  );
  filter: drop-shadow(0 3px 4px rgba(148, 41, 20, 0.18));
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f39c28;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4b4037;
  font-weight: 700;
}

.nav-item.active {
  color: #e65321;
  border-color: #e65321;
}

.nav-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #e65321;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

main {
  padding-bottom: 22px;
}

.hero {
  position: relative;
  min-height: 154px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(115, 75, 49, 0.13);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 250, 244, 0.98) 0 28%, rgba(255, 247, 237, 0.72) 54%, transparent 78%),
    linear-gradient(90deg, #f4e8df 0%, #fff7ee 47%, #ffe5d0 100%);
}

#heroCanvas {
  display: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.hero-fuji {
  left: 0;
  width: clamp(270px, 23vw, 350px);
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 0 74%, rgba(0, 0, 0, 0.72) 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 74%, rgba(0, 0, 0, 0.72) 84%, transparent 100%);
}

.hero-maples {
  right: 0;
  width: clamp(245px, 24vw, 360px);
  object-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 0 72%, rgba(0, 0, 0, 0.76) 82%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0 72%, rgba(0, 0, 0, 0.76) 82%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 250, 244, 0.84) 0 31%, rgba(255, 250, 244, 0.4) 50%, transparent 75%),
    linear-gradient(90deg, rgba(255, 249, 241, 0.04), rgba(255, 248, 240, 0.42) 40%, rgba(255, 248, 240, 0.18) 68%, transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(1360px, calc(100% - 32px));
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(30px, 2.62vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  margin: 12px 0 0;
  color: #5d5149;
  font-size: clamp(15px, 1.35vw, 18px);
}

@media (min-width: 1120px) {
  .hero h1 {
    white-space: nowrap;
  }
}

.timeline-card,
.workspace,
.best-strip,
.wishlist-view {
  width: min(1364px, calc(100% - 86px));
  margin-inline: auto;
}

.view-hidden {
  display: none !important;
}

.timeline-card {
  position: sticky;
  top: 70px;
  z-index: 19;
  margin-top: -18px;
  padding: 18px 28px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.timeline-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-bottom: 6px;
  color: #cf2d21;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-top span:nth-child(2) {
  color: var(--orange);
}

.timeline-top span:nth-child(4) {
  color: #7e8d3d;
  text-align: right;
}

.timeline-control {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 16px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #574d45;
  font-size: 44px;
  line-height: 1;
}

.range-wrap {
  position: relative;
  padding: 10px 0 24px;
  cursor: pointer;
  touch-action: none;
}

#dateRange {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 34px;
  appearance: none;
  outline: 0;
  cursor: pointer;
  touch-action: none;
  pointer-events: none;
  background: transparent;
  border-radius: 999px;
}

#dateRange::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #f28b22 0%, #d91e25 52%, #f3bd47 82%, #89a648 100%);
  box-shadow: inset 0 1px 2px rgba(39, 31, 23, 0.18);
}

#dateRange::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  appearance: none;
  margin-top: -9px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #dd241f;
  box-shadow: 0 8px 22px rgba(201, 45, 24, 0.35);
  cursor: grab;
}

#dateRange:active::-webkit-slider-thumb {
  cursor: grabbing;
}

#dateRange::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #f28b22 0%, #d91e25 52%, #f3bd47 82%, #89a648 100%);
  box-shadow: inset 0 1px 2px rgba(39, 31, 23, 0.18);
}

#dateRange::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #dd241f;
  box-shadow: 0 8px 22px rgba(201, 45, 24, 0.35);
}

.date-bubble {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  min-width: 76px;
  padding: 7px 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 26px rgba(73, 47, 32, 0.18);
  pointer-events: none;
}

.date-bubble strong {
  display: block;
  color: #e23724;
  font-size: 15px;
  text-transform: uppercase;
}

.date-bubble span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-labels {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin: -2px 58px 0;
  color: #675d54;
  font-size: 12px;
  text-align: center;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: 12px;
  margin-top: 6px;
}

.map-panel,
.list-panel,
.best-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(83, 50, 26, 0.1);
  backdrop-filter: blur(16px);
}

.map-panel {
  position: relative;
  min-height: 506px;
  overflow: hidden;
}

.map-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    url("assets/watercolor-sea.svg") center / cover,
    radial-gradient(ellipse at 18% 15%, rgba(255, 255, 255, 0.88), transparent 29%),
    radial-gradient(ellipse at 76% 19%, rgba(175, 218, 233, 0.19), transparent 31%),
    radial-gradient(ellipse at 69% 68%, rgba(255, 255, 255, 0.46), transparent 33%),
    radial-gradient(ellipse at 18% 78%, rgba(154, 207, 225, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fcfd 0%, #d7edf6 54%, #e8f4f7 100%);
}

.map-stage::before,
.map-stage::after,
.real-map::before,
.real-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-stage::before {
  z-index: 2;
  background-image: url("assets/watercolor-paper.svg");
  background-size: 150px 150px;
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.map-stage::after {
  z-index: 3;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 57% 23%, rgba(168, 223, 232, 0.09), transparent 24%),
    radial-gradient(circle at 39% 71%, rgba(255, 255, 255, 0.18), transparent 31%),
    repeating-linear-gradient(16deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(104deg, rgba(121, 188, 205, 0.03) 0 1px, transparent 1px 19px);
  mix-blend-mode: screen;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), #000 42%, rgba(0, 0, 0, 0.56) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), #000 42%, rgba(0, 0, 0, 0.56) 100%);
}

.real-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background:
    url("assets/watercolor-sea.svg") center / cover,
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.78), transparent 27%),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, #f5fbfd 0%, #d5ebf5 60%, #e6f2f5 100%);
}

.real-map::before {
  z-index: 250;
  background:
    url("assets/watercolor-paper.svg"),
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 15% 76%, rgba(173, 218, 228, 0.12), transparent 24%),
    radial-gradient(circle at 82% 68%, rgba(130, 198, 217, 0.16), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.2), transparent 30%);
  background-size: 270px 270px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0.66;
}

.real-map::after {
  z-index: 350;
  background-image: url("assets/seigaiha-watermark.svg");
  background-position: right bottom;
  background-size: 180px 90px;
  background-repeat: repeat;
  mix-blend-mode: screen;
  opacity: 0.24;
  -webkit-mask-image: radial-gradient(ellipse at 87% 88%, #000 0 20%, rgba(0, 0, 0, 0.62) 42%, transparent 70%);
  mask-image: radial-gradient(ellipse at 87% 88%, #000 0 20%, rgba(0, 0, 0, 0.62) 42%, transparent 70%);
}

.real-map.leaflet-container {
  background:
    url("assets/watercolor-sea.svg") center / cover,
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.78), transparent 27%),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, #f5fbfd 0%, #d5ebf5 60%, #e6f2f5 100%);
}

.real-map .leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.96) sepia(0.08) brightness(1.03);
}

.real-map .leaflet-control-attribution {
  border-radius: 8px 0 0 0;
  background: rgba(255, 255, 255, 0.78);
  color: #6f6258;
  font-size: 11px;
}

.real-map .leaflet-overlay-pane {
  filter: saturate(1.14) contrast(0.99) brightness(1.035) drop-shadow(0 5px 10px rgba(75, 52, 31, 0.045));
}

.real-map .leaflet-overlay-pane svg {
  mix-blend-mode: multiply;
}

.real-map .leaflet-overlay-pane path {
  transition:
    fill 180ms ease,
    fill-opacity 180ms ease,
    stroke 180ms ease,
    stroke-width 180ms ease;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

/* While the date slider is being scrubbed, recolor instantly: each transition
   frame re-rasterizes the watercolor SVG filter, which is what made drags jank. */
html.is-scrubbing .real-map .leaflet-overlay-pane path {
  transition: none;
}

/* The turbulence filter is re-rasterized on every fill change; skip it while
   scrubbing so recolors are flat-fill cheap, then restore it on release. */
html.is-scrubbing .real-map .prefecture-wash {
  filter: saturate(1.08) contrast(0.99);
}

.real-map .prefecture-bloom {
  filter: blur(2.5px) saturate(1.02);
  mix-blend-mode: multiply;
}

.real-map .prefecture-wash {
  filter: url("#watercolor-fill") saturate(1.08) contrast(0.99);
}

.real-map .prefecture-outline {
  filter:
    blur(0.24px)
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.16))
    drop-shadow(0 -1px 0 rgba(116, 78, 44, 0.035));
  mix-blend-mode: screen;
}

.real-map .watercolor-dab {
  filter: blur(0.9px) saturate(1.1);
  mix-blend-mode: multiply;
  opacity: 0.72;
  pointer-events: none;
}

.real-map .watercolor-bleed {
  filter: blur(1.9px) saturate(1.08);
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.real-map .watercolor-speckle {
  filter: blur(0.35px) saturate(1.08);
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.real-map .leaflet-control-zoom {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(58, 39, 28, 0.14);
}

.real-map .leaflet-bottom.leaflet-left {
  top: 244px;
  bottom: auto;
}

.real-map .leaflet-control-zoom a {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-color: rgba(82, 60, 44, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #44382f;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.real-map .leaflet-control-zoom a.leaflet-reset-view {
  border-top: 1px solid rgba(82, 60, 44, 0.14);
  text-decoration: none;
}

.real-map .leaflet-control-zoom a.leaflet-reset-view::before,
.real-map .leaflet-control-zoom a.leaflet-reset-view::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.real-map .leaflet-control-zoom a.leaflet-reset-view::before {
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
}

.real-map .leaflet-control-zoom a.leaflet-reset-view::after {
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow:
    0 -9px 0 -1px currentColor,
    0 9px 0 -1px currentColor,
    -9px 0 0 -1px currentColor,
    9px 0 0 -1px currentColor;
}

.real-map .leaflet-control-zoom a.leaflet-reset-view:hover {
  background: #f6f3ef;
}

.legend {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(82, 60, 44, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 11px 24px rgba(55, 40, 28, 0.11);
  backdrop-filter: blur(9px);
  color: #5f564f;
  font-size: 13px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.not-started {
  background: var(--olive);
}

.changing {
  background: var(--gold);
}

.peak {
  background: var(--ember);
}

.falling,
.past {
  background: var(--earth);
}

.foliage-marker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  pointer-events: auto;
}

/* Center the dot inside its enlarged click target. */
.foliage-marker-wrap.site,
.foliage-marker-wrap.prefecture {
  width: 100%;
  height: 100%;
  justify-content: center;
}

.city-dot {
  display: block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4a3b2e;
  box-shadow: 0 2px 5px rgba(54, 37, 24, 0.35);
}

.foliage-marker-label {
  color: #34271e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    1px 0 0 rgba(255, 255, 255, 0.85),
    0 0 6px rgba(255, 255, 255, 0.86);
  transform: translate(var(--label-x, 2px), var(--label-y, -1px));
}

.leaflet-foliage-marker {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border: 1.6px solid #fff;
  border-radius: 50%;
  background: currentColor !important;
  box-shadow:
    0 0 0 1px rgba(112, 72, 42, 0.16),
    0 2px 5px rgba(54, 37, 24, 0.24);
  transition:
    width 220ms ease,
    height 220ms ease,
    background-color 360ms ease,
    box-shadow 220ms ease;
}

.leaflet-foliage-marker::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1.1px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  opacity: 0.92;
  box-shadow: 0 0 0 1px rgba(96, 59, 34, 0.13);
}

.leaflet-foliage-marker.national {
  width: 8px;
  height: 8px;
}

.leaflet-foliage-marker.prefecture {
  width: 7px;
  height: 7px;
}

.leaflet-foliage-marker.site {
  width: 9px;
  height: 9px;
  border-width: 1.6px;
}

.leaflet-foliage-marker.site::after {
  display: none;
}

/* Selected dot keeps its status color, just larger with a soft halo. */
.leaflet-foliage-marker.selected {
  width: 13px;
  height: 13px;
  border-width: 2px;
  box-shadow:
    0 0 0 3.5px rgba(255, 255, 255, 0.62),
    0 0 13px 5px currentColor,
    0 6px 14px rgba(54, 37, 24, 0.28);
}

.leaflet-foliage-marker.site.selected {
  width: 15px;
  height: 15px;
}

.leaflet-foliage-marker.national::after,
.leaflet-foliage-marker.prefecture::after {
  display: none;
}

.foliage-tooltip {
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  color: #35281f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(55, 35, 20, 0.14);
}

.foliage-tooltip span {
  color: #7a6c60;
  font-size: 10px;
}

.prefecture-tooltip {
  max-width: 245px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #35281f;
  box-shadow: 0 12px 26px rgba(55, 35, 20, 0.16);
}

.prefecture-tooltip strong,
.prefecture-tooltip span,
.prefecture-tooltip small {
  display: block;
}

.prefecture-tooltip strong {
  font-size: 13px;
}

.prefecture-tooltip span {
  color: #5f564f;
  font-size: 11px;
}

.prefecture-tooltip small {
  margin-top: 4px;
  color: #76685d;
  font-size: 10px;
  line-height: 1.25;
}

.map-card {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  width: min(252px, calc(100% - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(59, 42, 29, 0.16);
  backdrop-filter: blur(12px);
  animation: map-card-in 200ms ease;
}

@keyframes map-card-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.map-card.hidden {
  display: none;
}

.map-card-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 22, 14, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.map-card-close:hover {
  background: rgba(35, 22, 14, 0.78);
}

.spot-photo.zoomable {
  cursor: zoom-in;
}

.spot-photo {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #cbe5ea, #e1a362);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.spot-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 48% 36%, transparent 0 47%, rgba(49, 28, 18, 0.18) 100%),
    linear-gradient(115deg, rgba(255, 237, 193, 0.13), transparent 36%);
  pointer-events: none;
}

.spot-photo canvas,
.spot-photo img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(1.12) contrast(1.08);
}

.spot-photo img {
  object-fit: cover;
}

.map-card .spot-photo {
  height: 148px;
}

.spot-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #483c32;
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.not-started {
  background: #e5ecd5;
  color: #697c35;
}

.status-pill.changing {
  background: #ffd765;
  color: #8e4f06;
}

.status-pill.peak {
  background: #ee4638;
}

.status-pill.falling {
  background: #946344;
  color: #fff7ef;
}

.status-pill.past {
  background: #80563b;
  color: #fff7ef;
}

.list-panel {
  min-height: 506px;
  padding: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.filters select,
.filter-button {
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #4a4038;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.filter-button.active {
  border-color: rgba(231, 71, 47, 0.42);
  background: #fff0e8;
  color: #df4e22;
}

.list-summary {
  margin: 5px 4px 5px;
  color: var(--muted);
  font-size: 13px;
}

.list-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 132px;
  margin: 0 38px 3px auto;
  color: #5a514a;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.spot-list {
  display: grid;
  gap: 5px;
  max-height: 470px;
  overflow: auto;
  padding-right: 4px;
}

.spot-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1.35fr) 104px 132px 20px;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 94px;
  padding: 10px 11px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  column-gap: 14px;
  row-gap: 4px;
  text-align: left;
}

.spot-row .spot-photo,
.spot-row .row-date,
.spot-row .row-star {
  grid-row: 1 / 3;
}

/* Long spot names run past the info column into the Best view column. */
.spot-row h3 {
  grid-row: 1;
  grid-column: 2 / 4;
  align-self: end;
}

.spot-row .row-main {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
}

.spot-row .row-window {
  grid-row: 2;
  grid-column: 3;
  align-self: start;
}

.spot-row.selected {
  border-color: rgba(231, 71, 47, 0.56);
  background: #fff3ee;
  box-shadow: 0 10px 22px rgba(231, 71, 47, 0.1);
}

.spot-row .spot-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 5px 12px rgba(68, 43, 25, 0.12);
}

.spot-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-row p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-detail {
  color: #6d6259;
  font-variant-numeric: tabular-nums;
}

.spot-row .row-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.row-window {
  display: grid;
  gap: 3px;
  color: #3d3128;
  font-size: 12px;
}

.row-window small {
  color: #70665d;
  font-size: 10px;
}

.row-date {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: #3d3128;
  font-size: 11px;
}

.mini-bar {
  position: relative;
  width: 126px;
  height: 5px;
  border-radius: 999px;
  background: #e2ddd8;
}

.mini-bar span {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
}

.row-star {
  color: #94867a;
  font-size: 20px;
  line-height: 1;
  text-align: right;
  cursor: pointer;
}

.row-star.active,
.card-star.active {
  color: #e7472f;
}

.card-star {
  position: absolute;
  top: 8px;
  right: 11px;
  padding: 2px;
  border: 0;
  background: none;
  color: #94867a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  /* Star can overlap the photo on stacked layouts. */
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.best-strip {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 12px;
  padding: 13px 16px;
}

.wishlist-view {
  margin-top: 12px;
  padding: 14px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(83, 50, 26, 0.1);
  backdrop-filter: blur(16px);
}

.wishlist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wishlist-head h2 {
  margin: 0;
  font-size: 22px;
}

.wishlist-head small {
  color: var(--muted);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wishlist-empty {
  grid-column: 1 / -1;
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

.wishlist-empty p {
  margin: 0 0 8px;
}

.wishlist-empty .filter-button {
  margin-top: 8px;
}

.best-intro {
  display: grid;
  align-content: center;
  min-height: 126px;
  padding: 0 10px;
}

.leaf-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 24%, transparent 25%),
    conic-gradient(#c52a18, #ed7b23, #f3bf43, #d13d22, #c52a18);
  box-shadow: 0 8px 18px rgba(208, 62, 25, 0.18);
}

.best-intro p,
.best-intro small {
  margin: 0;
  color: var(--muted);
}

.best-intro h2 {
  min-height: 66px;
  margin: 2px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.best-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.best-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 150px;
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 242, 232, 0.58));
  cursor: pointer;
}

.best-card .spot-photo {
  height: 100%;
  min-height: 132px;
  box-shadow: 0 8px 18px rgba(72, 45, 27, 0.1);
}

.best-card h3 {
  margin: 4px 0 3px;
  /* Keep long titles clear of the absolutely-positioned wishlist star. */
  padding-right: 20px;
  font-size: 17px;
}

.best-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.photo-lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(24, 14, 8, 0.82);
  cursor: zoom-out;
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox figure {
  max-width: min(1080px, 94vw);
  margin: 0;
  text-align: center;
}

.photo-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.photo-lightbox figcaption {
  margin-top: 12px;
  color: #f4e8dc;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.best-rank {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ee4d2e;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(200, 60, 22, 0.24);
}

footer {
  width: min(1430px, calc(100% - 56px));
  margin: 12px auto 0;
  color: #8a7e75;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .top-nav {
    gap: 10px;
    overflow-x: auto;
  }

  .workspace,
  .best-strip {
    grid-template-columns: 1fr;
  }

  .list-panel {
    min-height: 0;
  }

  .spot-list {
    max-height: none;
  }

  .best-cards,
  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-header {
    gap: 10px;
    padding: 0 12px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 16px;
  }

  .nav-item {
    padding: 0 4px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .brand span:not(.brand-mark) {
    display: none;
  }

  .timeline-card,
  .workspace,
  .best-strip,
  .wishlist-view,
  footer {
    width: min(100% - 24px, 1430px);
  }

  .timeline-card {
    padding: 18px 14px 20px;
  }

  .hero-fuji {
    width: 58vw;
    opacity: 0.72;
  }

  .hero-maples {
    width: 48vw;
    opacity: 0.76;
  }

  .timeline-top {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .timeline-labels {
    display: none;
  }

  .workspace {
    gap: 10px;
  }

  .map-panel {
    min-height: 460px;
  }

  .real-map .leaflet-bottom.leaflet-left {
    top: auto;
    bottom: 10px;
  }

  .legend {
    grid-template-columns: 1fr 1fr;
    right: 12px;
    left: 12px;
    top: 12px;
  }

  .map-card {
    right: 10px;
    bottom: 10px;
    width: 200px;
  }

  .map-card .spot-photo {
    height: 120px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .list-axis {
    display: none;
  }

  .spot-row {
    grid-template-columns: 64px 1fr 22px;
  }

  .spot-row .spot-photo {
    width: 60px;
    height: 60px;
  }

  .spot-row h3 {
    grid-column: 2;
  }

  .spot-row .row-window {
    grid-row: 3;
    grid-column: 2 / 4;
  }

  .spot-row .row-date {
    grid-row: 4;
    grid-column: 2 / 4;
    justify-items: start;
  }

  .spot-row .row-star {
    grid-row: 1;
    grid-column: 3;
  }

  .best-cards,
  .best-card,
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}
