:root {
  color-scheme: light;
  --bg-cream: #fcf5ef;
  --bg-canvas: #e6e0d6;
  --surface: #ffffff;
  --map-base: #e9e2d4;
  --ink: #080808;
  --ink-2: #6b6258;
  --ink-3: #9a8f82;
  --ink-4: #b6a692;
  --accent: #d95300;
  --accent-press: #b84500;
  --accent-tint: #fdf0e8;
  --green: #1b5e20;
  --blue: #2f5d8c;
  --red: #b42318;
  --line: #e3e0dd;
  --line-2: #ece4d9;
  --line-3: #eee7de;
  --r-pill: 15px;
  --control-height: 46px;
  --shadow-card: 0 14px 30px -18px rgba(120, 70, 20, 0.5);
  --shadow-float: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --font-body: "Noto Sans JP", "Noto Sans KR", sans-serif;
  --font-display: "Mohave", sans-serif;
  --font-en: "Albert Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:active,
a:active {
  transform: translateY(1px);
}

a {
  color: var(--accent);
  text-decoration: none;
}

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hidden {
  display: none !important;
}

.site-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg-cream);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 12px;
}

.footer-content {
  max-width: 960px;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.footer-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.footer-guides span {
  line-height: 1.6;
}

.footer-guides strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
}

.noscript-content {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.noscript-content h1 {
  max-width: 820px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.noscript-content p {
  max-width: 860px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-en);
  line-height: 1.7;
}

.noscript-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 73px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-cream);
}

