:root {
  --bg: #d8eef2;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --panel-soft: rgba(255, 255, 255, 0.9);
  --border: rgba(66, 106, 122, 0.18);
  --text: #23333d;
  --muted: #5a6e79;
  --pink: #e98daf;
  --rose: #f7d6e1;
  --violet: #7d7cd8;
  --sky: #59afd0;
  --sunset: #f0b07c;
  --peak: #d96a92;
  --rising: #f2ab5d;
  --late: #7a78d4;
  --success: #3a9c67;
  --shadow: 0 28px 70px rgba(30, 66, 87, 0.18);
  --shadow-soft: 0 18px 42px rgba(30, 66, 87, 0.14);
  --radius: 22px;
  --transition-soft: 220ms ease;
  --sheet-peek-height: 116px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

body.theme-food {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-strong: rgba(255, 252, 247, 0.97);
  --panel-soft: rgba(255, 250, 244, 0.91);
  --border: rgba(109, 94, 75, 0.16);
  --text: #2f342d;
  --muted: #6f6a5d;
  --pink: #dda171;
  --rose: #f1dfcf;
  --violet: #6e867d;
  --sky: #77a7a0;
  --sunset: #dfab74;
  --peak: #bf7d56;
  --rising: #d09a62;
  --late: #7c8d8b;
  --success: #5c8761;
  --shadow: 0 28px 70px rgba(68, 58, 40, 0.14);
  --shadow-soft: 0 18px 42px rgba(68, 58, 40, 0.11);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url('/assets/wallpaper-fuji.webp') center center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.01);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(208, 236, 242, 0.54) 0%, rgba(231, 243, 246, 0.38) 38%, rgba(244, 230, 238, 0.58) 100%),
    radial-gradient(circle at top left, rgba(245, 197, 214, 0.34), transparent 26%),
    radial-gradient(circle at top right, rgba(154, 222, 219, 0.28), transparent 24%);
}

body.theme-food::before {
  background: url('/assets/wallpaper-food.webp') center center / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.03) brightness(0.94);
}

body.theme-food::after {
  background:
    linear-gradient(180deg, rgba(246, 239, 229, 0.54) 0%, rgba(242, 234, 223, 0.46) 44%, rgba(236, 230, 220, 0.58) 100%),
    radial-gradient(circle at top left, rgba(224, 167, 111, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(121, 154, 138, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(216, 193, 152, 0.18), transparent 26%);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--violet);
}

.mobile-only,
.mobile-copy,
.mobile-label,
.support-closed-label {
  display: none;
}

.desktop-copy,
.desktop-label {
  display: block;
}

.mobile-dimmer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  background: rgba(20, 34, 42, 0.42);
  backdrop-filter: blur(4px);
  transition: opacity var(--transition-soft);
}

.app-shell {
  position: relative;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.08);
}

.theme-food .topbar {
  padding: 18px 22px;
  background: rgba(255, 252, 247, 0.8);
}

.food-title-subhead {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--muted);
}

