/* Route planner prototype (/routes/planner): an app, not a page. Two panes on desktop and tablet, an app flow on phones.
   Prefix pl-. 390px is the phone reference. PROTOTYPE ONLY: the canvas, card, accent and service colours below are scoped
   to .pl-app on purpose (an app palette, not the paper look of the rest of the site); they are not site tokens and
   should not be reused elsewhere until the owner signs off on the direction. Text and hairlines still use site tokens. */
.pl-app {
  --pl-canvas: var(--paper); --pl-card: #FFFFFF; --pl-soft: #F5F7FB; --pl-line: #E2E6EE; --pl-line2: #CDD3DF;
  --pl-ink: #0F172A; --pl-ink2: #475569; --pl-ink3: #64748B;
  --pl-accent: #2F4FD1; --pl-accent-ink: #1E3A9E; --pl-accent-soft: #E7ECFC;
  --pl-amber-bg: #FFF6DC; --pl-amber-line: #F2D48A; --pl-amber-ink: #8A5207;
  --pl-green-bg: #E3F5EA; --pl-green-ink: #17653A;
  --pl-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px -14px rgba(15, 23, 42, .18);
  --pl-shadow-sel: 0 0 0 2px var(--pl-accent), 0 12px 28px -12px rgba(47, 79, 209, .45);
  /* service colours (white text on each is >= 4.5:1) */
  --sv-kagayaki: #1E3A8A; --sv-hakutaka: #C2410C; --sv-tsurugi: #6D28D9; --sv-asama: #0F766E; --sv-nozomi: #2563EB;
  --sv-thunderbird: #B91C1C; --sv-shirasagi: #0E7490; --sv-hida: #4D7C0F; --sv-shinano: #A16207; --sv-local: #475569;
  --pl-hh: 68px;
  background: var(--pl-canvas); color: var(--pl-ink); font-family: var(--sans);
  display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--pl-hh));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pl-app {
    --pl-canvas: var(--paper); --pl-card: #171B24; --pl-soft: #1D222D; --pl-line: #262C39; --pl-line2: #343C4D;
    --pl-ink: #F1F5F9; --pl-ink2: #B6C0D0; --pl-ink3: #8D99AD;
    --pl-accent: #5B73E8; --pl-accent-ink: #C5D0FF; --pl-accent-soft: #232B4D;
    --pl-amber-bg: #3A2D10; --pl-amber-line: #6B5420; --pl-amber-ink: #F5CF7D;
    --pl-green-bg: #123522; --pl-green-ink: #8EE0AE;
    --pl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --pl-shadow-sel: 0 0 0 2px var(--pl-accent), 0 12px 28px -12px rgba(91, 115, 232, .5);
  }
}
[data-theme="dark"] .pl-app {
  --pl-canvas: var(--paper); --pl-card: #171B24; --pl-soft: #1D222D; --pl-line: #262C39; --pl-line2: #343C4D;
  --pl-ink: #F1F5F9; --pl-ink2: #B6C0D0; --pl-ink3: #8D99AD;
  --pl-accent: #5B73E8; --pl-accent-ink: #C5D0FF; --pl-accent-soft: #232B4D;
  --pl-amber-bg: #3A2D10; --pl-amber-line: #6B5420; --pl-amber-ink: #F5CF7D;
  --pl-green-bg: #123522; --pl-green-ink: #8EE0AE;
  --pl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --pl-shadow-sel: 0 0 0 2px var(--pl-accent), 0 12px 28px -12px rgba(91, 115, 232, .5);
}
.pl-app *, .pl-app *::before, .pl-app *::after { box-sizing: border-box; }
.pl-app button { font-family: inherit; }
.pl-app [hidden] { display: none !important; }
.pl-app a { color: inherit; }

/* ---------- panes ---------- */
.pl-left { min-width: 0; }
.pl-left__in { padding: 14px 14px 40px; }
.pl-right { min-width: 0; }
.pl-right__in { padding: 18px 14px 56px; max-width: 980px; }
.pl-right__bar { display: none; }
@media (min-width: 700px) {
  .pl-app { grid-template-columns: 340px minmax(0, 1fr); }
  .pl-left { position: sticky; top: var(--pl-hh); height: calc(100vh - var(--pl-hh)); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--pl-line); scrollbar-width: thin; }
  .pl-left__in { padding: 18px 16px 48px; }
  .pl-right__in { padding: 26px 24px 64px; }
}
@media (min-width: 1024px) {
  .pl-app { grid-template-columns: 420px minmax(0, 1fr); }
  .pl-left__in { padding: 22px 20px 56px; }
  .pl-right__in { padding: 30px 40px 72px; }
}
.pl-title { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; }
.pl-title h1 { margin: 0; font-family: var(--sans); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.pl-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--pl-accent-ink); background: var(--pl-accent-soft); border-radius: 999px; padding: 3px 9px; }

