/* 3초 여행 — Redesign Components
 * Cards, buttons, chips, FAB-derived elements, forms, sheets, etc.
 */

/* ===================== HERO ===================== */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 248px;
  padding: 24px;
  background: #111418;
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-text { position: relative; z-index: 2; max-width: 100%; }
.hero-greet { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.72); }
.hero-title {
  margin: 8px 0 10px;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero-sub { font-size: 14px; color: rgba(255,255,255,.72); }
.hero-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: #fff;
  border-radius: 999px;
  color: var(--c-primary-strong);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  transition: transform .15s ease;
}
.hero-cta:active { transform: scale(.97); }
.hero-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-illust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ===================== SEARCH ===================== */
.search-card {
  margin: 14px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.search-card .search-ico { color: var(--c-text-mute); display: inline-flex; }
.search-card input {
  flex: 1; min-width: 0;
  font-size: 15px;
  color: var(--c-text);
  outline: none;
}

/* ===================== CHIPS ===================== */
.chip-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}
.chip-row--scroll {
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chip-row--scroll::-webkit-scrollbar { display: none; }
.chip-wrap { flex-wrap: wrap; }

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: all .15s;
}
.chip:hover { border-color: var(--c-primary); }
.chip.is-active {
  background: var(--c-primary);
  border-color: transparent;
  color: var(--c-on-ink);
}

.chip-mini {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--c-border);
  margin: 2px 4px 2px 0;
}
.chip-mini.is-active {
  background: var(--c-primary-strong);
  color: var(--c-on-ink);
  border-color: transparent;
}

/* ===================== SORT TABS ===================== */
.sort-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  background: var(--c-surface);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
}
.sort-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: all .15s;
}
.sort-tab.is-active {
  background: var(--c-text);
  color: var(--c-on-ink);
}

/* ===================== ROADMAP CARDS ===================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.roadmap-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
  text-align: left;
  width: 100%;
}
.roadmap-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.56) 0%, rgba(0,0,0,0) 62%);
  z-index: 1;
}
.roadmap-card.has-landmark-img::before { background: none; }   /* image already has its own darkening */
.roadmap-card > * { position: relative; z-index: 2; }
.roadmap-card:active { transform: scale(.98); box-shadow: var(--shadow-md); }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-concept-badge {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rc-likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.22);
  padding: 4px 8px;
  border-radius: 999px;
}
.rc-bottom { display: flex; flex-direction: column; gap: 2px; }
.rc-city {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.rc-tagline {
  font-size: 11.5px;
  opacity: .92;
  font-weight: 500;
}
.rc-days {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  background: rgba(255,255,255,.28);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  font-weight: 700;
}

/* List variant (horizontal scroll) */
.roadmap-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 4px 16px 8px;
  scroll-snap-type: x mandatory;
}
.roadmap-list::-webkit-scrollbar { display: none; }
.roadmap-list > .roadmap-card {
  flex: 0 0 64%;
  aspect-ratio: auto;
  height: 180px;
  scroll-snap-align: start;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  transition: transform .14s, box-shadow .14s, background .14s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--c-text);
  color: var(--c-on-ink);
}
.btn-primary.btn-gradient {
  background: var(--c-primary);
  color: var(--c-on-ink);
}
.btn-soft {
  background: var(--c-surface-2);
  color: var(--c-primary-strong);
  border: 1px solid var(--c-border);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-soft);
  border: 1px solid var(--c-border);
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  font-size: 18px;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-primary-strong); }
.icon-btn.is-active { background: var(--c-primary-strong); color: var(--c-on-ink); border-color: transparent; }

/* ===================== STEP PROGRESS ===================== */
.step-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 22px;
  padding: 0 4px;
}
.step-dot {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text-mute);
  flex: 0 0 auto;
}
.step-dot span {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c-text-soft);
  white-space: nowrap;
}
.step-dot.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-on-ink);
}
.step-dot.is-done {
  background: var(--c-primary-strong);
  border-color: var(--c-primary-strong);
  color: var(--c-on-ink);
}
.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(var(--c-primary), var(--c-primary)) left / 0% 100% no-repeat var(--c-border);
  border-radius: 4px;
  transition: background-size .35s ease;
}
.step-line.is-done { background-size: 100% 100%; }

.step-pane { display: none; padding: 6px 0 24px; }
.step-pane.is-active { display: block; }
.step-h {
  font-size: 19px;
  font-weight: 800;
  margin: 8px 0 14px;
  letter-spacing: -.3px;
}
.step-subh {
  margin: 18px 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text-soft);
}

.step-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.step-nav .btn { flex: 1; }

/* ===================== FORMS ===================== */
.form-row { margin-bottom: 14px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,184,77,.18);
}
.form-textarea { min-height: 120px; line-height: 1.5; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline .form-input { flex: 1; }
.form-hint { font-size: 12px; color: var(--c-text-soft); margin-top: 6px; }
.form-actions { display: flex; gap: 10px; margin-top: 14px; }
.form-actions .btn { flex: 1; }
.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-soft);
  margin: 10px 0;
}

/* ===================== CHOICE / CONCEPT CARDS ===================== */
.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  min-height: 56px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.choice-card .ch-emoji { display: none; }
.choice-card .ch-label { font-size: 14px; font-weight: 700; color: var(--c-text); }
.choice-card.is-active {
  background: var(--c-surface-2);
  border-color: var(--c-primary);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.concept-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  transition: all .15s;
  position: relative;
}
.concept-card .cc-emoji { font-size: 26px; margin-bottom: 6px; display: block; }
.concept-card .cc-title { font-size: 14.5px; font-weight: 800; }
.concept-card .cc-desc  { margin-top: 3px; font-size: 11.5px; color: var(--c-text-soft); line-height: 1.45; }
.concept-card.is-active {
  border-color: var(--c-primary);
  background: linear-gradient(135deg, #FFF8EA, #FFE9C8);
  box-shadow: 0 6px 16px rgba(20,30,45,.10);
}
.concept-card.is-active .cc-title { color: var(--c-primary-strong); }

/* ===================== DESTINATION QUICK ===================== */
.dest-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dest-quick button {
  display: flex;
  align-items: flex-end;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--g-hero);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dest-quick button span:first-child { display: none; }
.dest-quick button[data-dest-quick="도쿄"]   { background: var(--g-tokyo); }
.dest-quick button[data-dest-quick="파리"]   { background: var(--g-paris); }
.dest-quick button[data-dest-quick="제주"]   { background: var(--g-jeju); }
.dest-quick button[data-dest-quick="오사카"] { background: var(--g-osaka); }
.dest-quick button[data-dest-quick="방콕"]   { background: var(--g-bangkok); }
.dest-quick button[data-dest-quick="서울"]   { background: var(--g-seoul); }
.dest-quick button:active { transform: scale(.97); }
.dest-quick button.is-active {
  box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-primary-strong);
}

/* ===================== BUDGET ===================== */
.budget-display {
  text-align: center;
  font-size: 44px;
  font-weight: 900;
  color: var(--c-primary-strong);
  letter-spacing: -1.5px;
  margin: 14px 0 8px;
}
.bd-unit { font-size: 18px; color: var(--c-text-soft); font-weight: 700; margin-left: 4px; }

.budget-range {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  background: var(--c-primary);
  border-radius: 999px;
  margin: 10px 0;
}
.budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary-strong);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  cursor: pointer;
}
.budget-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary-strong);
  cursor: pointer;
}
.budget-marks {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.budget-mark {
  flex: 1;
  padding: 9px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.budget-mark.is-active {
  background: var(--c-text);
  color: var(--c-on-ink);
  border-color: transparent;
}

.trip-summary {
  margin-top: 18px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.trip-summary strong { color: var(--c-text); font-weight: 800; }
.trip-duration {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--c-primary-strong);
  font-weight: 700;
}

/* ===================== SCHEDULE ===================== */
.day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}
.day-chips {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.day-chip.is-active {
  background: var(--c-text);
  color: var(--c-on-ink);
  border-color: transparent;
}
.btn-edit {
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.day-row:has(#dayChips:empty) { display: none; }
.btn-edit.is-active {
  background: var(--c-primary-strong);
  color: var(--c-on-ink);
  border-color: transparent;
}

.timeline { position: relative; padding-left: 22px; margin-bottom: 14px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--c-border);
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}
.timeline-item::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: -22px; top: 22px;
  width: 14px; height: 14px;
  background: var(--c-primary);
  border: 3px solid var(--c-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--c-primary);
}
.timeline-item.is-dragging { opacity: .5; transform: scale(.98); }
.timeline-item.drop-over { box-shadow: 0 0 0 2px var(--c-primary), var(--shadow-sm); }

.ti-time {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--c-primary-strong);
  text-align: center;
  background: var(--c-surface-2);
  border-radius: 10px;
  padding: 6px 4px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ti-body { min-width: 0; }
.ti-name { font-size: 14.5px; font-weight: 800; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-cat  { font-size: 11.5px; color: var(--c-text-soft); margin-top: 2px; font-weight: 600; }
.ti-cost { font-size: 12.5px; color: var(--c-primary-strong); margin-top: 4px; font-weight: 700; }

.ti-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ti-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--c-surface-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary-strong);
  border: 1px solid var(--c-border);
}
.ti-drag {
  font-size: 14px;
  color: var(--c-text-mute);
  cursor: grab;
  padding: 2px 4px;
  display: none;
}
.timeline.is-edit .ti-drag { display: inline-block; }
.timeline.is-edit .timeline-item { cursor: grab; }

.cost-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}
.cs-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cs-label { font-size: 13px; color: var(--c-text-soft); font-weight: 600; }
.cs-val   { font-size: 14px; font-weight: 800; color: var(--c-text); }
.cs-total { color: var(--c-primary-strong); font-size: 17px; }
.cs-bar { height: 6px; background: var(--c-divider); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.cs-bar-fill {
  height: 100%;
  background: var(--c-primary);
  border-radius: 999px;
  width: 0%;
  transition: width .3s;
}

.booking-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #FFE9C8 0%, #FFF8EA 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-top: 14px;
}
.bcta-title { font-size: 14px; font-weight: 800; color: var(--c-text); }
.bcta-sub   { font-size: 12px; color: var(--c-text-soft); margin-top: 2px; }
.booking-cta .btn { padding: 10px 14px; font-size: 13px; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-soft);
}
.empty-route { width: 120px; margin: 0 auto 16px; }
.empty-route path { stroke: var(--c-blue); stroke-width: 1.5; stroke-linecap: round; }
.empty-route circle { fill: var(--c-primary); }
.empty-icon { font-size: 54px; margin-bottom: 14px; opacity: .85; }
.empty-text { font-size: 14.5px; margin-bottom: 18px; }