.topbar-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.eyebrow,
.panel-kicker,
.summary-label,
label span,
.ad-slot-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.brand-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.subhead {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.season-switch {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(245, 238, 243, 0.88);
  border: 1px solid rgba(88, 55, 79, 0.08);
}

.season-btn,
.pill-btn,
.icon-btn,
.utility-btn,
.ghost-btn,
.inline-btn,
.link-btn,
.control-bar select {
  min-height: 46px;
}

.season-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.season-btn.active {
  background: linear-gradient(135deg, #f7a6c2 0%, #ef729f 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(233, 95, 152, 0.24);
}

.theme-food .season-switch {
  background: rgba(244, 238, 228, 0.92);
  border-color: rgba(109, 94, 75, 0.1);
}

.theme-food .season-btn.active {
  background: linear-gradient(135deg, #ddb074 0%, #bc7f58 100%);
  box-shadow: 0 10px 24px rgba(164, 108, 67, 0.2);
}

.season-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pill-btn,
.icon-btn,
.utility-btn,
.ghost-btn,
.inline-btn,
.link-btn,
.support-toggle,
.summary-chip {
  transition:
    transform 140ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.pill-btn,
.icon-btn,
.utility-btn,
.ghost-btn,
.inline-btn,
.link-btn {
  border: 1px solid rgba(84, 57, 80, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.pill-btn:hover,
.icon-btn:hover,
.utility-btn:hover,
.ghost-btn:hover,
.inline-btn:hover,
.link-btn:hover,
.summary-chip:hover,
.support-toggle:hover {
  transform: translateY(-1px);
}

.inline-btn,
.link-btn {
  text-decoration: none;
  justify-content: center;
}

.inline-btn.primary {
  background: linear-gradient(135deg, #f7a6c2 0%, #ef729f 100%);
  color: white;
  border-color: transparent;
}

.theme-food .inline-btn.primary {
  background: linear-gradient(135deg, #ddb074 0%, #bc7f58 100%);
}

.summary-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.summary-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.05);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.summary-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.summary-chip,
.summary-empty {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.summary-chip {
  border: 1px solid rgba(84, 57, 80, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.summary-chip.confirmed {
  border-color: rgba(58, 156, 103, 0.35);
  box-shadow: inset 0 0 0 1px rgba(58, 156, 103, 0.12);
}

.summary-chip.close {
  border-color: rgba(240, 169, 79, 0.38);
  box-shadow: inset 0 0 0 1px rgba(240, 169, 79, 0.12);
}

.summary-chip.mixed {
  border-color: rgba(214, 76, 127, 0.28);
  box-shadow: inset 0 0 0 1px rgba(214, 76, 127, 0.12);
}

.summary-empty {
  background: rgba(84, 57, 80, 0.05);
  color: var(--muted);
  font-weight: 600;
}

.mobile-inline-ad,
.panel-ad-slot {
  display: none;
}

.ad-slot {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(84, 57, 80, 0.18);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(1.04);
}

.ad-slot-copy-wrap {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.ad-slot-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.mobile-utility-bar {
  display: none;
}

.control-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.05);
}

.food-control-bar {
  row-gap: 16px;
}

.food-control-bar > .data-health {
  grid-column: 1 / -1;
  margin: 0;
}

.control-bar-head {
  display: none;
}

.control-bar label {
  display: grid;
  gap: 6px;
}

.control-bar select,
.ghost-btn,
.picker-trigger,
.variety-picker-search input {
  min-width: 180px;
  border: 1px solid rgba(84, 57, 80, 0.14);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
}

.native-picker-select {
  display: none;
}

.picker-trigger {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.picker-trigger-copy {
  display: grid;
  gap: 3px;
}

.picker-trigger-copy strong {
  font-size: 0.98rem;
}

.picker-trigger-copy small,
.variety-picker-help,
.variety-picker-empty,
.detail-section-head p,
.variety-card-copy span,
.variety-card-copy p,
.variety-picker-copy small,
.variety-picker-copy em {
  color: var(--muted);
}

.picker-trigger-copy small {
  font-size: 0.82rem;
  line-height: 1.35;
}

.picker-trigger-caret {
  font-size: 1rem;
  color: var(--muted);
}

.variety-picker-backdrop[hidden],
.variety-picker-modal[hidden] {
  display: none !important;
}

.variety-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(35, 24, 33, 0.32);
  backdrop-filter: blur(10px);
}

.variety-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1410;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.variety-picker-card {
  width: min(920px, 100%);
  max-height: min(88vh, 940px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 251, 253, 0.98);
  border: 1px solid rgba(84, 57, 80, 0.14);
  box-shadow: 0 26px 72px rgba(62, 34, 56, 0.2);
}

.variety-picker-head,
.variety-picker-section-head,
.variety-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.variety-picker-credit-link {
  color: var(--rose-strong);
  font-size: 0.86rem;
  text-decoration: none;
}

.variety-picker-credit-link:hover {
  text-decoration: underline;
}

.variety-picker-head {
  align-items: flex-start;
}

.variety-picker-head h2,
.detail-section-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.variety-picker-search {
  display: grid !important;
  gap: 6px;
}

.variety-picker-search input {
  width: 100%;
}

.variety-picker-section {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.variety-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.variety-picker-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.variety-picker-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(84, 57, 80, 0.14);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
}

.variety-picker-item.compact {
  align-items: start;
}

.variety-picker-item.selected {
  border-color: rgba(221, 103, 151, 0.4);
  box-shadow: 0 10px 24px rgba(233, 95, 152, 0.14);
  background: rgba(255, 246, 250, 0.98);
}

.variety-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 230, 238, 0.9), rgba(246, 242, 245, 0.96));
  border: 1px solid rgba(84, 57, 80, 0.08);
  flex: 0 0 auto;
}

.variety-picker-copy,
.variety-card-copy,
.detail-section-head {
  display: grid;
  gap: 3px;
}

.variety-picker-copy strong,
.variety-card-copy strong {
  font-size: 0.97rem;
}

.variety-picker-copy small,
.variety-card-copy span {
  font-size: 0.85rem;
}

.variety-picker-copy em,
.variety-card-copy p,
.detail-section-head p,
.variety-picker-empty {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  font-style: normal;
}

.variety-picker-check {
  min-width: 18px;
  text-align: center;
  color: #dd6797;
  font-weight: 800;
}

.detail-varieties {
  display: grid;
  gap: 12px;
}

.variety-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.variety-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(84, 57, 80, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.toggle-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(84, 57, 80, 0.14);
  border-radius: 14px;
  background: white;
  align-self: stretch;
}

.toggle-chip input {
  width: 18px;
  height: 18px;
}

.toggle-chip span {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.control-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.ghost-btn {
  min-width: auto;
  font-weight: 700;
}

.data-health {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.near-me-status {
  margin-top: -4px;
}

.data-health.good {
  color: #406774;
}

.data-health.warning {
  color: #9a6519;
}

.data-health.critical {
  color: #b14c5f;
}

.data-health.offseason {
  color: #627683;
}

.layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.map-column {
  display: grid;
  gap: 14px;
}

.map-panel,
.side-panel,
.support-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-panel {
  min-height: 74vh;
  background: #f3f8fb;
}

.side-panel,
.support-card {
  background: var(--panel-soft);
  backdrop-filter: blur(18px) saturate(1.06);
}

.side-panel {
  min-height: 74vh;
  padding: 20px;
}

#map {
  width: 100%;
  height: 74vh;
  background:
    linear-gradient(180deg, #f4fbfd 0%, #eef7fb 42%, #f6f7fa 100%),
    radial-gradient(circle at top right, rgba(125, 201, 226, 0.18), transparent 26%),
    radial-gradient(circle at top left, rgba(246, 199, 215, 0.2), transparent 24%);
}

.map-overlay {
  position: absolute;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(77, 127, 147, 0.18);
  box-shadow: 0 18px 35px rgba(35, 80, 100, 0.12);
  backdrop-filter: blur(10px);
}

.top-left {
  top: 16px;
  left: 16px;
}

.top-right {
  top: 16px;
  right: 16px;
}

.freshness-chip {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
  max-width: min(92%, 460px);
}

.map-mobile-actions {
  display: none;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
}

.map-support-strip {
  display: grid;
}

.support-card {
  padding: 0;
}

.support-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 16px 18px;
}

.support-toggle-copy {
  display: grid;
  gap: 4px;
}

.support-toggle-copy h3 {
  margin: 0;
  font-size: 1.02rem;
}

.support-toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(84, 57, 80, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.support-body {
  overflow: hidden;
  max-height: 1200px;
  opacity: 1;
  transition: max-height 260ms ease, opacity 220ms ease;
}

.support-card.collapsed .support-body {
  max-height: 0;
  opacity: 0;
}

.support-card.collapsed .support-open-label {
  display: none;
}

.support-card.collapsed .support-closed-label {
  display: inline;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.legend-section {
  display: grid;
  gap: 10px;
}

.legend-group-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.legend-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

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

.legend-ring-list.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legend-copy {
  display: grid;
  gap: 2px;
}

.legend-copy strong {
  font-size: 0.92rem;
}

.legend-copy small,
.legend-note,
.legend-number-copy p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.legend-note {
  margin: 0;
}

.legend-ring,
.legend-sample-marker {
  position: relative;
  border-radius: 999px;
}

.legend-ring {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(112, 71, 101, 0.96), rgba(75, 44, 69, 0.94));
  box-shadow: 0 10px 18px rgba(73, 38, 61, 0.2);
}

.legend-ring::before,
.legend-ring::after,
.legend-sample-marker::before,
.legend-sample-marker::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.legend-ring::before,
.legend-sample-marker::before {
  inset: 2px;
  background: conic-gradient(from -90deg, var(--legend-fill) calc(var(--legend-score) * 1turn), rgba(255,255,255,0.18) 0);
}

.legend-ring::after,
.legend-sample-marker::after {
  inset: 7px;
  background: linear-gradient(180deg, rgba(85, 51, 76, 0.94), rgba(70, 40, 60, 0.98));
}

.legend-ring.low {
  --legend-score: 0.24;
  --legend-fill: #a695dd;
}

.legend-ring.blue {
  --legend-score: 0.42;
  --legend-fill: #7fb6df;
}

.legend-ring.medium {
  --legend-score: 0.62;
  --legend-fill: #ffb468;
}

.legend-ring.high {
  --legend-score: 0.88;
  --legend-fill: #ff7ea7;
}

.legend-number-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.legend-sample-marker {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #8b4665, #57283e);
  box-shadow: 0 18px 30px rgba(255, 126, 167, 0.24);
}

.legend-sample-marker::before {
  --legend-score: 0.85;
  --legend-fill: #ff7ea7;
}

.legend-sample-marker::after {
  inset: 16px;
}

.legend-sample-marker span {
  position: relative;
  z-index: 2;
  display: block;
}

.sample-name {
  font-size: 0.75rem;
  font-weight: 800;
}

.sample-count {
  font-size: 1rem;
  font-weight: 800;
}

.sample-score {
  font-size: 0.7rem;
}

.legend-number-copy {
  display: grid;
  gap: 6px;
}

.legend-number-copy p {
  margin: 0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.peak {
  background: var(--peak);
}

.legend-dot.rising {
  background: var(--rising);
}

.legend-dot.late {
  background: var(--late);
}

.side-panel-sheet-handle,
.side-panel-mobile-head {
  display: none;
}

.panel-content {
  display: grid;
  gap: 16px;
}

.loading-state {
  padding-top: 12px;
}

.panel-content h2,
.panel-content h3,
.panel-content h4,
.side-panel-mobile-head h2 {
  margin: 0;
}

.panel-copy,
.detail-copy,
.meta-row,
.source-note,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.panel-header {
  display: grid;
  gap: 10px;
}

.panel-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-stat {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(84, 57, 80, 0.12);
  font-size: 0.92rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.spot-card,
.detail-card {
  border-radius: 20px;
  border: 1px solid rgba(84, 57, 80, 0.12);
  background: #fff;
  overflow: hidden;
}

.spot-card .thumb,
.detail-hero {
  position: relative;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(255, 217, 230, 0.7), rgba(218, 223, 255, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.8), transparent 40%);
}

.spot-card .thumb img,
.detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(84, 57, 80, 0.14);
  font-size: 0.76rem;
  font-weight: 700;
}

.card-body,
.detail-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-head,
.detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.card-head h3 {
  margin: 0;
}

.detail-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stage-pill,
.timing-pill,
.worth-pill,
.source-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stage-pill.peak {
  background: rgba(214, 76, 127, 0.12);
  color: var(--peak);
}

.theme-food .stage-pill.peak {
  background: rgba(191, 125, 86, 0.14);
}

.stage-pill.partly-bloomed,
.stage-pill.starting {
  background: rgba(240, 169, 79, 0.14);
  color: #965c13;
}

.stage-pill.late {
  background: rgba(122, 120, 212, 0.15);
  color: #5c56b6;
}

.stage-pill.pre-bloom,
.stage-pill.finished {
  background: rgba(84, 57, 80, 0.1);
  color: #66505f;
}

.timing-pill.go-now {
  background: rgba(58, 156, 103, 0.12);
  color: var(--success);
}

.timing-pill.peak-soon {
  background: rgba(240, 169, 79, 0.14);
  color: #965c13;
}

.timing-pill.later {
  background: rgba(127, 90, 240, 0.12);
  color: var(--violet);
}

.timing-pill.past-peak {
  background: rgba(84, 57, 80, 0.1);
  color: #66505f;
}

.worth-pill {
  background: rgba(58, 156, 103, 0.12);
  color: var(--success);
}

.source-pill {
  background: rgba(127, 90, 240, 0.12);
  color: var(--violet);
}

.source-pill.confirmed {
  background: rgba(58, 156, 103, 0.12);
  color: var(--success);
}

.source-pill.close {
  background: rgba(240, 169, 79, 0.14);
  color: #965c13;
}

.source-pill.mixed {
  background: rgba(214, 76, 127, 0.12);
  color: var(--peak);
}

.tag {
  background: rgba(84, 57, 80, 0.08);
  color: #5d4a58;
  font-weight: 600;
}

.panel-validation-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row {
  font-size: 0.95rem;
  margin: 0;
}

.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-cell {
  border-radius: 16px;
  border: 1px solid rgba(84, 57, 80, 0.1);
  padding: 12px;
  background: rgba(250, 247, 250, 0.75);
}

.detail-cell strong {
  display: block;
  margin-top: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-marker,
.pref-marker {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 16px 28px rgba(73, 38, 61, 0.2);
  background: linear-gradient(180deg, var(--marker-shell-top, rgba(112, 71, 101, 0.96)), var(--marker-shell-bottom, rgba(75, 44, 69, 0.94)));
}

.area-marker::before,
.pref-marker::before {
  content: "";
  position: absolute;
  inset: 6.5%;
  border-radius: 999px;
  background: conic-gradient(from -90deg, var(--ring-fill, #ffdbe8) calc(var(--score, 0.7) * 1turn), rgba(255,255,255,0.16) 0);
  opacity: 0.98;
  box-shadow: 0 0 20px var(--marker-glow, rgba(255, 126, 167, 0.18));
}

.area-marker::after,
.pref-marker::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--marker-core-top, rgba(85, 51, 76, 0.94)), var(--marker-core-bottom, rgba(70, 40, 60, 0.98)));
}

.area-marker.priority,
.pref-marker.priority {
  box-shadow: 0 22px 40px var(--marker-glow, rgba(255, 126, 167, 0.26)), 0 16px 28px rgba(73, 38, 61, 0.24);
}

.marker-icon-shell {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
}

.marker-hit-area {
  display: grid;
  place-items: center;
}

.marker-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 0 10px;
}

.marker-name {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 1px 12px rgba(21, 13, 18, 0.28);
}

.marker-meta {
  font-size: 0.66rem;
  opacity: 0.9;
}

.marker-count {
  font-size: 1rem;
  font-weight: 800;
}

.area-marker.priority .marker-name,
.pref-marker.priority .marker-name {
  font-size: 0.82rem;
}

.area-marker.priority .marker-count,
.pref-marker.priority .marker-count {
  font-size: 1.18rem;
}

.area-marker.priority .marker-meta,
.pref-marker.priority .marker-meta {
  font-size: 0.72rem;
}

.pref-label {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pref-label span {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(84, 57, 80, 0.12);
  color: #5f4959;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(52, 38, 50, 0.09);
}

.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(84, 57, 80, 0.14) !important;
  color: var(--text) !important;
  font-size: 1.35rem !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 12px 24px rgba(54, 38, 51, 0.12) !important;
}

.leaflet-interactive {
  transition: opacity 120ms ease, stroke-width 120ms ease;
}

.leaflet-tooltip.group-tooltip {
  border: 1px solid rgba(77, 127, 147, 0.16);
  box-shadow: 0 12px 24px rgba(35, 80, 100, 0.12);
  color: var(--text);
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: rgba(84, 57, 80, 0.05);
}

@media (max-width: 1280px) {
  .control-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .control-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .mobile-only,
  .mobile-copy {
    display: block;
  }

  .mobile-label {
    display: inline;
  }

  .mobile-quick-actions {
    display: none;
  }

  .desktop-copy,
  .desktop-label {
    display: none;
  }

  body.filters-open,
  body.sheet-scroll-lock,
  body.variety-picker-open {
    overflow: hidden;
  }

  body.filters-open .mobile-dimmer {
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell {
    padding: 14px;
    padding-bottom: calc(var(--sheet-peek-height) + 32px + var(--safe-bottom));
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px 15px 14px;
    border-radius: 24px;
  }

  .topbar-actions {
    width: 100%;
    justify-items: stretch;
    gap: 10px;
  }

  .season-switch {
    width: 100%;
    justify-content: space-between;
    padding: 6px;
    gap: 8px;
  }

  .season-btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.94rem;
    line-height: 1.18;
  }

  .brand-copy h1 {
    font-size: clamp(1.35rem, 7.3vw, 1.92rem);
    line-height: 1.02;
    margin: 4px 0 5px;
    letter-spacing: -0.02em;
  }

  .subhead {
    font-size: 0.92rem;
    line-height: 1.36;
    max-width: 28ch;
  }

  .summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 0;
  }

  .summary-strip::-webkit-scrollbar,
  .summary-chip-row::-webkit-scrollbar,
  .control-bar::-webkit-scrollbar,
  .panel-content::-webkit-scrollbar {
    display: none;
  }

  .summary-card {
    padding: 12px;
    min-height: 0;
    box-shadow: var(--shadow-soft);
  }

  .summary-card-peak,
  .summary-card-soon {
    align-content: start;
  }

  .summary-card-freshness {
    grid-column: 1 / -1;
  }

  .summary-card strong {
    margin-top: 6px;
    font-size: 0.96rem;
    line-height: 1.28;
  }

  .summary-chip-row {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 0;
  }

  .summary-chip,
  .summary-empty {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 5px 10px;
    font-size: 0.83rem;
  }

  .mobile-inline-ad {
    display: block;
  }

  .mobile-utility-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .utility-btn {
    text-align: center;
    padding: 11px 10px;
  }

  .control-bar {
    position: fixed;
    z-index: 1200;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
    max-height: min(78vh, 680px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 200ms ease;
    padding: 18px;
    border-radius: 24px;
  }

  body.filters-open .control-bar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-open .side-panel {
    z-index: 1090;
  }

  .control-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .control-bar-head .panel-copy {
    margin: 6px 0 0;
  }

  .control-bar label,
  .control-bar select,
  .ghost-btn,
  .toggle-chip,
  .control-actions,
  .picker-trigger {
    width: 100%;
  }

  .variety-picker-modal {
    padding: 12px;
    align-items: end;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .variety-picker-card {
    width: 100%;
    max-height: min(90vh, 860px);
    padding: 16px;
    border-radius: 24px;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .variety-picker-card > * + * {
    margin-top: 16px;
  }

  .variety-picker-head,
  .variety-picker-section-head,
  .variety-picker-toolbar {
    display: grid;
    gap: 8px;
  }

  .variety-picker-section + .variety-picker-section {
    margin-top: 14px;
  }

  .variety-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variety-card-grid {
    grid-template-columns: 1fr;
  }

  .variety-picker-list {
    overflow: visible;
    padding-right: 0;
  }

  .variety-picker-item {
    padding: 10px;
  }

  .variety-thumb {
    width: 56px;
    height: 56px;
  }

  .control-actions {
    margin-left: 0;
    display: grid;
  }

  .map-panel,
  #map {
    min-height: 62vh;
    height: 62vh;
    border-radius: 26px;
  }

  .map-mobile-actions {
    display: inline-flex;
  }

  .freshness-chip {
    max-width: calc(100% - 32px);
    font-size: 0.85rem;
    padding: 9px 12px;
  }

  .support-toggle {
    padding: 14px 16px;
  }

  .support-toggle-state {
    min-width: 58px;
  }

  .support-grid {
    padding: 0 16px 16px;
  }

  .detail-grid,
  .legend-number-card,
  .legend-ring-list.compact-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1150;
    min-height: 200px;
    max-height: min(84vh, 760px);
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    padding: 10px 14px calc(14px + var(--safe-bottom));
    box-shadow: 0 -18px 42px rgba(30, 66, 87, 0.22);
    transform: translateY(0);
    transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms ease;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .side-panel[data-sheet-state="peek"] {
    transform: translateY(calc(100% - var(--sheet-peek-height)));
  }

  .side-panel[data-sheet-state="hidden"] {
    transform: translateY(calc(100% + 12px));
  }

  .side-panel-sheet-handle {
    display: block;
    width: 54px;
    height: 6px;
    border-radius: 999px;
    background: rgba(84, 57, 80, 0.22);
    margin: 2px auto 10px;
  }

  .side-panel-mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(84, 57, 80, 0.08);
  }

  .side-panel-mobile-head h2 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .sheet-head-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .sheet-head-actions .icon-btn {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .panel-content {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 4px 2px 0;
  }

  .panel-content > * + * {
    margin-top: 16px;
  }

  .panel-ad-slot {
    display: block;
    margin-top: 12px;
  }

  .card-grid {
    gap: 12px;
  }

  .spot-card .thumb,
  .detail-hero {
    min-height: 140px;
  }

  .card-body,
  .detail-body {
    gap: 8px;
    padding: 14px;
  }

  .card-head,
  .detail-head {
    align-items: flex-start;
  }

  .detail-pill-group {
    justify-content: flex-start;
  }

  .card-actions,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .inline-btn,
  .link-btn {
    width: 100%;
  }

  .tag-row {
    gap: 6px;
  }

  .tag {
    font-size: 0.76rem;
    padding: 5px 8px;
  }

  .summary-label,
  .panel-kicker,
  label span,
  .ad-slot-label {
    font-size: 0.68rem;
  }

  body.map-focus-mode .app-shell {
    padding: 0;
  }

  body.map-focus-mode .topbar,
  body.map-focus-mode .summary-strip,
  body.map-focus-mode .mobile-inline-ad,
  body.map-focus-mode .mobile-utility-bar,
  body.map-focus-mode .map-support-strip,
  body.map-focus-mode .control-bar {
    display: none !important;
  }

  body.map-focus-mode .layout {
    margin-top: 0;
  }

  body.map-focus-mode .map-column {
    display: block;
  }

  body.map-focus-mode .map-panel {
    position: fixed;
    inset: 0;
    z-index: 1125;
    border-radius: 0;
    border: 0;
    min-height: 100dvh;
  }

  body.map-focus-mode #map {
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-bottom: calc(var(--sheet-peek-height) + 24px + var(--safe-bottom));
  }

  .topbar {
    padding: 14px;
    border-radius: 22px;
  }

  .brand-copy h1 {
    font-size: clamp(1.28rem, 8.8vw, 1.78rem);
  }

  .subhead {
    font-size: 0.9rem;
    max-width: 24ch;
  }

  .season-btn {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .summary-strip {
    gap: 8px;
  }

  .summary-card {
    padding: 11px;
    border-radius: 18px;
  }

  .summary-chip-row {
    gap: 5px;
  }

  .summary-chip,
  .summary-empty {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.8rem;
  }

  .mobile-utility-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-btn {
    font-size: 0.84rem;
    padding: 10px 6px;
  }

  .map-panel,
  #map {
    min-height: 58vh;
    height: 58vh;
  }

  .top-left {
    top: 12px;
    left: 12px;
  }

  .top-right {
    top: 12px;
    right: 12px;
  }

  .map-mobile-actions {
    gap: 6px;
    padding: 6px;
  }

  .map-mobile-actions .icon-btn {
    min-height: 40px;
    padding: 9px 12px;
  }

  .side-panel {
    padding: 10px 12px calc(12px + var(--safe-bottom));
  }

  .panel-stat-row,
  .card-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .panel-stat-row {
    display: grid;
    gap: 8px;
  }

  .card-head,
  .detail-head {
    display: grid;
    gap: 8px;
  }

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

  .spot-card .thumb,
  .detail-hero {
    min-height: 124px;
  }
}

.season-switch .season-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.food-control-bar input[type="search"] {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(84, 57, 80, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 12px 14px;
}

.food-legend-badge {
  min-width: 48px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(84, 57, 80, 0.12);
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.summary-card-food-mini {
  text-align: left;
  border: 1px solid rgba(84, 57, 80, 0.12);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.summary-card-food-mini strong {
  font-size: 1.05rem;
}

.food-region-marker {
  min-width: 124px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(84, 57, 80, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(24, 48, 58, 0.22);
  backdrop-filter: blur(14px);
  text-align: center;
}

.food-region-marker-icons {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.food-region-marker-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.food-region-marker-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.food-pref-marker-shell {
  min-width: 154px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(84, 57, 80, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(26, 51, 62, 0.2);
  backdrop-filter: blur(14px);
}

.food-pref-marker-shell.nearby {
  border-color: rgba(58, 156, 103, 0.38);
  box-shadow: 0 18px 34px rgba(58, 156, 103, 0.18);
}

.food-pref-marker-emoji {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 245, 228, 0.98), rgba(255, 233, 214, 0.92));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.food-pref-marker-copy {
  display: grid;
  gap: 2px;
}

.food-pref-marker-name {
  font-size: 0.85rem;
  font-weight: 800;
}

.food-pref-marker-meta {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
}

.food-pref-marker-badges {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.food-count-badge,
.food-nearby-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.food-count-badge {
  background: rgba(239, 114, 159, 0.12);
  color: #a83d67;
}

.food-nearby-badge {
  background: rgba(58, 156, 103, 0.14);
  color: #2d7e54;
}

.food-restaurant-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffce81 0%, #f39b73 100%);
  border: 3px solid white;
  box-shadow: 0 10px 24px rgba(243, 155, 115, 0.34);
  font-size: 1rem;
}

.food-city-marker-shell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.97);
  border: 1px solid rgba(109, 94, 75, 0.16);
  box-shadow: 0 12px 28px rgba(68, 58, 40, 0.18);
  backdrop-filter: blur(14px);
}

.food-city-marker-pin {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ddb074 0%, #bc7f58 100%);
  color: white;
  font-size: 0.9rem;
}

.food-city-marker-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.food-pref-label span {
  background: rgba(255, 255, 255, 0.76);
}

.food-dish-card .card-head,
.food-restaurant-card .card-head {
  flex-wrap: wrap;
}

.food-emoji-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 12px;
  background: rgba(250, 239, 226, 0.94);
  font-size: 1.15rem;
}

.food-family-pill {
  background: rgba(89, 175, 208, 0.12);
  color: #397fa2;
}

.food-detail-section + .food-detail-section {
  margin-top: 28px;
}

.food-dish-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.source-tag-link {
  text-decoration: none;
}

.food-hero-actions {
  margin-top: 12px;
}

.prefecture-focus-summary {
  margin-top: 8px;
}

.food-variant-strip-wrap {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 249, 245, 0.82);
  border: 1px solid rgba(130, 83, 61, 0.1);
}

.detail-section-head.compact h3 {
  font-size: 1rem;
}

.food-variant-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.variant-switch-chip {
  text-align: left;
  border: 1px solid rgba(130, 83, 61, 0.12);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-soft), box-shadow var(--transition-soft), border-color var(--transition-soft);
}

.variant-switch-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(52, 39, 31, 0.14);
}

.variant-switch-chip.active {
  border-color: rgba(209, 115, 74, 0.32);
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.98), rgba(255, 236, 222, 0.96));
  box-shadow: 0 20px 40px rgba(209, 115, 74, 0.16);
}

.variant-switch-chip-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.variant-switch-chip strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.dish-media-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dish-photo-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(130, 83, 61, 0.1);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.dish-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-card-food-variety {
  background: linear-gradient(135deg, rgba(255, 244, 233, 0.95), rgba(255, 230, 211, 0.9));
}

.summary-card-food-family {
  background: linear-gradient(135deg, rgba(236, 244, 255, 0.95), rgba(221, 235, 255, 0.9));
}

.summary-card-food-nearby {
  background: linear-gradient(135deg, rgba(236, 252, 243, 0.95), rgba(221, 244, 232, 0.9));
}

@media (max-width: 860px) {
  .food-pref-marker-shell {
    min-width: 132px;
    padding: 9px 10px;
    gap: 8px;
  }

  .food-pref-marker-emoji {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .food-pref-marker-name {
    font-size: 0.8rem;
  }

  .food-pref-marker-meta {
    font-size: 0.63rem;
  }

  .food-region-marker {
    min-width: 108px;
    padding: 10px 12px;
  }

  .summary-card-food-mini {
    padding: 14px;
  }

  .food-variant-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dish-media-strip {
    grid-template-columns: 1fr;
  }

  .food-variant-strip-wrap {
    padding: 12px;
  }

  .variant-switch-chip {
    padding: 10px;
    border-radius: 16px;
  }

  .variant-switch-chip strong {
    font-size: 0.9rem;
  }
}

.food-dish-card.active {
  border-color: rgba(90, 124, 216, 0.28);
  box-shadow: 0 18px 40px rgba(90, 124, 216, 0.14);
}

.inline-btn.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid rgba(84, 57, 80, 0.14);
}

/* === Japan SuperApp home + modern shared module nav === */

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

.superapp-brand-link.current {
  pointer-events: none;
}

.superapp-brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3a8c5 0%, #8aaee3 100%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7);
}

.superapp-brand-copy {
  display: grid;
  gap: 2px;
}

.superapp-brand-copy strong {
  font-size: 0.98rem;
  line-height: 1;
}

.superapp-brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.season-switch-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 249, 252, 0.88);
  border: 1px solid rgba(88, 55, 79, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.theme-food .season-switch-modern {
  background: rgba(247, 241, 233, 0.94);
  border-color: rgba(109, 94, 75, 0.12);
}

.season-switch-modern .season-btn {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(84, 57, 80, 0.08);
  box-shadow: 0 8px 22px rgba(84, 57, 80, 0.06);
}

.season-switch-modern .season-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(84, 57, 80, 0.1);
}

.season-switch-modern .season-btn.active {
  color: white;
  border-color: transparent;
}

.theme-food .season-switch-modern .season-btn.active {
  color: white;
}

.season-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(84, 57, 80, 0.07);
}

.season-btn.active .season-icon {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.season-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.season-copy strong {
  font-size: 0.94rem;
  line-height: 1.05;
}

.season-copy small {
  font-size: 0.72rem;
  line-height: 1.2;
  color: inherit;
  opacity: 0.78;
}

.season-switch-modern .season-btn.disabled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(84, 57, 80, 0.16);
  opacity: 0.82;
}

.landing-page .app-shell {
  padding-bottom: 28px;
}

.home-hero {
  align-items: stretch;
}

.home-brand-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-brand-copy .subhead {
  max-width: 62ch;
}

.hero-cta-row,
.module-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.home-topbar-actions {
  min-width: min(420px, 100%);
  align-content: start;
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-module-peek {
  min-height: 148px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: end;
  gap: 8px;
}

.peek-label,
.module-status,
.art-chip {
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.sakura-peek {
  background:
    radial-gradient(circle at top left, rgba(247, 181, 208, 0.48), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 252, 0.95), rgba(255, 255, 255, 0.72));
}

.food-peek {
  background:
    radial-gradient(circle at top left, rgba(230, 191, 144, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(255, 255, 255, 0.72));
}

.peek-label,
.module-status.live,
.art-chip {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.module-status.soon {
  background: rgba(236, 228, 198, 0.92);
  color: #6d5b33;
}

.home-main {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

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

.home-story-card {
  padding: 18px 20px;
}

.home-story-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.module-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
}

.module-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
}

.module-card-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.06;
}

.module-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.module-card-copy .module-card-actions {
  margin-top: auto;
}

.module-feature-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.module-feature-list li::marker {
  color: var(--pink);
}

.module-meta-pill {
  min-height: 40px;
  border-radius: 999px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(84, 57, 80, 0.09);
}

.muted-pill {
  color: var(--muted);
}

.module-art {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid rgba(84, 57, 80, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.image-art img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.module-card-sakura .module-art {
  background:
    radial-gradient(circle at top left, rgba(250, 194, 222, 0.62), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 252, 0.98), rgba(255, 249, 252, 0.86));
}

.module-card-food .module-art {
  background:
    radial-gradient(circle at top left, rgba(229, 191, 146, 0.52), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 247, 238, 0.88));
}

.module-card-upcoming .module-art {
  background:
    radial-gradient(circle at top left, rgba(234, 198, 132, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 242, 232, 0.88));
}

.art-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.sakura-tree,
.food-bowl-scene,
.upcoming-scene {
  position: absolute;
  inset: 0;
}

.sakura-cloud {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 240, 247, 0.98), rgba(248, 189, 214, 0.95));
  box-shadow: 0 26px 60px rgba(230, 140, 178, 0.18);
}

