:root {
  color-scheme: light;
  --bg: #eef0ed;
  --surface: #fbfcf8;
  --surface-strong: #ffffff;
  --ink: #151815;
  --muted: #60665f;
  --line: #dfe4dc;
  --accent: #176b55;
  --accent-strong: #0f4f40;
  --accent-soft: #e4f2ec;
  --blue: #245b8f;
  --blue-soft: #e5eef7;
  --amber: #8f5a10;
  --amber-soft: #fff1d7;
  --red: #9b2f2f;
  --red-soft: #f9e2df;
  --shadow: 0 24px 60px rgba(22, 28, 23, 0.16);
  --radius: 8px;
  --tap: 48px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(238, 240, 237, 0.96)),
    var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.phone-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.app {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  min-height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid rgba(223, 228, 220, 0.88);
  backdrop-filter: blur(18px);
}

.icon-button {
  min-width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.top-title {
  min-width: 0;
}

.top-title strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.page {
  display: grid;
  gap: 14px;
}

.hero,
.day-hero,
.detail-page,
.empty-state {
  min-width: 0;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8f2 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero h1,
.day-hero h1,
.detail-page h1,
.empty-state h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.day-meta {
  word-break: keep-all;
}

.inline-map-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-block {
  min-width: 0;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.source-details {
  padding: 0;
  overflow: hidden;
}

.source-summary {
  display: flex;
  min-height: var(--tap);
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  list-style: none;
}

.source-summary::-webkit-details-marker {
  display: none;
}

.source-head {
  margin-bottom: 0;
}

.source-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.source-count::after {
  content: "v";
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.source-details[open] .source-count::after {
  transform: translateY(1px) rotate(180deg);
}

.source-details .source-list {
  padding: 0 14px 14px;
}

.source-details[open] .source-summary {
  border-bottom: 1px solid var(--line);
}

.timeline-list,
.overview-list,
.day-button-grid,
.shortcut-list,
.quick-grid,
.place-list,
.map-list,
.route-list,
.choice-list,
.nearby-list,
.source-list {
  display: grid;
  gap: 10px;
}

.schedule-card,
.overview-card,
.schedule-detail,
.shortcut-row,
.quick-card,
.place-card,
.map-card,
.route-card,
.choice-row,
.source-link {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.place-card.has-image {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.place-card-content {
  min-width: 0;
}

.place-card-thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8ede4;
}

.schedule-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  min-height: 76px;
}

.overview-list {
  gap: 7px;
}

.overview-card {
  padding: 10px;
}

.day-button-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.day-toggle {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

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

.schedule-detail {
  padding: 11px;
  border-color: rgba(23, 107, 85, 0.28);
  background: #fbfdf9;
}

.schedule-result {
  display: grid;
  gap: 10px;
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.overview-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview-body {
  display: grid;
  gap: 5px;
}

.overview-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: start;
}

.overview-line span {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f4ee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.overview-line strong,
.overview-link {
  min-width: 0;
  padding-top: 1px;
  font-size: 12.5px;
  line-height: 1.32;
  letter-spacing: 0;
  word-break: keep-all;
}

.overview-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schedule-detail-link {
  display: flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.day-chip,
.shortcut-day {
  align-self: start;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.schedule-main {
  min-width: 0;
}

.schedule-main strong,
.shortcut-text strong,
.place-card strong,
.map-card strong,
.route-card strong,
.quick-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}

.schedule-main p,
.place-card p,
.map-card p,
.route-card p,
.quick-card p,
.choice-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.schedule-main small,
.place-card small,
.map-card small,
.route-card small,
.shortcut-text small {
  display: block;
  margin-top: 7px;
  color: #757b73;
  font-size: 12px;
}

.shortcut-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  min-height: var(--tap);
}

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

.quick-card {
  min-height: 132px;
}

.status-pill,
.place-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.place-badge {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.place-card.has-image .place-badge {
  min-height: 24px;
  margin-bottom: 7px;
  padding-inline: 8px;
  font-size: 11px;
}

.summary-list,
.warning-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li,
.warning-list li {
  padding: 10px 11px;
  border-radius: var(--radius);
  background: #f4f7f1;
  color: var(--ink);
  font-size: 14px;
}

.warning-list li {
  background: var(--amber-soft);
  color: #4d3510;
}

.menu-group-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.menu-group-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-group-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.menu-group-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.menu-group-card .summary-list li {
  background: #f7f9f4;
  font-size: 13px;
  line-height: 1.45;
}

.choice-row {
  border-left: 4px solid var(--line);
}

.choice-row strong {
  font-size: 14px;
}

.choice-best {
  border-left-color: var(--accent);
  background: #f5fbf7;
}

.choice-warn {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.choice-stop {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.choice-quiet {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.place-card,
.map-card,
.quick-card,
.shortcut-row,
.schedule-card,
.source-link,
.nearby-link {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.place-card:active,
.map-card:active,
.quick-card:active,
.shortcut-row:active,
.schedule-card:active,
.source-link:active,
.nearby-link:active {
  transform: scale(0.99);
  border-color: var(--accent);
  background: #f8fbf7;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fact-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fact-row strong {
  font-size: 14px;
  line-height: 1.35;
}

.text-block {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 107, 85, 0.2);
  border-radius: var(--radius);
  background: #f8fbf6;
}

.text-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.text-block p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.58;
  word-break: keep-all;
}

.text-block p + p {
  margin-top: 9px;
}

.note-block {
  margin-top: 12px;
  padding: 13px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.note-block strong {
  display: block;
  margin-bottom: 6px;
}

.note-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.info-list li {
  color: var(--muted);
  font-size: 14px;
}

.nearby-list {
  gap: 8px;
}

.nearby-link {
  display: grid;
  gap: 3px;
  min-height: var(--tap);
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nearby-link span {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

.nearby-link small {
  color: var(--muted);
  font-size: 12px;
}

.note-block.notice {
  background: var(--amber-soft);
  border-color: #e7c784;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.primary-link,
.secondary-link {
  display: flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-link {
  background: var(--accent);
  color: #fff;
}

.secondary-link {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-strong);
}

.place-hero-image {
  margin: 0 0 15px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8ede4;
  aspect-ratio: 16 / 10;
}

.place-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
}

.source-link {
  min-height: var(--tap);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.hiking-page {
  gap: 12px;
}

.hiking-hero {
  padding-bottom: 15px;
}

.hiking-map-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 107, 85, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 246, 239, 0.92)),
    #fff;
}

.hiking-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.hiking-map-head strong {
  font-size: 15px;
  line-height: 1.25;
}

.hiking-map-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.hiking-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 172, 154, 0.5);
  border-radius: var(--radius);
  background: #dfe7dc;
}

.hiking-real-map {
  position: relative;
  width: 100%;
  min-height: 340px;
  background: #dfe7dc;
  isolation: isolate;
}

.hiking-real-map .leaflet-control-attribution {
  max-width: 260px;
  font-size: 9px;
}

.hiking-map-loading,
.hiking-map-error {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.hiking-leaflet-region {
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(9, 20, 16, 0.18));
}

.hiking-region-map-icon,
.hiking-route-map-icon,
.hiking-waypoint-map-icon {
  background: transparent;
  border: 0;
}

.hiking-region-map-icon button,
.hiking-route-map-icon button,
.hiking-waypoint-map-icon button {
  border: 0;
  font: inherit;
  pointer-events: none;
}

.hiking-region-map-icon button {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1px;
  width: 90px;
  height: 84px;
  place-content: center;
  justify-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(250, 253, 248, 0.92);
  box-shadow: 0 10px 24px rgba(15, 24, 18, 0.25);
  color: var(--accent-strong);
  line-height: 1;
}

.hiking-region-map-icon strong {
  line-height: 0.95;
  font-size: 17px;
  font-weight: 950;
}

.hiking-region-map-icon em {
  color: #26362e;
  line-height: 1;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.hiking-region-map-icon small {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5c735;
  color: #3e3004;
  font-size: 9.5px;
  font-weight: 950;
}

.hiking-region-map-icon.has-trip-plan button {
  border-color: rgba(245, 199, 53, 0.95);
  box-shadow: 0 12px 28px rgba(121, 75, 13, 0.32);
}

.hiking-route-map-icon button,
.hiking-waypoint-map-icon button {
  display: inline-flex;
  min-width: 0;
  max-width: 164px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 14px rgba(13, 24, 18, 0.26);
  color: #172018;
  line-height: 1.1;
  white-space: nowrap;
}

.hiking-route-map-icon span {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(23, 107, 85, 0.5);
}

.hiking-route-map-icon.is-trip-plan button {
  border: 1px solid rgba(232, 115, 26, 0.55);
  background: rgba(255, 248, 237, 0.94);
}

.hiking-route-map-icon.is-trip-plan span {
  background: #e8731a;
  box-shadow: 0 0 0 1px rgba(171, 79, 10, 0.56);
}

.hiking-route-map-icon strong,
.hiking-waypoint-map-icon strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
}

.hiking-waypoint-map-icon button {
  background: rgba(255, 255, 255, 0.9);
}

.hiking-waypoint-map-icon.is-left button {
  flex-direction: row-reverse;
  padding: 5px 5px 5px 8px;
}

.hiking-waypoint-map-icon i {
  flex: 0 0 auto;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #f2ca33;
  color: #263018;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.hiking-waypoint-map-icon.is-start i {
  background: #e73f2f;
  color: #fff;
}

.hiking-waypoint-map-icon.is-photo i {
  background: #1e9b55;
  color: #fff;
}

.hiking-waypoint-map-icon.is-lake i {
  background: #2a85b7;
  color: #fff;
}

.hiking-waypoint-map-icon.is-hut i,
.hiking-waypoint-map-icon.is-cablecar i {
  background: #f2ca33;
}

.hiking-waypoint-map-icon.is-trip-plan i {
  background: #e8731a;
  color: #fff;
}

.hiking-waypoint-map-icon.is-trip-plan.is-start i {
  background: #d7352b;
}

.hiking-waypoint-map-icon.is-trip-plan.is-photo i {
  background: #1e9b55;
}

.hiking-waypoint-map-icon.is-trip-plan.is-lake i {
  background: #2a85b7;
}

.hiking-leaflet-route-line {
  filter: drop-shadow(0 3px 4px rgba(24, 22, 12, 0.55));
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hiking-map {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 64;
}

.hiking-base-land {
  fill: rgba(255, 255, 255, 0.58);
  stroke: rgba(98, 112, 96, 0.24);
  stroke-width: 0.8;
}

.hiking-ridge {
  fill: none;
  stroke: rgba(72, 89, 77, 0.2);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.hiking-ridge-b {
  stroke: rgba(118, 100, 68, 0.18);
}

.hiking-region {
  cursor: pointer;
  outline: none;
}

.hiking-region-shape {
  fill: rgba(255, 255, 255, 0.3);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.7;
  transition:
    fill 140ms ease,
    stroke 140ms ease,
    filter 140ms ease;
}

.hiking-west {
  fill: rgba(23, 107, 85, 0.16);
}

.hiking-east {
  fill: rgba(36, 91, 143, 0.16);
}

.hiking-north {
  fill: rgba(143, 90, 16, 0.18);
}

.hiking-region.is-active .hiking-region-shape,
.hiking-region:focus .hiking-region-shape {
  fill: rgba(23, 107, 85, 0.24);
  stroke: rgba(15, 79, 64, 0.5);
  filter: drop-shadow(0 5px 10px rgba(16, 70, 58, 0.14));
}

.hiking-region-badge {
  cursor: pointer;
  outline: none;
}

.hiking-region-badge rect {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(23, 107, 85, 0.22);
  stroke-width: 0.7;
  filter: drop-shadow(0 4px 8px rgba(22, 28, 23, 0.16));
}

.hiking-region-badge text {
  text-anchor: middle;
  fill: var(--accent-strong);
  font-weight: 900;
  pointer-events: none;
}

.hiking-region-badge .badge-count {
  font-size: 5px;
}

.hiking-region-badge .badge-label {
  font-size: 2.8px;
}

.hiking-region-badge .badge-region {
  fill: #29362f;
  font-size: 3.2px;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.8;
}

.hiking-route-line {
  fill: none;
  stroke: #0f6b8c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  stroke-dasharray: 1.8 1.4;
  filter: drop-shadow(0 2px 3px rgba(15, 107, 140, 0.16));
}

.hiking-marker {
  cursor: pointer;
  outline: none;
}

.hiking-marker circle {
  fill: #fff;
  stroke: var(--accent-strong);
  stroke-width: 1;
  filter: drop-shadow(0 2px 4px rgba(22, 28, 23, 0.22));
}

.hiking-marker.is-active circle,
.hiking-marker:focus circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.15;
}

.hiking-marker text {
  fill: #26322b;
  font-size: 2.9px;
  font-weight: 900;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.8;
}

.hiking-waypoint-labels text {
  fill: var(--blue);
  font-size: 2.4px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 0.7;
}

.hiking-region-list,
.hiking-route-list {
  display: grid;
  gap: 10px;
}

.hiking-region-card,
.hiking-route-card {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.hiking-route-card.is-trip-plan,
.hiking-route-detail.is-trip-plan {
  border-color: rgba(232, 115, 26, 0.42);
  background: linear-gradient(135deg, #fffaf1 0%, #ffffff 58%, #f8fbf2 100%);
  box-shadow: 0 14px 30px rgba(127, 78, 14, 0.1);
}

.hiking-region-card:active,
.hiking-route-card:active,
.hiking-back-button:active,
.hiking-tag-filter button:active,
.hiking-tag-arrow:active {
  transform: scale(0.99);
}

.hiking-region-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hiking-route-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.hiking-route-card-head .place-badge {
  margin-bottom: 0;
  white-space: nowrap;
}

.hiking-count-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hiking-trip-region-badge,
.hiking-trip-kicker,
.place-hiking-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff3d0;
  color: #79500b;
  font-size: 11px;
  font-weight: 950;
}

.hiking-trip-region-badge.is-empty {
  background: #f1f4ee;
  color: var(--muted);
}

.hiking-trip-kicker {
  background: #e8731a;
  color: #fff;
}

.place-hiking-pill {
  margin-top: 8px;
}

.hiking-region-card strong,
.hiking-route-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.hiking-region-card small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hiking-region-card p,
.hiking-route-card p,
.hiking-notice p,
.hiking-empty p,
.hiking-filter-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.hiking-back-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0 12px;
  border: 1px solid rgba(23, 107, 85, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.hiking-tag-filter-shell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 6px;
  align-items: center;
  margin: 12px -2px 10px;
}

.hiking-tag-arrow {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 107, 85, 0.26);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 28, 23, 0.08);
  color: var(--accent-strong);
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.hiking-tag-arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.hiking-tag-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.hiking-tag-filter button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 0 4px;
  white-space: nowrap;
}

.hiking-tag-filter button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hiking-filter-meta {
  margin-bottom: 10px;
  font-weight: 800;
}

.hiking-mini-facts,
.hiking-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hiking-mini-facts span,
.hiking-tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hiking-mini-facts span {
  padding: 0 8px;
  background: #f1f4ee;
  color: var(--muted);
}

.hiking-tag-row {
  margin-top: 2px;
}

.hiking-tag-row span {
  padding: 0 9px;
  background: var(--blue-soft);
  color: var(--blue);
}

.hiking-fact-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.hiking-notice,
.hiking-empty {
  padding: 13px;
  border: 1px solid rgba(143, 90, 16, 0.22);
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.hiking-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #4d3510;
  font-size: 13px;
}

@media (max-width: 430px) {
  .app {
    max-width: none;
    box-shadow: none;
  }

  .content {
    padding-inline: 12px;
  }
}