/* ---------- search card ---------- */
.pl-search { background: var(--pl-card); border-radius: 18px; box-shadow: var(--pl-shadow); padding: 10px 12px 14px; position: relative; }
.pl-fields { display: grid; grid-template-columns: 30px minmax(0, 1fr) 48px; grid-template-rows: 52px 52px; position: relative; }
.pl-rail { grid-column: 1; grid-row: 1 / 3; position: relative; color: var(--pl-accent); }
.pl-rail__dot { position: absolute; left: 50%; top: 20px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 3px solid var(--pl-accent); background: var(--pl-card); }
.pl-rail__line { position: absolute; left: 50%; top: 38px; bottom: 36px; width: 0; margin-left: -1px; border-left: 2px dotted var(--pl-line2); }
.pl-rail__pin { position: absolute; left: 50%; bottom: 17px; margin-left: -9px; }
.pl-field { grid-column: 2; position: relative; border-radius: 12px; transition: background .15s; }
.pl-field:first-of-type { grid-row: 1; }
.pl-field + .pl-field { grid-row: 2; }
.pl-field:first-of-type::after { content: ""; position: absolute; left: 8px; right: 0; bottom: 0; border-bottom: 1px solid var(--pl-line); }
.pl-field:focus-within { background: var(--pl-accent-soft); }
.pl-field:focus-within::after { display: none; }
.pl-input { width: 100%; height: 52px; padding: 0 10px; border: 0; background: transparent; color: var(--pl-ink); font: inherit; font-size: 16px; font-weight: 500; outline: none; text-overflow: ellipsis; }
.pl-input::placeholder { color: var(--pl-ink3); font-weight: 400; }
.pl-swap { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18); transition: transform .25s, background .15s; }
.pl-swap:hover { background: var(--pl-accent-soft); }
.pl-swap:active { transform: rotate(180deg); }
.pl-list { position: absolute; z-index: 30; left: -6px; right: -48px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .35); }
.pl-opt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-items: center; min-height: 48px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.pl-opt__name { font-size: 15px; font-weight: 550; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pl-opt__name small { font-size: 12.5px; font-weight: 400; color: var(--pl-ink3); white-space: nowrap; }
.pl-opt__lines { display: flex; gap: 4px; flex-wrap: wrap; }
.pl-opt__lines:empty { display: none; }
.pl-opt__lines i { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: var(--pl-soft); color: var(--pl-ink2); border: 1px solid var(--pl-line); white-space: nowrap; }
.pl-opt__lines i.is-sh { background: var(--pl-accent-soft); color: var(--pl-accent-ink); border-color: transparent; }
.pl-opt[aria-selected="true"], .pl-opt:hover { background: var(--pl-accent-soft); }
.pl-opt[aria-disabled="true"] { color: var(--pl-ink3); cursor: default; }
@media (max-width: 480px) { .pl-list { right: -12px; left: -12px; } }

.pl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; padding-left: 2px; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--pl-line); border-radius: 999px; background: var(--pl-soft); color: var(--pl-ink2); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.pl-chip:hover { border-color: var(--pl-line2); background: var(--pl-card); }
.pl-chip svg { flex: none; color: var(--pl-ink3); }
.pl-chip[aria-expanded="true"] { background: var(--pl-accent-soft); color: var(--pl-accent-ink); border-color: transparent; }
.pl-chip--time input { border: 0; background: transparent; padding: 0; width: 5.2em; height: 36px; font: inherit; font-weight: 650; color: var(--pl-accent-ink); cursor: pointer; font-variant-numeric: tabular-nums; outline: none; color-scheme: light dark; }
.pl-chip--time input::-webkit-calendar-picker-indicator { display: none; }
.pl-chip--time:focus-within { border-color: var(--pl-accent); }
.pl-info { margin: 10px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--pl-ink3); }
.pl-go { display: block; width: 100%; margin-top: 12px; min-height: 48px; border: 0; border-radius: 14px; background: var(--pl-accent); color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.pl-go:hover { background: var(--pl-accent-ink); }
.pl-go:active { transform: scale(.985); }
.pl-app :focus-visible { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
.pl-recent { display: flex; gap: 8px; overflow-x: auto; margin: 12px -14px 0; padding: 2px 14px; scrollbar-width: none; }
.pl-recent::-webkit-scrollbar { display: none; }
.pl-recent button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-ink2); font-size: 13px; cursor: pointer; }
.pl-recent button:hover { border-color: var(--pl-line2); }
.pl-recent svg { color: var(--pl-ink3); }