.sakura-cloud-one {
  width: 160px;
  height: 118px;
  top: 76px;
  left: 44px;
}

.sakura-cloud-two {
  width: 138px;
  height: 106px;
  top: 46px;
  left: 118px;
}

.sakura-cloud-three {
  width: 146px;
  height: 100px;
  top: 112px;
  left: 126px;
}

.sakura-trunk {
  position: absolute;
  width: 42px;
  height: 142px;
  left: 118px;
  bottom: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #765145 0%, #57362b 100%);
}

.sakura-ground {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 30px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.petal {
  position: absolute;
  font-size: 1.3rem;
}

.petal::before {
  content: '🌸';
}

.petal-one {
  top: 56px;
  right: 34px;
}

.petal-two {
  top: 128px;
  right: 70px;
}

.petal-three {
  bottom: 72px;
  right: 42px;
}

.food-steam {
  position: absolute;
  width: 30px;
  height: 92px;
  border-radius: 999px;
  border: 4px solid rgba(190, 163, 133, 0.5);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
}

.steam-one {
  top: 60px;
  left: 118px;
}

.steam-two {
  top: 44px;
  left: 156px;
}

.steam-three {
  top: 68px;
  left: 194px;
}

.food-chopsticks {
  position: absolute;
  top: 72px;
  right: 72px;
  width: 118px;
  height: 16px;
  border-top: 6px solid #7f5f44;
  border-bottom: 6px solid #7f5f44;
  transform: rotate(-22deg);
  border-radius: 999px;
}

.food-bowl {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 48px;
  height: 124px;
  border-radius: 0 0 120px 120px;
  background: linear-gradient(180deg, #f7b88f 0%, #d98964 100%);
  box-shadow: inset 0 -18px 0 rgba(148, 81, 62, 0.16);
}

.food-broth {
  position: absolute;
  left: 102px;
  right: 102px;
  bottom: 126px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8d7b5 0%, #f1c48f 100%);
}

.food-topping {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.topping-one {
  bottom: 122px;
  left: 124px;
  background: #f28f75;
}

.topping-two {
  bottom: 120px;
  left: 168px;
  background: #7db071;
}

.topping-three {
  bottom: 116px;
  left: 212px;
  background: #ffe29c;
}

.upcoming-scene {
  display: grid;
  place-items: center;
}

.upcoming-leaf {
  position: absolute;
  font-size: 3.2rem;
}

.leaf-one {
  top: 74px;
  left: 68px;
}

.leaf-two {
  top: 118px;
  left: 150px;
}

.leaf-three {
  top: 74px;
  right: 70px;
}

@media (max-width: 1100px) {
  .module-card {
    grid-template-columns: 1fr;
  }

  .home-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .landing-page .app-shell {
    padding-bottom: 22px;
  }

  .home-hero {
    gap: 14px;
  }

  .season-switch-modern {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px;
  }

  .season-switch-modern .season-btn,
  .season-switch-modern .season-btn.disabled {
    min-width: 138px;
    flex: 0 0 auto;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .module-art {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .superapp-brand-link {
    gap: 10px;
  }

  .hero-cta-row,
  .module-card-actions {
    gap: 10px;
  }

  .module-card {
    padding: 14px;
    border-radius: 24px;
  }

  .module-art {
    min-height: 210px;
  }

  .sakura-cloud-one {
    width: 126px;
    height: 96px;
    left: 24px;
  }

  .sakura-cloud-two {
    width: 112px;
    height: 88px;
    left: 90px;
  }

  .sakura-cloud-three {
    width: 118px;
    height: 86px;
    left: 96px;
  }

  .sakura-trunk {
    left: 92px;
    height: 120px;
  }

  .food-bowl {
    left: 42px;
    right: 42px;
    height: 108px;
  }

  .food-broth {
    left: 72px;
    right: 72px;
    bottom: 110px;
  }

  .food-chopsticks {
    right: 42px;
    width: 92px;
  }

  .steam-one {
    left: 82px;
  }

  .steam-two {
    left: 118px;
  }

  .steam-three {
    left: 154px;
  }
}

.season-switch-modern .season-btn,
.season-switch-modern .season-btn.disabled {
  justify-content: flex-start;
}

.season-switch-modern .season-btn.disabled {
  color: var(--muted);
}

.season-switch-modern .season-btn.active {
  background: linear-gradient(135deg, #f7a6c2 0%, #ef729f 100%);
  box-shadow: 0 12px 28px rgba(233, 95, 152, 0.22);
}

.theme-food .season-switch-modern .season-btn.active {
  background: linear-gradient(135deg, #ddb074 0%, #bc7f58 100%);
  box-shadow: 0 12px 28px rgba(164, 108, 67, 0.18);
}

.season-icon::after {
  content: attr(data-icon);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #5d5566;
}

.season-btn.active .season-icon::after {
  color: white;
}

.season-icon-home {
  background: linear-gradient(135deg, rgba(240, 225, 255, 0.92), rgba(212, 231, 255, 0.95));
}

.season-icon-sakura {
  background: linear-gradient(135deg, rgba(255, 229, 241, 0.95), rgba(248, 196, 218, 0.96));
}

.season-icon-food {
  background: linear-gradient(135deg, rgba(255, 235, 214, 0.95), rgba(236, 199, 150, 0.95));
}

.season-icon-autumn {
  background: linear-gradient(135deg, rgba(249, 234, 198, 0.92), rgba(229, 190, 136, 0.92));
}

a.ghost-btn,
a.inline-btn.primary {
  text-decoration: none;
}

a.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.petal {
  width: 22px;
  height: 16px;
  border-radius: 16px 16px 16px 2px;
  background: linear-gradient(135deg, rgba(255, 243, 248, 0.98), rgba(244, 181, 207, 0.98));
  box-shadow: 0 8px 18px rgba(230, 140, 178, 0.18);
}

.petal::before {
  content: '';
}

.petal-one {
  transform: rotate(18deg);
}

.petal-two {
  transform: rotate(-12deg);
}

.petal-three {
  transform: rotate(28deg);
}

.upcoming-leaf {
  width: 34px;
  height: 54px;
  border-radius: 34px 10px 34px 10px;
  background: linear-gradient(180deg, #f1c26b 0%, #d88156 100%);
  box-shadow: 0 16px 34px rgba(190, 120, 73, 0.18);
}

.upcoming-leaf::after {
  content: '';
  position: absolute;
  inset: 6px 15px 6px auto;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.leaf-two {
  background: linear-gradient(180deg, #efcf86 0%, #cf9961 100%);
}

.season-icon {
  font-size: 0.82rem;
  font-weight: 900;
  color: #5d5566;
}

.season-btn.active .season-icon {
  color: white;
}
