:root {
  --app-bg: #f4f6f8;
  --app-surface: #ffffff;
  --app-text: #18212b;
  --app-muted: #6d7884;
  --app-line: #e4e8ec;
  --app-blue: #3374e0;
  --app-blue-soft: #edf4ff;
  --app-red: #ef5b55;
  --app-font: 'Noto Sans KR', sans-serif;
  --app-latin: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--app-text); background: var(--app-bg); font-family: var(--app-font); }
body.modal-open { position: fixed; inset-inline: 0; top: var(--modal-scroll-offset,0); width: 100%; overflow: hidden; overscroll-behavior: none; }
button, select { font: inherit; }
.view-hidden, .result-section.hidden, .detail-section.hidden { display: none !important; }

.site-header { position: fixed; z-index: 40; inset: 0 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px,5vw,64px); border: 0; border-bottom: 1px solid var(--app-line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.brand { color: var(--app-text); font: 800 21px/1 var(--app-latin); letter-spacing: -.8px; text-decoration: none; }
.brand span { margin-left: 2px; color: var(--app-blue); font-size: 9px; vertical-align: 4px; }
.site-header nav { position: absolute; left: 50%; display: flex; gap: 8px; margin: 0; transform: translateX(-50%); }
.site-header nav a { padding: 9px 14px; border-radius: 7px; color: var(--app-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-header nav a::after { display: none !important; }
.site-header nav a.active { color: var(--app-blue); background: var(--app-blue-soft); }
.profile-button { padding: 8px 13px; border: 1px solid #d9dfe4; border-radius: 7px; color: #46515d; background: #fff; font-size: 12px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-explore-link { padding: 8px 11px; border-radius: 7px; color: #35414c; font-size: 12px; font-weight: 700; text-decoration: none; }
.header-explore-link:hover, .header-explore-link:focus-visible { background: rgba(255,255,255,.55); outline: none; }

.dart-section { min-height: 100svh; padding: 102px 20px 72px; color: var(--app-text); background: var(--app-bg); }
.dart-section::before, .dart-section::after { display: none; }
.section-heading { width: min(100%,560px); margin: 0 auto; text-align: center; }
.section-kicker { margin: 0 0 9px; color: var(--app-blue); font: 700 12px/1 var(--app-font); letter-spacing: 0; }
.section-heading h1, .explore-header h2, .passport-copy h2, .detail-intro h2 { margin: 0; color: var(--app-text); font: 700 clamp(28px,4vw,42px)/1.3 var(--app-font); letter-spacing: -1.8px; transform: none; }
.section-heading > p:last-of-type { margin: 13px 0 0; color: var(--app-muted); font-size: 14px; line-height: 1.65; }
.filter-toggle { margin-top: 15px; padding: 8px 12px; border: 1px solid #dbe1e6; border-radius: 7px; color: #596571; background: #fff; font-size: 12px; font-weight: 600; }
.filter-toggle span { margin-left: 6px; color: var(--app-blue); }
.filter-collapsed { display: none; }

.dart-layout, .dart-layout.filters-open { display: grid; grid-template-columns: 1fr; gap: 16px; width: min(100%,720px); margin: 24px auto 0; }
.filters { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--app-line); border-radius: 12px; background: #fff; overflow: hidden; transform: none; }
.filters fieldset { min-width: 0; margin: 0; padding: 16px; border: 0; border-right: 1px solid var(--app-line); }
.filters fieldset:last-of-type { border-right: 0; }
.filters legend { padding: 0 0 10px; color: #4d5964; font-size: 12px; font-weight: 700; }
.chip-group { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 6px 8px; border: 1px solid #e1e6ea; border-radius: 6px; color: #66717c; background: #fff; font-size: 11px; }
.chip.selected { border-color: #bed2f5; color: var(--app-blue); background: var(--app-blue-soft); }
.filters select { width: 100%; border: 0; color: #4d5964; background: #fff; font-size: 12px; }
.filter-note { display: none; }

.dart-stage { min-height: 540px; position: relative; display: grid; place-items: center; }
.throw-copy { position: static; transform: none; text-align: center; }
.throw-copy span { display: block; margin-bottom: 3px; color: var(--app-muted); font-size: 11px; }
.throw-copy strong { color: #45515c; font-size: 13px; font-weight: 500; }
.dartboard.mapboard { --hit-x: 50%; --hit-y: 50%; position: relative; width: min(100%,460px); aspect-ratio: 1.04; margin: 8px auto 20px; overflow: visible; border: 1px solid var(--app-line); border-radius: 18px; background: var(--app-surface); box-shadow: 0 8px 28px rgba(36,50,65,.08); transition: transform .2s, box-shadow .2s; }
.dartboard.mapboard:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(36,50,65,.11); }
.mapboard-label { position: absolute; top: 18px; left: 20px; color: #46525e; font-size: 13px; font-weight: 700; }
.throw-map { position: absolute; top: 45px; left: 50%; width: 72%; height: calc(100% - 110px); object-fit: contain; transform: translateX(-50%); filter: none; }
.mapboard-action { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 14px; width: auto; padding: 13px; border-radius: 9px; color: #fff; background: var(--app-blue); font-size: 14px; font-weight: 700; text-align: center; transform: none; }
.map-source { position: absolute; z-index: 2; right: 18px; top: 20px; color: #9aa3ab; font-size: 8px; }
.throw-hint { position: static; margin: -5px 0 0; color: #8a949d; font-size: 11px; letter-spacing: 0; transform: none; }
.dart-flying { position: absolute; z-index: 8; left: var(--hit-x); right: auto; top: var(--hit-y); width: 86px; height: 18px; opacity: 0; transform-origin: right center; pointer-events: none; }
.dart-flying i { width: 60px; background: var(--app-red); }
.hit-marker { position: absolute; z-index: 7; left: var(--hit-x); top: var(--hit-y); width: 18px; height: 18px; border: 3px solid var(--app-red); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%); }
.dartboard.throwing .dart-flying { animation: mapDartThrow 1.05s cubic-bezier(.16,.84,.34,1) forwards; }
.dartboard.throwing .hit-marker { animation: mapTargetHit 1.2s .72s ease forwards; }
.dartboard.hit { animation: mapBoardHit .3s .76s ease-in-out; }

.result-section { position: fixed; z-index: 80; inset: 0; min-height: 0; display: grid; place-items: center; padding: 20px; color: var(--app-text); background: rgba(17,27,36,.56); backdrop-filter: blur(5px); }
.result-background, .quick-place-card { display: none; }
.result-card { position: relative; width: min(100%,480px); max-width: none; padding: 30px; border-radius: 18px; color: var(--app-text); background: #fff; box-shadow: 0 24px 80px rgba(12,22,32,.24); }
.close-result { top: 18px; right: 18px; width: 30px; height: 30px; color: #68737d; font-size: 24px; }
.result-card .section-kicker { color: var(--app-muted); }
.result-overline { margin: 24px 0 8px; color: var(--app-blue); font: 700 11px var(--app-latin); }
.result-card h2 { margin-bottom: 15px; color: var(--app-text); font: 700 38px/1.2 var(--app-font); letter-spacing: -2px; transform: none; }
.result-summary { color: #5f6b76; font-size: 14px; line-height: 1.7; }
.result-tags { margin-top: 18px; }
.result-tags span { padding: 7px 10px; border: 0; border-radius: 6px; color: #4169a8; background: var(--app-blue-soft); font-size: 11px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.result-actions .button-primary, .button-primary { padding: 13px 15px; border: 0; border-radius: 8px; color: #fff; background: var(--app-blue); font-weight: 700; }
.result-actions .button-primary span { color: #fff; }
.result-actions .button-ghost { padding: 12px; border: 1px solid #dce2e7; border-radius: 8px; color: #56616c; background: #fff; }
.result-actions .button-ghost.requires-ad { border-color: #17212b; color: #17212b; background: #ffe600; }
.reroll-notice { display: block; margin-top: 9px; color: #7b8791; font-size: 9px; line-height: 1.5; text-align: right; }

.detail-section, .plans-section, .explore-section, .passport-section { min-height: 100svh; padding: 104px max(20px,8vw) 90px; color: var(--app-text); background: var(--app-bg); }
.detail-topline { padding-top: 10px; border-top: 1px solid var(--app-line); color: var(--app-muted); }
.detail-intro { display: block; margin: 48px 0 38px; }
.detail-intro h2 { font-size: clamp(25px,3vw,40px); white-space: nowrap; }
.guide-grid { gap: 12px; border: 0; }
.guide-card, .guide-card:nth-child(n) { min-height: 210px; border: 1px solid var(--app-line); border-radius: 12px; background: #fff; }
.guide-card h3 { margin-top: 55px; font: 700 19px/1.4 var(--app-font); letter-spacing: -.7px; }
.guide-card p { color: var(--app-muted); font-weight: 400; }
.guide-icon { display: none; }
.benefit-strip { margin-top: 12px; border: 0; border-radius: 12px; background: #263746; }
.benefit-strip h3 { font: 700 23px/1.45 var(--app-font); }
.benefit-strip-heading > span { display: inline-block; margin-top: 14px; color: #dce8f4; font-size: 11px; font-weight: 700; }
.benefit span { color: #a9c8ff; }
.benefit-detail { width: 100%; grid-template-columns: 93px minmax(0,1fr) auto; color: inherit; border: 0; border-bottom: 1px solid #536058; background: transparent; text-align: left; cursor: pointer; transition: background .18s ease; }
.benefit-detail:hover, .benefit-detail:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.benefit-more { align-self: center; color: #dce8f4; font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
.official-benefit { align-items: center; }
.official-benefit > div { min-width: 0; }
.official-benefit strong, .official-benefit small, .official-benefit em { display: block; }
.official-benefit strong { overflow: hidden; color: #fff; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.official-benefit small { color: #dce8f4; font-size: 11px; line-height: 1.45; }
.official-benefit .benefit-value { margin-top: 6px; color: #fff; font-weight: 700; }
.official-benefit .benefit-date { margin-top: 2px; color: #b9c8d3; }
.official-benefit em { margin-top: 5px; color: #92a2ae; font-size: 9px; font-style: normal; }
.official-benefit .benefit-more { color: #fff; }
.benefit-empty { margin: 0; padding: 22px 0; border-bottom: 1px solid #536058; color: #c7d1d9; font-size: 12px; line-height: 1.6; }
.save-trip { border-bottom: 1px solid #7f8a94; font-weight: 600; }

.explore-header { align-items: end; }
.explore-header > p { color: var(--app-muted); }
.explore-tabs { margin: 36px 0 18px; }
.explore-tabs button { padding: 8px 11px; border: 0; border-radius: 7px; color: var(--app-muted); background: transparent; }
.explore-tabs button.selected { color: var(--app-blue); background: var(--app-blue-soft); }
.city-grid { grid-template-columns: repeat(3,1fr); gap: 12px; border: 0; }
.city-card, .city-card:nth-child(n) { min-height: 220px; border: 1px solid var(--app-line); border-radius: 12px; background: #fff; }
.city-card .card-index { position: absolute; top: 18px; right: 18px; color: #c1c8cf; font: 700 12px var(--app-latin); }
.city-card .card-region, .city-card p { color: var(--app-muted); font-weight: 400; }
.city-card h3 { margin-top: 68px; font: 700 25px var(--app-font); letter-spacing: -1px; }
.city-card button { border: 0; color: #fff; background: var(--app-blue); }

.passport-section { background: #eef2f5; }
.passport-copy h2 { color: var(--app-text); }
.passport-copy > p:not(.section-kicker) { color: var(--app-muted); font-weight: 400; }
.passport-map { width: 350px; max-height: 430px; object-fit: contain; filter: none; }
.passport-stamp { border: 1px solid #aab4bd; color: #5f6b76; background: #fff; }
.map-pin { color: var(--app-blue); text-shadow: none; }
dialog { width: min(620px,calc(100% - 32px)); border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(12,22,32,.24); }
dialog h2 { font: 700 34px var(--app-font); }
.culture-dialog { width: min(960px,calc(100% - 32px)); max-width: 960px; max-height: 90vh; padding: 0; overflow: hidden; }
.culture-dialog .dialog-close { z-index: 2; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); }
.culture-detail-layout { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); height: min(720px,90vh); min-height: 510px; }
.culture-detail-image { width: 100%; height: 100%; min-height: 510px; object-fit: cover; background: #e7ebee; }
.culture-detail-image[hidden] { display: none; }
.culture-detail-image[hidden] + .culture-detail-copy { grid-column: 1 / -1; }
.culture-detail-copy { padding: clamp(30px,4vw,48px); overflow-y: auto; }
.culture-detail-copy h2 { margin: 10px 0 15px; font-size: clamp(26px,3.3vw,38px); line-height: 1.32; letter-spacing: -1.5px; }
.culture-detail-description { max-height: 110px; overflow: auto; color: var(--app-muted); font-size: 13px; line-height: 1.75; }
.culture-detail-meta { margin: 26px 0; border-top: 1px solid var(--app-line); }
.culture-detail-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--app-line); }
.culture-detail-meta dt { color: var(--app-muted); font-size: 12px; font-weight: 600; }
.culture-detail-meta dd { margin: 0; font-size: 13px; line-height: 1.55; }
.culture-detail-link { display: inline-block; text-decoration: none; }
.culture-detail-link[hidden] { display: none; }
.culture-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin: 24px 0 22px; padding: 4px; border-radius: 10px; background: #eef2f5; }
.culture-tabs button { padding: 10px 7px; border: 0; border-radius: 7px; color: var(--app-muted); background: transparent; font-size: 12px; font-weight: 700; }
.culture-tabs button.selected { color: #fff; background: var(--app-blue); }
.culture-tab-panel[hidden] { display: none; }
.detail-source-badge { display: inline-flex; margin: 0 0 12px; padding: 5px 8px; border-radius: 5px; color: #375b85; background: #edf4ff; font-size: 10px; font-weight: 700; }
.detail-source-badge.recommendation { color: #6b5520; background: #fff5cf; }
.culture-panel-intro { margin: 0 0 16px; color: var(--app-muted); font-size: 13px; line-height: 1.6; }
.culture-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.culture-detail-actions .button-ghost { padding: 12px 14px; border-color: var(--app-line); border-radius: 8px; color: #4f5b66; text-decoration: none; }
.culture-map-link[hidden] { display: none; }
.culture-nearby-list { display: grid; gap: 8px; }
.culture-nearby-card { min-width: 0; display: grid; grid-template-columns: 72px minmax(0,1fr) 18px; gap: 12px; align-items: center; padding: 9px; border: 1px solid var(--app-line); border-radius: 10px; color: inherit; background: #fff; text-decoration: none; transition: border-color .18s, transform .18s; }
.culture-nearby-card:hover { border-color: #a9c5ef; transform: translateY(-1px); }
.culture-nearby-card > img, .culture-nearby-placeholder { width: 72px; height: 62px; object-fit: cover; border-radius: 7px; background: #edf2f6; }
.culture-nearby-placeholder { display: grid; place-items: center; color: #91a0ad; font: 700 9px var(--app-latin); }
.culture-nearby-copy { min-width: 0; }
.culture-nearby-copy small, .culture-nearby-copy strong, .culture-nearby-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.culture-nearby-copy small { color: var(--app-blue); font-size: 10px; }
.culture-nearby-copy strong { margin: 5px 0 3px; font-size: 14px; }
.culture-nearby-copy em { color: var(--app-muted); font-size: 10px; font-style: normal; }
.culture-nearby-card > b { color: var(--app-blue); }
.culture-empty { color: var(--app-muted); font-size: 13px; }
.culture-plan-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.culture-plan-duration { flex: 0 0 auto; display: flex; padding: 3px; border-radius: 7px; background: #eef2f5; }
.culture-plan-duration button { padding: 7px 9px; border: 0; border-radius: 5px; color: var(--app-muted); background: transparent; font-size: 10px; font-weight: 700; }
.culture-plan-duration button.selected { color: #fff; background: var(--app-blue); }
.culture-plan-list { display: grid; gap: 14px; }
.culture-plan-day > strong { display: block; margin-bottom: 7px; color: var(--app-blue); font: 700 11px var(--app-latin); }
.culture-plan-day > div { display: grid; gap: 6px; }
.culture-plan-stop { position: relative; padding: 10px 12px 10px 28px; border-left: 2px solid #dce5ed; background: #f7f9fa; }
.culture-plan-stop::before { content: ''; position: absolute; left: -6px; top: 17px; width: 8px; height: 8px; border: 1px solid #b9c6d0; border-radius: 50%; background: #fff; }
.culture-plan-stop.selected-event { border-left-color: var(--app-blue); background: #edf4ff; }
.culture-plan-stop.selected-event::before { border-color: var(--app-blue); background: var(--app-blue); }
.culture-plan-stop small, .culture-plan-stop b, .culture-plan-stop span { display: block; }
.culture-plan-stop small { color: var(--app-muted); font-size: 9px; }
.culture-plan-stop b { margin: 3px 0; font-size: 13px; }
.culture-plan-stop span { color: var(--app-muted); font-size: 9px; }
.culture-save-plan { width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 8px; color: #fff; background: #263746; font-size: 12px; font-weight: 700; }
.toast { border: 0; border-radius: 8px; }

@media (max-width: 720px) {
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-header { height: 58px; padding: 0 18px; }
  .site-header nav { position: fixed; z-index: 90; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); height: 62px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 6px; border: 1px solid rgba(23,33,43,.08); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 10px 32px rgba(23,33,43,.18); backdrop-filter: blur(16px); transform: none; }
  .site-header nav a { display: grid; place-items: center; padding: 7px 4px; border-radius: 18px; font-size: 11px; }
  .profile-button { display: none; }
  .dart-section { padding: 82px 16px 30px; }
  .section-heading h1 { font-size: 28px; }
  .section-heading > p:last-of-type { font-size: 13px; }
  .filters { grid-template-columns: 1fr; }
  .filters fieldset { border-right: 0; border-bottom: 1px solid var(--app-line); }
  .filters fieldset:last-of-type { border-bottom: 0; }
  .dart-stage { min-height: 500px; }
  .dartboard.mapboard { width: min(100%,430px); margin-top: 6px; border-radius: 15px; }
  .map-source { display: none; }
  .result-section { align-items: end; padding: 0; }
  .result-card { width: 100%; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .result-card h2 { font-size: 34px; }
  .detail-section, .explore-section, .passport-section { padding: 84px 18px 86px; }
  .detail-intro, .explore-header, .passport-section { grid-template-columns: 1fr; }
  .guide-grid, .city-grid { grid-template-columns: 1fr; }
  .guide-card, .city-card:nth-child(n) { min-height: 190px; border: 1px solid var(--app-line); }
}

@media (max-width: 390px) {
  .brand { font-size: 19px; }
  .dart-stage { min-height: 455px; }
  .mapboard-label { top: 14px; left: 15px; }
  .throw-map { top: 37px; height: calc(100% - 100px); }
  .mapboard-action { left: 12px; right: 12px; bottom: 11px; padding: 12px; }
  .result-actions { grid-template-columns: 1fr; }
}

@keyframes regionShapeIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(.78); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

/* Reference-led home: one canvas, one map, one action. */
.site-header { border-bottom: 0; background: #ffe600; backdrop-filter: none; }
.site-header nav a { color: #3f4548; background: transparent; }
.site-header nav a.active { color: #17212b; background: transparent; }
.site-header nav a.active::after { content: ''; display: block !important; width: 22px; height: 2px; margin: 6px auto -8px; background: #17212b; }
.profile-button { border-color: #17212b; color: #17212b; background: transparent; }

.auth-dialog { width: min(430px,calc(100% - 28px)); padding: 34px; }
.auth-dialog::backdrop { background: rgba(16,27,37,.48); backdrop-filter: blur(4px); }
.auth-dialog .dialog-close { top: 14px; right: 14px; }
.auth-dialog-copy { padding-right: 30px; }
.auth-dialog-copy h2 { margin: 8px 0 25px; font-size: clamp(25px, 7vw, 36px); line-height: 1.2; white-space: nowrap; }
.auth-mark { display: block; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 10px; }
.auth-providers { display: grid; gap: 10px; }
.auth-provider { position: relative; width: 100%; min-height: 50px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-provider span { position: absolute; left: 18px; font-size: 16px; font-weight: 800; }
.auth-provider.kakao { color: #191919; background: #fee500; }
.auth-provider.google { border: 1px solid #d9dfe4; color: #263746; background: #fff; }
.auth-provider:disabled { opacity: .58; cursor: wait; }
.auth-user { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; padding: 14px; border-radius: 10px; background: #f3f5f6; }
.auth-user[hidden], .auth-providers[hidden], .auth-signout[hidden] { display: none; }
.auth-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #dfe5e9; }
.auth-user div { display: grid; gap: 3px; min-width: 0; }
.auth-user strong, .auth-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-user strong { font-size: 14px; }
.auth-user span { color: #75808a; font-size: 11px; }
.auth-signout { width: 100%; min-height: 46px; border: 1px solid #d9dfe4; border-radius: 9px; color: #34414c; background: #fff; font-weight: 700; }
.auth-status { min-height: 18px; margin: 12px 0 0; color: #d33f31; font-size: 11px; text-align: center; }
.auth-terms { margin: 10px 20px 0; color: #98a1a9; font-size: 9px; line-height: 1.5; text-align: center; }

.dart-section { position: relative; min-height: 100svh; padding: 78px 0 0; overflow: hidden; background: #ffe600; }
.section-heading { position: absolute; z-index: 10; top: 88px; left: 50%; width: min(90vw,620px); transform: translateX(-50%); text-align: center; pointer-events: none; }
.section-heading .section-kicker { margin-bottom: 8px; color: #26313a; font: 700 11px var(--app-latin); letter-spacing: 1.4px; }
.section-heading h1 { color: #17212b; font-size: clamp(42px,5.4vw,72px); line-height: .98; letter-spacing: -4px; }
.dart-layout { width: 100%; max-width: none; margin: 0; }
.dart-stage { min-height: calc(100svh - 78px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.dartboard.mapboard { width: min(720px,82vw); max-width: none; aspect-ratio: 1; margin: 150px 0 -125px; flex: 0 0 auto; overflow: visible; border: 0; border-radius: 50%; background: #087cf0; box-shadow: none; }
.dartboard.mapboard:hover { border: 0; transform: translateY(-3px); box-shadow: none; }
.mapboard-label { top: 73px; left: 50%; color: #fff; font-size: 12px; font-weight: 600; transform: translateX(-50%); }
.throw-map { top: 102px; width: 60%; height: 59%; }
.mapboard-action { left: 50%; right: auto; bottom: 142px; width: 170px; padding: 14px 18px; border-radius: 0; color: #17212b; background: #ffe600; transform: translateX(-50%); }
.mapboard-action b { margin-left: 12px; color: #17212b; }
.map-source { top: auto; right: auto; bottom: 115px; left: 50%; color: rgba(255,255,255,.72); transform: translateX(-50%); }
.dart-flying { width: 110px; height: 22px; }
.dart-flying i { width: 80px; height: 6px; background: #ef4937; }
.hit-marker { width: 22px; height: 22px; border-width: 4px; border-color: #ef4937; }

@media (max-width: 720px) {
  .site-header { background: #ffe600; }
  .site-header nav { border-top: 1px solid #e3e7ea; background: rgba(255,255,255,.98); }
  .site-header nav a.active { color: var(--app-blue); background: var(--app-blue-soft); }
  .site-header nav a.active::after { display: none !important; }
  .dart-section { padding-top: 58px; padding-bottom: 0; }
  .section-heading { top: 81px; }
  .section-heading .section-kicker { font-size: 10px; }
  .section-heading h1 { font-size: 45px; letter-spacing: -3px; }
  .dart-stage { min-height: calc(100svh - 124px); }
  .dartboard.mapboard { width: min(620px,116vw); margin: 154px 0 -112px; border-radius: 50%; }
  .mapboard-label { top: 13%; }
  .throw-map { top: 19%; width: 60%; height: 55%; }
  .mapboard-action { bottom: 19%; width: 158px; padding: 13px 15px; }
  .map-source { display: none; }
}

@media (max-width: 390px) {
  .section-heading { top: 76px; }
  .section-heading h1 { font-size: 40px; }
  .dartboard.mapboard { width: 122vw; margin-top: 145px; margin-bottom: -105px; }
  .mapboard-label { top: 12%; }
  .throw-map { top: 18%; height: 56%; }
  .mapboard-action { bottom: 18%; }
}

@keyframes mapDartThrow {
  0% { opacity: 0; transform: translate(240px,-210px) rotate(149deg) scale(1.4); }
  12% { opacity: 1; }
  76%,100% { opacity: 1; transform: translate(-110px,-9px) rotate(149deg) scale(.88); }
}

@keyframes mapTargetHit {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
  35% { opacity: 1; transform: translate(-50%,-50%) scale(2.3); }
  100% { opacity: .9; transform: translate(-50%,-50%) scale(1); }
}

@keyframes mapBoardHit {
  50% { transform: translateY(-4px) scale(1.005); }
}

/* The map is the hero; the result keeps geographic context instead of opening a modal. */
.dartboard.mapboard { width: min(860px,90vw); margin-top: 132px; margin-bottom: -190px; }
.mapboard-label { top: 7%; }
.throw-map { top: 10%; width: 74%; height: auto; }
.mapboard-action { bottom: 205px; }
.map-source { bottom: 178px; }

.result-section { --region-x: 50%; --region-y: 50%; position: relative; inset: auto; min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: clamp(28px,5vw,80px); place-items: center; padding: 88px clamp(24px,7vw,110px); color: var(--app-text); background: #087cf0; backdrop-filter: none; }
.result-map-panel { position: relative; width: 100%; height: min(720px,78vh); overflow: hidden; }
.result-map-canvas { position: absolute; left: 50%; top: 50%; width: min(660px,88%); aspect-ratio: 800/759; transform: translate(-50%,-50%); transform-origin: var(--region-x) var(--region-y); animation: regionMapFocus 1.15s cubic-bezier(.2,.75,.25,1) both; }
.result-map-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; }
.result-map-pin { position: absolute; left: var(--region-x); top: var(--region-y); width: 18px; height: 18px; border: 5px solid #ef4937; border-radius: 50%; background: #ffe600; transform: translate(-50%,-50%); animation: resultPinPulse 1.5s .8s ease-out infinite; }
.result-map-caption { position: absolute; left: 50%; bottom: 22px; z-index: 4; width: max-content; margin: 0; padding: 10px 14px; color: #17212b; background: #ffe600; font-size: 13px; font-weight: 700; transform: translateX(-50%); }
.result-map-caption span { color: #d73f35; }
.result-section .result-card { position: relative; width: min(100%,470px); max-width: none; padding: 34px; border-radius: 0; color: var(--app-text); background: #fff; box-shadow: none; }
.result-section .close-result { top: 18px; right: 18px; color: #65717b; }
.result-section .result-card .section-kicker { color: #66727e; }
.result-section .result-overline { color: #2868d8; }
.result-section .result-card h2 { color: var(--app-text); }
.result-section .result-summary { color: #5f6b76; }
.result-section .result-tags span { color: #4169a8; background: #edf4ff; }
.result-section .result-actions .button-primary { color: #fff; background: #2868d8; }
.result-section .result-actions .button-ghost { color: #56616c; border-color: #dce2e7; background: #fff; }

@keyframes regionMapFocus {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.72); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1.32); }
}

@keyframes resultPinPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,230,0,.7); }
  70%,100% { box-shadow: 0 0 0 18px rgba(255,230,0,0); }
}

@media (max-width: 720px) {
  .dartboard.mapboard { width: 136vw; margin-top: 142px; margin-bottom: -145px; }
  .mapboard-label { top: 11%; }
  .throw-map { top: 10%; width: 74%; height: auto; }
  .mapboard-action { bottom: 17%; }
  .result-section { min-height: 100svh; display: block; padding: 58px 0 66px; background: #087cf0; }
  .result-map-panel { height: 54vh; min-height: 380px; }
  .result-map-canvas { width: min(640px,112vw); }
  .result-map-caption { bottom: 15px; }
  .result-section .result-card { width: calc(100% - 24px); margin: 0 auto; padding: 28px 20px; border-radius: 14px; }
  .result-section .result-card h2 { font-size: 34px; }
}

@media (max-width: 390px) {
  .dartboard.mapboard { width: 145vw; margin-top: 138px; margin-bottom: -135px; }
  .mapboard-action { bottom: 16%; }
  .result-map-panel { height: 50vh; min-height: 340px; }
}

/* Final map geometry: visible province borders and an isolated result outline. */
.dartboard.mapboard { width: min(700px,90vw); margin: 132px 0 0; }
.throw-map { top: 5%; width: 82%; height: auto; }
.mapboard-action { bottom: 6%; }
.map-source { bottom: 3%; }
.hit-marker, .result-map-pin { display: none; }
.result-map-canvas {
  width: min(680px,85%);
  height: 68%;
  aspect-ratio: auto;
  transform-origin: center;
  animation: regionShapeIn .8s cubic-bezier(.2,.75,.25,1) both;
}
.result-map-canvas img { width: 100%; height: 100%; object-fit: contain; }
.dart-flying {
  left: calc(var(--hit-x) - 118px);
  top: calc(var(--hit-y) - 11px);
  width: 118px;
  transform-origin: right center;
}
.dart-flying i { right: 8px; }
.dart-flying b {
  left: 1px;
  top: 2px;
  width: 28px;
  height: 18px;
  border: 0;
  background: #ef4937;
  clip-path: polygon(0 0,100% 28%,100% 72%,0 100%,22% 50%);
}

@keyframes mapDartThrow {
  0% { opacity: 0; transform: translate(350px,-210px) rotate(149deg) scale(1.4); }
  12% { opacity: 1; }
  76%,100% { opacity: 1; transform: translate(0,0) rotate(149deg) scale(.88); }
}

@media (max-width: 720px) {
  .dartboard.mapboard { width: 136vw; margin: 142px 0 0; }
  .throw-map { top: 5%; width: 82%; }
  .mapboard-action { bottom: 6%; }
  .map-source { bottom: 3%; }
  .result-map-canvas { width: 90%; height: 70%; }
}

@media (max-width: 390px) {
  .dartboard.mapboard { margin-bottom: 0; }
  .mapboard-action { bottom: 6%; }
}

/* Keep the hero layers separate: headline, board label, city map, then action. */
html, body { overflow-x: hidden; }
.section-heading { top: 96px; }
.section-heading h1 { font-size: clamp(42px,4.8vw,60px); line-height: 1; }
.dart-stage { align-items: flex-start; min-height: 900px; }
.dartboard.mapboard { width: min(1080px,96vw); margin: 220px 0 28px; overflow: hidden; }
.mapboard-label { top: 4%; z-index: 6; }
.throw-map { top: 4%; width: 90%; }
.throw-map-hit { position: absolute; z-index: 5; top: 4%; left: 50%; width: 90%; height: auto; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.dartboard.show-region-hit .throw-map-hit { animation: selectedRegionHit 1.9s ease both; }
.mapboard-action { bottom: 4%; z-index: 9; }
.map-source { bottom: 3.2%; }

@media (max-width: 720px) {
  .dart-section { overflow: visible; }
  .section-heading { top: 82px; }
  .section-heading h1 { font-size: clamp(36px,11vw,45px); letter-spacing: -3px; }
  .dart-stage { min-height: 680px; overflow: visible; }
  .dartboard.mapboard { width: min(104vw,540px); margin: 175px 0 86px; }
  .mapboard-label { top: 4%; }
  .throw-map { top: 5%; width: 85%; }
  .throw-map-hit { top: 5%; width: 85%; }
  .mapboard-action { bottom: 2%; }
}

@keyframes selectedRegionHit {
  0%,55% { opacity: 0; }
  68%,100% { opacity: .86; }
}

@media (max-width: 390px) {
  .dart-stage { min-height: 620px; }
  .dartboard.mapboard { width: 104vw; margin-top: 170px; }
}

.guide-card.tour-place { padding: 0; display: flex; flex-direction: column; background: #fff; }
.tour-thumb { width: 100%; height: 145px; display: block; object-fit: cover; background: #e7e1d5; }
.tour-place-copy { padding: 18px 20px 20px; }
.guide-card.tour-place .guide-no { position: static; }
.guide-card.tour-place h3 { margin: 12px 0 8px; font-size: 20px; }
.guide-card.tour-place p { min-height: 36px; }

.trip-planner { margin-top: 18px; padding: clamp(22px,3vw,34px); border: 1px solid var(--app-line); border-radius: 14px; background: #fff; }
.planner-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.planner-head h3 { margin: 0; font: 700 clamp(23px,3vw,32px)/1.35 var(--app-font); letter-spacing: -1.4px; }
.planner-duration { display: flex; gap: 6px; padding: 4px; border-radius: 9px; background: #eef2f5; }
.planner-duration button { padding: 9px 12px; border: 0; border-radius: 7px; color: #69747e; background: transparent; font-size: 12px; }
.planner-duration button.selected { color: #fff; background: var(--app-blue); }
.planner-summary { margin: 18px 0 22px; color: var(--app-muted); font-size: 13px; line-height: 1.7; }
.itinerary-grid { display: grid; gap: 12px; }
.itinerary-day { overflow: hidden; border: 1px solid var(--app-line); border-radius: 11px; }
.itinerary-day > header { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #f4f7f9; }
.itinerary-day > header span { color: var(--app-blue); font: 700 11px var(--app-latin); }
.itinerary-day > header strong { font-size: 14px; }
.itinerary-stops { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.itinerary-stop { min-width: 0; padding: 16px; border-right: 1px solid var(--app-line); }
.itinerary-stop:last-child { border-right: 0; }
.itinerary-stop img { width: 100%; height: 82px; margin-bottom: 12px; border-radius: 7px; object-fit: cover; background: #e7e1d5; }
.stop-dot { display: block; width: 9px; height: 9px; margin: 4px 0 18px; border-radius: 50%; background: var(--app-blue); }
.itinerary-stop small { display: block; margin-bottom: 7px; color: var(--app-blue); font-size: 10px; font-weight: 700; }
.itinerary-stop strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-stop p { margin: 7px 0 0; color: var(--app-muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 720px) {
  .benefit-detail { grid-template-columns: 1fr auto; gap: 7px 12px; }
  .benefit-detail span { grid-column: 1 / -1; }
  .plan-benefits .official-benefit { grid-template-columns: 1fr auto; }
  .plan-benefits { padding: 20px 18px; }
  .plan-benefits > .plan-detail-heading { display: flex; align-items: flex-start; gap: 12px; }
  .plan-benefits > .plan-detail-heading h3 { max-width: 240px; font-size: 21px; letter-spacing: -.7px; }
  .plan-benefits .official-benefit { padding: 15px 0; }
  .plan-benefits .official-benefit span { width: max-content; padding: 4px 7px; border-radius: 5px; background: #edf4ff; }
  .plan-benefits .official-benefit strong { font-size: 15px; white-space: normal; }
  .plan-benefits .official-benefit em { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .culture-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; overflow: hidden; border-radius: 15px; }
  .culture-dialog .dialog-close { position: fixed; top: max(16px,calc(env(safe-area-inset-top) + 10px)); right: 16px; width: 42px; height: 42px; box-shadow: 0 3px 14px rgba(16,27,37,.16); }
  .culture-detail-layout { display: flex; flex-direction: column; height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 0; overflow: hidden; }
  .culture-detail-image { flex: 0 0 180px; height: 180px; min-height: 0; }
  .culture-detail-copy { flex: 1 1 auto; min-height: 0; padding: 24px 20px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .culture-detail-copy h2 { padding-right: 36px; font-size: 26px; }
  .culture-plan-head { display: block; }
  .culture-plan-duration { width: max-content; margin-bottom: 14px; }
}

@media (max-width: 720px) {
  .planner-head { align-items: stretch; flex-direction: column; }
  .planner-duration { align-self: stretch; }
  .planner-duration button { flex: 1; }
  .itinerary-stops { grid-template-columns: 1fr; }
  .itinerary-stop { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border-right: 0; border-bottom: 1px solid var(--app-line); }
  .itinerary-stop:last-child { border-bottom: 0; }
  .itinerary-stop img { width: 84px; height: 74px; margin: 0; grid-row: 1 / span 3; }
}

/* Keep the map artwork, title, action, and source in separate visual rows. */
.dart-stage { min-height: 980px; overflow: visible; }
.mapboard-shell { width: min(1080px,96vw); margin: 220px 0 40px; display: grid; justify-items: center; }
.mapboard-shell .dartboard.mapboard { width: 100%; margin: 0; overflow: visible; }
.mapboard-shell .mapboard-label { top: 5%; z-index: 7; }
.mapboard-shell .throw-map, .mapboard-shell .throw-map-hit { top: 50%; left: 50%; width: 82%; height: 78%; object-fit: contain; transform: translate(-50%,-50%); }
.dart-impact { position: absolute; z-index: 7; left: var(--hit-x); top: var(--hit-y); width: 13px; height: 13px; border: 3px solid #17212b; border-radius: 50%; background: #ffe600; opacity: 0; transform: translate(-50%,-50%) scale(.4); pointer-events: none; }
.dartboard.throwing .dart-impact { animation: dartImpactIn .42s .92s ease-out forwards; }
.dartboard.dart-landed .dart-flying { opacity: 1; transform: translate(0,0) rotate(149deg) scale(.88); }
.dartboard.throwing .dart-flying { animation-duration: 1.15s; }
.mapboard-controls { display: grid; justify-items: center; gap: 9px; margin-top: 18px; }
.mapboard-shell .mapboard-action { position: static; width: 176px; padding: 14px 18px; border: 0; border-radius: 0; color: #17212b; background: #ffe600; font-weight: 700; transform: none; }
.mapboard-shell .map-source { position: static; display: block; color: #68737d; font-size: 9px; line-height: 1.4; transform: none; }
.mapboard-shell .dart-flying { left: calc(var(--preview-x,50%) - 118px); top: calc(var(--preview-y,50%) - 11px); transition: opacity .16s ease, transform .16s ease; }
.mapboard-shell .dartboard:not(.throwing):hover .dart-flying { opacity: .88; transform: rotate(149deg) scale(.76); }
.mapboard-shell .dartboard.throwing .dart-flying { left: calc(var(--hit-x) - 118px); top: calc(var(--hit-y) - 11px); transition: none; }
.detail-empty-state { padding: 24px; border: 1px dashed #c7cfd5; border-radius: 10px; color: var(--app-muted); background: #fff; text-align: center; }
.city-card[data-region-id] { cursor: pointer; }
.city-card[data-region-id]:focus-visible { outline: 3px solid var(--app-blue); outline-offset: 3px; }
.city-card-arrow { position: absolute; right: 18px; bottom: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--app-blue); font-weight: 800; }
.toss-banner-shell { display: none; }
.toast:not(.show) { opacity: 0; visibility: hidden; pointer-events: none; }
.toast.show { opacity: 1; visibility: visible; }

@media (max-width: 720px) {
  .dart-stage { min-height: 760px; }
  .mapboard-shell { width: min(104vw,540px); margin: 175px 0 58px; }
  .mapboard-shell .mapboard-label { top: 5%; }
  .mapboard-shell .throw-map, .mapboard-shell .throw-map-hit { top: 50%; width: 84%; height: 78%; }
  .mapboard-controls { margin-top: 14px; }
  .mapboard-shell .map-source { display: block; max-width: 90vw; text-align: center; }
}

@media (max-width: 390px) {
  .dart-stage { min-height: 710px; }
  .mapboard-shell { margin-top: 170px; }
}

@keyframes dartImpactIn {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(2.6); }
  55% { opacity: 1; transform: translate(-50%,-50%) scale(.72); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

/* Mobile app flow: open, see the map, and throw with one thumb. */
@media (max-width: 720px) {
  html { overscroll-behavior-y: none; }
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-header { height: calc(58px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .site-header nav { height: 62px; }
  .dart-section { min-height: 100dvh; padding-top: calc(58px + env(safe-area-inset-top)); overflow: hidden; touch-action: manipulation; }
  .section-heading { top: calc(74px + env(safe-area-inset-top)); }
  .section-heading .section-kicker { margin-bottom: 6px; }
  .section-heading h1 { font-size: clamp(35px,10.5vw,43px); line-height: 1.02; }
  .dart-stage { min-height: calc(100dvh - 58px - env(safe-area-inset-top)); }
  .mapboard-shell { width: min(94vw,calc(100dvh - 330px),470px); min-width: 300px; margin: 148px 0 28px; }
  .mapboard-shell .dartboard.mapboard { width: 100%; }
  .mapboard-controls { width: min(100%,380px); margin-top: 12px; gap: 7px; }
  .mapboard-shell .mapboard-action { width: 100%; min-height: 56px; border-radius: 14px; font-size: 15px; box-shadow: 0 9px 0 rgba(23,33,43,.16); -webkit-tap-highlight-color: transparent; }
  .mapboard-shell .mapboard-action:active { box-shadow: 0 3px 0 rgba(23,33,43,.16); transform: translateY(6px); }
  .mapboard-shell .mapboard-action:disabled { color: #53606b; background: #f4dd1b; box-shadow: none; transform: translateY(4px); }
  .mapboard-shell .map-source { font-size: 8px; }
  .result-section { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .result-section .result-card { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .result-actions .button-primary, .result-actions .button-ghost { min-height: 48px; }
}

@media (max-width: 390px), (max-height: 720px) and (max-width: 720px) {
  .section-heading { top: calc(68px + env(safe-area-inset-top)); }
  .section-heading h1 { font-size: 34px; }
  .mapboard-shell { width: min(86vw,330px); min-width: 280px; margin-top: 130px; }
  .mapboard-shell .mapboard-action { min-height: 52px; }
}

.travel-map-section { margin-top: 18px; padding: clamp(22px,3vw,34px); border: 1px solid var(--app-line); border-radius: 14px; background: #fff; }
.travel-map-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.travel-map-head h3 { margin: 0; font: 700 clamp(23px,3vw,32px)/1.35 var(--app-font); letter-spacing: -1.4px; }
.travel-map-head > strong { color: var(--app-blue); font-size: 12px; white-space: nowrap; }
.travel-map-filters { display: flex; gap: 6px; margin: 20px 0 12px; overflow-x: auto; scrollbar-width: none; }
.travel-map-filters::-webkit-scrollbar { display: none; }
.travel-map-filters button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--app-line); border-radius: 18px; color: var(--app-muted); background: #fff; font-size: 11px; font-weight: 700; }
.travel-map-filters button.selected { border-color: #17212b; color: #fff; background: #17212b; }
.travel-map { position: relative; z-index: 1; width: 100%; height: 560px; overflow: hidden; border-radius: 12px; background: #e8edf0; }
.travel-map > p { display: grid; height: 100%; place-items: center; color: var(--app-muted); font-size: 13px; }
.poi-marker-wrap { background: transparent; border: 0; }
.poi-marker { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #17212b; border-radius: 50% 50% 50% 4px; color: #fff; background: var(--poi-color); box-shadow: 0 3px 8px rgba(17,28,38,.3); font: 800 10px var(--app-latin); transform: rotate(-45deg); }
.poi-marker b { font: inherit; transform: rotate(45deg); }
.poi-marker-wrap .poi-marker { line-height: 1; }
.poi-marker-wrap .poi-marker { text-indent: 0; }
.poi-popup { min-width: 170px; font-family: var(--app-font); }
.poi-popup small, .poi-popup strong, .poi-popup span { display: block; }
.poi-popup small { color: var(--app-blue); font-size: 10px; font-weight: 700; }
.poi-popup strong { margin: 5px 0; font-size: 14px; }
.poi-popup span { color: var(--app-muted); font-size: 10px; line-height: 1.5; }
.poi-popup a { display: inline-block; margin-top: 9px; color: var(--app-blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.travel-map-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.travel-map-list button { min-width: 0; display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 2px 8px; padding: 11px; border: 1px solid var(--app-line); border-radius: 9px; color: inherit; background: #fff; text-align: left; }
.travel-map-list button > span { grid-row: 1 / span 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--poi-color); font: 800 9px var(--app-latin); }
.travel-map-list small { color: var(--app-blue); font-size: 9px; }
.travel-map-list strong, .travel-map-list em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-map-list strong { font-size: 12px; }
.travel-map-list em { color: var(--app-muted); font-size: 9px; font-style: normal; }

@media (max-width: 720px) {
  .travel-map-section { margin-inline: -6px; padding: 20px 14px; }
  .travel-map-head { align-items: start; }
  .travel-map-head h3 { font-size: 23px; }
  .travel-map { height: 440px; border-radius: 10px; }
  .travel-map-list { display: flex; margin-right: -14px; padding-right: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .travel-map-list::-webkit-scrollbar { display: none; }
  .travel-map-list button { flex: 0 0 230px; scroll-snap-align: start; }
}

/* DARTRIP outline board: no roads or buildings, only the selected region and POIs. */
.travel-map { height: 620px; display: flex; align-items: center; justify-content: center; padding: clamp(24px,4vw,48px); background: #087cf0; }
.outline-map-canvas { position: relative; max-width: 100%; max-height: 100%; }
.outline-map-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(8px 12px 0 rgba(23,33,43,.13)); }
.outline-map-canvas > svg path { fill: #fffdf1; stroke: #17212b; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.outline-map-name { position: absolute; right: 8px; bottom: 6px; margin: 0; padding: 7px 10px; color: #17212b; background: #ffe600; font-size: 11px; font-weight: 800; }
.outline-poi-marker { position: absolute; z-index: 4; width: 30px; height: 30px; padding: 0; border: 0; color: #fff; background: transparent; transform: translate(-50%,-100%); overflow: visible; }
.outline-poi-marker > span { position: relative; width: 30px; height: 26px; display: grid; place-items: center; border: 2px solid #17212b; border-radius: 5px; color: #fff; background: var(--poi-color); box-shadow: 3px 4px 0 rgba(23,33,43,.2); font: 800 10px var(--app-latin); }
.outline-poi-marker > span::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 9px; height: 9px; border-right: 2px solid #17212b; border-bottom: 2px solid #17212b; background: var(--poi-color); transform: translateX(-50%) rotate(45deg); }
.outline-poi-marker > em { position: absolute; left: 50%; bottom: 39px; min-width: 132px; max-width: 190px; padding: 8px 10px; border: 2px solid #17212b; border-radius: 6px; color: #17212b; background: #fff; box-shadow: 5px 6px 0 rgba(23,33,43,.18); font-style: normal; text-align: left; opacity: 0; transform: translate(-50%,7px); transition: opacity .15s, transform .15s; pointer-events: none; }
.outline-poi-marker > em::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; border-right: 2px solid #17212b; border-bottom: 2px solid #17212b; background: #fff; transform: translateX(-50%) rotate(45deg); }
.outline-poi-marker > em small, .outline-poi-marker > em b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outline-poi-marker > em small { color: var(--poi-color); font-size: 9px; font-weight: 800; }
.outline-poi-marker > em b { margin-top: 3px; font-size: 11px; }
.outline-poi-marker:hover, .outline-poi-marker:focus, .outline-poi-marker.selected { z-index: 20; outline: none; }
.outline-poi-marker:hover > em, .outline-poi-marker:focus > em, .outline-poi-marker.selected > em { opacity: 1; transform: translate(-50%,0); }
.outline-poi-marker:hover > span, .outline-poi-marker:focus > span, .outline-poi-marker.selected > span { color: #17212b; background: #ffe600; transform: translateY(-3px); }
.outline-poi-marker:hover > span::after, .outline-poi-marker:focus > span::after, .outline-poi-marker.selected > span::after { background: #ffe600; }
.travel-map-list button.selected { border-color: #17212b; background: #fff9d6; }

@media (max-width: 720px) {
  .travel-map { height: 500px; padding: 24px 16px; }
  .outline-poi-marker { width: 27px; height: 27px; }
  .outline-poi-marker > span { width: 27px; height: 24px; font-size: 9px; }
  .outline-poi-marker > em { min-width: 118px; max-width: 150px; bottom: 36px; padding: 7px 8px; }
  .outline-map-name { right: 4px; bottom: 3px; }
  .site-header .profile-button { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .auth-dialog { margin: auto auto 10px; width: calc(100% - 20px); padding: 28px 22px 24px; border-radius: 18px; }
}

/* Searchable regions and photo-filled travel passport. */
.region-search { width: min(520px,100%); min-height: 48px; display: flex; align-items: center; gap: 12px; margin-top: 34px; padding: 0 15px; border: 1px solid #cfd6dc; border-radius: 9px; background: #fff; }
.region-search span { flex: 0 0 auto; color: var(--app-blue); font-size: 11px; font-weight: 800; }
.region-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--app-text); background: transparent; font: 600 14px var(--app-font); }
.region-search input::placeholder { color: #99a2aa; font-weight: 500; }
.city-grid-empty { grid-column: 1 / -1; padding: 64px 20px; border: 1px dashed #c7cfd5; border-radius: 12px; color: var(--app-muted); background: #fff; text-align: center; }

.passport-section { min-height: calc(100svh - 64px); grid-template-columns: minmax(250px,.62fr) minmax(460px,1.38fr); align-items: center; gap: clamp(32px,6vw,90px); background: #eef2f5; overflow: visible; }
.passport-copy { max-width: 390px; }
.passport-progress { display: flex; align-items: baseline; gap: 8px; margin-top: 32px; }
.passport-progress strong { color: var(--app-blue); font: 800 48px/1 var(--app-latin); }
.passport-progress span { color: var(--app-muted); font-size: 12px; }
.passport-map-panel { min-width: 0; padding: clamp(14px,2vw,24px); border: 1px solid #d4dbe0; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(23,33,43,.08); }
.passport-map-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.passport-map-head strong { font-size: 13px; }
.passport-map-head span { color: var(--app-muted); font-size: 10px; text-align: right; }
.passport-region-search { min-height: 44px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0 12px; border: 1px solid #d4dbe0; border-radius: 9px; background: #fff; }
.passport-region-search span { flex: 0 0 auto; color: var(--app-blue); font-size: 10px; font-weight: 800; }
.passport-region-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--app-text); background: transparent; font: 600 13px var(--app-font); }
.passport-region-map-wrap { position: relative; overflow: hidden; border-radius: 12px; background: #087cf0; }
.passport-map-controls { position: absolute; z-index: 5; top: 10px; right: 10px; display: flex; gap: 4px; padding: 4px; border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 5px 16px rgba(23,33,43,.16); }
.passport-map-controls button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--app-text); background: transparent; font-size: 12px; font-weight: 800; }
.passport-map-controls button:hover, .passport-map-controls button:focus-visible { background: var(--app-blue-soft); outline: none; }
.passport-map-controls button:disabled { opacity: .35; cursor: default; }
.passport-region-map { position: relative; width: 100%; aspect-ratio: 800 / 759; overflow: hidden; background: #087cf0; touch-action: none; cursor: grab; }
.passport-region-map.is-dragging { cursor: grabbing; }
.passport-region-map > svg { width: 100%; height: 100%; display: block; }
.passport-region-path { cursor: pointer; fill: #fffdf1; stroke: #263b4d; stroke-width: 1.05; vector-effect: non-scaling-stroke; transition: filter .15s, opacity .15s; }
.passport-region-path:hover, .passport-region-path:focus { position: relative; z-index: 2; outline: none; filter: brightness(1.08) drop-shadow(0 0 4px rgba(255,230,0,.9)); }
.passport-region-path.has-photo { stroke: #ffe600; stroke-width: 1.8; }
.passport-region-path.is-selected { stroke: #ef4937; stroke-width: 2.8; }

.region-photo-dialog { max-width: 520px; padding: 34px; border-radius: 18px; color: var(--app-text); background: #fff; }
.region-photo-dialog h2 { margin: 6px 0 8px; font: 800 30px/1.25 var(--app-font); letter-spacing: -1.4px; }
.region-photo-copy { margin-bottom: 20px; color: var(--app-muted); font-size: 13px; line-height: 1.65; }
.region-photo-preview { min-height: 230px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #bfc8cf; border-radius: 12px; color: var(--app-muted); background: #eef2f5; }
.region-photo-preview img { width: 100%; height: 270px; display: block; object-fit: cover; }
.region-photo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.region-photo-actions .button-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; cursor: pointer; }
.region-photo-actions .button-primary { min-height: 44px; border-radius: 8px; }
.region-photo-actions .button-primary:disabled { cursor: not-allowed; opacity: .45; }
.region-photo-remove { margin-left: auto; border: 0; color: #c84236; background: transparent; font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .passport-section { grid-template-columns: 1fr; align-items: start; }
  .passport-copy { max-width: 620px; }
  .passport-map-panel { width: min(100%,680px); margin-inline: auto; }
}

@media (max-width: 520px) {
  .region-search { margin-top: 25px; }
  .explore-tabs { margin-top: 18px; }
  .passport-section { padding-inline: 14px; }
  .passport-copy { padding-inline: 4px; }
  .passport-map-panel { padding: 10px; border-radius: 12px; }
  .passport-map-head { align-items: flex-start; }
  .passport-region-map-wrap { border-radius: 8px; }
  .passport-map-controls { top: 7px; right: 7px; }
  .passport-map-controls button { min-width: 32px; height: 30px; padding-inline: 7px; font-size: 10px; }
  .region-photo-dialog { margin: auto auto 10px; width: calc(100% - 20px); padding: 28px 20px 22px; }
  .region-photo-preview { min-height: 190px; }
  .region-photo-preview img { height: 220px; }
  .region-photo-actions > * { flex: 1 1 auto; }
  .region-photo-remove { flex-basis: 100%; margin-left: 0; padding: 10px; }
}

/* Shared compact mobile layout for the web app and Apps in Toss. */
@media (max-width: 720px) {
  body { padding-bottom: 0; }
  .dart-section { height: 100dvh; min-height: 0; overflow: hidden; }
  .dart-stage { height: calc(100dvh - 58px - env(safe-area-inset-top)); min-height: 0; overflow: hidden; }
  .detail-section,
  .explore-section,
  .passport-section { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .explore-header { gap: 6px; }
  .explore-header br { display: none; }
  .explore-header h2 { font-size: 28px; line-height: 1.2; }
  .explore-header > p { margin: 0; font-size: 11px; line-height: 1.55; }
  .region-search { margin-top: 18px; }
  .explore-tabs { margin: 12px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .explore-tabs::-webkit-scrollbar { display: none; }
  .city-grid { gap: 8px; }
  .city-card,
  .city-card:nth-child(n) { min-height: 126px; padding: 14px; }
  .city-card .card-index { top: 14px; right: 14px; }
  .city-card h3 { margin: 12px 34px 5px 0; font-size: 21px; }
  .city-card p { padding-right: 28px; line-height: 1.45; }
  .passport-section { gap: 18px; }
  .passport-copy h2 { font-size: 28px; }
  .passport-copy > p:not(.section-kicker) { margin-bottom: 12px; line-height: 1.6; }
  .passport-progress { margin-top: 12px; }
  .passport-progress strong { font-size: 34px; }
  .toast {
    z-index: 120;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
  .region-photo-dialog {
    max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));
    margin: auto auto calc(82px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
}

/* Apps in Toss already provides its own top chrome and account context. */
@media (max-width: 720px) {
  html.toss-app body { background: #ffe600; }
  html.toss-app .site-header {
    height: 0 !important;
    min-height: 0;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  html.toss-app .site-header .brand,
  html.toss-app .site-header .profile-button {
    display: none !important;
  }
  html.toss-app .dart-section {
    height: calc(100dvh - 78px - env(safe-area-inset-bottom));
    min-height: 0;
    padding: env(safe-area-inset-top) 0 0;
    overflow: hidden;
  }
  html.toss-app .section-heading {
    top: calc(16px + env(safe-area-inset-top));
  }
  html.toss-app .dart-stage {
    height: calc(100dvh - 78px - env(safe-area-inset-bottom));
    min-height: 0;
    overflow: hidden;
  }
  html.toss-app .mapboard-shell {
    width: min(94vw, calc(100dvh - 270px), 430px);
    min-width: 286px;
    margin: 106px 0 0;
  }
  html.toss-app .detail-section,
  html.toss-app .explore-section,
  html.toss-app .passport-section {
    padding-top: calc(24px + env(safe-area-inset-top));
  }
  html.toss-app #authDialog {
    display: none;
  }
  html.toss-app .toss-banner-shell {
    position: fixed;
    z-index: 86;
    right: 8px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 8px;
    display: block;
    padding-top: 27px;
    pointer-events: none;
  }
  html.toss-app .toss-banner-shell.is-dismissed { display: none; }
  html.toss-app .toss-banner-close {
    position: absolute;
    top: 0;
    right: 10px;
    min-height: 25px;
    padding: 3px 9px;
    border: 1px solid #d7dde3;
    border-radius: 12px 12px 0 0;
    color: #4f5b66;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    pointer-events: auto;
  }
  html.toss-app .toss-banner-ad {
    min-height: 76px;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    pointer-events: auto;
  }
  html.toss-app .toss-banner-shell.is-rendered .toss-banner-ad { background: #fff; }
}

/* Discovery stays secondary; the primary product flow is dart, plan, record. */
.result-detail-link { width: 100%; margin-top: 11px; padding: 4px; border: 0; color: #65717b; background: transparent; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plans-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--app-line); }
.plans-header h2 { margin: 0; font: 700 clamp(28px,4vw,42px)/1.25 var(--app-font); letter-spacing: -1.8px; }
.plans-header-side { display: grid; justify-items: end; gap: 12px; }
.plans-header-side p { margin: 0; color: var(--app-muted); font-size: 13px; }
.plan-join-open { min-height: 40px; padding: 0 14px; border: 1px solid #bfc8cf; border-radius: 8px; color: #263746; background: #fff; font-size: 11px; font-weight: 800; }
.plans-list { width: min(100%,980px); display: grid; gap: 14px; margin: 28px auto 0; }
.plans-empty { padding: clamp(42px,8vw,86px) 24px; border: 1px solid var(--app-line); border-radius: 16px; background: #fff; text-align: center; }
.plans-empty > span { color: var(--app-blue); font: 800 10px var(--app-latin); letter-spacing: 1.4px; }
.plans-empty h3 { margin: 12px 0 8px; font-size: 24px; }
.plans-empty p { margin: 0 auto 24px; color: var(--app-muted); font-size: 13px; line-height: 1.65; }
.trip-plan-card { padding: clamp(20px,3vw,30px); border: 1px solid var(--app-line); border-radius: 16px; background: #fff; }
.trip-plan-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.trip-plan-card-head span { color: var(--app-blue); font-size: 10px; font-weight: 800; }
.trip-plan-card-head h3 { margin: 4px 0 0; font-size: 28px; letter-spacing: -1.2px; }
.trip-plan-card-head button { padding: 6px; border: 0; color: #8b959d; background: transparent; font-size: 10px; }
.trip-plan-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 22px 0; border: 1px solid var(--app-line); border-width: 1px 0; }
.trip-plan-meta div { padding: 15px 12px; border-right: 1px solid var(--app-line); }
.trip-plan-meta div:last-child { border-right: 0; }
.trip-plan-meta dt { margin-bottom: 5px; color: var(--app-muted); font-size: 9px; font-weight: 700; }
.trip-plan-meta dd { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.5; }
.trip-plan-official > strong, .trip-plan-row > strong { color: #263746; font-size: 11px; }
.trip-plan-official ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; counter-reset: place; }
.trip-plan-official li { min-width: 0; padding: 13px; border-radius: 9px; background: #eef5ff; counter-increment: place; }
.trip-plan-official li::before { content: '0' counter(place); display: block; margin-bottom: 12px; color: var(--app-blue); font: 800 9px var(--app-latin); }
.trip-plan-official li img { width: calc(100% + 26px); height: 86px; display: block; margin: 8px -13px 12px; object-fit: cover; }
.trip-plan-official li b, .trip-plan-official li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-plan-official li b { font-size: 12px; }
.trip-plan-official li span, .trip-plan-official > p { margin-top: 5px; color: var(--app-muted); font-size: 10px; }
.trip-plan-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; margin-top: 14px; font-size: 11px; line-height: 1.55; }
.trip-plan-row span { color: var(--app-muted); }
.trip-plan-budget { margin: 18px 0 0; color: var(--app-blue); font-size: 11px; font-weight: 800; }

.trip-plan-dialog { width: min(520px,calc(100% - 28px)); padding: 32px; color: var(--app-text); }
.trip-plan-dialog::backdrop { background: rgba(16,27,37,.48); backdrop-filter: blur(4px); }
.trip-plan-dialog h2 { margin: 7px 0 3px; font-size: 30px; letter-spacing: -1.4px; }
.trip-plan-destination { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; }
.trip-plan-destination strong { color: var(--app-blue); font-size: 17px; }
.trip-plan-destination span { color: var(--app-muted); font-size: 10px; }
.trip-plan-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 25px; }
.trip-plan-progress span { height: 4px; overflow: hidden; border-radius: 2px; color: transparent; background: #e2e7eb; }
.trip-plan-progress span.active { background: var(--app-blue); }
.trip-plan-step h3 { margin: 0 0 18px; font-size: 20px; }
.trip-plan-step > label { display: grid; gap: 7px; margin-bottom: 14px; color: #58646f; font-size: 11px; font-weight: 700; }
.trip-plan-step input:not([type="checkbox"]), .trip-plan-step select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #ccd4da; border-radius: 8px; color: var(--app-text); background: #fff; font: 600 13px var(--app-font); }
.trip-plan-step > .button-primary { width: 100%; min-height: 48px; margin-top: 8px; }
.trip-plan-step-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8px; margin-top: 20px; }
.trip-plan-step-actions button { min-height: 48px; border-radius: 8px; }
.trip-plan-step-actions .button-ghost { border: 1px solid #d5dce1; color: #5f6b76; background: #fff; }
.trip-plan-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; min-height: 38px; }
.trip-plan-check input { width: 18px; height: 18px; accent-color: var(--app-blue); }
.trip-plan-note { margin: 22px 0 0; color: #87919a; font-size: 9px; line-height: 1.55; }
.plan-join-dialog { width: min(430px,calc(100% - 28px)); padding: 32px; color: var(--app-text); }
.plan-join-dialog::backdrop { background: rgba(16,27,37,.48); backdrop-filter: blur(4px); }
.plan-join-dialog h2 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -1.3px; }
.plan-join-dialog > p:not(.section-kicker,.auth-status) { margin: 0 0 22px; color: var(--app-muted); font-size: 11px; }
.plan-join-dialog form { display: grid; gap: 12px; }
.plan-join-dialog label { display: grid; gap: 7px; color: #58646f; font-size: 10px; font-weight: 800; }
.plan-join-dialog input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #ccd4da; border-radius: 8px; color: var(--app-text); background: #fff; font: 800 20px var(--app-latin); letter-spacing: 4px; text-transform: uppercase; }
.plan-join-dialog .button-primary { min-height: 50px; border: 0; border-radius: 8px; }

@media (max-width: 720px) {
  .header-actions { gap: 3px; }
  .header-explore-link { padding: 8px 7px; font-size: 11px; }
  .site-header .profile-button { max-width: 70px; padding-inline: 8px; }
  .plans-section { padding: calc(78px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)); }
  .plans-header { display: block; padding: 0 4px 18px; }
  .plans-header h2 { font-size: 27px; line-height: 1.22; letter-spacing: -1.4px; }
  .plans-header br { display: block; }
  .plans-header-side { justify-items: start; gap: 10px; margin-top: 10px; }
  .plans-header-side p { font-size: 11px; }
  .plans-list { margin-top: 14px; }
  .trip-plan-card { padding: 19px 15px; border-radius: 12px; }
  .trip-plan-meta { grid-template-columns: 1fr 1fr; }
  .trip-plan-meta div { border-bottom: 1px solid var(--app-line); }
  .trip-plan-meta div:nth-child(2n) { border-right: 0; }
  .trip-plan-meta div:nth-last-child(-n+2) { border-bottom: 0; }
  .trip-plan-official ol { display: block; }
  .trip-plan-official li + li { margin-top: 6px; }
  .trip-plan-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); margin: auto auto calc(82px + env(safe-area-inset-bottom)); padding: 28px 20px 22px; overflow-y: auto; }
  .plan-join-dialog { width: calc(100% - 20px); margin: auto auto calc(82px + env(safe-area-inset-bottom)); padding: 28px 20px 24px; }
}

.trip-plan-open { width: 100%; min-height: 46px; margin-top: 20px; border: 0; border-radius: 8px; color: #fff; background: #263746; font-size: 12px; font-weight: 800; }
.trip-plan-open span { margin-left: 5px; }
.plan-detail { width: min(100%,1100px); margin: 0 auto; }
.plan-detail-back { margin-bottom: 26px; padding: 8px 0; border: 0; color: #5e6a74; background: transparent; font-size: 12px; font-weight: 700; }
.plan-detail-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 34px; align-items: end; padding: clamp(26px,5vw,52px); border-radius: 18px; color: #fff; background: #087cf0; }
.plan-detail-hero .section-kicker { color: #ffe600; }
.plan-detail-hero h2 { margin: 8px 0 10px; font-size: clamp(34px,5vw,58px); line-height: 1.1; letter-spacing: -3px; }
.plan-detail-hero > div > p:last-child { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }
.plan-detail-hero dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.38); border-bottom: 1px solid rgba(255,255,255,.38); }
.plan-detail-hero dl div { min-width: 0; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.25); }
.plan-detail-hero dl div:last-child { border-right: 0; }
.plan-detail-hero dt { margin-bottom: 5px; color: rgba(255,255,255,.68); font-size: 9px; }
.plan-detail-hero dd { margin: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.plan-collab { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 20px 22px; border: 1px solid #cfd7dd; border-radius: 13px; background: #fff; }
.plan-collab > div:first-child { min-width: 0; }
.plan-collab .section-kicker { margin-bottom: 5px; }
.plan-collab strong, .plan-collab span { display: block; }
.plan-collab strong { font-size: 17px; letter-spacing: -.5px; }
.plan-collab span { margin-top: 5px; overflow: hidden; color: var(--app-muted); font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.plan-collab > button, .plan-collab-actions button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: #263746; font-size: 10px; font-weight: 800; white-space: nowrap; }
.plan-collab-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.plan-collab-actions button:first-child { color: #17212b; background: #ffe600; }
.plan-detail-block { margin-top: 16px; padding: clamp(22px,3vw,32px); border: 1px solid var(--app-line); border-radius: 14px; background: #fff; }
.plan-detail-block h3 { margin: 5px 0 0; font-size: 24px; letter-spacing: -1px; }
.plan-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.plan-detail-heading > span { color: var(--app-muted); font-size: 10px; }
.plan-recommendation-basis { margin: -8px 0 18px; border: 1px solid #dbe1e5; border-radius: 9px; background: #f7f9fa; }
.plan-recommendation-basis summary { padding: 12px 14px; color: #3e4b56; font-size: 10px; font-weight: 800; cursor: pointer; }
.plan-recommendation-basis > div { padding: 0 14px 14px; color: var(--app-muted); font-size: 10px; line-height: 1.65; }
.plan-recommendation-basis p { margin: 0; }
.plan-recommendation-basis ol { display: flex; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.plan-recommendation-basis li { padding: 6px 8px; border-radius: 5px; color: #285ea9; background: #e8f1ff; font-weight: 700; }
.plan-place-filters { display: flex; gap: 6px; margin: -5px 0 16px; overflow-x: auto; scrollbar-width: none; }
.plan-place-filters::-webkit-scrollbar { display: none; }
.plan-place-filters button { min-height: 32px; padding: 0 11px; border: 1px solid #d7dee3; border-radius: 99px; color: #5b6771; background: #fff; font-size: 9px; font-weight: 800; white-space: nowrap; }
.plan-place-filters button.selected { border-color: #17212b; color: #fff; background: #17212b; }
.plan-place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.plan-place-card { min-width: 0; overflow: hidden; border: 1px solid #dce2e6; border-radius: 10px; background: #fff; }
.plan-place-card > img, .plan-place-image-fallback { width: 100%; height: 132px; display: block; object-fit: cover; background: #e9edf0; }
.plan-place-image-fallback { display: grid; place-items: center; color: #7d8891; font: 800 8px var(--app-latin); }
.plan-place-card > div { padding: 14px; }
.plan-place-card small { display: block; color: var(--app-blue); font-size: 8px; font-weight: 800; }
.plan-place-card-title { width: 100%; display: block; margin: 5px 0 4px; overflow: hidden; padding: 0; border: 0; color: var(--app-text); background: transparent; font-size: 13px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.plan-place-card-title span { color: var(--app-blue); font-size: 8px; }
.plan-place-card p { height: 30px; margin: 0; overflow: hidden; color: var(--app-muted); font-size: 9px; line-height: 1.55; }
.plan-place-add-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; margin-top: 12px; }
.plan-place-add-row select, .plan-place-add-row button { min-width: 0; height: 34px; border-radius: 6px; font: 700 9px var(--app-font); }
.plan-place-add-row select { padding: 0 7px; border: 1px solid #d4dce1; color: #4c5964; background: #fff; }
.plan-place-add-row button { padding: 0 10px; border: 0; color: #17212b; background: #ffe600; }
.plan-place-more { width: 100%; min-height: 43px; margin-top: 12px; border: 1px solid #d5dce1; border-radius: 8px; color: #4f5c67; background: #fff; font-size: 10px; font-weight: 800; }
.plan-place-more[hidden] { display: none; }
.plan-days { display: grid; gap: 10px; }
.plan-day { display: grid; grid-template-columns: 130px minmax(0,1fr); border: 1px solid #dbe1e5; border-radius: 11px; overflow: hidden; }
.plan-day > header { padding: 20px; color: #17212b; background: #ffe600; }
.plan-day > header span, .plan-day > header strong { display: block; }
.plan-day > header span { font: 800 11px var(--app-latin); letter-spacing: .8px; }
.plan-day > header strong { margin-top: 7px; font-size: 12px; }
.plan-day ol { margin: 0; padding: 4px 20px; list-style: none; }
.plan-day li { min-height: 112px; display: grid; grid-template-columns: 96px 54px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--app-line); }
.plan-day li:last-child { border-bottom: 0; }
.plan-stop-image, .plan-stop-image-fallback { width: 96px; height: 88px; display: block; border-radius: 8px; object-fit: cover; background: #e9edf0; }
.plan-stop-image-fallback { display: grid; place-items: center; color: #fff; background: #087cf0; font: 800 18px var(--app-latin); }
.plan-day time { color: #56626c; font: 700 11px var(--app-latin); }
.plan-day li small, .plan-day li b, .plan-day li p { display: block; }
.plan-day li small { color: var(--app-blue); font-size: 9px; font-weight: 800; }
.plan-day li b { margin-top: 3px; font-size: 13px; }
.plan-day li p { margin: 4px 0 0; color: var(--app-muted); font-size: 10px; }
.plan-place-detail { display: block; margin-top: 3px; padding: 0; border: 0; color: var(--app-text); background: transparent; font-size: 13px; font-weight: 800; text-align: left; }
.plan-place-detail span { margin-left: 5px; color: var(--app-blue); font-size: 8px; white-space: nowrap; }
.plan-place-detail:hover, .plan-place-detail:focus-visible { color: var(--app-blue); outline: none; }
.plan-conflict-summary { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #dbe1e5; border-radius: 8px; color: #58646e; background: #f6f8f9; font-size: 10px; font-weight: 700; line-height: 1.55; }
.plan-conflict-summary.is-loading { color: #52606b; }
.plan-conflict-summary.is-ok { border-color: #b9ddc7; color: #21673d; background: #eef9f2; }
.plan-conflict-summary.is-warning { border-color: #efc2b9; color: #a13b2d; background: #fff2ef; }
.plan-conflict-summary.is-unknown { border-color: #ead69b; color: #765b08; background: #fff9e7; }
.plan-stop-status { width: max-content; display: block; margin-top: 7px; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1; }
.plan-stop-status.is-loading { color: #5d6871; background: #edf0f2; }
.plan-stop-status.is-ok { color: #21673d; background: #e6f5eb; }
.plan-stop-status.is-warning { color: #a13b2d; background: #ffebe6; }
.plan-stop-status.is-unknown { color: #765b08; background: #fff3c9; }
.plan-stop-actions { display: flex; gap: 5px; margin-top: 10px; }
.plan-stop-actions button { min-width: 29px; min-height: 28px; padding: 5px 8px; border: 1px solid #d9dfe4; border-radius: 6px; color: #53606b; background: #fff; font-size: 9px; font-weight: 700; }
.plan-stop-actions button:disabled { opacity: .28; }
.plan-stop-actions button[data-plan-remove] { margin-left: auto; color: #c44237; }
.plan-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-benefits .official-benefit { grid-template-columns: 90px minmax(0,1fr) auto; padding: 14px 0; border-color: var(--app-line); color: var(--app-text); }
.plan-benefits .official-benefit span, .plan-benefits .benefit-more { color: var(--app-blue); }
.plan-benefits .official-benefit strong { color: var(--app-text); }
.plan-benefits .official-benefit small { color: var(--app-muted); }
.plan-benefits .official-benefit em { color: #8c97a0; }
.plan-benefits > .plan-detail-heading { align-items: center; }
.plan-benefits > .plan-detail-heading h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.plan-benefits > .plan-detail-heading > span { flex: 0 0 auto; }
.plan-candidate { padding: 15px 0; border-bottom: 1px solid var(--app-line); }
.plan-candidate:last-child { border-bottom: 0; }
.plan-candidate small, .plan-candidate b, .plan-candidate span { display: block; }
.plan-candidate small { color: var(--app-blue); font-size: 9px; font-weight: 800; }
.plan-candidate b { margin: 5px 0 4px; font-size: 13px; }
.plan-candidate span { color: var(--app-muted); font-size: 10px; }
.plan-event-detail { width: 100%; min-height: 78px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--app-line); color: inherit; background: transparent; text-align: left; }
.plan-event-detail:last-child { border-bottom: 0; }
.plan-event-detail > img { width: 72px; height: 58px; border-radius: 6px; object-fit: cover; background: #e8edf0; }
.plan-event-detail > span small, .plan-event-detail > span b, .plan-event-detail > span em { display: block; }
.plan-event-detail > span b { color: var(--app-text); }
.plan-event-detail > span em { color: var(--app-muted); font-size: 10px; font-style: normal; }
.plan-event-detail > strong { color: var(--app-blue); font-size: 9px; white-space: nowrap; }
.plan-event-detail:hover, .plan-event-detail:focus-visible { outline: none; background: #f5f8fc; }
.plan-detail-empty { margin: 18px 0 0; padding: 20px; border-radius: 8px; color: var(--app-muted); background: #f1f4f6; font-size: 11px; line-height: 1.6; }
.plan-day > .plan-detail-empty { margin: 0; border-radius: 0; }
.plan-detail-budget { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 22px; }
.plan-detail-budget > strong { color: var(--app-blue); font-size: 19px; }
.plan-detail-budget > p { grid-column: 1 / -1; margin: 5px 0 0; color: var(--app-muted); font-size: 10px; }
.plan-detail-source { margin: 14px 2px 0; color: #7e8992; font-size: 9px; text-align: right; }
.plan-replace-dialog { width: min(620px,calc(100% - 28px)); max-height: 82vh; padding: 32px; overflow-y: auto; }
.plan-replace-dialog::backdrop { background: rgba(16,27,37,.48); backdrop-filter: blur(4px); }
.plan-replace-dialog h2 { margin: 8px 0 5px; font-size: 29px; }
.plan-replace-dialog > p:not(.section-kicker) { margin: 0; color: var(--app-muted); font-size: 11px; }
.plan-replace-list { display: grid; gap: 8px; margin-top: 22px; }
.plan-replace-list > button { min-height: 92px; display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 14px; align-items: center; overflow: hidden; padding: 0 14px 0 0; border: 1px solid var(--app-line); border-radius: 10px; color: inherit; background: #fff; text-align: left; }
.plan-replace-list > button:hover, .plan-replace-list > button:focus-visible { border-color: var(--app-blue); outline: none; background: #f3f7ff; }
.plan-replace-list img, .plan-replace-fallback { width: 116px; height: 92px; display: block; object-fit: cover; background: #e8edf0; }
.plan-replace-fallback { display: grid; place-items: center; color: #7f8992; font: 800 8px var(--app-latin); }
.plan-replace-list small, .plan-replace-list b, .plan-replace-list em { display: block; }
.plan-replace-list small { color: var(--app-blue); font-size: 9px; font-weight: 800; }
.plan-replace-list b { margin: 5px 0 4px; font-size: 13px; }
.plan-replace-list em { overflow: hidden; color: var(--app-muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.plan-day-move-dialog { width: min(470px,calc(100% - 28px)); padding: 32px; }
.plan-day-move-dialog::backdrop { background: rgba(16,27,37,.48); backdrop-filter: blur(4px); }
.plan-day-move-dialog h2 { margin: 8px 0 5px; font-size: 29px; }
.plan-day-move-dialog > p:not(.section-kicker) { margin: 0; color: var(--app-muted); font-size: 11px; }
.plan-day-move-list { display: grid; gap: 8px; margin-top: 22px; }
.plan-day-move-list button { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center; min-height: 58px; padding: 10px 14px; border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-text); background: #fff; text-align: left; }
.plan-day-move-list button:hover, .plan-day-move-list button:focus-visible { border-color: var(--app-blue); outline: none; background: #f3f7ff; }
.plan-day-move-list span { color: var(--app-blue); font: 800 10px var(--app-latin); }
.plan-day-move-list strong { font-size: 13px; }
.tour-place-dialog { width: min(980px,calc(100% - 28px)); max-width: 980px; max-height: 90vh; padding: 0; overflow: hidden; }
.tour-place-dialog::backdrop { background: rgba(16,27,37,.52); backdrop-filter: blur(4px); }
.tour-place-dialog .dialog-close { z-index: 3; top: 14px; right: 15px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); }
.tour-place-dialog[open] { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); }
.tour-place-gallery { min-height: 600px; display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 2px; overflow: hidden; color: #6f7a83; background: #e7ebee; font-size: 11px; }
.tour-place-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.tour-place-gallery img:first-child { grid-row: 1 / -1; }
.tour-place-gallery img:first-child:last-child { grid-column: 1 / -1; }
.tour-place-gallery img:first-child:nth-last-child(2), .tour-place-gallery img:first-child:nth-last-child(2) ~ img { grid-row: 1 / -1; }
.tour-place-gallery > span { grid-column: 1 / -1; display: grid; place-items: center; }
.tour-place-copy { min-width: 0; max-height: 90vh; padding: clamp(32px,4vw,50px); overflow-y: auto; }
.tour-place-copy h2 { margin: 8px 0 14px; padding-right: 28px; font-size: clamp(28px,3.4vw,40px); line-height: 1.25; letter-spacing: -1.7px; }
.tour-place-description { max-height: 150px; margin: 0; overflow-y: auto; color: var(--app-muted); font-size: 12px; line-height: 1.75; }
.tour-place-meta { margin: 26px 0 20px; border-top: 1px solid var(--app-line); }
.tour-place-meta div { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--app-line); }
.tour-place-meta dt { color: var(--app-muted); font-size: 10px; }
.tour-place-meta dd { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.55; }
.tour-place-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour-place-actions a { min-height: 46px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; text-decoration: none; }
.tour-place-actions .button-ghost { border: 1px solid #d5dce1; color: #53606b; background: #fff; }
.tour-place-notice { margin: 16px 0 0; color: #8a949c; font-size: 9px; line-height: 1.55; }

@media (max-width: 720px) {
  .plan-detail-back { margin: -4px 3px 14px; }
  .plan-detail-hero { display: block; padding: 26px 20px; border-radius: 13px; }
  .plan-detail-hero h2 { font-size: 34px; letter-spacing: -2px; }
  .plan-detail-hero dl { margin-top: 24px; }
  .plan-detail-hero dl div { padding-inline: 8px; }
  .plan-collab { display: block; padding: 18px 15px; border-radius: 11px; }
  .plan-collab > button { width: 100%; margin-top: 15px; }
  .plan-collab-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; }
  .plan-detail-block { padding: 20px 15px; border-radius: 11px; }
  .plan-detail-heading { display: block; margin-bottom: 16px; }
  .plan-detail-heading > span { display: block; margin-top: 7px; }
  .plan-recommendation-basis ol { display: grid; grid-template-columns: repeat(3,1fr); }
  .plan-recommendation-basis li { padding-inline: 5px; text-align: center; }
  .plan-place-library .plan-detail-heading { margin-bottom: 15px; }
  .plan-place-grid { grid-template-columns: 1fr; gap: 8px; }
  .plan-place-card { display: grid; grid-template-columns: 108px minmax(0,1fr); min-height: 144px; }
  .plan-place-card > img, .plan-place-image-fallback { width: 108px; height: 100%; min-height: 144px; }
  .plan-place-card > div { padding: 12px; }
  .plan-place-card p { height: auto; max-height: 29px; }
  .plan-place-add-row { margin-top: 9px; }
  .plan-place-add-row select, .plan-place-add-row button { height: 32px; }
  .plan-day { display: block; }
  .plan-day > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }
  .plan-day > header strong { margin: 0; }
  .plan-day ol { padding: 3px 13px; }
  .plan-day li { grid-template-columns: 72px minmax(0,1fr); gap: 6px 10px; padding: 10px 0; }
  .plan-stop-image, .plan-stop-image-fallback { grid-row: 1 / span 2; width: 72px; height: 76px; }
  .plan-day time { align-self: end; }
  .plan-stop-copy { grid-column: 2; }
  .plan-stop-actions { flex-wrap: wrap; }
  .plan-stop-actions button[data-plan-remove] { margin-left: 0; }
  .plan-detail-grid { display: block; }
  .plan-event-detail { grid-template-columns: 68px minmax(0,1fr); }
  .plan-event-detail > img { width: 68px; }
  .plan-event-detail > strong { grid-column: 2; }
  .plan-detail-budget { grid-template-columns: 1fr; }
  .plan-detail-budget > strong { margin-top: 10px; }
  .plan-replace-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); margin: auto auto calc(82px + env(safe-area-inset-bottom)); padding: 27px 18px 20px; }
  .plan-day-move-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); margin: auto auto calc(82px + env(safe-area-inset-bottom)); padding: 27px 18px 20px; }
  .plan-replace-list > button { grid-template-columns: 86px minmax(0,1fr); }
  .plan-replace-list img, .plan-replace-fallback { width: 86px; }
  .tour-place-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 28px - env(safe-area-inset-bottom)); margin: auto; overflow-y: auto; border-radius: 15px; }
  .tour-place-dialog[open] { display: block; }
  .tour-place-dialog .dialog-close { position: fixed; top: max(26px,calc(env(safe-area-inset-top) + 14px)); right: 24px; width: 42px; height: 42px; box-shadow: 0 3px 14px rgba(16,27,37,.16); }
  .tour-place-gallery { min-height: 0; height: clamp(220px,36dvh,300px); display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tour-place-gallery::-webkit-scrollbar { display: none; }
  .tour-place-gallery img { min-width: 100%; flex: 0 0 100%; scroll-snap-align: start; }
  .tour-place-gallery > span { min-width: 100%; }
  .tour-place-copy { max-height: none; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .tour-place-copy h2 { margin: 7px 0 13px; padding-right: 0; font-size: 28px; line-height: 1.28; }
  .tour-place-description { max-height: none; font-size: 12px; line-height: 1.72; }
  .tour-place-meta { margin: 22px 0 18px; }
  .tour-place-meta div { grid-template-columns: 66px minmax(0,1fr); gap: 10px; padding: 10px 0; }
  .tour-place-actions { grid-template-columns: 1fr; }
}

/* Compact mobile explore view. */
@media (max-width: 720px) {
  .explore-section {
    padding: calc(72px + env(safe-area-inset-top)) 18px calc(94px + env(safe-area-inset-bottom));
  }
  .explore-header { gap: 8px; }
  .explore-header .section-kicker { margin-bottom: 8px; }
  .explore-header h2 { font-size: 26px; line-height: 1.18; letter-spacing: -1.4px; }
  .explore-header > p { max-width: 460px; font-size: 11px; line-height: 1.55; }
  .region-search {
    min-height: 44px;
    margin-top: 14px;
    padding-inline: 13px;
    gap: 10px;
  }
  .region-search input { font-size: 13px; }
  .explore-tabs {
    width: calc(100% + 36px);
    margin: 10px -18px 12px;
    padding: 0 18px 3px;
    gap: 5px;
  }
  .explore-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 7px 10px;
    white-space: nowrap;
    word-break: keep-all;
    font-size: 10px;
  }
  .city-grid { gap: 7px; }
  .city-card,
  .city-card:nth-child(n) {
    min-height: 96px;
    padding: 12px 52px 12px 13px;
  }
  .city-card .card-region {
    display: block;
    max-width: calc(100% - 28px);
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .city-card .card-index { top: 12px; right: 13px; font-size: 10px; }
  .city-card h3 { margin: 7px 0 3px; font-size: 19px; line-height: 1.2; }
  .city-card p {
    display: block;
    padding: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .city-card-arrow {
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
}