.brand {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.brand span {
  color: var(--ink-4);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.31em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.nav button,
.nav a {
  position: relative;
  padding: 4px 0 5px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.nav button.active,
.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.nav button.active::after,
.nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.festival-main,
.festival-detail-main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 42px 32px 72px;
}

.festival-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.festival-hero .kicker {
  color: var(--accent);
}

.festival-hero h1 {
  max-width: 820px;
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.festival-hero p:not(.kicker) {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1.75;
}

.festival-hero-count {
  display: grid;
  min-width: 118px;
  padding: 22px;
  border: 1px solid #ecd3c2;
  border-radius: 22px;
  background: var(--accent-tint);
  text-align: center;
}

.festival-hero-count strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
}

.festival-hero-count span {
  margin-top: 5px;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.festival-controls {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(252, 245, 239, 0.95);
  box-shadow: 0 14px 38px -30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.festival-controls select,
.festival-view-switch {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
}

.festival-controls select {
  padding: 0 36px 0 15px;
  color: var(--ink);
  outline: 0;
  font-size: 12px;
}

.festival-filter-control {
  display: grid;
  gap: 4px;
}

.festival-filter-control > span {
  padding-left: 4px;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.festival-view-switch button:focus-visible,
.festival-controls select:focus-visible,
.festival-card-links a:focus-visible,
.festival-calendar-card h3 a:focus-visible,
.festival-source-panel a:focus-visible {
  outline: 3px solid rgba(217, 83, 0, 0.35);
  outline-offset: 3px;
}

.festival-controls > strong {
  margin-left: auto;
  padding: 0 10px;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 12px;
}

.festival-view-switch {
  display: flex;
  padding: 3px;
}

.festival-view-switch button {
  min-width: 94px;
  padding: 0 16px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.festival-view-switch button.active {
  background: var(--ink);
  color: #fff;
}

.festival-month-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.festival-month-heading {
  position: sticky;
  top: 100px;
  align-self: start;
}

.festival-month-heading p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.festival-month-heading span {
  display: block;
  margin-top: 8px;
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
}

.festival-calendar-list {
  display: grid;
  gap: 12px;
}

.festival-calendar-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.festival-calendar-card.hanabi {
  border-left-color: var(--accent);
}

.festival-date-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  background: #f6f1eb;
}

.festival-date-block strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.festival-date-block span {
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 11px;
  line-height: 1.55;
}

.festival-card-copy {
  min-width: 0;
  padding: 22px 24px;
}

.festival-card-meta,
.festival-card-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.festival-card-meta > span:not(.festival-type):not(.festival-status) {
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
}

.festival-type,
.festival-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.festival-type.hanabi {
  background: var(--accent-tint);
  color: var(--accent-press);
}

.festival-type.matsuri {
  background: #e9f0f7;
  color: var(--blue);
}

.festival-status {
  background: #f0eee9;
  color: var(--ink-2);
}

.festival-status.upcoming {
  background: #e7f3e8;
  color: var(--green);
}

.festival-status.ongoing {
  background: #fff0c9;
  color: #785000;
}

.festival-card-copy h3,
.festival-map-card h3 {
  margin: 10px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.festival-card-copy h3 a,
.festival-map-card h3 a {
  color: var(--ink);
}

.festival-card-copy p,
.festival-map-card p {
  margin: 5px 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.festival-card-copy .festival-place {
  color: var(--ink);
  font-weight: 600;
}

.festival-card-links {
  margin-top: 14px;
}

.festival-card-links a {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}

.festival-map-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--map-base);
}

.festival-map-list {
  z-index: 2;
  max-height: 680px;
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.festival-map-card {
  padding: 16px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}

.festival-map-card:hover {
  border-radius: 14px;
  background: var(--bg-cream);
}

#festivalMap {
  min-height: 620px;
  background: var(--map-base);
}

.festival-leaflet-icon {
  border: 0;
  background: transparent;
}

.festival-marker {
  display: grid;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 10%;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
  transform: rotate(-45deg);
}

.festival-marker.hanabi {
  background: var(--accent);
}

.festival-marker b {
  display: block;
  transform: rotate(45deg);
}

.festival-popup {
  display: grid;
  gap: 7px;
  min-width: 190px;
  font-family: var(--font-body);
}

.festival-popup strong {
  font-size: 14px;
}

.festival-popup > span:not(.festival-type) {
  color: var(--ink-2);
  font-size: 11px;
}

.festival-empty {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--ink-2);
  text-align: center;
}

.festival-verify-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid #ecd3c2;
  border-radius: 18px;
  background: var(--accent-tint);
}

.festival-verify-notice strong {
  color: var(--accent-press);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.festival-verify-notice p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.festival-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.6fr);
  gap: 24px;
  margin-top: 18px;
}

.festival-detail-copy,
.festival-source-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.festival-detail-copy {
  padding: clamp(28px, 5vw, 58px);
}

.festival-detail-copy h1 {
  max-width: 820px;
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}

.festival-detail-date {
  margin: 22px 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.festival-detail-facts {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.festival-detail-facts div {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.festival-detail-facts span,
.festival-source-panel p,
.festival-source-panel > a:not(.primary) {
  color: var(--ink-2);
  font-size: 11px;
}

.festival-detail-facts strong {
  font-size: 14px;
  line-height: 1.65;
}

.festival-source-panel {
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.festival-source-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}

.festival-source-panel .primary {
  display: grid;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
  text-align: center;
}

.festival-source-panel p {
  margin: 8px 0 0;
}

.top-actions,
.language-switch,
.traveler-chip {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 14px;
  flex: 0 0 auto;
}

.language-switch {
  overflow: hidden;
  border: 1px solid #d6cfc6;
  border-radius: var(--r-pill);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.language-switch button {
  min-width: 40px;
  min-height: 28px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink-2);
}

.language-switch button.active {
  background: var(--ink);
  color: #fff;
}

.traveler-chip {
  gap: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
}

.traveler-chip span {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  place-items: center;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.screen-home.active {
  display: grid;
  gap: 34px;
  padding: 34px 32px 54px;
}

.screen-map.active {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line-3);
  background: var(--surface);
  flex-wrap: wrap;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(300px, 100%);
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-cream);
  color: var(--ink-4);
}

.searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.filterbar select,
.near-button,
.results-panel select {
  height: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-cream);
  color: var(--ink);
  outline: 0;
  font-size: 12px;
}

.filterbar select,
.results-panel select {
  padding: 0 34px 0 15px;
}

.near-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 18px;
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}

.map-stage {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 420px;
  overflow: hidden;
  background: var(--map-base);
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--map-base);
}

.leaflet-container {
  background: var(--map-base);
  font-family: var(--font-body);
}

.leaflet-tile {
  filter: saturate(0.55) sepia(0.16) brightness(1.04);
}

.results-panel {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 430;
  display: flex;
  width: min(386px, calc(100vw - 44px));
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-2);
  background: rgba(252, 245, 239, 0.96);
  box-shadow: var(--shadow-float);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#collapseResults {
  position: absolute;
  top: 50%;
  right: -29px;
  z-index: 450;
  display: grid;
  width: 29px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: var(--ink-2);
  font-size: 0;
  line-height: 1;
  box-shadow: 6px 0 18px -14px rgba(0, 0, 0, 0.55);
  place-items: center;
  transform: translateY(-50%);
}