/* ===================== REVIEWS ===================== */
.star-row { display: flex; gap: 4px; justify-content: center; margin-bottom: 12px; }
.star {
  font-size: 30px;
  color: var(--c-border);
  transition: color .12s;
}
.star.is-on, .star.hov { color: #FFC72C; }

.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.review-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.review-form .btn { width: 100%; margin-top: 10px; }
.review-form .form-input { width: 100%; }

.review-item, .review-preview {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.review-item .rv-stars, .review-preview .rv-stars { color: #FFC72C; font-size: 13px; margin-bottom: 4px; }
.review-item .rv-text, .review-preview .rv-text { font-size: 13px; color: var(--c-text); line-height: 1.5; }
.review-item .rv-meta, .review-preview .rv-meta { margin-top: 6px; font-size: 11.5px; color: var(--c-text-mute); }

.review-preview-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.review-preview-list::-webkit-scrollbar { display: none; }
.review-preview-list > .review-preview { flex: 0 0 70%; }

/* ===================== MY ===================== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 6px 0 18px;
}
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A6EA5, #1F2A36);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 15.5px; font-weight: 800; color: var(--c-text); }
.profile-email { font-size: 12.5px; color: var(--c-text-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .btn { padding: 9px 14px; font-size: 13px; }

.my-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.my-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text);
  transition: transform .15s;
}
.my-tile:active { transform: scale(.96); }
.my-ico { color: var(--c-primary); display: inline-flex; }

.setting-list {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-divider);
  text-align: left;
}
.setting-row:last-child { border-bottom: 0; }
.setting-arrow { color: var(--c-text-mute); font-size: 18px; }
.version-tag { text-align: center; margin-top: 24px; font-size: 11.5px; color: var(--c-text-mute); }

/* ===================== AUTH ===================== */
.auth-hero {
  text-align: center;
  margin: 20px 0 24px;
}
.auth-logo {
  width: 72px; height: 72px;
  border-radius: 22px;
  margin: 0 auto 14px;
  background: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-on-ink); font-size: 36px; font-weight: 900;
  box-shadow: 0 10px 24px rgba(20,30,45,.18);
}
.auth-title { font-size: 24px; font-weight: 900; letter-spacing: -.4px; }
.auth-sub { margin-top: 4px; font-size: 13.5px; color: var(--c-text-soft); }

.social-stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .14s;
}
.social-btn:active { transform: scale(.98); }
.social-btn .social-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255,255,255,.85);
}
.social-btn--kakao  { background: #FEE500; color: #181600; }
.social-btn--naver  { background: #03C75A; color: #fff; }
.social-btn--naver .social-ico { background: rgba(255,255,255,.18); color: #fff; }
.social-btn--google { background: #fff; color: #1f1f1f; border-color: #DADCE0; }
.social-btn--google .social-ico { background: #fff; color: #4285F4; }
.social-btn--apple  { background: #000; color: #fff; }
.social-btn--apple .social-ico { background: rgba(255,255,255,.1); color: #fff; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0 10px;
  color: var(--c-text-mute);
  font-size: 12px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: var(--c-divider);
  z-index: 0;
}
.auth-divider span {
  position: relative; z-index: 1;
  background: var(--c-bg);
  padding: 0 12px;
}

.auth-form { margin-top: 6px; }
.auth-form .btn-block { margin-top: 8px; }

/* ===================== ROADMAP DETAIL ===================== */
.roadmap-cover {
  height: 220px;
  border-radius: var(--radius-lg);
  margin: 4px 0 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
}
.roadmap-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 60%);
}
.roadmap-cover > * { position: relative; z-index: 2; }
.roadmap-cover .rd-city { font-size: 28px; font-weight: 900; letter-spacing: -.4px; }
.roadmap-cover .rd-tag  { font-size: 13px; opacity: .92; }

.roadmap-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.roadmap-meta .meta-pill {
  padding: 6px 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.roadmap-cta-row { margin-top: 14px; }

/* ===================== BOTTOM SHEET ===================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 80;
  opacity: 0;
  transition: opacity .25s;
}
.sheet-backdrop.is-visible { opacity: 1; }

.bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: var(--app-content-max);   /* same axis as main + bottom-tab-nav */
  margin: 0 auto;
  background: var(--c-surface);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: 0 -20px 60px rgba(0,0,0,.18);
  z-index: 90;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  padding-bottom: var(--safe-bottom);
}
.bottom-sheet.is-visible { transform: translateY(0); }
.sheet-handle {
  width: 38px; height: 4px;
  background: #DDD;
  border-radius: 999px;
  margin: 10px auto 6px;
  flex: 0 0 auto;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 12px;
  flex: 0 0 auto;
}
.sheet-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.sheet-head .icon-btn { width: 32px; height: 32px; font-size: 22px; }

.sheet-filters {
  display: flex;
  gap: 8px;
  padding: 0 18px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sheet-filters::-webkit-scrollbar { display: none; }

.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 18px 14px;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  flex: 0 0 auto;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--c-divider);
  background: var(--c-surface);
}
.sheet-foot--split { display: flex; gap: 10px; }
.sheet-foot--split .btn { flex: 1; }
.sheet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--c-text-soft);
  font-weight: 600;
}
.sheet-total strong { font-size: 17px; color: var(--c-primary-strong); font-weight: 900; }

/* Booking items */
.book-section {
  margin-bottom: 14px;
}
.book-section h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.book-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-divider);
}
.book-row:last-child { border-bottom: 0; }
.book-info { min-width: 0; }
.book-cat-label {
  display: inline-block;
  padding: 3px 8px;
  background: var(--c-surface-2);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-primary-strong);
  margin-bottom: 4px;
  letter-spacing: .3px;
}
.book-name { font-size: 14px; font-weight: 700; color: var(--c-text); }
.book-desc { font-size: 12px; color: var(--c-text-soft); margin-top: 2px; }
.book-link { display: inline-block; font-size: 12px; font-weight: 600; color: var(--c-text); margin-top: 4px; text-decoration: underline; }
.book-estimate { font-size: 11px; font-weight: 500; color: var(--c-text-soft); text-align: right; }
.book-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--c-text);
  text-align: right;
  white-space: nowrap;
  padding: 6px 0;
}
.book-cb {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.book-cb.is-checked {
  background: var(--c-primary-strong);
  border-color: var(--c-primary-strong);
  color: var(--c-on-ink);
}

/* ===================== TAG PREVIEW ===================== */
.tag-preview {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.tag-preview .tag-item {
  padding: 4px 10px;
  background: var(--c-surface-2);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--c-primary-strong);
  font-weight: 700;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 20px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.86);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 100;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===================== ALIGNMENT SAFETIES =====================
 * Defensive rules so any direct child inside the centered .page-scroll
 * never breaks layout: cards/sections expand to the full content width,
 * grid/flex children may shrink (min-width:0), and section headers stay
 * on a single axis.
 */
.section-block,
.hero-card,
.search-card,
.roadmap-grid,
.roadmap-list,
.cost-summary,
.booking-cta,
.profile-card,
.my-grid,
.setting-list,
.auth-hero,
.social-stack,
.auth-form,
.blog-form,
.feedback-form,
.review-form,
.timeline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.roadmap-card, .schedule-card, .timeline-item, .review-item, .recent-card { min-width: 0; }
.section-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.section-title { margin: 0; min-width: 0; }

/* ===================== SCHEDULE-EMBEDDED MAP CARD ===================== */
.schedule-map-card {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0 0 14px;
}
.smc-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;        /* mobile */
  background: var(--c-surface-2);
}
.smc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.smc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--c-surface);
  color: var(--c-text-soft);
  font-size: 13.5px;
  text-align: center;
  padding: 16px;
}
.smc-empty-icon { font-size: 40px; opacity: .85; }

.smc-warning {
  margin: 0;
  padding: 8px 14px;
  background: #FEF3C7;
  border-top: 1px solid #FCD34D;
  color: #92400E;
  font-size: 12.5px;
  text-align: center;
}

.smc-toolbar {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.smc-toolbar .map-mode-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  margin: 0;
}
.smc-toolbar .map-mode-row::-webkit-scrollbar { display: none; }
.smc-toolbar .map-mode-row .chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 12.5px;
}