/* ---------- result rows ---------- */
.pl-results { margin-top: 16px; }
.pl-count { margin: 0 2px 4px; font-size: 12.5px; color: var(--pl-ink3); }
.pl-hour { position: sticky; top: 0; z-index: 3; margin: 0 -4px; padding: 10px 6px 6px; background: var(--pl-canvas); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--pl-ink3); }
.pl-row { display: block; width: 100%; margin: 0 0 10px; padding: 14px 16px 14px; text-align: left; border: 0; border-radius: 16px; background: var(--pl-card); color: var(--pl-ink); box-shadow: var(--pl-shadow); cursor: pointer; transition: box-shadow .18s, transform .18s; }
.pl-row:hover { transform: translateY(-1px); }
.pl-row[aria-pressed="true"] { box-shadow: var(--pl-shadow-sel); }
.pl-row__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pl-row__times { font-size: 21px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-row__times i { font-style: normal; color: var(--pl-ink3); font-weight: 400; margin: 0 4px; }
.pl-row__times sup { font-size: 10px; color: var(--pl-ink3); font-weight: 600; margin-left: 1px; }
.pl-row__fare { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-row__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; font-size: 13px; color: var(--pl-ink2); }
.pl-row__meta b { font-weight: 600; color: var(--pl-ink); }
.pl-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pl-ink3); }
.pl-tag { font-size: 11px; font-weight: 650; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--pl-accent-soft); color: var(--pl-accent-ink); }
.pl-tag--green { background: var(--pl-green-bg); color: var(--pl-green-ink); }
.pl-bar { display: flex; gap: 3px; height: 8px; margin: 12px 0 10px; }
.pl-bar i { display: block; border-radius: 4px; background: var(--c, var(--sv-local)); min-width: 6px; }
.pl-bar i.gap { background: var(--pl-line2); height: 2px; align-self: center; border-radius: 1px; min-width: 3px; }
.pl-bar i.walk { background: repeating-linear-gradient(90deg, var(--pl-line2) 0 4px, transparent 4px 7px); }
.pl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-pill, .tl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--c, var(--sv-local)); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pl-more { display: block; width: 100%; min-height: 44px; margin: 4px 0 8px; border: 1px dashed var(--pl-line2); border-radius: 14px; background: transparent; color: var(--pl-ink2); font-size: 14px; font-weight: 500; cursor: pointer; }
.pl-more:hover { background: var(--pl-card); }
.pl-empty { padding: 22px 20px; background: var(--pl-card); border-radius: 16px; box-shadow: var(--pl-shadow); color: var(--pl-ink2); font-size: 14.5px; line-height: 1.55; }
.pl-empty b { display: block; margin-bottom: 4px; color: var(--pl-ink); font-size: 15.5px; }
.pl-empty button { margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--pl-line2); background: var(--pl-card); color: var(--pl-accent-ink); font-weight: 600; cursor: pointer; }
.pl-skel i { display: block; height: 112px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(100deg, var(--pl-card) 30%, var(--pl-soft) 50%, var(--pl-card) 70%) 0 0 / 300% 100%; animation: pl-shim 1.3s linear infinite; box-shadow: var(--pl-shadow); }
@keyframes pl-shim { to { background-position: -300% 0; } }