#collapseResults::before {
  content: "‹";
  color: #5f6368;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.results-panel.collapsed {
  transform: translateX(calc(-100% - 28px));
  opacity: 0;
  pointer-events: none;
}

.open-results {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 440;
  display: grid;
  width: 29px;
  height: 56px;
  border: 1px solid var(--line-2);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: #5f6368;
  font-size: 0;
  box-shadow: 6px 0 18px -14px rgba(0, 0, 0, 0.55);
  place-items: center;
  transform: translateY(-50%);
}

.open-results::before {
  content: "›";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.open-results.is-hidden {
  display: none;
}

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

.results-head p,
.map-count {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.results-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.results-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 26px;
}

.result-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.spot-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px 16px 16px 19px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.spot-card.paid {
  border-left-color: var(--accent);
}

.spot-card.carstay {
  border-left-color: var(--blue);
}

.spot-card.free-carstay {
  border-left-color: var(--blue);
}

.spot-card.active,
.spot-card:hover {
  border-color: #e2c3ac;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.spot-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spot-meta,
.spot-card p,
.selected-card p,
.detail-muted {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.badge-row .spot-meta {
  flex: 1 1 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.paid {
  background: var(--accent);
}

.badge.carstay {
  background: var(--blue);
}

.badge.free-carstay {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.rating-price {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.rating-price strong,
.price {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.spot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.spot-action-hint {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 84px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
}

.favorite span {
  font-size: 15px;
  line-height: 1;
}

.favorite.saved {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent);
}

.map-count {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 420;
  display: none;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
}

.results-panel.collapsed ~ .map-count {
  display: block;
  left: 78px;
  max-width: calc(100% - 108px);
}

.selected-card {
  position: absolute;
  top: 22px;
  right: 32px;
  z-index: 430;
  width: min(312px, calc(100vw - 64px));
  padding: 20px 56px 20px 20px;
  border-top: 3px solid var(--accent);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.selected-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

.selected-close:hover {
  background: #fff;
}

.selected-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.selected-card .primary {
  width: 100%;
  margin-top: 16px;
}

.camp-pin {
  display: block;
  width: 30px;
  height: 30px;
  border: 5px solid var(--accent);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  transform: rotate(-45deg);
}

.camp-pin.free,
.camp-pin.paid {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.35));
  transform: none;
}

.camp-pin.free {
  background-image: url("./assets/free.png");
}

.camp-pin.paid {
  background-image: url("./assets/paid.png");
}

.camp-pin.carstay {
  border-color: var(--blue);
}

.camp-pin.free-carstay {
  border-color: var(--blue);
  background: #e9fbf3;
}

.camp-pin.selected {
  border-color: var(--ink);
}

.camp-pin.free.selected,
.camp-pin.paid.selected {
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 0 var(--ink));
  transform: scale(1.12);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-float);
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 12px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.home-hero-copy,
.manners-panel,
.home-search-section,
.guide-panel,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.home-hero-copy {
  padding: clamp(30px, 5vw, 64px);
}

.home-hero-copy h1 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.home-hero-copy p:not(.kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
}

.home-hero-actions,
.home-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.outline-link,
.text-button {
  display: inline-grid;
  min-height: var(--control-height);
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}

.text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.manners-panel {
  padding: 28px;
}

.manners-panel h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.manners-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.manners-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  line-height: 1.65;
}

.manners-panel li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.home-search-section {
  padding: 28px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading p:not(.kicker) {
  max-width: 780px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-en);
  line-height: 1.65;
}

.home-search-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(150px, 0.75fr)) auto;
  gap: 10px;
  align-items: center;
}

.home-searchbox,
.home-search-grid select {
  width: 100%;
  background: #fff;
}

.home-result-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-pagination button,
.home-pagination-summary,
.home-pagination-ellipsis {
  min-height: 38px;
  border-radius: var(--r-pill);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-pagination button {
  min-width: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}

.home-pagination button:hover:not(:disabled),
.home-pagination button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.home-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.home-pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.home-pagination-summary,
.home-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

.home-pagination-summary {
  padding: 0 10px;
}

.home-pagination-ellipsis {
  min-width: 22px;
}

.home-spot-card,
.article-card,
.booking-links a,
.home-empty {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #fff;
}

.home-spot-card h3,
.article-card strong,
.booking-links strong {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-spot-card p,
.article-card p,
.booking-links span,
.home-empty {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.guide-panel,
.booking-panel {
  padding: 28px;
}

.article-list,
.booking-links {
  display: grid;
  gap: 12px;
}

.article-card span {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.article-main {
  width: 100%;
  max-width: none;
}

/* Decorative SVG banner generated per guide (no photos, language-neutral). */
.article-hero-figure {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.article-hero {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 260px);
}

.article-card-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 10px;
}

.article-card-thumb .article-hero {
  height: clamp(96px, 20vw, 140px);
}

/* Blogs landing: category chips + grouped sections. */
.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.blog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  text-decoration: none;
  background: var(--surface, #fff);
}

.blog-category-chip:hover {
  border-color: var(--brand, #d95300);
  color: var(--brand, #d95300);
}

.blog-category-chip span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}

.blog-category-section {
  margin-top: 34px;
  scroll-margin-top: 90px;
}

.blog-category-title {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

/* Inline section images in article bodies. */
.article-figure {
  margin: 22px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* Per-article tags shown below the body. */
.article-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.article-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #555);
  background: var(--surface, #fff);
}

.article-tags::before {
  content: "#";
  align-self: center;
  font-weight: 700;
  color: var(--ink-3);
}

.article-main h1 {
  max-width: none;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.article-main .info-lead {
  max-width: none;
}

.article-body {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.article-language {
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #fff;
}

.article-language h2 {
  margin: 30px 0 12px;
  font-family: inherit;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}

.article-language p:not(.detail-kicker):not(.info-lead) {
  color: var(--ink-2);
  line-height: 1.85;
}

.article-related {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.article-related h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-related .article-index-list {
  margin-top: 18px;
}

.article-related-all {
  margin: 16px 0 0;
}

.article-related-all a {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
}

.article-language ul,
.article-language ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 22px;
  padding-left: 24px;
  color: var(--ink-2);
  line-height: 1.75;
}

.screen-detail,
.screen-community,
.screen-add {
  flex: 1 0 auto;
  min-height: 0;
  padding: 44px 40px 72px;
  background: var(--bg-cream);
}

.back-button {
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.detail-main,
.detail-side,
.community-hero,
.feed,
.add-card {
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-main,
.detail-side {
  padding: 28px;
}

.detail-side > .favorite {
  width: 100%;
  margin-bottom: 18px;
}

.detail-main h1,
.community-hero h1,
.add-card h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.32;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.facility {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--bg-cream);
}

.facility span {
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.detail-section {
  padding: 16px;
  background: var(--bg-cream);
}

.detail-section h2 {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.detail-section li {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.detail-section li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.detail-section-icon {
  margin-right: 6px;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.detail-field-icon {
  margin-right: 3px;
  font-style: normal;
}

.ai-disclaimer {
  max-width: 960px;
  margin: 28px auto 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.source-list,
.community-list {
  display: grid;
  gap: 10px;
}

.source-list {
  margin-top: 18px;
}

.source-list a,
.community-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--ink-2);
  font-size: 13px;
}

.traveler-note-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.traveler-note-panel h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 17px;
}

.note-status,
.note-help {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.traveler-note-form {
  display: grid;
  gap: 10px;
}

.traveler-note-form input,
.traveler-note-form select,
.traveler-note-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--ink);
  outline: 0;
}

.traveler-note-form textarea {
  min-height: 118px;
  resize: vertical;
}

.traveler-note-form .primary,
.traveler-note-panel .outline {
  width: 100%;
}

.traveler-note-list {
  display: grid;
  gap: 10px;
}

.traveler-note-item {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.traveler-note-item p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.traveler-note-item span {
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
}

.spot-detail-page {
  background: var(--bg-cream);
}

.static-detail-shell {
  min-height: 100dvh;
}

.static-detail {
  padding: 42px 40px 76px;
}

.map-return-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 22px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.map-return-button:hover {
  background: var(--accent-press);
  color: #fff;
}

.static-detail .detail-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.static-detail-nav {
  margin-right: 0;
  margin-left: auto;
}

.static-detail-language {
  margin-left: 16px;
}

.static-detail-actions {
  margin-left: auto;
}

.static-detail-actions .static-detail-language {
  margin-left: 0;
}

.detail-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 32px 90px;
}

.info-main h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.info-lead {
  max-width: 760px;
  margin: 0 0 36px;
  color: var(--ink-2);
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 1.7;
}

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

.info-section {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.info-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 17px;
}

.info-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.7;
}

.primary,
.outline {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.primary:hover {
  background: var(--accent-press);
}

.outline {
  background: transparent;
  color: var(--accent);
}

.community-hero,
.feed,
.add-card {
  max-width: 960px;
  margin: 0 auto 18px;
  padding: 34px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.community-hero p:not(.kicker) {
  max-width: 720px;
  color: var(--ink-2);
  line-height: 1.9;
}

.community-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.feed-head h2 {
  margin: 0;
}

.feed-head span {
  color: var(--ink-3);
  font-size: 12px;
}

.add-card {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.add-card label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.add-card input,
.add-card select,
.add-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--ink);
  outline: 0;
}

.add-card input,
.add-card select {
  min-height: 42px;
  padding: 0 12px;
}

.add-card textarea {
  padding: 12px;
  resize: vertical;
}

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

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

.stepper span {
  padding: 8px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
  text-align: center;
}

.stepper .active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  padding: 20px;
  background: rgba(8, 8, 8, 0.46);
  place-items: center;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-top: 3px solid var(--accent);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.login-card h2 {
  margin: 10px 0 12px;
  font-size: 28px;
}

.login-card p:not(.kicker) {
  color: var(--ink-2);
  line-height: 1.8;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid #edc4b0;
  border-radius: 14px;
  background: #fff2ec;
  color: #9f3a16;
  font-size: 12px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: var(--bg-cream);
  color: var(--ink-2);
  font-size: 22px;
}

@media (max-width: 920px) {
  .site-shell {
    max-width: none;
    min-height: 100dvh;
  }

  .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 73px;
    gap: 12px;
    padding: 14px;
    overflow: visible;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .brand span,
  .traveler-chip b {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
  }

  .nav button,
  .nav > .festivals-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink-2);
    font-size: 0;
    line-height: 0;
  }

  .nav button::before,
  .nav > .festivals-nav-link::before {
    display: block;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .nav button[data-scope-nav="camp"]::before {
    content: "CAMP";
  }

  .nav button[data-scope-nav="carstay"]::before {
    content: "CAR";
  }

  .nav > .festivals-nav-link::before {
    content: "FEST";
  }

  .nav button.active,
  .nav > .festivals-nav-link.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .nav button.active::after,
  .nav > .festivals-nav-link.active::after {
    display: none;
  }

  .top-actions {
    position: static;
    grid-column: 2;
    grid-row: 1;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: 0;
    gap: 6px;
    transform: none;
  }

  .language-switch {
    flex: 0 0 auto;
    width: 96px;
    min-width: 96px;
    font-size: 10px;
  }

  .language-switch button {
    flex: 1 0 0;
    min-width: 0;
    min-height: 24px;
    padding: 0;
  }

  .traveler-chip span {
    width: 28px;
    height: 28px;
  }

  .filterbar {
    overflow-x: auto;
    padding: 10px 14px;
    flex-wrap: nowrap;
  }

  .searchbox {
    width: 210px;
    flex: 0 0 auto;
  }

  .filterbar select,
  .near-button {
    flex: 0 0 auto;
  }

  .screen-home.active {
    gap: 18px;
    padding: 18px 14px 34px;
  }

  .home-hero,
  .home-content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-hero-copy,
  .manners-panel,
  .home-search-section,
  .guide-panel,
  .booking-panel {
    border-radius: 22px;
  }

  .home-hero-copy,
  .manners-panel,
  .home-search-section,
  .guide-panel,
  .booking-panel {
    padding: 22px 18px;
  }

  .home-hero-copy h1 {
    font-size: 20px;
  }

  .home-search-grid,
  .home-result-list,
  .article-index-list {
    grid-template-columns: 1fr;
  }

  .home-pagination {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 18px;
  }

  .home-pagination button,
  .home-pagination-summary,
  .home-pagination-ellipsis {
    min-height: 34px;
    font-size: 11px;
  }

  .home-pagination button {
    min-width: 34px;
    padding: 0 11px;
  }

  .home-pagination-summary {
    flex-basis: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .home-searchbox {
    width: 100%;
  }

  .home-search-meta {
    margin-top: 14px;
  }

  .map-stage {
    height: auto;
    min-height: clamp(380px, calc(100dvh - 300px), 520px);
  }

  .results-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(64dvh, 560px);
    padding: 16px;
    transform: translateY(0);
  }

  .results-panel.collapsed {
    transform: translateY(calc(100% + 18px));
  }

  #collapseResults {
    position: static;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    transform: none;
  }

  #collapseResults::before {
    content: "‹";
    font-size: 26px;
    transform: translateY(-1px);
  }

  .open-results {
    top: auto;
    left: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    transform: none;
  }

  .open-results::before {
    content: "›";
    font-size: 26px;
  }

  .selected-card {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-height: min(52dvh, 420px);
    overflow-y: auto;
    padding: 16px 56px 16px 16px;
    z-index: 460;
  }

  .selected-card .primary {
    min-height: 50px;
  }

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

  .map-count {
    top: 14px;
    left: 14px;
  }

  .results-panel.collapsed ~ .map-count {
    left: 14px;
    max-width: calc(100% - 28px);
  }

  .screen-detail,
  .screen-community,
  .screen-add {
    padding: 24px 18px 86px;
  }

  .static-detail {
    padding: 24px 18px 72px;
  }

  .info-main {
    padding: 42px 18px 64px;
  }

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

  .detail-layout,
  .facility-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .static-detail-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .static-detail-nav a {
    display: grid;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink-2);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    place-items: center;
  }

  .static-detail-language {
    margin-left: 0;
  }

  .static-detail-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    margin-left: 0;
  }

  .map-return-button {
    width: 100%;
    justify-content: center;
  }

  .community-hero,
  .feed,
  .add-card {
    padding: 24px 18px;
  }

  .site-footer {
    display: block;
    padding: 16px 14px 22px;
    font-size: 11px;
  }

  .footer-guides {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .noscript-content {
    padding: 18px;
  }

  .festival-main,
  .festival-detail-main {
    padding: 20px 14px 50px;
  }

  .festival-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .festival-hero h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .festival-hero-count {
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: start;
    gap: 10px;
    min-width: 0;
  }

  .festival-controls {
    position: static;
    overflow-x: auto;
    align-items: stretch;
  }

  .festival-filter-control,
  .festival-view-switch,
  .festival-controls > strong {
    flex: 0 0 auto;
  }

  .festival-controls > strong {
    display: grid;
    margin-left: 0;
    place-items: center;
  }

  .festival-month-group {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .festival-month-heading {
    position: static;
  }

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

  .festival-date-block {
    padding: 16px 18px;
  }

  .festival-card-copy {
    padding: 18px;
  }

  .festival-map-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .festival-map-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #festivalMap {
    min-height: 440px;
  }

  .festival-verify-notice,
  .festival-detail-layout {
    grid-template-columns: 1fr;
  }

  .festival-detail-copy,
  .festival-source-panel {
    border-radius: 20px;
  }

  .festival-detail-copy h1 {
    font-size: clamp(42px, 14vw, 70px);
  }

}

@media (max-width: 520px) {
  .traveler-chip {
    display: none;
  }

  .static-traveler-chip {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
