/* Shared type and spacing for the travel view and both ledger sections. */
:root { --ui-space: 8px; --ui-control: 48px; }
body { font-size: 17px; line-height: 1.6; }
button, input, select, textarea { font-family: inherit; }
.section { padding-block: 40px; }
.section-kicker { margin-bottom: 7px; color: var(--lake); font-size: 12px; line-height: 1.4; }
.section-heading { align-items: start; gap: 12px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.section-index, .soft-label { font-size: 14px; line-height: 1.4; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* A long section title and the carousel count need separate rows on a phone. */
.section.is-collapsible .section-heading--collapsible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 5px 12px;
  min-height: 80px;
  padding: 10px 84px 10px 0;
}
.section.is-collapsible .section-heading--collapsible > div { grid-column: 1; min-width: 0; }
.section.is-collapsible .section-heading--collapsible > .section-index,
.section.is-collapsible .section-heading--collapsible > .soft-label {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  justify-self: start;
  white-space: nowrap;
}
.section-collapse-hint { right: 27px; font-size: 14px; }
.section-collapse-toggle { min-height: 80px; }

/* Shared type hierarchy for hotel, transport, and dining cards. */
.flight-card { padding: 22px; line-height: 1.5; font-weight: 400; }
.flight-card__top { font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.flight-card__top b { font-size: 13px; font-weight: 600; }
.flight-card h3 { font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hotel-stay-card__dates, .dining-card__date, .car-transfer-card__time { font-size: 16px; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums; }
.car-transfer-card__time span, .car-transfer-card__time strong { font: inherit; font-variant-numeric: tabular-nums; }
.car-transfer-card h3 { margin: 14px 0 0; }
.car-transfer-card__provider { margin-top: 7px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.hotel-stay-location dd, .car-transfer-route strong, .dining-card__detail, .dining-card__facts dd, .dining-card__check-in { font-size: 15px; font-weight: 400; line-height: 1.55; }
.hotel-stay-card__ja, .hotel-stay-card__en, .dining-card__ja, .dining-card__check-in--ja, .hotel-stay-location div[lang="ja"] dd, .car-transfer-card__note { font-size: 14px; font-weight: 400; line-height: 1.55; }
.hotel-stay-location dt, .car-transfer-route span, .dining-card__facts dt { font-size: 13px; font-weight: 600; line-height: 1.5; }
.hotel-stay-location div { grid-template-columns: 72px minmax(0, 1fr); }
.hotel-stay-card__footer a { min-height: var(--ui-control); padding-inline: 14px; font-size: 14px; }
.flight-card__airlines, .flight-placeholder p, .flight-placeholder li, .flight-stop__city { font-size: 14px; }
.flight-placeholder__eyebrow, .flight-stop__timing, .flight-stop__timing em, .flight-countdown span { font-size: 13px; }
.flight-stop__timing b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.flight-segment span { font-size: 13px; }
.flight-countdown strong { font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.carousel-dots { min-height: 20px; align-items: center; }

.day-meta, .schedule-time { font-size: 14px; }
.day-weather { display: inline-flex; margin: 8px 8px 0 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 14px; font-weight: 500; line-height: 1.4; }
.day-weather[hidden] { display: none; }
.next-heading__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 1 190px; min-width: 0; }
.next-weather { margin: 0; max-width: 100%; font-size: 13px; text-align: right; white-space: normal; }
.weather-source { display: inline-block; margin: 14px 0 0 48px; color: var(--muted); font-size: 12px; }
.day-detail { margin: 12px -12px 0; padding: 18px 12px 26px; border-radius: 14px; background: var(--surface); }
.day-detail .schedule-item::after { background: var(--surface); }
.schedule-admission { display: block; margin: 2px 0 4px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.45; }
.day-locations, .schedule-map-link, .detail-note { font-size: 15px; }
.schedule-map-link--breakfast { flex-direction: column; gap: 3px; }
.schedule-map-link--breakfast small { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 400; }
.schedule-ticket__status, .schedule-ticket__content small, .schedule-ticket__open { font-size: 13px; }
.schedule-ticket__content strong { font-size: 15px; }
.schedule-ticket__open { min-height: var(--ui-control); }
.detail-note { border-left: 1px solid var(--terracotta); border-radius: 10px; }
.booking-row p, .booking-row dt, .booking-row dd { font-size: 15px; }

/* Matching section and form vocabulary across the yen wallet and CNY ledger. */
.ledger-group { border-color: var(--line); background: var(--surface); }
#public-wallet { background: color-mix(in srgb, var(--lake-soft) 55%, var(--surface)); }
.ledger-group > summary { padding: 18px 20px; }
.ledger-group > summary strong { font-size: 22px; line-height: 1.3; }
.ledger-group > summary span { margin-top: 5px; line-height: 1.5; }
.wallet, .ledger-app { color: var(--ink); font-size: 17px; line-height: 1.6; }
.wallet-totals, .wallet-entry, .wallet-details, .wallet-records,
.ledger-entry-card, .ledger-list-section, .ledger-stats-overview {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
.wallet-form, .ledger-entry-card { padding: 20px; }
.wallet-form { gap: 18px; }
.wallet-entry, .wallet-details, .wallet-records { margin-top: 24px; }
.ledger-fold { margin-top: 24px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ledger-fold > summary { min-height: 64px; padding: 16px 20px; box-sizing: border-box; cursor: pointer; font-size: 20px; font-weight: 700; line-height: 1.35; }
.ledger-fold > summary small { font-size: 15px; font-weight: 400; }
.ledger-fold > summary:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 16px; }
.ledger-fold[open] > summary { border-bottom: 1px solid var(--line); }
.ledger-fold-body { padding: 20px; }
.ledger-fold .ledger-bill-form, .ledger-fold .ledger-known-cost-list { margin-top: 0; }
.ledger-fold .ledger-transfer-list, .ledger-fold .ledger-member-stats-list { margin-top: 0; border: 0; box-shadow: none; }
.wallet button, .wallet input, .wallet select,
.ledger-input, .ledger-select, .ledger-currency-dropdown summary,
.ledger-field-amount .ledger-amount-input { min-height: var(--ui-control); font-size: 16px; }
.wallet input[name="amount"] { font-size: 24px; }
.ledger-section-kicker, .ledger-field-label, .ledger-fieldset legend,
.ledger-soft-count, .ledger-known-costs-note { font-size: 14px; line-height: 1.45; }
.ledger-section-heading h2, .wallet h2, .wallet-entry > summary, .wallet-details > summary,
.wallet-records > summary { font-size: 20px; line-height: 1.35; }
.ledger-category-choice, .ledger-person-name, .ledger-person-static,
.ledger-bill-people, .ledger-bill-date, .ledger-bill-note-trigger,
.ledger-known-cost-row small { font-size: 13px; line-height: 1.4; }
.ledger-category-choice { min-height: var(--ui-control); }
.ledger-person-input:focus-visible + .ledger-person-visual { outline: 3px solid var(--terracotta); outline-offset: 5px; border-radius: 50%; }
.ledger-bill-note-trigger { min-height: var(--ui-control); align-items: start; }
.ledger-bill-note-trigger span:last-child { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.ledger-bill-title-row h3, .ledger-known-cost-row strong { font-size: 16px; line-height: 1.4; }
.ledger-bill-amount strong { font-size: 18px; }
.ledger-row-actions .ledger-text-button, .ledger-text-button,
.ledger-icon-button { min-height: 44px; font-size: 14px; }
.ledger-primary-button, .ledger-secondary-button { font-size: 16px; }
.ledger-currency-option { min-height: 44px; font-size: 14px; }
.ledger-currency-option b { font-size: 13px; }

@media (max-width: 420px) {
  .section-heading h2 { font-size: 25px; }
  .flight-card { padding: 18px; }
  .ledger-group { width: calc(100% - 28px); }
  #wallet-root, .pretrip-ledger .ledger-app { padding-inline: 16px; }
  .ledger-amount-block { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .ledger-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ledger-person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.place-map-sheet { height: auto; max-height: min(85dvh, 640px); padding: 0 18px calc(24px + var(--safe-bottom)); overflow-y: auto; }
.place-map-sheet > * { flex-shrink: 0; }
.place-map-sheet header { min-height: 70px; padding-inline: 0; border-bottom: 1px solid var(--line); }
.place-map-sheet h2 { font-size: 22px; line-height: 1.3; }
.place-map-sheet__intro { margin: 22px 0 12px; color: var(--muted); font-size: 16px; }
.place-map-providers { display: grid; gap: 10px; }
.place-map-providers[hidden] { display: none; }
.place-map-address-label { display: block; margin: 18px 0 8px; color: var(--muted); font-size: 16px; }
.place-map-address { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.5; resize: none; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.place-map-copy { min-height: 48px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.place-map-providers a { min-height: 56px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); font-size: 18px; font-weight: 700; text-decoration: none; }
.place-map-providers a:focus-visible, .place-map-providers a:hover { border-color: var(--lake); background: var(--lake-soft); }
.place-map-sheet__note { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
button[data-map-query] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.map-copy-status { position: fixed; z-index: 100; bottom: calc(24px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 36px); padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 16px; text-align: center; pointer-events: none; }
.map-copy-status[hidden] { display: none; }
.map-place-action { min-height: 44px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; font-size: 14px; font-weight: 700; }
.flight-airport-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flight-airport-maps .map-place-action { border-color: rgba(255,255,255,.5); }
.daily-map { margin: 0 0 24px; }
.daily-map h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.daily-map p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.daily-map__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.daily-map__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #087988; }
.daily-map__legend .daily-map__legend--shopping::before { background: #f1a950; }
.daily-map__legend .daily-map__legend--hotel::before { background: #7550a3; }
.daily-map__legend .daily-map__legend--breakfast::before { background: #426f45; }
.daily-map__legend .daily-map__legend--dinner::before { background: #a74f29; }
.daily-map__canvas { height: 300px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 14px; background: #e8f0ec; }
.daily-map__marker { display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: #087988; box-shadow: 0 2px 8px rgba(0, 35, 43, .3); font-size: 15px; font-weight: 700; }
.daily-map__marker--suggested { color: #1b2527; background: #f1a950; }
.daily-map__marker--evening { background: #7550a3; }
.daily-map__marker--hotel { background: #7550a3; }
.daily-map__marker--breakfast { background: #426f45; }
.daily-map__marker--dinner { background: #a74f29; }
.daily-map__marker span { line-height: 28px; }
.schedule-walk { margin: 7px 0 0; color: #277281; font-size: 13px; line-height: 1.5; font-weight: 600; }
.optional-place-group { border-top: 1px solid var(--line); }
.optional-place-group > summary, .optional-place > details > summary { display: flex; align-items: center; gap: 12px; min-height: var(--ui-control); padding-block: 10px; list-style: none; cursor: pointer; }
.optional-place-group > summary { font-size: 18px; font-weight: 600; }
.optional-place-group > summary span { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 400; }
.optional-place-group > summary::after, .optional-place > details > summary::after { content: "+"; color: var(--lake); font-size: 22px; line-height: 1; font-weight: 400; }
.optional-place-group[open] > summary::after, .optional-place > details[open] > summary::after { content: "−"; }
.optional-place-group summary::-webkit-details-marker { display: none; }
.optional-place-list { margin: 0; padding: 0; list-style: none; }
.optional-place { border-top: 1px solid var(--line); }
.optional-place > details > summary { font-size: 16px; font-weight: 500; }
.optional-place > details > summary::after { margin-left: auto; }
.optional-place__detail { padding-bottom: 16px; font-size: 15px; line-height: 1.6; }
.optional-place__detail > span { color: var(--muted); font-size: 14px; }
.optional-place__detail > p { margin: 6px 0 10px; }
.dining-card .map-place-action, .hotel-stay-card .map-place-action { align-self: flex-start; }
.dining-card__map { display: flex; margin-top: auto; padding-top: 16px; }
.booking-row__maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 520px) {
  .schedule-item { padding-left: 68px; }
  .schedule-time { left: -12px; width: 54px; font-size: 13px; overflow-wrap: anywhere; }
  .schedule-item::before { left: 54px; }
  .schedule-item::after { left: 50px; }
}