/* ---------- right pane: welcome ---------- */
.pl-welcome h2 { margin: 0 0 6px; font-family: var(--sans); font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.pl-welcome p { margin: 0 0 18px; color: var(--pl-ink2); font-size: 15px; line-height: 1.5; max-width: 520px; }
.pl-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pl-app .pl-trip { position: relative; display: block; min-height: 170px; border-radius: 18px; overflow: hidden; background: #1E293B; color: #fff; text-decoration: none; box-shadow: var(--pl-shadow); isolation: isolate; transition: transform .2s; }
.pl-trip:hover { transform: translateY(-2px); }
.pl-trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.pl-trip:hover img { transform: scale(1.04); }
.pl-trip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 24, .05) 25%, rgba(8, 12, 24, .78)); }
.pl-trip__in { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.pl-trip b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.pl-trip span { display: block; font-size: 12.5px; opacity: .9; margin-top: 2px; }
.pl-welcome--m { display: none; margin-top: 22px; }
.pl-welcome--m .pl-trips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-welcome--m .pl-trip { min-height: 138px; }
.pl-welcome--m .pl-trip b { font-size: 15.5px; }
.pl-welcome--m h2 { font-size: 20px; }
.pl-welcome--m p { font-size: 14px; margin-bottom: 12px; }
@media (max-width: 699px) { .pl-welcome--m:not(:empty) { display: block; } .pl-welcome:not(.pl-welcome--m) { display: none; } }

/* ---------- right pane: journey detail ---------- */
.pl-detail { background: var(--pl-card); border-radius: 22px; box-shadow: var(--pl-shadow); padding: 22px 20px 6px; }
.pl-dh { padding-bottom: 18px; border-bottom: 1px solid var(--pl-line); }
.pl-dh h2 { margin: 0; font-family: var(--sans); font-size: clamp(24px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.pl-dh h2 i { font-style: normal; color: var(--pl-ink3); font-weight: 400; margin: 0 6px; }
.pl-dh__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.pl-dh__times { font-size: 22px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pl-dh__times i { font-style: normal; color: var(--pl-ink3); font-weight: 400; margin: 0 5px; }
.pl-dh__times sup { font-size: 11px; color: var(--pl-ink3); }
.pl-dh__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-fact { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--pl-soft); border: 1px solid var(--pl-line); color: var(--pl-ink2); }

.tl { padding: 14px 0 4px; }
.tl-row { display: grid; grid-template-columns: 52px 26px minmax(0, 1fr); column-gap: 8px; --dy: 14px; }
.tl-row--mid { --dy: 12px; }
.tl-t { text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 650; line-height: 22px; white-space: nowrap; }
.tl-t small { display: block; font-size: 12.5px; font-weight: 500; color: var(--pl-ink3); line-height: 16px; }
.tl-row--mid .tl-t { font-size: 13px; font-weight: 500; color: var(--pl-ink3); padding-top: 3px; line-height: 18px; }
.tl-t sup { font-size: 9px; color: var(--pl-ink3); }
.tl-r { position: relative; }
.tl-r .u, .tl-r .d { position: absolute; left: 50%; width: 6px; margin-left: -3px; background: var(--up, transparent); }
.tl-r .u { top: 0; height: var(--dy); }
.tl-r .d { top: var(--dy); bottom: 0; background: var(--down, transparent); }
.tl-r .dot { position: absolute; left: 50%; top: var(--dy); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--pl-card); border: 4px solid var(--dc, var(--pl-ink)); }
.tl-row--mid .dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 2.5px; }
.tl-row--end .dot { background: var(--dc, var(--pl-ink)); }
.tl-row--chg .dot { border-color: #D98E04; }
.tl-c { padding: 0 0 14px; min-width: 0; }
.tl-row--stop .tl-c { padding-bottom: 6px; }
.tl-row--mid .tl-c { padding-bottom: 0; }
.tl-name { font-size: 17px; font-weight: 600; line-height: 28px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-name small { font-size: 13px; font-weight: 400; color: var(--pl-ink3); }
.tl-row--mid .tl-name { font-size: 14px; font-weight: 450; line-height: 24px; color: var(--pl-ink2); }
.tl-leg-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 2px 0 6px; }
.tl-ja { font-size: 13px; color: var(--pl-ink3); }
.tl-dur { font-size: 13px; color: var(--pl-ink2); font-weight: 500; }
.tl-fold { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 2px; margin-left: -2px; border: 0; background: none; color: var(--pl-accent-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.tl-fold svg { transition: transform .2s; }
.tl-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
.tl-chg { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 9px 12px; border-radius: 12px; background: var(--pl-amber-bg); border: 1px solid var(--pl-amber-line); color: var(--pl-amber-ink); font-size: 13.5px; font-weight: 550; }
.tl-chg svg { flex: none; }
.tl-note { margin: 2px 0 8px; font-size: 13px; color: var(--pl-ink3); }
.tl-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 4px -20px 0; padding: 16px 20px; border-top: 1px solid var(--pl-line); background: var(--pl-soft); border-radius: 0 0 22px 22px; }
.tl-fare { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-fare small { display: block; font-size: 12px; font-weight: 500; color: var(--pl-ink3); }
.tl-pass { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--pl-green-bg); color: var(--pl-green-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tl-pass:hover { text-decoration: underline; }
.pl-fine { margin: 12px 4px 0; font-size: 12.5px; color: var(--pl-ink3); line-height: 1.5; }

/* ---------- sections on the right ---------- */
.pl-sec { margin-top: 34px; }
.pl-sec h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.pl-sec__sub { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--pl-ink2); max-width: 640px; }
.pl-sec__sub b { color: var(--pl-ink); font-weight: 600; }
.pl-seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 999px; }
.pl-seg > span { padding: 0 10px 0 12px; font-size: 13px; color: var(--pl-ink3); }
.pl-seg button { min-width: 44px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--pl-ink2); font-size: 14px; font-weight: 550; cursor: pointer; transition: background .18s, color .18s; }
.pl-seg button[aria-pressed="true"] { background: var(--pl-accent); color: #fff; }
.pl-brk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pl-brk:has(> :only-child) { grid-template-columns: minmax(0, 520px); }
.bk { display: flex; flex-direction: column; background: var(--pl-card); border-radius: 20px; overflow: hidden; box-shadow: var(--pl-shadow); }
.bk__ph { position: relative; height: 148px; background: linear-gradient(135deg, #334155, #1E293B); }
.bk__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .05) 35%, rgba(8, 12, 24, .72)); }
.bk__name { position: absolute; z-index: 1; left: 16px; bottom: 12px; right: 16px; color: #fff; font-size: 20px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.bk__name small { font-size: 13px; font-weight: 400; opacity: .9; }
.bk__add { position: absolute; z-index: 1; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: #fff; color: #0F172A; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk__b { display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 16px; flex: 1; }
.bt { position: relative; display: grid; grid-template-columns: 14px minmax(20px, 1fr) 14px minmax(20px, .7fr) 14px; align-items: start; padding: 6px 8px 46px 4px; margin: 0 0 -2px; }
.bt-n { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--pl-card); border: 3.5px solid var(--pl-accent); }
.bt-n--end { background: var(--pl-accent); }
.bt-n span { position: absolute; top: 22px; white-space: nowrap; font-size: 11.5px; line-height: 1.35; color: var(--pl-ink3); font-weight: 450; }
.bt-n span b { display: block; font-size: 14px; color: var(--pl-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.bt-n:nth-child(1) span { left: -4px; }
.bt-n:nth-child(3) span { left: 50%; transform: translateX(-50%); text-align: center; }
.bt-n:nth-child(5) span { right: -4px; text-align: right; }
.bt-l { position: relative; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--pl-line2); }
.bt-l--stay { height: 8px; margin-top: 3px; background: repeating-linear-gradient(135deg, var(--pl-accent) 0 5px, color-mix(in srgb, var(--pl-accent) 55%, transparent) 5px 10px); }
.bt-l--stay em { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-style: normal; white-space: nowrap; font-size: 12px; font-weight: 650; color: var(--pl-accent-ink); }
.bt-l--train { background: var(--pl-line2); }
.bk__nostay { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pl-ink2); }
.bk__nostay b { color: var(--pl-ink); }
.bp { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bp a { display: grid; grid-template-columns: 46px minmax(0, 1fr) 16px; gap: 12px; align-items: center; min-height: 58px; padding: 8px 0; border-top: 1px solid var(--pl-line); text-decoration: none; color: var(--pl-ink); }
.bp__img { width: 46px; height: 46px; border-radius: 10px; background: var(--pl-soft) center / cover; }
.bp a b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; font-weight: 600; }
.bp a b small { font-size: 12px; color: var(--pl-ink3); font-weight: 450; }
.bp a span.l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; font-size: 13px; line-height: 1.4; color: var(--pl-ink3); }
.bp a svg { color: var(--pl-ink3); transition: transform .15s; }
.bp a:hover svg { transform: translateX(2px); color: var(--pl-accent); }
.bp a:hover b > span:first-child { text-decoration: underline; }
.bk__night { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 11px 13px; border-radius: 12px; background: var(--pl-soft); border: 1px dashed var(--pl-line2); color: var(--pl-ink2); font-size: 13px; line-height: 1.45; }
.bk__night svg { flex: none; margin-top: 1px; color: var(--pl-accent); }
.bk__night b { color: var(--pl-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* stays */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.st { display: flex; flex-direction: column; background: var(--pl-card); border-radius: 18px; overflow: hidden; box-shadow: var(--pl-shadow); border: 1px dashed transparent; }
.st__ph { position: relative; height: 138px; background: linear-gradient(135deg, #475569, #1E293B); }
.st__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st__ph em { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.st__b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.st__where { font-size: 12.5px; color: var(--pl-ink3); }
.st__where b { color: var(--pl-ink2); font-weight: 600; }
.st__name { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.st__score { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pl-ink2); }
.st__score b { display: inline-block; min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 8px 8px 8px 2px; background: var(--pl-accent); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--pl-accent); color: #fff !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background .15s; }
.pl-btn:hover { background: var(--pl-accent-ink); }
.pl-btn--ghost { background: transparent; border: 1px solid var(--pl-line2); color: var(--pl-accent-ink) !important; }
.pl-btn--ghost:hover { background: var(--pl-accent-soft); }
.st .pl-btn { margin-top: auto; }

/* how to book */
.pl-book__box { background: var(--pl-card); border-radius: 20px; box-shadow: var(--pl-shadow); padding: 4px 20px 6px; }
.pl-book__box > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; cursor: pointer; list-style: none; }
.pl-book__box > summary::-webkit-details-marker { display: none; }
.pl-book__box > summary h2 { margin: 0; font-size: 18px; }
.pl-book__box > summary::after { content: ""; width: 9px; height: 9px; margin: 0 4px 3px 4px; border: solid var(--pl-ink3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; flex: none; }
.pl-book__box[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.pl-draft { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--pl-ink3); }
.pl-book__list { list-style: none; margin: 0; padding: 0 0 8px; }
.pl-book__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--pl-line); }
.pl-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pl-accent-soft); color: var(--pl-accent-ink); }
.pl-book__list h3 { margin: 2px 0 4px; font-size: 15.5px; font-weight: 650; }
.pl-book__list p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--pl-ink2); }
.pl-book__list p a { text-decoration: underline; text-underline-offset: 2px; color: var(--pl-accent-ink); }
.pl-book__list p:last-child { margin-bottom: 0; }

#plDetail.is-in { animation: pl-in .22s ease-out; }
@keyframes pl-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- phone: app flow ---------- */
@media (max-width: 699px) {
  .pl-hour { top: var(--pl-hh); }
  .pl-right { position: fixed; inset: 0; z-index: 60; background: var(--pl-canvas); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(100%); transition: transform .25s cubic-bezier(.3, .8, .3, 1), visibility 0s linear .25s; }
  html[data-pl-detail] .pl-right { visibility: visible; transform: none; transition: transform .25s cubic-bezier(.3, .8, .3, 1), visibility 0s; }
  html[data-pl-detail], html[data-pl-detail] body { overflow: hidden; }
  .pl-right__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; background: color-mix(in srgb, var(--pl-canvas) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pl-line); }
  .pl-back { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--pl-ink); display: grid; place-items: center; cursor: pointer; }
  .pl-back:active { background: var(--pl-card); }
  .pl-right__title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
  .pl-detail { padding: 18px 16px 0; border-radius: 20px; }
  .tl-foot { margin: 4px -16px 0; padding: 14px 16px; border-radius: 0 0 20px 20px; }
  .pl-brk { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -14px; padding: 2px 14px 12px; scrollbar-width: none; align-items: flex-start; }
  .pl-brk::-webkit-scrollbar { display: none; }
  .pl-brk:has(> :only-child) { display: block; }
  .pl-brk > .bk { flex: 0 0 86%; scroll-snap-align: center; }
  .pl-brk:has(> :only-child) > .bk { width: 100%; }
  .pl-chip, .pl-recent button { min-height: 44px; }
  .pl-sec { margin-top: 28px; }
  .pl-seg { display: flex; width: 100%; }
  .pl-seg > span { display: none; }
  .pl-seg button { flex: 1; }
  .st-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st__ph { height: 104px; }
  .st__b { padding: 12px; }
  .st__name { font-size: 14.5px; }
  .pl-trips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .st-grid { grid-template-columns: 1fr; } .st__ph { height: 150px; } }
@media (min-width: 700px) and (max-width: 1099px) { .pl-brk { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pl-app *, .pl-app *::before, .pl-app *::after { transition: none !important; animation: none !important; }
  .pl-right { transition: none !important; }
}
