/* 한걸음 UI renewal — visual tokens/components only; existing layout and behavior live in diary.css/app.js. */
@font-face {
  font-family: Pretendard;
  src: url('./assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cafe24 Dongdong';
  src: url('./assets/fonts/Cafe24Dongdong.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-ui: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-accent: 'Cafe24 Dongdong', var(--font-ui);
  --paper: #fffbf1;
  --white: #fffdf7;
  --surface: #fffefa;
  --surface-soft: #f5f5eb;
  --ink: #203d2a;
  --ink2: #56594e;
  --muted: #79776b;
  --line: #eee6d5;
  --mint: #eaf1e2;
  --mint-dark: #547247;
  --green: #5e8056;
  --green-hover: #49663c;
  --green-soft: #eff1da;
  --shadow: 0 4px 14px rgba(103, 82, 32, .065);
  --radius-sm: 12px;
  --radius-control: 16px;
  --radius-card: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --type-hero: clamp(30px, 4vw, 34px);
  --type-page: clamp(24px, 3vw, 28px);
  --type-section: clamp(20px, 2vw, 22px);
  --type-card: 18px;
  --type-body: 15px;
  --type-caption: 12px;
}
html, body, button, input, select, textarea, .leaflet-container {
  font-family: var(--font-ui);
}
html, body { font-size: 16px; }
body, body.destination-home { background: var(--paper); color: var(--ink); line-height: 1.65; }
button, input, select, textarea { letter-spacing: -.015em; }
button, a { -webkit-tap-highlight-color: #607e5015; }
:focus-visible { outline: 3px solid #789865; outline-offset: 4px; }
button:disabled { opacity: .5; }
h1, h2, h3, strong { letter-spacing: -.025em; }
h1 { font-size: var(--type-page); font-weight: 700; line-height: 1.4; }
h2 { font-size: var(--type-section); font-weight: 600; line-height: 1.5; }
h3 { font-size: var(--type-card); font-weight: 600; line-height: 1.5; }
p { font-size: var(--type-body); line-height: 1.75; }
small, .small { font-size: var(--type-caption); line-height: 1.65; color: var(--muted); }
.eyebrow { font-size: var(--type-caption); font-weight: 600; letter-spacing: .035em; color: var(--mint-dark); }
.hero-copy h1, .diary-section-head h2, .city-intro p, .travel-note h2, .home-journal h2 { font-family: var(--font-accent); font-weight: 400; }
.hero-copy h1 { font-size: var(--type-hero); line-height: 1.42; letter-spacing: -.035em; font-weight: 700; }
.hero-copy p { font: 400 14px/1.85 var(--font-ui); color: var(--ink2); }
.page-head h1, .routes-page>.page-head h1, .planner-page>.page-head h1,
.city-intro h1, .place-page-body>h1, .route-overview-heading h1 { font-size: var(--type-page); font-weight: 700; line-height: 1.4; }
.diary-section-head h2 { font-size: 29px; font-weight: 400; line-height: 1.25; }
.place-tab-content>h2, .explore-sheet-title h2 { font-size: var(--type-section); font-weight: 600; }
.diary-section-head .eyebrow { font-size: var(--type-caption); margin-bottom: 6px; }
.diary-section-head .small { font-size: var(--type-caption); }
.site-header, .destination-home .site-header { background: #fffbf1f5; border-color: transparent; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.025em; flex-shrink: 0; }
.brand-logo { display: block; width: 150px; height: 50px; object-fit: contain; }
.brand-mark, .destination-home .brand-mark { background: var(--green); border-radius: 11px; transform: none; }
.connection, .destination-home .connection { background: var(--green-soft); border-color: var(--line); color: var(--mint-dark); font-size: 12px; }
.btn { min-height: 48px; padding: 11px 18px; border-radius: var(--radius-control); font-size: 14px; font-weight: 600; line-height: 1.5; box-shadow: none; }
.btn-primary, .filter-chip.active, .region-tab.active { background: var(--green); border-color: var(--green); color: white; }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-outline { background: var(--surface); border-color: #dce3d3; color: var(--mint-dark); }
.btn-outline:hover { background: var(--green-soft); }
.btn-danger { background: var(--bad); color: #fff; }
.text-button { color: var(--mint-dark); font-size: 13px; font-weight: 600; min-height: 40px; }
.round-control { width: 44px; height: 44px; background: #fffffff2; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.text-field, .select-field, .area-field { border-radius: var(--radius-control); min-height: 48px; background: var(--surface); border-color: #dce1d5; font-size: 15px; line-height: 1.6; }
.field-label, label { font-weight: 500; }
.card, .panel, .route-card, .saved-card, .action-tile, .route-theme-choice,
.theme-discovery, .discovery-card, .destination-grid .destination-tile {
  border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.card, .panel, .saved-card { padding: var(--space-6); }
.pill { border-radius: 999px; background: var(--green-soft); color: var(--mint-dark); font-size: 12px; font-weight: 500; }
.filter-chip { min-height: 40px; border-radius: 999px; background: var(--surface); border-color: var(--line); font-size: 13px; font-weight: 500; }
.notice:not(.warn):not(.bad) { background: var(--surface-soft); border-color: var(--line); }
.notice, .empty-state { border-radius: var(--radius-control); font-size: 14px; line-height: 1.75; }
.modal { background: var(--white); border-radius: var(--radius-card); }
.modal h2 { font-size: var(--type-section); }
.entry-time-help { margin: 14px 0 0; }
/* Home: restrained atmosphere; photography remains the strongest visual. */
.diary-hero { background-image: url('./assets/diary/reference-landscape.png'); background-color: var(--paper); background-position: center bottom; background-size: 100% 100%; min-height: 340px; padding: 32px 42px; border-radius: var(--radius-card); }
.diary-hero:after { background: linear-gradient(90deg, #fffbf120, transparent); }
.hero-copy .eyebrow { font-size: 12px; letter-spacing: .025em; }
.hero-copy h1 { margin: 10px 0 14px; font-size: 52px; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
.hero-turtle { width: 238px; height: 238px; right: 10%; bottom: 4px; transform: rotate(-3deg); }
.hero-note { font: 400 23px/1.4 var(--font-accent); color: #61734c; top: 34px; }
.destination-search { border-radius: 999px; background: #fffffff5; border-color: var(--line); box-shadow: 0 4px 12px #69502010; padding: 8px 10px 8px 18px; margin-bottom: 18px; }
.destination-search input { font-size: 15px; min-height: 44px; }
.destination-search input::placeholder { color: #7c8477; }
.destination-search button { background: transparent; color: var(--mint-dark); width: 44px; height: 44px; border-radius: 50%; }
.home-moods { gap: 8px; padding-bottom: 28px; }
.home-moods button { font-size: 13px; padding: 9px 15px; min-height: 40px; color: var(--ink2); background: #fffef9; }
.home-moods button.active { background: var(--green); color: white; }
.diary-section-head { margin-bottom: var(--space-5); align-items: center; }
.home-discover-layout { display: block; }
.destination-grid, .destination-grid.is-single { gap: var(--space-6); }
.destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.destination-picture { height: clamp(300px, 32vw, 390px); }
.destination-grid .destination-tile:hover { box-shadow: 0 5px 20px #3446280d; }
.destination-grid.is-single .destination-picture { height: 270px; }
.destination-tile .destination-picture img { object-position: center 48%; }
.discovery-card .place-visual[data-kind="example"] .media-caption { display: block; left: 8px; right: 8px; bottom: 8px; width: fit-content; max-width: calc(100% - 16px); font-size: 10px; line-height: 1.35; white-space: normal; }
.destination-tile .destination-copy { position: relative; margin-top: -14px; border-radius: 22px 24px 0 0; background: var(--surface); padding: 20px 22px; gap: 8px; }
.destination-copy strong { font-size: 22px; font-weight: 700; }
.destination-copy small { font-size: 14px; color: var(--ink2); line-height: 1.6; }
.destination-meta { font-size: 12px; color: var(--muted); margin-top: 8px; gap: 8px; }
.destination-meta>span { width: 32px; height: 32px; background: var(--green-soft); }
.destination-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.destination-tags>span { background: var(--green-soft); color: var(--mint-dark); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 500; }
.picture-label { font-size: 12px; background: #ffffffee; color: var(--ink); top: 16px; bottom: auto; left: 16px; padding: 5px 11px; }
.picture-stamp { width: 32px; height: 32px; border-width: 1px; right: 14px; bottom: 14px; box-shadow: none; opacity: .9; }
.picture-stamp .ui-icon { width: 23px; height: 23px; }
.home-journal { background: #f4f3e0; border: 1px solid #e9e5ce; border-radius: var(--radius-card); padding: 28px; }
.journal-label { font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.home-journal h2 { font-size: 32px; font-weight: 400; line-height: 1.3; }
.home-journal p { font-size: 14px; line-height: 1.8; color: var(--ink2); }
.home-journal .turtle-pose { width: 115px; height: 115px; }
.home-journal .text-button { font-size: 13px; }
.home-footnote { font-size: 12px; line-height: 1.8; }
.photo-attribution { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.photo-attribution a { color: inherit; text-underline-offset: 3px; }
/* Existing regional and place detail hierarchy. */
.city-cover, .place-cover { background: var(--green-soft); }
.city-cover>img { object-position: center 44%; }
.cover-label { font-size: 12px; color: #3f5138; background: #ffffffed; max-width: calc(100% - 40px); }
.city-body, .place-page-body { background: var(--paper); border-radius: 28px 28px 0 0; }
.city-intro { position: relative; align-items: flex-start; margin-bottom: 24px; min-height: 160px; }
.city-intro .eyebrow { font-size: 12px; }
.city-intro p { font: 400 16px/1.7 var(--font-ui); color: var(--ink2); max-width: 310px; }
.city-intro .pill { font-size: 12px; }
.city-intro>.turtle-pose { display: block; position: absolute; right: 8px; bottom: -8px; width: 128px; height: 128px; }
.city-tabs { margin-bottom: 28px; border-bottom-color: var(--line); }
.city-tabs button { min-height: 50px; font-size: 14px; font-weight: 600; color: var(--muted); }
.city-tabs button[aria-selected=true] { color: var(--mint-dark); border-bottom-color: var(--green); }
.theme-discovery-list { gap: 16px; margin-bottom: 32px; }
.theme-discovery { padding: 12px; gap: 14px; grid-template-columns: 82px minmax(0,1fr) 14px; }
.theme-discovery strong, .route-theme-choice strong { font-size: var(--type-card); line-height: 1.5; font-weight: 600; margin-bottom: 6px; }
.theme-discovery small, .route-theme-choice small { font-size: 13px; line-height: 1.65; color: var(--ink2); }
.theme-discovery em { font-size: 12px; color: var(--mint-dark); }
.theme-art { border-radius: var(--radius-control); height: 92px; background: #fff5d8; }
.theme-art:before { opacity: .2; }
.theme-art .ui-icon { width: 36px; height: 36px; }
.discovery-grid { gap: 16px; }
.discovery-card { padding-bottom: 16px; }
.discovery-card strong { font-size: 17px; font-weight: 600; line-height: 1.5; margin: 14px 14px 5px; }
.discovery-card>small { font-size: 12px; margin: 0 14px; }
.reservation-card-meta { display: grid; gap: 2px; margin: 10px 14px 0; padding: 8px 10px; border-radius: 10px; background: #fff3d9; color: #604413; font-size: 12px; line-height: 1.45; text-align: left; }
.reservation-card-meta b { font-weight: 700; }
.reservation-card-meta span { overflow-wrap: anywhere; }
.place-row-copy .reservation-card-meta { margin: 6px 0 0; }
.reservation-facts { margin: 20px 0; }
.reservation-facts h2 { margin-bottom: 10px; }
.reservation-facts a { display: inline-block; margin: 4px 0; overflow-wrap: anywhere; }
.reservation-warning-list { display: grid; gap: 10px; max-height: 40vh; overflow-y: auto; margin: 16px 0; padding: 0; list-style: none; }
.reservation-warning-list li { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf0; font-size: 14px; line-height: 1.65; }
.reservation-warning-list span { color: var(--ink2); }
.discovery-card .place-visual.is-cover { height: 154px; }
.place-visual.is-cover { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.place-visual[data-kind=decoration] { background-color: #f0f3e8; }
.media-caption { font-size: 12px; line-height: 1.45; border-radius: 10px; background: #ffffffed; color: #526044; }
.discovery-card .media-caption { font-size: 12px; bottom: 7px; right: 7px; left: 7px; width: fit-content; max-width: calc(100% - 14px); padding: 3px 6px; }
.place-address { font-size: 14px; line-height: 1.8; color: var(--muted); }
.place-rating { font-size: 12px; line-height: 1.7; color: var(--muted); }
.place-page-body>h1 { margin: 6px 0 10px; }
.place-quick-actions { gap: 12px; margin: 24px 0 28px; }
.place-quick-actions button, .place-quick-actions a { min-height: 90px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 600; gap: 10px; }
.place-quick-actions .ui-icon { width: 24px; height: 24px; color: var(--mint-dark); }
.place-quick-actions a:last-child { background: var(--surface); }
.place-quick-actions button:hover, .place-quick-actions a:hover { background: var(--green-soft); border-color: #cfdcc4; }
.travel-note { border-radius: 20px; background: #eef0d8; border: 1px solid #e9eacb; padding: 20px; gap: 16px; margin-bottom: 28px; align-items: center; }
.travel-note>.turtle-pose { width: 68px; height: 78px; flex: none; }
.travel-note h2 { font-size: 25px; font-weight: 400; margin-bottom: 8px; line-height: 1.25; }
.travel-note p { font-size: 14px; line-height: 1.85; color: var(--ink2); }
.info-pair { gap: 16px; }
.info-pair>div { background: var(--surface); border-radius: var(--radius-card); padding: 24px; border-color: var(--line); box-shadow: var(--shadow); }
.info-pair strong { font-size: 17px; font-weight: 600; }
.info-pair p { font-size: 14px; line-height: 1.8; }
.city-cta { background: #fffbf1f5; gap: 12px; padding: 12px 0; }
.city-cta .btn, .place-main-cta { font-size: 14px; min-height: 50px; }
.place-page .schedule-facts p, .place-page .schedule-week p { font-size: 14px; line-height: 1.8; }
.schedule-facts p, .schedule-week { background: var(--surface); border-color: var(--line); border-radius: var(--radius-sm); }
/* Map controls only: tile source, locations, markers and route semantics are untouched. */
.explore-topbar h1 { font-size: 20px; font-weight: 600; }
.view-switch { background: #eef1e8; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.view-switch button { font-size: 13px; min-height: 36px; min-width: 56px; font-weight: 500; border-radius: 999px; }
.view-switch button.active { background: var(--green); color: white; box-shadow: none; }
.explore-search-form { background: #fffefaf5; border-radius: 999px; border-color: var(--line); box-shadow: var(--shadow); }
.explore-search-form input { font-size: 15px; min-height: 44px; }
.explore-search-form button { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--mint-dark); }
.explore-search .filter-chip { font-size: 13px; min-height: 40px; padding: 8px 12px; background: #fffffffa; box-shadow: 0 2px 8px #31492709; }
.explore-search .filter-chip.active { background: var(--green); color: white; }
.explore-sheet { background: var(--white); }
.explore-sheet-title .eyebrow { font-size: 12px; }
.explore-sheet-title h2 { font-size: 20px; line-height: 1.45; }
.explore-sheet-title h2 small, .explore-sheet-title>.small { font-size: 12px; color: var(--muted); }
.explore-sheet .place-row { grid-template-columns: minmax(0,1fr) 44px; background: var(--surface); border-color: var(--line); border-radius: var(--radius-control); box-shadow: 0 2px 7px #36452803; cursor: pointer; }
.explore-sheet .place-row.is-focused { border-color: var(--green); background: var(--green-soft); }
.explore-sheet .place-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.explore-sheet .place-row-main .place-visual { flex: none; }
.explore-sheet .place-row-main .place-row-copy { flex: 1; }
.explore-sheet .place-row-open { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--green-soft); cursor: pointer; }
.explore-sheet .place-row-open:hover, .explore-sheet .place-row-open:focus-visible { background: var(--green-soft); }
.explore-sheet .place-row strong { font-size: 17px; line-height: 1.5; font-weight: 600; }
.explore-sheet .place-row small, .place-row-copy .place-row-category { font-size: 12px; line-height: 1.55; color: var(--muted); }
.place-row-copy .place-row-category { margin-bottom: 3px; color: var(--mint-dark); }
.map-evidence { font-size: 12px; color: var(--muted); line-height: 1.6; }
.explore-actions .btn { font-size: 14px; min-height: 46px; }
.recenter-control { width: 46px; height: 46px; color: var(--mint-dark); background: white; border-radius: 50%; box-shadow: var(--shadow); }
.explore-map .leaflet-control-zoom { margin-bottom: 90px; }
.explore-search .filter-strip { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-inline: contain; user-select: none; cursor: grab; }
.explore-search .filter-strip::-webkit-scrollbar { display: none; }
.explore-search .filter-strip:active { cursor: grabbing; }
.explore-search .filter-chip { flex: 0 0 auto; }
.map-lock-control { position: absolute; left: 18px; bottom: 70px; z-index: 450; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #d9dfd1; border-radius: 50%; background: #fffdf5f2; color: var(--ink); box-shadow: 0 2px 9px #263d2626; font-size: 19px; }
.map-lock-control[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.map-is-locked .leaflet-control-zoom { opacity: .4; pointer-events: none; }
.map-is-locked .recenter-control { opacity: .4; }
.map-location-label { font-size: 12px; background: #fffffff0; color: var(--ink2); }
.kakao-place-pin { border: 2px solid white!important; box-shadow: 0 2px 5px #293b3029!important; }
.route-map-pin { background: var(--green); border-color: white; box-shadow: 0 2px 6px #293b3026; }
.route-map-pin--home { background: #425f35; }
/* Shared itinerary, saved plans, forms and empty states. */
.routes-page>.page-head, .planner-page>.page-head { background: #f1f4ea; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.routes-page>.page-head p, .planner-page>.page-head p { font-size: 14px; line-height: 1.8; }
.routes-page .route-mode-tabs { background: #eef1e8; border-color: var(--line); border-radius: 999px; }
.route-mode-tabs .filter-chip { font-size: 14px; min-height: 44px; }
.route-mode-tabs .filter-chip.active { background: var(--green); }
.route-theme-grid { gap: 14px; }
.route-theme-choice { padding: 18px; min-height: 132px; }
.route-theme-choice.active { background: var(--green-soft); border-color: #94ad80; box-shadow: inset 0 0 0 1px #94ad80; }
.route-place-selected { background: var(--green-soft); border-color: #d5e1c9; }
.route-place-selected strong { font-size: 14px; }
.route-current-btn { font-size: 12px; min-height: 36px; border-radius: var(--radius-sm); color: var(--mint-dark); }
.route-place-match { font-size: 14px; padding: 12px; }
.route-meal-panel, .route-period { background: var(--surface); border-color: var(--line); }
.route-period.active, .route-meal-option { background: var(--green-soft); border-color: #dce5d3; }
.route-meal-option { border-radius: var(--radius-control); }
.route-meal-option strong { font-size: 17px; font-weight: 600; }
.route-meal-option small { font-size: 12px; }
.route-overview-stats { background: var(--green-soft); border-color: var(--line); border-radius: var(--radius-card); }
.route-overview-stats small { font-size: 12px; color: var(--muted); }
.route-overview-stats strong { font-size: 24px; font-weight: 700; }
.route-overview-stats strong span { font-size: 13px; }
.route-overview-stats>div { border-right-color: #dbe4d1; }
.route-stop { border-top-color: #d5dfcb; }
.route-gap { background: #f0f4e9; font-size: 13px; }
.route-result-map-wrap { border-color: var(--line); border-radius: var(--radius-card); }
.route-reverse-btn { min-height: 40px; border-radius: var(--radius-sm); font-size: 13px; }
.plan-aside { background: #f3f5ec; }
.slot-content { border-color: var(--line); background: var(--surface); border-radius: var(--radius-control); padding: 16px; }
.slot-content h3 { font-size: 17px; font-weight: 600; }
.slot-content p { font-size: 14px; line-height: 1.7; }
.slot-time { font-size: 14px; color: var(--mint-dark); }
.slot-time small { font-size: 12px; }
.slot-empty { font-size: 14px; color: var(--muted); }
.slot-empty .btn { font-size: 13px; min-height: 40px; }
.saved-card h3 { font-size: 18px; font-weight: 600; }
.empty-state { background: var(--white); border-color: #cfdcc3; padding: 32px 24px; }
.turtle-aside, .turtle-journey { max-width: 82px; max-height: 90px; }
.turtle-empty { max-width: 100px; max-height: 110px; }
.bottom-nav, .destination-home .bottom-nav { background: #fffefbf7; border-color: var(--line); box-shadow: 0 -2px 12px #38462606; }
.bottom-nav button { font-size: 12px; font-weight: 500; color: #737c6c; min-height: 66px; gap: 4px; }
.bottom-nav button.active { color: var(--mint-dark); font-weight: 600; }
.bottom-nav button.active>span { background: transparent; }
/* Diary details are decorative layers; all hit targets and data remain intact. */
.diary-hero .hero-copy .eyebrow, .destination-page>.diary-section-head .eyebrow, .city-intro .eyebrow { display: none; }
.hero-copy p { max-width: 230px; }
.destination-copy:after { content: ''; position: absolute; width: 56px; height: 62px; right: 15px; top: -36px; background: url('./assets/diary/flowers.svg') center/contain no-repeat; pointer-events: none; }
.destination-tags>span:nth-child(1) { background: #e5f0ee; color: #466b69; }
.destination-tags>span:nth-child(2) { background: #edf0e4; }
.destination-tags>span:nth-child(3) { background: #fbedd4; color: #897044; }
.city-body:before { content: ''; position: absolute; left: 0; right: 0; height: 30px; top: -18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath fill='%23fffbf1' d='M0 22Q65-4 140 15T290 26 440 13 600 24V40H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; pointer-events: none; }
.city-intro { padding-right: 130px; }
.city-intro h1 { font: 400 43px/1.2 var(--font-accent); margin: 2px 0 8px; }
.city-turtle-note { position: absolute; top: -5px; right: 0; width: 98px; padding: 14px 6px; border: 1px solid #d5c698; border-radius: 48% 52% 45% 50%; background: #fffdf7; text-align: center; font: 400 17px/1.3 var(--font-accent); transform: rotate(3deg); }
.city-turtle-note:after { content: ''; position: absolute; bottom: -6px; left: 18px; width: 12px; height: 12px; border-left: 1px solid #d5c698; background: var(--paper); transform: skewY(-35deg); }
.theme-art { background-image: url('./assets/diary/route-doodles.svg'); background-size: 600% 100%; background-repeat: no-repeat; }
.theme-discovery--custom { grid-column: 1 / -1; }
.theme-art.theme-custom { background: #f2f4e8 url('./assets/diary/custom-route.svg') center/contain no-repeat; }
.theme-art:before, .theme-art .ui-icon { visibility: hidden; }
.theme-first { background-position: 0% 0; }.theme-history { background-position: 20% 0; }.theme-sea { background-position: 40% 0; }.theme-shops { background-position: 60% 0; }.theme-food { background-position: 80% 0; }.theme-cafe { background-position: 100% 0; }
/* Each Gyeongju card shows the landmark that defines its regional theme. */
.theme-art.theme-royal, .theme-art.theme-wolseong, .theme-art.theme-market,
.theme-art.theme-bomun, .theme-art.theme-bulguksa, .theme-art.theme-gampo,
.theme-art.theme-munmu, .theme-art.theme-yangnam {
  background-image: url('./assets/diary/gyeongju-themes.svg');
  background-size: 800% 100%;
}
.theme-art.theme-royal { background-position: 0% 0; }
.theme-art.theme-wolseong { background-position: 14.2857% 0; }
.theme-art.theme-market { background-position: 28.5714% 0; }
.theme-art.theme-bomun { background-position: 42.8571% 0; }
.theme-art.theme-bulguksa { background-position: 57.1429% 0; }
.theme-art.theme-gampo { background-position: 71.4286% 0; }
.theme-art.theme-munmu { background-position: 85.7143% 0; }
.theme-art.theme-yangnam { background-position: 100% 0; }
.place-page-body:before { content: ''; display: block; position: absolute; top: 10px; right: 15px; width: 39px; height: 44px; background: url('./assets/diary/flowers.svg') center/contain no-repeat; pointer-events: none; opacity: .8; }
.place-page-body>.eyebrow { padding-right: 38px; }
.empty-state { background-image: url('./assets/diary/flowers.svg'); background-position: right 16px bottom 14px; background-size: 48px 56px; background-repeat: no-repeat; }
@media (max-width: 900px) {
  .destination-picture { height: clamp(270px, 37vw, 330px); }
  .explore-map { bottom: 292px; }
  .explore-sheet { min-height: 310px; max-height: 325px; padding: 22px 18px 16px; }
  .explore-sheet-title { margin-bottom: 14px; }
  .explore-sheet .place-list { max-height: 104px; }
  .explore-sheet .place-row { width: 300px; min-height: 96px; grid-template-columns: minmax(0,1fr) 44px; }
  .explore-sheet .place-visual.is-thumb { width: 60px; height: 70px; }
  .map-evidence { margin: 10px 0; }
  .recenter-control { bottom: 52px; }
  .map-lock-control { bottom: 65px; }
  .list-mode .explore-sheet { max-height: none; }
  .list-mode .explore-sheet .place-list { max-height: none; }
  .list-mode .explore-sheet .place-row { width: auto; }
}
@media (max-width: 620px) {
  .destination-page { padding-inline: 20px; }
  .diary-hero { min-height: 282px; padding: 20px 26px 24px; margin: 0 -20px; border-radius: 0; background-size: auto 100%; }
  .hero-copy h1 { font-size: 42px; margin: 8px 0 12px; }
  .hero-copy .eyebrow { font-size: 12px; }
  .hero-copy p { font-size: 14px; }
  .hero-turtle { width: 167px; height: 174px; right: 3px; bottom: -1px; }
  .hero-note { display: none; }
  .destination-search { padding: 7px 8px 7px 17px; gap: 9px; margin-top: -23px; margin-bottom: 14px; }
  .destination-search input { font-size: 14px; }
  .home-moods { justify-content: flex-start; gap: 6px; padding-bottom: 18px; }
  .home-moods button { font-size: 13px; padding-inline: 13px; }
  .diary-section-head { gap: 12px; margin-bottom: 16px; }
  .diary-section-head h2 { font-size: 28px; font-weight: 400; }
  .diary-section-head .small { font-size: 12px; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .destination-picture { height: clamp(145px, 43vw, 210px); }
  .destination-grid.is-single .destination-picture { height: 214px; }
  .destination-tile .destination-copy { padding: 14px 12px; }
  .destination-copy strong { font-size: 19px; }
  .destination-copy small { font-size: 12px; }
  .destination-tags>span { font-size: 10px; padding: 3px 6px; }
  .destination-meta { font-size: 10px; }
  .home-journal { margin-top: 24px; min-height: 190px; padding: 22px; }
  .home-journal h2 { font-size: 29px; line-height: 1.3; margin-top: 10px; }
  .home-journal .turtle-pose { width: 95px; height: 100px; bottom: 24px; }
  .home-journal .text-button { font-size: 13px; bottom: 16px; }
  .home-footnote { font-size: 12px; }
  .city-cover, .place-cover { height: 312px; }
  .city-body, .place-page-body { padding: 24px 20px 0; }
  .city-intro h1, .place-page-body>h1 { font-size: 27px; }
  .city-intro { padding-right: 107px; min-height: 162px; margin-bottom: 16px; }
  .city-intro h1 { font-size: 40px; }
  .city-intro>.turtle-pose { width: 110px; height: 118px; right: -3px; bottom: -8px; }
  .city-turtle-note { right: -2px; top: -3px; width: 94px; font-size: 16px; }
  .city-intro p { font-size: 14px; max-width: 230px; }
  .cover-label { right: 16px; font-size: 12px; }
  .city-tabs button { font-size: 14px; min-height: 50px; }
  .theme-discovery { grid-template-columns: 72px minmax(0,1fr) 12px; gap: 12px; padding: 12px; }
  .theme-discovery strong { font-size: 17px; }
  .theme-discovery small { font-size: 13px; }
  .theme-art { height: 88px; }
  .theme-discovery em { font-size: 12px; }
  .discovery-grid { gap: 14px; }
  .discovery-card .place-visual.is-cover { height: 136px; }
  .discovery-card strong { font-size: 17px; margin-inline: 12px; }
  .discovery-card>small { margin-inline: 12px; font-size: 12px; }
  .city-cta { bottom: 76px; gap: 10px; }
  .city-cta .btn { padding-inline: 10px; font-size: 14px; }
  .travel-note { padding: 16px 12px; gap: 8px; }
  .travel-note>.turtle-pose { width: 76px; height: 88px; }
  .travel-note h2 { font-size: 25px; }
  .travel-note p { font-size: 14px; }
  .place-quick-actions { gap: 10px; }
  .place-quick-actions button, .place-quick-actions a { min-height: 88px; font-size: 13px; }
  .place-address { font-size: 14px; }
  .place-main-cta { font-size: 14px; }
  .explore-topbar { height: 64px; gap: 9px; padding-inline: 16px; }
  .explore-topbar h1 { font-size: 18px; }
  .explore-topbar .round-control { width: 40px; height: 40px; }
  .view-switch button { min-width: 46px; font-size: 13px; }
  .explore-workspace { height: calc(100dvh - 140px); min-height: 630px; }
  .explore-search { left: 14px; right: 14px; top: 10px; }
  .explore-search-form input { font-size: 14px; }
  .explore-search .filter-chip { font-size: 13px; min-height: 40px; }
  .explore-sheet { padding: 22px 16px 16px; }
  .explore-sheet-title h2 { font-size: 20px; }
  .explore-sheet-title .eyebrow { font-size: 12px; }
  .explore-sheet .place-row strong { font-size: 17px; }
  .explore-sheet .place-row small { font-size: 12px; }
  .explore-actions .btn { font-size: 14px; }
  .map-evidence { font-size: 12px; }
  .routes-page>.page-head, .planner-page>.page-head { padding: 22px 20px; }
  .routes-page>.page-head h1, .planner-page>.page-head h1, .route-overview-heading h1 { font-size: 24px; }
  .routes-page>.page-head p, .planner-page>.page-head p { font-size: 14px; }
  .route-overview-heading .eyebrow { font-size: 12px; }
  .route-mode-tabs .filter-chip { font-size: 14px; }
  .route-theme-grid { gap: 12px; }
  .route-theme-choice { padding: 16px 14px; min-height: 152px; }
  .route-theme-choice strong { font-size: 17px; }
  .route-theme-choice small { font-size: 13px; }
  .routes-page>.card, .planner-page .card { padding: 20px; }
  .route-overview-stats strong { font-size: 22px; }
  .route-overview-stats strong span { font-size: 12px; }
  .route-overview-stats small { font-size: 12px; }
  .slot-time { font-size: 13px; }
  .slot-time small { font-size: 12px; }
  .slot-content h3 { font-size: 17px; }
  .slot-content p { font-size: 14px; }
  .slot-empty .btn { font-size: 13px; }
  .bottom-nav button { font-size: 12px; min-height: 66px; }
}
@media (max-width: 374px) {
  .hero-copy h1 { font-size: 38px; }
  .hero-turtle { width: 143px; right: 0; }
  .home-moods { gap: 3px; }
  .home-moods button { padding-inline: 11px; }
  .place-quick-actions { gap: 7px; }
  .explore-topbar h1 { font-size: 17px; }
  .explore-topbar { padding-inline: 12px; gap: 7px; }
  .explore-sheet-title>.small { white-space: normal; max-width: 82px; text-align: right; }
}
@media (min-width: 1100px) {
  .bottom-nav, .destination-home .bottom-nav { background: transparent; box-shadow: none; }
  .bottom-nav button { font-size: 14px; }
  .bottom-nav button.active>span { background: transparent; }
  .city-cta { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none!important; scroll-behavior: auto!important; }
}
.place-price { margin: 0 0 22px; padding: 19px 21px; border: 1px solid #dce5d4; border-radius: 20px; background: #f8faf2; }
.place-price-heading, .place-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place-price-heading h2 { margin: 0; font-size: 1.08rem; }
.place-price-heading span, .place-price-caveat { color: #697468; font-size: .73rem; }
.place-price-row { margin: 16px 0 9px; flex-wrap: wrap; }
.place-price-row strong { font-size: .93rem; }
.place-price-row b { color: #32624e; font-size: 1.1rem; }
.place-price p { margin: 8px 0; line-height: 1.6; font-size: .78rem; }
.place-price a { display: inline-block; margin-top: 5px; color: #32624e; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.place-price .place-price-caveat { margin-bottom: 0; }

.map-quick-add { position: fixed; top: 50%; left: 50%; z-index: 1100; transform: translate(-50%, -50%); display: grid; gap: 5px; width: min(244px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 36px #07192444; }
#modal-root .modal-backdrop { z-index: 1150; }
.map-quick-add-name { margin-bottom: 3px; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.35; }
.map-quick-add-name { cursor: grab; touch-action: none; user-select: none; }
.map-quick-add-name.dragging { cursor: grabbing; }
.map-quick-add label { font-size: .76rem; font-weight: 700; color: var(--ink2); }
.map-quick-add .text-field { min-height: 40px; padding: 7px 9px; font-size: .9rem; }
.map-quick-transparency { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.map-quick-transparency label { white-space: nowrap; }
.map-quick-transparency input { flex: 1; min-width: 0; min-height: 40px; accent-color: var(--mint-dark); }
.map-quick-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 5px; }
.map-quick-add-actions .btn { min-height: 44px; padding: 7px; }
.map-quick-add :focus-visible { outline: 3px solid var(--mint-dark); outline-offset: 2px; }
.reservation-card{display:block;margin:8px 0 0;font-size:12px;line-height:1.5;color:#684d31;text-align:left}
.reservation-card>span,.reservation-card b,.reservation-card span span{display:block}
.reservation-card>span+span{margin-top:6px}
.reservation-item{padding:12px 0;border-bottom:1px solid #e5dccf}
.reservation-item p{margin:8px 0;overflow-wrap:anywhere}
.reservation-warning{z-index:2000}
.reservation-warning .modal{max-height:85dvh;overflow-y:auto}
.reservation-warning .modal-actions{position:sticky;bottom:0;background:#fffdf8;padding:12px 0}
.reservation-warning .btn{min-height:44px}
.reservation-warning :focus-visible{outline:3px solid #49634b;outline-offset:3px}
.evidence-date{display:block;color:#666;font-size:12px;margin:4px 0 8px}
.solo-research p{overflow-wrap:anywhere}
/* Saved Gyeongju route selector and stop list */
.saved-route-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.saved-route-tabs .filter-chip{min-height:44px}
.saved-route-overview h2{margin:0 0 6px}
.saved-route-overview>p:first-of-type{margin:0 0 14px;color:var(--ink2)}
.saved-route-stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
.saved-route-stop{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:10px 2px;border-top:1px solid var(--line)}
.saved-route-number{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#123348;color:#fff;font-size:.8rem;font-weight:800}
.saved-route-stop>div{min-width:0}
.saved-route-stop strong,.saved-route-stop small{display:block}
.saved-route-stop strong{font-size:.91rem;line-height:1.45}
.saved-route-stop small{margin-top:3px;color:var(--ink2);font-size:.75rem;line-height:1.5}
.saved-route-stops h3,.saved-route-meals h3,.saved-route-transit h3{grid-column:1/-1;margin:18px 0 8px;font-size:1rem}
.saved-route-meals,.saved-route-transit{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fffefa}
.saved-route-meals>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.saved-route-meal{display:grid;align-content:start;gap:5px;padding:12px;border-radius:12px;background:#f4f3e9}
.saved-route-meal strong,.saved-route-meal small,.saved-route-transit li strong,.saved-route-transit li small{display:block}
.saved-route-meal strong,.saved-route-transit li strong{font-size:.85rem;line-height:1.5}
.saved-route-meal small,.saved-route-transit li small{color:var(--ink2);font-size:.72rem;line-height:1.55}
.saved-route-transit ol{display:grid;gap:8px;padding-left:22px}
.saved-route-transit li{padding:5px 0 5px 3px}
.saved-route-source{line-height:1.7}
.saved-route-tabs .filter-chip:focus-visible,.route-theme-choice:focus-visible{outline:3px solid #087a61;outline-offset:2px}
@media(max-width:620px){.saved-route-stops{grid-template-columns:1fr}.saved-route-tabs{gap:6px}.saved-route-tabs .filter-chip{flex:1 1 42%;white-space:normal}.saved-route-meals>div{grid-template-columns:1fr}.saved-route-meal{padding:10px}}
