/* bus.css — 이 화면에만 필요한 부품(좌석 배치도·토스트·글상자·넓은 화면 폭).
   foundation에 없는 것만 두고, 값은 모두 tokens.css 변수에서 가져온다. */

/* 넓은 화면에서도 앱 한 장 폭으로 */
.app { max-width: 560px; margin: 0 auto; }
.cta, .sheet { max-width: 560px; margin: 0 auto; }

/* 좌석 배치도 — 위에서 내려다본 28인승 */
.bus { --seat: var(--h-btn); display: flex; flex-direction: column; align-items: center; gap: var(--stack-m); padding: var(--stack-m); border-radius: var(--r-l) var(--r-l) var(--r-m) var(--r-m); box-shadow: inset 0 0 0 2px var(--c-line-strong); }
.bus-cab { align-self: stretch; display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--stack-m); border-bottom: 1px dashed var(--c-line-strong); }
.seats { display: grid; grid-template-columns: repeat(4, var(--seat)); gap: var(--stack-s); }
.seat { width: var(--seat); height: var(--seat); border-radius: var(--r-m) var(--r-m) var(--r-s) var(--r-s); background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line-strong); color: var(--c-text-1); font-size: var(--fs-sub); font-weight: 700; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.seat.is-selected { background: var(--c-brand-tint); color: var(--c-brand-tint-text); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.seat.is-taken { background: var(--c-disabled-bg); color: var(--c-text-disabled); box-shadow: none; cursor: default; }
.seat.is-blocked { background: repeating-linear-gradient(45deg, var(--c-disabled-bg) 0 var(--stack-s), var(--c-surface) var(--stack-s) var(--stack-m)); color: var(--c-text-disabled); cursor: default; }
.bus.is-editing .seat.is-blocked, .bus.is-editing .seat:not(.is-taken) { cursor: pointer; }
.seat:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--stack-s) var(--stack-m); font-size: var(--fs-caption); color: var(--c-text-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--stack-s); }
.legend .seat { --seat: var(--stack-m); border-radius: var(--r-pill); }

/* 배지 줄 */
.badges { display: flex; flex-wrap: wrap; gap: var(--stack-s); }

/* 붙여넣을 글 */
.area { min-height: calc(var(--h-row) * 3); padding: var(--stack-m); border-radius: var(--r-m); background: var(--c-bg); border: 1px solid transparent; font-size: var(--fs-sub); line-height: var(--lh-sub); resize: vertical; }

/* 토스트 */
.toast { position: fixed; left: var(--page-x); right: var(--page-x); bottom: calc(var(--h-btn) + var(--stack-l) * 2 + env(safe-area-inset-bottom)); max-width: calc(560px - var(--page-x) * 2); margin: 0 auto; padding: var(--stack-m); border-radius: var(--r-m); background: var(--c-text-1); color: var(--c-surface); font-size: var(--fs-sub); font-weight: 600; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.toast.is-on { opacity: 1; }
.sheet-wrap { position: relative; z-index: 20; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .btn.is-loading::after { animation-duration: 2s; } }
[hidden] { display: none !important; }