.smc-toolbar .route-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.smc-toolbar .route-info .ri-row {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.smc-toolbar .route-info .ri-label { font-size: 11px; color: var(--c-text-soft); font-weight: 700; }
.smc-toolbar .route-info .ri-val   { font-size: 14px; color: var(--c-primary-strong); font-weight: 900; }

.smc-toolbar #scheduleMapOpenExt { padding: 11px; font-size: 13.5px; }

/* Tablet+ — taller map */
@media (min-width: 768px) {
  .smc-canvas-wrap { height: 360px; }
}
@media (min-width: 1024px) {
  .smc-canvas-wrap { height: 400px; }
}
@media (min-width: 1280px) {
  .smc-canvas-wrap { height: 440px; }
}

/* Hide deprecated standalone-map classes harmlessly if any survive in legacy data */
.map-canvas-wrap, .map-controls, .map-search, .map-search-results, .map-cta { display: none !important; }

/* ===================== MAP PAGE (legacy, no longer rendered) ===================== */
.map-controls {
  margin: 6px 0 12px;
}
.map-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.map-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.map-search .form-input { flex: 1; min-width: 0; }
.map-search .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

.map-search-results {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.map-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.map-search-result:hover { background: var(--c-surface-2); }
.msr-text .msr-name { font-size: 14px; font-weight: 800; }
.msr-text .msr-addr { font-size: 12px; color: var(--c-text-soft); margin-top: 2px; }
.msr-text .msr-rating { font-size: 11.5px; color: #f59e0b; margin-top: 2px; font-weight: 700; }
.msr-add { padding: 6px 10px; font-size: 12px; border-radius: 999px; background: var(--c-primary-strong); color: var(--c-on-ink); border: 0; font-weight: 800; }

.map-canvas-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  margin-bottom: 14px;
}
.map-canvas {
  width: 100%;
  height: 100%;
  background: var(--c-surface-2);
}
.map-loading, .map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--c-surface);
  color: var(--c-text-soft);
  font-size: 13.5px;
}
.map-empty .empty-icon { font-size: 44px; }

.route-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.route-info .ri-row {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.route-info .ri-label { display: block; font-size: 11.5px; color: var(--c-text-soft); font-weight: 700; }
.route-info .ri-val   { display: block; margin-top: 4px; font-size: 16px; color: var(--c-primary-strong); font-weight: 900; }

.map-actions { display: flex; flex-direction: column; gap: 10px; }

.map-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #DCFCE7 0%, #FEF3C7 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-top: 14px;
}
.map-cta .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

/* Tablet+ — map gets taller */
@media (min-width: 768px) {
  .map-canvas-wrap { height: 60vh; max-height: 640px; }
}
@media (min-width: 1024px) {
  .map-canvas-wrap { height: 64vh; max-height: 720px; }
}

/* ===================== SCHEDULE CARD v2 (meta / place / sub) ===================== */
.schedule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  transition: box-shadow .15s, transform .14s ease;
  -webkit-user-drag: none;
  position: relative;              /* 드롭 라인(::before/::after) 기준 */
}
/* 꾹 눌러 끌기 시작하면 또렷하게 작아지고 들리는 느낌 → 놓으면 원래 크기로 복귀 */
.schedule-card.is-dragging { opacity: .95; transform: scale(.94); box-shadow: var(--shadow-md); z-index: 10; }
/* 일정 사이에 끌어왔을 때 표시되는 드롭 위치 라인 */
.schedule-card.drop-before::before,
.schedule-card.drop-after::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(43, 52, 64, .14);
  z-index: 6;
  pointer-events: none;
}
.schedule-card.drop-before::before { top: -7px; }
.schedule-card.drop-after::after   { bottom: -7px; }
/* 옮긴 직후 아주 옅은 링이 한 번 사라짐 — 과하지 않게 살짝만 티남 */
@keyframes scMoved {
  0%   { box-shadow: 0 0 0 2px rgba(43, 52, 64, .30), var(--shadow-sm); }
  100% { box-shadow: 0 0 0 0 rgba(43, 52, 64, 0), var(--shadow-sm); }
}
.schedule-card.just-moved { animation: scMoved .5s ease-out; }
.schedule-card-main { min-width: 0; }

.schedule-card-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}
.schedule-card-meta-line .schedule-time { color: var(--c-primary-strong); }
.schedule-card-meta-line .schedule-dot  { color: var(--c-text-mute); }
.schedule-card-meta-line .schedule-category {
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.schedule-place-name {
  display: block;
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: var(--c-text);
  /* Truncate single-line with ellipsis; full text in title attr keeps a11y */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-card--no-name .schedule-place-name {
  color: var(--c-text-mute);
  font-style: italic;
  font-weight: 700;
}

/* Sub-info rows (address, memo, cost) — each on its own line, ellipsised */
.schedule-place-subinfo {
  margin: 0 0 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-place-subinfo.schedule-cost {
  color: var(--c-primary-strong);
  font-weight: 700;
}
.schedule-place-subinfo.schedule-memo {
  color: var(--c-text);
  white-space: normal;          /* memos can wrap */
  overflow-wrap: anywhere;
}

/* Legacy alias — keep .schedule-place-sub working with the same rules
   if any old code/css references it.  (No Tailwind in this project; we
   just inherit the same properties via grouped selector.) */
.schedule-place-sub {
  margin: 0 0 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.schedule-place-subinfo { display: block; }

/* Order-number badge fallback when no time available */
.schedule-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--c-primary-strong);
  color: var(--c-on-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.schedule-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.schedule-card-actions .map-button {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-primary-strong);
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid var(--c-border);
}
.schedule-card-actions .drag-handle {
  font-size: 14px;
  color: var(--c-text-mute);
  cursor: grab;
  display: none;
  padding: 2px 4px;
}
.timeline.is-edit .schedule-card-actions .drag-handle { display: inline-block; }
.timeline.is-edit .schedule-card { cursor: default; }

/* Insights inside new schedule-card */
.schedule-insights {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.schedule-insight-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.schedule-insight-row .insight-label {
  color: var(--c-text-soft);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}
.schedule-insight-row .insight-bar {
  flex: 1;
  height: 6px;
  background: var(--c-divider);
  border-radius: 999px;
  overflow: hidden;
  min-width: 50px;
}
.schedule-insight-row .insight-fill {
  height: 100%;
  background: #10B981;   /* 기본(로드 전) — 실제 색은 비율에 따라 JS에서 지정 */
  border-radius: 999px;
  transition: width .35s ease, background .25s ease;
}
.schedule-insight-row .insight-val {
  font-weight: 800;
  color: var(--c-text);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}
.schedule-insight-row .insight-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.schedule-insight-row .insight-pill.lvl-quiet  { background: #DCFCE7; color: #14532D; }
.schedule-insight-row .insight-pill.lvl-normal { background: #FEF3C7; color: #92400E; }
.schedule-insight-row .insight-pill.lvl-busy   { background: #FEE2E2; color: #7F1D1D; }
.schedule-insight-row .insight-src {
  font-size: 10.5px;
  color: var(--c-text-mute);
  margin-left: auto;
}

/* ===================== ORIGIN (departure) FIELD MESSAGE ===================== */
.origin-message {
  margin-top: 6px;
  font-size: 12px;
}

/* ===================== CITY AUTOCOMPLETE ===================== */
.city-search-wrap {
  position: relative;
}
.city-search-wrap .form-input { padding-right: 36px; }
.city-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--c-divider);
  color: var(--c-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.city-suggestions {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.city-sug-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--c-text);
}
.city-sug-item:hover, .city-sug-item.is-focus {
  background: var(--c-surface-2);
}
.city-sug-item .csi-flag { font-size: 20px; }
.city-sug-item .csi-name { font-weight: 700; }
.city-sug-item .csi-country { color: var(--c-text-soft); font-size: 12px; margin-left: 6px; font-weight: 500; }
.city-sug-item .csi-region { color: var(--c-text-mute); font-size: 11.5px; }
/* 도시 아래 공항 선택지 — 들여쓰기 + 작은 글씨 */
.city-sug-airport {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px 8px 30px;     /* 좌측 들여쓰기로 도시 하위임을 표현 */
  border-radius: 10px;
  text-align: left;
  color: var(--c-text-soft);
}
.city-sug-airport:hover, .city-sug-airport.is-focus { background: var(--c-surface-2); }
.city-sug-airport .csa-icon { font-size: 12px; color: var(--c-primary); }
.city-sug-airport .csa-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.city-sug-airport .csa-code {
  font-size: 11px; font-weight: 700; color: var(--c-primary-strong);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 6px; letter-spacing: .3px;
  /* 모든 IATA 배지를 같은 크기로 */
  display: inline-block;
  box-sizing: border-box;
  min-width: 46px;
  height: 22px;
  line-height: 20px;
  padding: 0 8px;
  text-align: center;
}
.city-sug-empty {
  padding: 18px 10px;
  text-align: center;
  color: var(--c-text-soft);
  font-size: 13px;
}
.city-selected-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-primary-strong);
  font-weight: 600;
}

.dest-advanced {
  margin-top: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.dest-advanced summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
  padding: 8px 0;
  list-style: none;
}
.dest-advanced summary::-webkit-details-marker { display: none; }
.dest-advanced summary::before { content: '⌃ '; margin-right: 4px; display: inline-block; transform: rotate(180deg); transition: transform .2s; }
.dest-advanced[open] summary::before { transform: rotate(0deg); }

/* ===================== DATE TRIGGER (replaces native <input type=date>) ===================== */
.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--c-text);
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.date-trigger .dt-icon { font-size: 16px; }
.date-trigger .dt-label { flex: 1; }
.date-trigger.is-empty .dt-label { color: var(--c-text-mute); font-weight: 500; }
.date-trigger.is-active, .date-trigger:focus-visible {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,184,77,.18);
}

/* ===================== CALENDAR (compact) ===================== */
.calendar-panel,
#calendarSheet { /* shared compact wrapper hooks */
  max-width: 340px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  #calendarSheet { max-width: 420px; }
}

.cal-nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 6px;
  padding: 2px 14px 8px;
  min-height: 36px;
}
.cal-nav .icon-btn { width: 32px; height: 32px; font-size: 18px; }
.cal-month-label {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.2px;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 0 12px 4px;
}
.cal-w {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--c-text-soft);
  padding: 4px 0;
}
.cal-w-sun { color: #EF4444; }
.cal-w-sat { color: var(--c-blue); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 0 10px 8px;
}
.cal-cell {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text);
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  transition: background .12s;
}
.cal-cell.is-blank { visibility: hidden; cursor: default; }
.cal-cell.is-past  { color: var(--c-text-mute); cursor: not-allowed; opacity: .5; }
.cal-cell.is-past:hover { background: transparent; }
.cal-cell.is-today {
  font-weight: 800;
  color: var(--c-primary-strong);
  box-shadow: inset 0 0 0 1.5px var(--c-primary);
}
.cal-cell.is-sun { color: #EF4444; }
.cal-cell.is-sat { color: var(--c-blue); }
.cal-cell.in-range {
  background: #FFF1D9;
  border-radius: 0;
  color: var(--c-text);
}
.cal-cell.range-start, .cal-cell.range-end {
  background: var(--c-primary);
  color: var(--c-on-ink);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(20,30,45,.16);
  z-index: 1;
}
.cal-cell.range-start.has-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-cell.range-end.has-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-cell.range-start.range-end { border-radius: 10px; }
.cal-cell:not(.is-past):not(.is-blank):not(.range-start):not(.range-end):hover {
  background: var(--c-surface-2);
}

.cal-summary {
  margin: 4px 14px 8px;
  padding: 8px 12px;
  background: var(--c-surface-2);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--c-text-soft);
  text-align: center;
  font-weight: 600;
}
.cal-summary strong { color: var(--c-primary-strong); font-weight: 900; }

@media (max-width: 430px) {
  #calendarSheet { max-width: 100%; }
  .cal-grid { padding: 0 8px 6px; }
  .cal-cell { min-height: 32px; font-size: 12px; padding: 2px; }
  .cal-month-label { font-size: 14px; }
  .cal-summary { font-size: 12px; padding: 7px 10px; }
}

/* ===================== BUDGET DIRECT INPUT ===================== */
.budget-input-wrap {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 8px;
}
.budget-input {
  width: 60%;
  max-width: 240px;
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  color: var(--c-primary-strong);
  letter-spacing: -1.5px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--c-border);
  outline: none;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.budget-input:focus { border-bottom-color: var(--c-primary); }
.budget-input::-webkit-outer-spin-button,
.budget-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bd-unit-fixed { font-size: 18px; color: var(--c-text-soft); font-weight: 700; }

.budget-level-badge {
  text-align: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
}
.budget-level-badge .lvl-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-primary-strong);
  margin-left: 4px;
}
.budget-level-badge .lvl-pill.is-low  { background: #DCFCE7; color: #14532D; }
.budget-level-badge .lvl-pill.is-mid  { background: #FEF3C7; color: #92400E; }
.budget-level-badge .lvl-pill.is-high { background: #FCE7F3; color: #831843; }

.budget-suggest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-surface-2);
  border: 1px dashed var(--c-primary);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.budget-suggest-text {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
  line-height: 1.5;
}
.budget-suggest-text strong { color: var(--c-primary-strong); font-weight: 900; }
.budget-apply { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }

.budget-marks button {
  flex-direction: column;
  gap: 2px;
  padding: 10px 4px;
}
.budget-marks .bm-label { font-size: 12px; font-weight: 700; }
.budget-marks .bm-val   { font-size: 10.5px; opacity: .8; font-weight: 600; }

/* ===================== PLACE INSIGHTS (Foursquare + Google) ===================== */
.ti-insights {
  grid-column: 2 / 4;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ti-insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}
.ti-insight-label {
  color: var(--c-text-soft);
  font-weight: 600;
  white-space: nowrap;
}
.ti-local-bar {
  flex: 1;
  height: 6px;
  background: var(--c-divider);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 8px;
  min-width: 60px;
}
.ti-local-fill {
  height: 100%;
  background: linear-gradient(to right, #6EE7B7, #10B981);
  border-radius: 999px;
  transition: width .35s ease;
}
.ti-local-val { font-weight: 800; color: var(--c-text); white-space: nowrap; }

.ti-congestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.ti-congestion-pill.lvl-quiet { background: #DCFCE7; color: #14532D; }
.ti-congestion-pill.lvl-normal { background: #FEF3C7; color: #92400E; }
.ti-congestion-pill.lvl-busy  { background: #FEE2E2; color: #7F1D1D; }
.ti-insight-src {
  font-size: 10.5px;
  color: var(--c-text-mute);
  text-align: right;
  margin-top: 2px;
}

/* ===================== SETTINGS ===================== */
.setting-row--toggle {
  cursor: pointer;
  align-items: center;
}
.setting-row--toggle input[type="checkbox"] {
  width: 40px; height: 24px;
  -webkit-appearance: none; appearance: none;
  background: var(--c-divider);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.setting-row--toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .2s;
}
.setting-row--toggle input[type="checkbox"]:checked {
  background: var(--c-primary-strong);
}
.setting-row--toggle input[type="checkbox"]:checked::before { left: 19px; }
.setting-value { color: var(--c-text-soft); font-size: 13.5px; font-weight: 600; }
.setting-sub {
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--c-divider);
  background: var(--c-surface-2);
}
.setting-sub button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  color: var(--c-text);
  border-radius: 10px;
}
.setting-sub button.is-active { background: #fff; color: var(--c-primary-strong); font-weight: 800; }

/* Recent list */
.recent-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.recent-list::-webkit-scrollbar { display: none; }
.recent-card {
  flex: 0 0 70%;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.recent-card .rc-name { font-size: 14.5px; font-weight: 800; }
.recent-card .rc-meta { font-size: 12px; color: var(--c-text-soft); margin-top: 4px; }


/* ===================== MY · sub-list cards (4 pages) ===================== */
.my-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 18px;
}
.my-list-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .12s, box-shadow .12s;
}
.my-list-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.my-list-card:active { transform: scale(.98); }
.my-list-card .mlc-icon { font-size: 22px; text-align: center; }
.my-list-card .mlc-stars { font-size: 16px; color: #FFC72C; min-width: 80px; }
.my-list-card .mlc-body { min-width: 0; }
.my-list-card .mlc-title {
  font-size: 14.5px; font-weight: 800; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.my-list-card .mlc-meta {
  font-size: 12px; color: var(--c-text-soft); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.my-list-card .mlc-chev {
  color: var(--c-text-mute);
  font-size: 22px;
  padding: 0 4px;
}
.my-list-card .mlc-delete {
  background: transparent;
  color: var(--c-text-mute);
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  transition: background .12s, color .12s, border-color .12s;
}
.my-list-card .mlc-delete:hover {
  background: var(--c-danger, #EF4444);
  color: #fff;
  border-color: transparent;
}
.my-list-card--review {
  grid-template-columns: 90px 1fr auto;
}
.my-list-card--review .mlc-title { white-space: normal; }    /* review text wraps */

/* ── Edit modal: place suggestions (Google Places autocomplete) ── */
.form-row--places { position: relative; }
.place-suggestions {
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-border, #e5e0d3);
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.place-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-border-soft, #f1ebdf);
  transition: background .12s;
}
.place-suggestion:last-child { border-bottom: 0; }
.place-suggestion:hover,
.place-suggestion.is-focus { background: var(--c-bg-soft, #faf6ef); }
.place-suggestion .ps-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text, #2a2820);
  display: flex; align-items: center; gap: 6px;
}
.place-suggestion .ps-name::before { content: '📍'; font-size: 12px; }
.place-suggestion .ps-addr {
  font-size: 12px;
  color: var(--c-text-soft, #6b6555);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.place-suggestions .ps-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-soft, #6b6555);
}
.place-suggestions .ps-loading {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--c-text-soft, #6b6555);
}
.place-hint {
  font-size: 12px;
  color: var(--c-success, #16a34a);
  padding: 6px 2px 0;
  display: flex; align-items: center; gap: 4px;
}
.place-hint::before { content: '✓ '; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════
   Schedule card: 텍스트 100% 선택 가능 (비편집·편집 모드 모두)
   ════════════════════════════════════════════════════════════════ */

/* 카드 본체 — 텍스트 선택 활성, 네이티브 drag 차단 */
.schedule-card,
.schedule-card * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  -webkit-touch-callout: default !important;
}
.schedule-card,
.schedule-card *:not(.drag-handle):not(.edit-button):not(.map-button) {
  -webkit-user-drag: none !important;
}

/* ── 편집 모드: 카드 아무 곳이나 잡아 끌어 순서 변경 ──
   (텍스트 선택 대신 드래그를 우선; 버튼은 그대로 클릭) */
.timeline.is-edit .schedule-card { cursor: grab; -webkit-user-drag: element !important; }
.timeline.is-edit .schedule-card.is-dragging { cursor: grabbing; }
.timeline.is-edit .schedule-card,
.timeline.is-edit .schedule-card * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: auto !important;   /* 본문 어디를 잡아도 카드(draggable) 드래그가 시작되게 */
  cursor: grab;
}
/* 버튼은 드래그 시작 막고 클릭 유지 */
.timeline.is-edit .schedule-card-actions button {
  cursor: pointer;
  -webkit-user-drag: none !important;
}
/* 텍스트 위에서는 텍스트 커서 — 카드는 클릭/포인터 안 일어남 */
.schedule-card-main,
.schedule-card-main * {
  cursor: text;
}
/* 카드 자체는 클릭 대상 아님 (비편집 모드) */
.schedule-card { cursor: default; }
.timeline.is-edit .schedule-card { cursor: default !important; }

/* 모바일에서 세로 스크롤은 허용, 가로/줌 제스처는 차단 (텍스트 선택 우선) */
.schedule-card-main { touch-action: manipulation; }

/* 버튼/핸들만 user-select: none (의도된 클릭만) */
.schedule-card-actions .edit-button,
.schedule-card-actions .map-button,
.schedule-card-actions .drag-handle {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: pointer;
}

/* 드래그 핸들 (편집 모드에서만 보임 + grab) */
.schedule-card-actions .drag-handle {
  display: none;
  cursor: grab;
  padding: 8px 10px;
  font-size: 18px;
  color: var(--c-text-mute, #9b9583);
  border-radius: 6px;
  transition: background .12s;
}
.schedule-card-actions .drag-handle:hover { background: var(--c-bg-soft, #faf6ef); color: var(--c-text, #2a2820); }
.schedule-card-actions .drag-handle:active { cursor: grabbing; }
.timeline.is-edit .schedule-card-actions .drag-handle { display: inline-block; }

/* ✏️ 편집 버튼 (편집 모드에서만 보임) */
.schedule-card-actions .edit-button {
  display: none;
  background: var(--c-bg-soft, #faf6ef);
  border: 1px solid var(--c-border, #e3dccd);
  color: var(--c-text, #2a2820);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.schedule-card-actions .edit-button:hover { background: var(--c-bg, #fff); border-color: var(--c-primary, #5b76d9); color: var(--c-primary, #5b76d9); }
.timeline.is-edit .schedule-card-actions .edit-button { display: inline-block; }

/* ════════════════════════════════════════════════════════════════
   SUBSCRIPTION PAGE
   ════════════════════════════════════════════════════════════════ */
.setting-row--accent { position: relative; }
.setting-row--accent .setting-ico { margin-right: 6px; font-size: 14px; }
.setting-row--accent .setting-meta {
  margin-left: auto; margin-right: 8px;
  font-size: 12px; color: var(--c-primary, #5b76d9); font-weight: 600;
}

.sub-hero { padding: 20px 16px 12px; text-align: center; }
.sub-hero-title {
  margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--c-text, #2a2820);
}
.sub-hero-desc {
  margin: 0; font-size: 13px; color: var(--c-text-soft, #6b6555); line-height: 1.55;
}

.sub-toggle {
  display: inline-flex; padding: 4px; background: var(--c-bg-soft, #faf6ef);
  border: 1px solid var(--c-border, #e3dccd); border-radius: 999px;
  margin: 4px 16px 18px; max-width: calc(100% - 32px);
}
.sub-toggle-btn {
  flex: 1; padding: 8px 18px; background: transparent; border: 0;
  font-size: 13px; font-weight: 600; color: var(--c-text-soft, #6b6555);
  border-radius: 999px; cursor: pointer; transition: all .12s; white-space: nowrap;
}
.sub-toggle-btn.is-on {
  background: var(--c-surface, #fff); color: var(--c-primary-strong, #4661c9);
  box-shadow: 0 1px 3px rgba(60, 50, 30, .12);
}

.sub-grid {
  display: grid; gap: 12px; padding: 0 16px 16px;
  grid-template-columns: 1fr;
}

.sub-card {
  position: relative;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e3dccd);
  border-radius: 14px; padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(60,50,30,.05), 0 4px 16px rgba(60,50,30,.03);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sub-card--accent {
  border-color: var(--c-primary, #5b76d9); border-width: 2px;
  background: linear-gradient(180deg, rgba(91,118,217,.06), rgba(255,255,255,1) 60%);
}
.sub-card:hover { box-shadow: 0 2px 6px rgba(60,50,30,.08), 0 8px 24px rgba(60,50,30,.06); }

.sub-badge {
  position: absolute; top: -10px; left: 18px;
  background: var(--c-bg, #f5f0e8); color: var(--c-text-soft, #6b6555);
  border: 1px solid var(--c-border, #e3dccd);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.sub-badge--accent {
  background: var(--c-primary, #5b76d9); color: #fff; border-color: var(--c-primary, #5b76d9);
}

.sub-name {
  margin: 6px 0 4px; font-size: 18px; font-weight: 700;
  color: var(--c-text, #2a2820);
}
.sub-price { margin: 8px 0 14px; }
.sub-price-num {
  display: block; font-size: 32px; font-weight: 800; color: var(--c-text, #2a2820);
  line-height: 1.1; letter-spacing: -0.5px;
}
.sub-price-unit { font-size: 15px; font-weight: 600; color: var(--c-text-soft, #6b6555); margin-left: 4px; }
.sub-price-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-soft, #6b6555); }

.sub-features {
  list-style: none; margin: 0 0 14px; padding: 0;
  border-top: 1px solid var(--c-border-soft, #f1ebdf); padding-top: 12px;
}
.sub-features li {
  font-size: 13px; padding: 4px 0; color: var(--c-text, #2a2820); line-height: 1.5;
}
.sub-features li strong { color: var(--c-primary-strong, #4661c9); font-weight: 700; }
.sub-features-mute {
  color: var(--c-text-soft, #6b6555) !important; font-size: 12px !important;
  border-top: 1px dashed var(--c-border-soft, #f1ebdf); padding-top: 8px !important; margin-top: 6px;
}

.payg-options {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: var(--c-bg-soft, #faf6ef);
  border-radius: 10px; margin: 4px 0 14px;
}
.payg-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e3dccd);
  border-radius: 8px; cursor: pointer; transition: all .12s;
}
.payg-option:has(input:checked) {
  border-color: var(--c-primary, #5b76d9); background: rgba(91,118,217,.05);
  box-shadow: 0 0 0 2px rgba(91,118,217,.15);
}
.payg-option input[type="radio"] { margin-top: 4px; accent-color: var(--c-primary, #5b76d9); }
.payg-opt-row { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 2px; flex: 1; }
.payg-opt-label { font-size: 13px; font-weight: 700; color: var(--c-text, #2a2820); }
.payg-opt-price { font-size: 14px; font-weight: 700; color: var(--c-primary-strong, #4661c9); text-align: right; }
.payg-opt-meta { grid-column: 1 / -1; font-size: 11px; color: var(--c-text-soft, #6b6555); }

.sub-cta {
  margin-top: auto;
  padding: 12px; background: var(--c-bg-soft, #faf6ef);
  border: 1px solid var(--c-border-strong, #c9c0ad);
  color: var(--c-text, #2a2820); font-size: 14px; font-weight: 700;
  border-radius: 10px; cursor: pointer; transition: all .12s;
}
.sub-cta:hover { background: var(--c-surface, #fff); border-color: var(--c-primary, #5b76d9); color: var(--c-primary-strong, #4661c9); }
.sub-cta--primary {
  background: var(--c-primary, #5b76d9); color: #fff; border-color: var(--c-primary, #5b76d9);
}
.sub-cta--primary:hover { background: var(--c-primary-strong, #4661c9); color: #fff; border-color: var(--c-primary-strong, #4661c9); }
.sub-cta--current { background: var(--c-bg-soft, #faf6ef); color: var(--c-text-soft, #6b6555); cursor: default; }
.sub-cta--current:hover { background: var(--c-bg-soft, #faf6ef); color: var(--c-text-soft, #6b6555); border-color: var(--c-border-strong, #c9c0ad); }

.sub-footnote {
  margin: 0 16px 24px; padding: 14px 16px;
  background: var(--c-bg-soft, #faf6ef);
  border: 1px solid var(--c-border-soft, #f1ebdf);
  border-radius: 10px; font-size: 11px; color: var(--c-text-soft, #6b6555);
  line-height: 1.7;
}
.sub-footnote p { margin: 0; }

/* Hide payg pricing card when monthly toggle active, and vice versa */
.sub-grid[data-billing="monthly"] [data-plan="payg"] { display: none; }
.sub-grid[data-billing="payg"] [data-plan="standard"],
.sub-grid[data-billing="payg"] [data-plan="premium"] { display: none; }

/* Tablet+ — 2 columns per billing mode */
@media (min-width: 768px) {
  .sub-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; padding: 0 24px 24px; }
}

/* ── Subscription cancel block ────────────────────────────────── */
.sub-cancel-block {
  margin: 4px 16px 16px;
  padding: 16px 16px 14px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-danger-soft, rgba(220, 38, 38, .2));
  border-radius: 12px;
  text-align: center;
}
.sub-cancel-info {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px;
}
.sub-cancel-label {
  font-size: 11px; font-weight: 600;
  color: var(--c-text-soft, #6b6555);
  text-transform: uppercase; letter-spacing: .4px;
}
.sub-cancel-plan {
  font-size: 16px; font-weight: 700;
  color: var(--c-text, #2a2820);
}
.sub-cancel-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--c-danger, #dc2626);
  border: 1px solid var(--c-danger, #dc2626);
  font-size: 14px; font-weight: 700;
  border-radius: 10px; cursor: pointer;
  transition: all .12s;
}
.sub-cancel-btn:hover {
  background: var(--c-danger, #dc2626); color: #fff;
}
.sub-cancel-help {
  margin: 10px 0 0;
  font-size: 11px; color: var(--c-text-soft, #6b6555);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .sub-cancel-block { max-width: 540px; margin-left: auto; margin-right: auto; }
}

/* ── Trip flow Step 4: 항공 · 호텔 옵션 ── */
.form-section {
  margin-top: 18px;
  padding: 14px;
  background: var(--c-bg-soft, #faf6ef);
  border: 1px solid var(--c-border, #e3dccd);
  border-radius: 12px;
}
.form-section-title {
  margin: 0 0 10px;
  font-size: 14px; font-weight: 700;
  color: var(--c-text, #2a2820);
  display: flex; align-items: center; gap: 6px;
}
.form-section .form-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px; font-weight: 600;
  color: var(--c-text-soft, #6b6555);
}
.form-section .form-label-meta {
  margin-left: 6px;
  font-size: 11px; font-weight: 500;
  color: var(--c-text-mute, #9b9583);
}

.chip-row--wrap {
  flex-wrap: wrap;
  gap: 6px;
}

/* 항공사 등급 필터 적용 시 비대상 칩 디밍 */
.chip.is-dim {
  opacity: .35;
  pointer-events: none;
  text-decoration: line-through;
  text-decoration-color: var(--c-text-mute, #9b9583);
}

/* ── Cost summary: 오늘 비용 강조 ── */
.cs-row--today { padding: 8px 0 6px; border-bottom: 1px dashed var(--c-border-soft, #f1ebdf); margin-bottom: 6px; }
.cs-row--today .cs-label { font-weight: 700; color: var(--c-text, #2a2820); }
.cs-row--today .cs-day  { font-weight: 700; color: var(--c-primary-strong, #4661c9); font-size: 1.1em; }

/* Day chip 의 일별 비용 라벨 */
.day-chip-cost {
  display: block;
  font-size: 9px; font-weight: 600;
  color: var(--c-text-soft, #6b6555);
  margin-top: 1px;
}
.day-chip.is-active .day-chip-cost { color: rgba(255,255,255,.9); }

/* ============ Trip tools ============ */
.tool-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
.tool-title { font-size: 15px; font-weight: 700; color: var(--c-text); margin: 0 0 10px; }
.tool-note { font-size: 12px; color: var(--c-text-soft); margin: 6px 0 0; line-height: 1.5; }
.tool-weather { display: grid; gap: 8px; font-size: 13px; color: var(--c-text-soft); }
.tool-day { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 10px; align-items: center; color: var(--c-text); }
.tool-day .tool-note { margin: 0; }
.tool-form { display: grid; grid-template-columns: 1fr 96px auto; gap: 8px; }
.tool-form .form-input { min-width: 0; }
.tool-list { display: grid; gap: 8px; margin-top: 8px; }
.tool-row { display: grid; grid-template-columns: 1fr auto 28px; gap: 8px; align-items: center; font-size: 13px; color: var(--c-text); overflow-wrap: anywhere; }
.tool-remove { width: 28px; height: 28px; border: 0; background: none; color: var(--c-text-soft); font-size: 18px; cursor: pointer; }
.tool-check { display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 14px; color: var(--c-text); }
.tool-check input {
  -webkit-appearance: auto;
  appearance: auto;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  accent-color: var(--c-primary);
}
.tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media print {
  .app-topbar, .bottom-tab-nav, .schedule-actions, .btn-edit, .schedule-map-card,
  .trip-tools, #collabPanel, .booking-cta, #reviewSection, .bottom-sheet { display: none !important; }
  body, .app-shell, .page-scroll { background: #fff; overflow: visible !important; height: auto !important; }
  .timeline-item { break-inside: avoid; }
}

/* ============ 예산 — 항목·숫자 행 ============ */
.money-rows { margin: 0; display: grid; gap: 2px; }
.money-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--c-divider);
}
.money-row:last-child { border-bottom: 0; }
.money-row dt { margin: 0; font-size: 14px; color: var(--c-text-soft); }
.money-row dt small { display: block; font-size: 12px; color: var(--c-text-mute); margin-top: 1px; }
.money-row dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.money-row--total dt { color: var(--c-text); font-weight: 700; }
.money-row--total dd { font-size: 18px; font-weight: 800; }
.money-row--over dt, .money-row--over dd { color: #B42318; }
.money-row--under dd { color: #1F7A4D; }

/* 결과 상단 예산 영역 */
.budget-panel {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 14px 16px; margin: 0 0 14px;
}
.budget-panel.is-over { border-color: #F3C4BE; }
.budget-panel-plan { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--c-text); }
.budget-notices { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.budget-notices li {
  position: relative; padding-left: 14px; font-size: 13px; line-height: 1.55; color: var(--c-text-soft);
}
.budget-notices li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-blue); }
.budget-alts { margin-top: 12px; display: grid; gap: 8px; }
.budget-alts-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.budget-alt {
  display: grid; gap: 2px; text-align: left; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-2);
}
.budget-alt:hover { border-color: var(--c-blue); }
.budget-alt:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.budget-alt-label { font-size: 15px; font-weight: 700; color: var(--c-text); }
.budget-alt-detail { font-size: 13px; color: var(--c-text-soft); }
.budget-alt-total { font-size: 13px; font-weight: 600; color: #B42318; }
.budget-alt.is-fit .budget-alt-total { color: #1F7A4D; }

.cost-summary-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.cs-disclaimer { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--c-text-mute); }

/* 날짜 탭: '1일차 · 11/24' 와 금액이 겹치지 않게 두 줄 */
.day-chip-label { display: block; white-space: nowrap; }
.day-chip .day-chip-cost { display: block; white-space: nowrap; font-size: 11px; }

.sample-badge {
  margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #FFF4DA; color: #7A4B00;
}

/* ============ 예산 단계 ============ */
.budget-trip-summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 12px 14px; margin: 0 0 18px; border-radius: 12px; background: var(--c-surface-2); font-size: 14px;
}
.budget-trip-summary span { color: var(--c-text-soft); }
.budget-field { margin-bottom: 20px; }
.form-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-text-soft); }
.form-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #B42318; }
.budget-input[aria-invalid="true"] { border-color: #B42318; }
.budget-level-badge { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-text); }
.budget-level-badge:empty { display: none; }
.budget-includes { border: 0; padding: 0; margin: 0 0 20px; }
.budget-includes legend { padding: 0; margin-bottom: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.check-row small { color: var(--c-text-mute); font-size: 13px; margin-left: 4px; }
.budget-suggest {
  border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 0 16px; background: var(--c-surface);
}
.budget-suggest-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.budget-suggest-head .form-section-title { margin: 0; }
.budget-marks button { display: grid; gap: 2px; text-align: left; }
.bm-desc { font-size: 12px; line-height: 1.4; color: var(--c-text-mute); font-weight: 500; }
.form-details { border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 0 16px; margin: 0 0 12px; background: var(--c-surface); }
.form-details > summary { cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin: 0; }
.form-details > summary::-webkit-details-marker { display: none; }
.form-details > summary::after { content: '열기'; font-size: 13px; font-weight: 600; color: var(--c-text-soft); }
.form-details[open] > summary::after { content: '닫기'; }
.form-details[open] { padding-bottom: 14px; }
.draft-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--c-surface-2); font-size: 14px;
}
.btn-text { min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.check-row input { -webkit-appearance: auto; appearance: auto; flex: 0 0 auto; }
.budget-field .budget-level-badge { text-align: left; font-weight: 500; }

/* ===================== 여행 만들기 (2단계 개선) ===================== */
/* 이전·다음·만들기 버튼은 화면 아래에 붙어 있고, 하단 메뉴·가운데 + 버튼·안전 영역 위에 놓인다. */
#createTripPage .step-nav {
  position: sticky;
  /* 스크롤 영역 아래 여백(메뉴 높이 + 24px)만큼 내려 스크롤 영역 끝에 딱 붙인다. */
  bottom: calc(-1 * var(--nav-h) - var(--safe-bottom) - 24px);
  z-index: 6;
  margin: 20px calc(-1 * var(--app-side-padding)) 0;
  padding: 10px var(--app-side-padding) 22px;
  background: linear-gradient(to bottom, transparent, var(--c-bg) 14px);
}
body.is-typing .bottom-tab-nav { display: none; }

.form-row.is-updated .form-input { animation: field-flash 1.2s ease; }
@keyframes field-flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(58,110,165,.45); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .form-row.is-updated .form-input { animation: none; outline: 2px solid var(--c-primary); } }
.form-hint.is-error, .origin-message.is-error { color: var(--c-danger, #D93025); font-weight: 600; }
.form-input[aria-invalid="true"] { border-color: var(--c-danger, #D93025); }
.step-subh .form-label-meta, .form-label .form-label-meta { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--c-text-mute); }

.city-sug-item.is-airport .csa-icon { width: 28px; text-align: center; font-size: 16px; }
.city-sug-item.is-focus, .city-sug-airport.is-focus { background: var(--c-surface-2, #EEF2F6); }
.city-sug-empty { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 12px 14px; font-size: 13px; color: var(--c-text-soft); }
.dest-advanced summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--c-text-soft); padding: 10px 0; }

/* 인원·객실 */
.people-box { margin-top: 16px; padding: 4px 14px 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); }
.people-box .step-subh { margin-top: 12px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--c-border); }
.stepper-text { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 700; }
.stepper-text small { font-size: 12px; font-weight: 500; color: var(--c-text-mute); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--c-border); background: var(--c-surface); font-size: 20px; line-height: 1; color: var(--c-text); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 여행 스타일 카드 — 같은 높이·왼쪽 정렬 */
.concept-grid { grid-auto-rows: 1fr; }
.concept-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; height: 100%; min-height: 112px; }
.concept-card.is-active::after { content: "✓"; position: absolute; top: 10px; right: 12px; font-weight: 800; color: var(--c-primary-strong); }
#styleChips .chip[aria-pressed="true"]::before { content: "✓ "; }

/* 항공사 검색 */
.airline-tools { display: grid; gap: 6px; margin: 4px 0 8px; }
.airline-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-text-soft); }

/* 달력: 출발·귀국 표시 */
.cal-cell.range-start, .cal-cell.range-end { position: relative; }
.cal-cell.range-start::after, .cal-cell.range-end::after {
  position: absolute; left: 0; right: 0; bottom: 1px; font-size: 9px; font-weight: 700; line-height: 1; opacity: .9;
}
.cal-cell.range-start::after { content: "출국"; }
.cal-cell.range-end::after { content: "귀국"; }
.cal-cell.range-start.range-end::after { content: "당일"; }
.cal-cell:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.concept-card.is-active { background: color-mix(in srgb, var(--c-primary) 9%, var(--c-surface)); }

/* ===================== Phase 3 — 홈·탐색·코스 상세 ===================== */
/* 홈 검색 — 검색 버튼으로 탐색에 넘어간다 */
.search-card .search-submit {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 13px;
  font-weight: 700;
}
.home-subh { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: var(--c-text-soft); }
.home-styles { gap: 8px; }
.section-sub { margin: -4px 0 10px; font-size: 13px; color: var(--c-text-soft); line-height: 1.5; }

/* 모바일 첫 화면에서는 인사말을 빼 제목·설명·버튼이 먼저 읽히게 */
@media (max-width: 479px) {
  .hero-greet { display: none; }
  .hero-card { min-height: 0; gap: 18px; }
  .hero-title { font-size: 28px; }
  .hero-route { opacity: .55; width: 110px; height: 154px; }
}

/* 도시 바로가기 — 손가락을 대고 있거나 마우스를 올리면 멈춘다 */
.city-section .section-head { margin-bottom: 0; }
.city-section .city-marquee { margin-top: 4px; margin-bottom: 0; }
.city-marquee:active .city-marquee-track { animation-play-state: paused; }

/* 탐색 — 결과 수와 정렬 */
.explore-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.explore-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-text); }
.explore-bar .sort-tabs { margin: 0; flex: 0 0 auto; width: 168px; }
#exploreFilters { gap: 8px; margin-top: 12px; }

/* 코스 카드 — 도시·국가 → 제목 → 기간·스타일 → 좋아요 */
.roadmap-card .rc-top { gap: 6px; justify-content: flex-start; flex-wrap: wrap; }
.rc-sample, .rc-reason {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.rc-sample { background: rgba(255,255,255,.92); color: #111418; }
.rc-reason { background: rgba(0,0,0,.38); color: #fff; }
.rc-place { font-size: 12px; font-weight: 600; opacity: .9; }
.rc-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-info { margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .92; }
.roadmap-card .rc-bottom .rc-likes { margin-top: 6px; width: fit-content; background: rgba(0,0,0,.3); }
.roadmap-list > .roadmap-card { height: 200px; }
@media (min-width: 768px) { .roadmap-list > .roadmap-card { flex-basis: 280px; } }

/* 코스 상세 */
.roadmap-cover .rd-city { font-size: 13px; font-weight: 600; opacity: .9; margin: 0; }
.roadmap-cover .rd-title { margin: 4px 0 2px; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.roadmap-cover .rd-title:focus { outline: none; }
.meta-pill--sample { background: var(--c-text) !important; color: var(--c-bg); border-color: transparent !important; font-weight: 700; }
.roadmap-body { margin-top: 8px; }
.rd-h { margin: 22px 0 10px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.rd-note { margin: 10px 0; font-size: 13px; color: var(--c-text-soft); line-height: 1.6; }
.rd-loading { padding: 32px 0; text-align: center; color: var(--c-text-soft); }
.rd-cost {
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.rd-cost .rd-h { margin: 0 0 6px; font-size: 14px; color: var(--c-text-soft); }
.rd-cost-num { margin: 0; font-size: 20px; font-weight: 800; }
.rd-cost-note { margin: 2px 0 0; font-size: 13px; color: var(--c-text-soft); }
.rd-source { margin: 8px 0 0; font-size: 12px; color: var(--c-text-mute); line-height: 1.5; }
.rd-day { margin-bottom: 16px; }
.rd-day-h { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.rd-stops { list-style: none; margin: 0; padding: 0; }
.rd-stop {
  display: grid;
  grid-template-columns: 48px 24px 1fr;
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.rd-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-text-soft); padding-top: 1px; }
.rd-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.rd-name small { display: block; font-size: 12px; font-weight: 500; color: var(--c-text-mute); }
.rd-move {
  margin: 0 0 0 30px;
  padding: 6px 0 6px 18px;
  border-left: 2px dashed var(--c-border);
  font-size: 12px;
  color: var(--c-text-soft);
}
.rd-missing { padding: 40px 0; }
.rd-missing .empty-title { margin: 8px 0 4px; font-size: 18px; font-weight: 800; }
.rd-missing .empty-title:focus { outline: none; }
.rd-missing .btn { margin-top: 10px; }
#roadmapDetailPage .roadmap-cta-row {
  position: sticky;
  bottom: calc(-1 * var(--nav-h) - var(--safe-bottom) - 24px);
  display: flex;
  gap: 8px;
  margin: 16px calc(-1 * var(--app-side-padding)) 0;
  padding: 10px var(--app-side-padding) 22px;
  background: linear-gradient(to bottom, transparent, var(--c-bg) 14px);
  z-index: 5;
}
#roadmapDetailPage .roadmap-cta-row .btn-primary { flex: 1; }
#roadmapDetailPage .roadmap-cta-row[hidden] { display: none; }

/* 후기 예시 배지 */
.rv-sample {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 2px;
}
/* 가로 스크롤 목록이 화면 여백과 같은 폭만큼만 밖으로 나가게(320px에서 가로 넘침 방지) */
.review-preview-list, .roadmap-list {
  margin-left: calc(-1 * var(--app-side-padding));
  margin-right: calc(-1 * var(--app-side-padding));
  padding-left: var(--app-side-padding);
  padding-right: var(--app-side-padding);
}
/* 데스크톱 히어로 오른쪽 — 일정 미리보기 카드 */
.hero-preview { display: none; }
@media (min-width: 1024px) {
  .hero-text { max-width: 54%; }
  .hero-preview {
    display: block;
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
  }
  .hp-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 15px; font-weight: 800; }
  .hp-badge { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: #111418; font-size: 11px; font-weight: 700; }
  .hp-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .hp-days li { font-size: 13px; color: rgba(255,255,255,.85); padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); }
  .hp-days b { margin-right: 6px; color: #fff; }
  .hp-cost { margin: 12px 0 0; font-size: 12.5px; color: rgba(255,255,255,.75); }
  .hp-cost b { color: #fff; }
}
@media (min-width: 1024px) { .hero-route { display: none; } }

/* ===================== Phase 4 — 결과 화면 ===================== */
.page-header.schedule-head { flex-wrap: wrap; align-items: flex-start; }
.page-header.schedule-head > div:first-child { min-width: 0; flex: 1 1 220px; }
.schedule-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.schedule-actions[hidden] { display: none; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13px; font-weight: 700;
}
.action-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.action-btn.is-active { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.action-btn.is-active svg { fill: currentColor; }
.save-status { margin: 6px 0 10px; font-size: 12.5px; color: var(--c-text-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.save-status.is-error { color: #B4432F; }
.shared-banner { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); font-size: 13px; }

/* 날짜 탭 — 작은 화면에서도 일자와 금액이 겹치지 않게 두 줄 */
.day-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: nowrap; }
.day-chip-label, .day-chip-cost { display: block; line-height: 1.25; }

/* 목록 ↔ 지도 */
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 10px;
  border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface);
}
.view-toggle[hidden] { display: none; }
.view-toggle button { min-height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-text-soft); }
.view-toggle button[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.schedule-split[hidden] { display: none; }
#schedulePage:not(.view-map) .schedule-map-col { display: none; }
#schedulePage.view-map .schedule-list-col { display: none; }
@media (min-width: 1024px) {
  .view-toggle { display: none !important; }
  .schedule-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .schedule-split .schedule-list-col { order: 1; display: block !important; }
  .schedule-split .schedule-map-col { order: 2; display: block !important; position: sticky; top: 12px; }
}
.map-pick {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0; padding: 10px 12px;
  border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface);
}
.map-pick[hidden] { display: none; }
.map-pick .mp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.map-pick .mp-body strong { font-size: 14px; overflow-wrap: anywhere; }

/* 하루 점검 */
.day-checks { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-border); }
.day-checks[hidden] { display: none; }
.dc-head { margin: 0 0 6px; font-size: 13px; color: var(--c-text-soft); }
.dc-head strong { color: var(--c-text); }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; }
.dc-list li { padding-left: 20px; position: relative; }
.dc-list li::before { position: absolute; left: 0; top: 0; }
.dc-ok::before { content: '✓'; color: #2F7D4F; }
.dc-warn::before { content: '!'; font-weight: 900; color: #B4432F; left: 5px !important; }
.dc-check::before { content: '?'; font-weight: 900; color: #8A6A16; left: 4px !important; }

/* 카드 */
.schedule-card { cursor: default; }
.schedule-card.is-focused { box-shadow: 0 0 0 2px var(--c-text), var(--shadow-sm); }
.schedule-card:focus { outline: none; }
.schedule-card:focus-visible { box-shadow: 0 0 0 3px var(--c-primary); }
.schedule-place-name { overflow-wrap: anywhere; word-break: keep-all; white-space: normal !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; display: block !important; }
.sc-num {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-text); color: var(--c-bg);
  font-size: 11px; font-weight: 800; flex: 0 0 auto;
}
.schedule-card-meta-line { flex-wrap: wrap; }
.edited-badge { font-size: 11px; font-weight: 700; color: var(--c-text-soft); border: 1px dashed var(--c-border); padding: 1px 6px; border-radius: 999px; }
.schedule-price-tag { font-size: 11px; font-weight: 600; color: var(--c-text-mute); }
.schedule-price-tag.is-live { color: #3A6EA5; }
.sc-flags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.sc-flag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sc-flag--warn { background: #FBE9E5; color: #9A3624; }
.sc-flag--check { background: #F6EFD9; color: #6F5511; }
.sc-more { margin-top: 6px; font-size: 12.5px; }
.sc-more summary { cursor: pointer; color: var(--c-text-soft); font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; }
.sc-more .sc-addr { margin: 4px 0; color: var(--c-text-soft); overflow-wrap: anywhere; }
.sc-map-link { font-size: 12.5px; }
.schedule-card-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.move-btn {
  min-width: 36px; min-height: 32px; border-radius: 10px;
  border: 1px solid var(--c-border); background: var(--c-surface-2);
  font-size: 12px; color: var(--c-text);
}
.move-btn:disabled { opacity: .35; }
.tl-move {
  margin: -4px 0 6px 18px; padding: 4px 0 4px 14px;
  border-left: 2px dashed var(--c-border);
  font-size: 12px; color: var(--c-text-soft);
}
.tl-empty { padding: 20px 0; color: var(--c-text-soft); font-size: 14px; }
.add-place-top { margin-bottom: 12px; }
#scheduleEmpty .btn + .btn { margin-top: 8px; }

/* 공유 시트 */
.share-sec { padding: 4px 0 16px; }
.share-sec + .share-sec { border-top: 1px solid var(--c-border); padding-top: 16px; }
.share-sec h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.share-sec .check-row { display: flex; gap: 8px; align-items: center; min-height: 40px; font-size: 14px; }
.share-preview-h { margin: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--c-text-soft); }
.share-preview { list-style: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); display: grid; gap: 4px; font-size: 13px; }
.share-preview li::before { content: '✓ '; color: #2F7D4F; font-weight: 800; }
.share-preview li.is-off { color: var(--c-text-mute); }
.share-preview li.is-off::before { content: '– '; color: var(--c-text-mute); }
#shareSheetTitle { font-size: 17px; margin: 0; }
#shareSheetTitle:focus { outline: none; }
/* 저장한 일정 */
.my-sub-h { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--c-text-soft); }
.my-loading { padding: 20px 0; color: var(--c-text-soft); }
.my-list-card--row { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px; padding: 0 !important; overflow: hidden; }
.my-list-card--row .mlc-open { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px 6px; text-align: left; }
.my-list-card--row .mlc-body { flex: 1; min-width: 0; }
.my-list-card--row .mlc-title { overflow-wrap: anywhere; }
.mlc-actions { display: flex; gap: 14px; padding: 0 16px 12px; }
.btn-text.is-danger { color: #B4432F; }
.my-removed { margin-top: 16px; }
.my-removed summary { cursor: pointer; font-size: 14px; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.my-removed .my-list-card { margin-top: 8px; }
.device-trip { margin-top: 8px; }
/* PDF(인쇄) — 전체 일정만 인쇄 */
#printSheet { display: none; }
@media print {
  body.has-print > *:not(#printSheet), body:has(#printSheet) > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block; color: #000; font-size: 11pt; }
  #printSheet h1 { font-size: 18pt; margin: 0 0 4pt; overflow-wrap: anywhere; }
  #printSheet h2 { font-size: 13pt; margin: 14pt 0 6pt; break-after: avoid; }
  #printSheet table { width: 100%; border-collapse: collapse; }
  #printSheet tr { break-inside: avoid; }
  #printSheet td { border-bottom: .5pt solid #ccc; padding: 5pt 4pt; vertical-align: top; overflow-wrap: anywhere; }
  #printSheet .ps-time { width: 48pt; font-weight: 700; }
  #printSheet .ps-cat { width: 48pt; color: #555; }
  #printSheet .ps-addr { color: #555; font-size: 9pt; }
  #printSheet .ps-sub { color: #555; font-size: 9pt; }
}
.book-notice { margin: 0 18px 10px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); font-size: 12.5px; line-height: 1.5; color: var(--c-text-soft); }
#bookingSheetTitle { font-size: 17px; margin: 0; }
.review-vis { border: 0; padding: 0; margin: 8px 0; }
.review-vis legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.review-vis .check-row { display: flex; gap: 8px; align-items: center; min-height: 40px; font-size: 14px; }
.review-tags .chip-mini.is-active::before { content: "✓ "; }

/* ===================== Phase 5 — 마이·내비게이션 ===================== */
/* 마이: 용도별 묶음 */
.my-group { margin-top: 20px; }
.my-group-h { margin: 0 0 8px 2px; font-size: 13px; font-weight: 700; color: var(--c-text-soft); }
.my-group .setting-row { gap: 12px; justify-content: flex-start; min-height: 52px; text-align: left; }
.my-group .sr-ico { display: inline-flex; color: var(--c-text-soft); flex: 0 0 auto; }
.my-group .sr-label { flex: 1; min-width: 0; font-weight: 600; color: var(--c-text); }
.my-group .setting-meta { font-size: 12.5px; color: var(--c-text-soft); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-group .setting-row:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.sub-status { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); font-size: 13px; line-height: 1.5; }
.sub-cta:disabled { opacity: .6; cursor: default; }

/* 하단 메뉴 — 가운데 버튼에도 글자, 활성 탭과 키보드 초점을 다르게 */
.tab-button { position: relative; }
.tab-button.is-active { color: var(--c-text); font-weight: 800; }
.tab-button.is-active::before {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 3px; background: var(--c-text);
}
.tab-button:focus-visible, .tab-fab-button:focus-visible {
  outline: 2px solid var(--c-primary); outline-offset: -4px; border-radius: 12px;
}
.tab-fab-button {
  width: auto !important; height: var(--nav-h) !important; margin: 0 !important;
  background: none !important; box-shadow: none !important; border-radius: 0;
  flex-direction: column; gap: 3px; justify-content: flex-end; padding-bottom: 8px;
  color: var(--c-text); font-size: 11px; font-weight: 700;
}
.tab-fab-button .fab-plus {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; margin: -22px 0 0;
  border-radius: 50%; background: var(--c-primary); color: var(--c-on-ink);
  font-size: 28px; font-weight: 300; line-height: 1;
  box-shadow: 0 8px 20px rgba(17,20,24,.22), 0 0 0 4px var(--c-bg);
  transition: transform .18s ease;
}
.tab-fab-button:active .fab-plus { transform: scale(.94); }
.tab-fab-button.is-active .tab-label { font-weight: 800; }
.tab-fab-button .tab-label { white-space: nowrap; }
@media (max-width: 359px) {
  .tab-button, .tab-fab-button { font-size: 10px !important; }
  .tab-fab-button .fab-plus { width: 44px; height: 44px; }
}

/* 상단 헤더 — 넓은 화면에서는 로고·핵심 메뉴·여행 만들기를 위에, 하단 메뉴는 숨김 */
.topbar-nav { display: none; }
@media (min-width: 1024px) {
  :root { --nav-h: 0px; }
  .bottom-tab-nav { display: none !important; }
  .app-topbar { display: flex; align-items: center; gap: 12px; padding-inline: var(--app-side-padding); }
  .topbar-brand { position: static; transform: none; padding-top: 0; }
  .topbar-spacer { display: none; }
  .topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .topbar-nav a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border-radius: 999px; color: var(--c-text-soft); font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .topbar-nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
  .topbar-nav a.is-active { color: var(--c-text); font-weight: 800; background: var(--c-surface-2); }
  .topbar-nav a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
  .topbar-nav .topbar-cta { margin-left: 8px; background: var(--c-text); color: var(--c-bg); }
  .topbar-nav .topbar-cta:hover { background: var(--c-text); color: var(--c-bg); opacity: .9; }
  .page-scroll { padding-bottom: calc(var(--safe-bottom) + 40px); }
}
