:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --line: #d9dde3;
  --line-soft: #eceff3;
  --text: #101318;
  --muted: #626b77;
  --accent: #e60012;
  --accent-dark: #c80010;
  --blue: #0f62c9;
  --warning: #f06418;
  --shadow: 0 10px 28px rgba(18, 25, 38, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
button, select, input { font: inherit; }

.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 22px; font-weight: 850; line-height: 1; }
.brand img { display: block; width: 112px; height: 38px; object-fit: contain; object-position: left center; }
.brand span { display: inline-flex; align-items: center; min-height: 28px; padding-left: 8px; border-left: 1px solid var(--line); color: var(--accent); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; padding: 22px 0 19px; border-bottom: 3px solid transparent; }
.nav a.active { color: var(--accent); border-color: var(--accent); }

main { padding: 24px 32px 40px; }
.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #3d4652; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.search-title { display: grid; gap: 8px; margin-bottom: 18px; }
.search-title p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; }
.search-title a { color: var(--blue); text-decoration: none; }
.search-title h1 { font-size: 30px; line-height: 1.2; }
.top-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 24px; margin-bottom: 18px; }
.top-intro h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; font-weight: 900; letter-spacing: 0; }
.top-intro p { max-width: 680px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; font-weight: 650; }
.intro-fare { min-height: 92px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; align-content: center; gap: 8px; background: var(--surface-soft); }
.intro-fare span { color: var(--muted); font-size: 13px; font-weight: 800; }
.intro-fare strong { color: var(--accent); font-size: 22px; line-height: 1.25; }
.search-panel { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.search-panel.compact { box-shadow: none; }
.search-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 36px; margin-bottom: 14px; color: #303743; }
.compact-select { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; }
.compact-select span { color: var(--muted); }
.compact-select select { width: auto; height: 34px; min-width: 144px; padding: 0 30px 0 10px; border: 0; background: transparent; font-size: 14px; font-weight: 800; }
.compact-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; }
.compact-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.route-controls { display: grid; grid-template-columns: minmax(150px, 1.15fr) 44px minmax(150px, 1.15fr) minmax(154px, .95fr) minmax(112px, .7fr) 152px; gap: 12px; align-items: end; }
.route-controls .field { min-width: 0; }
.field, .sort-field { display: grid; gap: 8px; }
.field span, .sort-field span { font-size: 13px; font-weight: 700; color: #262b33; }
select, input { width: 100%; min-width: 0; max-width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: var(--surface); color: var(--text); font-size: 16px; font-weight: 650; }
.date-control { position: relative; display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px 0 14px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; }
.date-control > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-control-action { flex: 0 0 auto; margin-left: 8px; color: var(--blue); font-size: 13px; font-weight: 850; }
.date-control input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; border: 0; padding: 0; opacity: 0; cursor: pointer; }
.swap { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 22px; cursor: pointer; }
.primary { height: 52px; border: 0; border-radius: 6px; background: var(--accent); color: white; font-size: 17px; font-weight: 800; cursor: pointer; }
.primary:hover { background: var(--accent-dark); }

.filters { min-height: 46px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.filters label { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; font-size: 15px; font-weight: 750; }
.filters input { width: 18px; height: 18px; accent-color: var(--blue); }
.ghost { min-width: 116px; height: 34px; border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }

.calendar-section, .results-section, .deals-section, .destinations-section, .fare-preview-section, .directory-section, .guide-section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; gap: 12px; }
.action-head { justify-content: space-between; }
.action-head a { color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: none; }
h1, h2 { margin: 0; font-size: 20px; line-height: 1.35; }
h3 { margin: 0 0 12px; font-size: 16px; }
.section-head p, .results-head p { margin: 0; color: var(--muted); font-size: 13px; }
.calendar-strip { display: grid; grid-template-columns: repeat(10, minmax(110px, 1fr)); margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.day { min-height: 88px; display: grid; place-content: center; gap: 8px; text-align: center; border: 0; border-right: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.day:last-child { border-right: 0; }
.day.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.day .date { font-size: 15px; font-weight: 800; }
.day .dow { color: var(--muted); font-size: 13px; font-weight: 700; }
.day .price { color: var(--text); font-size: 17px; font-weight: 800; }
.day.selected .price, .day.sunday .date, .day.sunday .dow { color: var(--accent); }
.day.saturday .date, .day.saturday .dow { color: var(--blue); }

.deal-grid { display: flex; gap: 16px; margin-top: 12px; overflow-x: auto; padding: 2px 0 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b9c0ca transparent; }
.deal-grid::-webkit-scrollbar { height: 7px; }
.deal-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: #b9c0ca; }
.deal-origin-card { flex: 0 0 clamp(310px, 29vw, 370px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(18, 25, 38, .06); scroll-snap-align: start; }
.deal-origin-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #202733; color: #fff; }
.deal-origin-head h3 { margin: 0; font-size: 20px; }
.deal-origin-head span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.deal-route-list { min-height: 292px; display: grid; align-content: start; }
.deal-route-row { min-height: 73px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
.deal-route-row:last-child { border-bottom: 0; }
.deal-route-row:hover { background: #f7f9fc; }
.deal-route-main, .deal-route-price { min-width: 0; display: grid; gap: 3px; }
.deal-route-main strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.deal-route-main small, .deal-route-price small { color: var(--muted); font-size: 11px; font-weight: 750; }
.deal-route-price { justify-items: end; text-align: right; }
.deal-route-price b { color: var(--accent); font-size: 18px; white-space: nowrap; }
.deal-route-price small { color: var(--blue); }
.deal-origin-empty { min-height: 292px; margin: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: 14px; font-weight: 750; text-align: center; }

.destination-rail { display: grid; grid-template-columns: repeat(6, minmax(132px, 1fr)); gap: 12px; margin-top: 12px; }
.destination-tile { position: relative; min-height: 118px; overflow: hidden; border: 0; border-radius: 8px; padding: 14px; text-align: left; color: #fff; cursor: pointer; display: grid; align-content: end; gap: 2px; background: #27303a; isolation: isolate; }
.destination-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 12, .05), rgba(6, 10, 16, .72)); z-index: -1; }
.destination-tile::after { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transition: transform .24s ease; }
.destination-tile:hover::after { transform: scale(1.06); }
.destination-tile strong { font-size: 20px; line-height: 1.1; }
.destination-tile span { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; }
.destination-tile.tokyo-night::after { background-image: url("https://images.unsplash.com/photo-1542051841857-5f90071e7989?auto=format&fit=crop&w=500&q=80"); }
.destination-tile.kyoto::after { background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=500&q=80"); }
.destination-tile.osaka::after { background-image: url("https://images.unsplash.com/photo-1590559899731-a382839e5549?auto=format&fit=crop&w=500&q=80"); }
.destination-tile.nagoya-city::after { background-image: url("https://images.unsplash.com/photo-1524413840807-0c3cb6fa808d?auto=format&fit=crop&w=500&q=80"); }
.destination-tile.fukuoka::after { background-image: url("https://images.unsplash.com/photo-1564501049412-61c2a3083791?auto=format&fit=crop&w=500&q=80"); }
.destination-tile.kobe::after { background-image: url("https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=500&q=80"); }

.fare-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.home-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-weight: 700; }
.fare-preview a { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; color: var(--text); text-decoration: none; display: grid; gap: 4px; align-content: center; background: #fff; }
.fare-preview a:hover { border-color: #b9c0ca; box-shadow: 0 8px 20px rgba(18, 25, 38, 0.07); }
.fare-preview strong { font-size: 15px; line-height: 1.25; }
.fare-preview span { color: var(--muted); font-size: 12px; font-weight: 800; }
.fare-preview b { color: var(--accent); font-size: 22px; line-height: 1.2; }

.directory-section, .guide-section { padding-top: 24px; border-top: 1px solid var(--line); }
.directory-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.directory-links a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: #303743; text-decoration: none; font-size: 14px; font-weight: 750; }
.directory-links a:hover { border-color: var(--blue); color: var(--blue); }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.guide-list p { display: grid; gap: 6px; margin: 0; }
.guide-list strong { font-size: 15px; }
.guide-list span { color: var(--muted); font-size: 13px; line-height: 1.65; font-weight: 650; }

.results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.result-controls { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.sort-field { width: 220px; }
.sort-field select { height: 44px; font-size: 14px; }
.table { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.row { display: grid; grid-template-columns: 220px minmax(300px, 1fr) 108px 112px 280px; min-height: 126px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.row.header { min-height: 44px; background: var(--surface-soft); color: #303743; font-size: 13px; font-weight: 800; }
.row:last-child { border-bottom: 0; }
.cell { padding: 16px; border-right: 1px solid var(--line-soft); display: grid; align-content: center; gap: 8px; min-width: 0; }
.cell:last-child { border-right: 0; }
.time-line { display: flex; align-items: baseline; gap: 10px; }
.time { font-size: 22px; font-weight: 900; min-width: 58px; }
.station { font-size: 13px; color: #3d4652; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.tag.depart { background: var(--blue); }
.tag.arrive { background: var(--accent); }
.route-name, .company { font-weight: 850; }
.bus-code, .provider-price { color: var(--muted); font-size: 13px; font-weight: 700; }
.route-stops { display: flex; align-items: stretch; gap: 6px; max-width: 100%; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.route-stop { flex: 0 0 auto; display: grid; gap: 2px; min-width: 84px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.route-stop b { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.route-stop small { color: var(--muted); font-size: 12px; font-weight: 800; }
.route-arrow { align-self: center; flex: 0 0 auto; color: var(--muted); font-size: 16px; font-weight: 900; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.amenity { border: 1px solid var(--line); border-radius: 4px; padding: 4px 7px; font-size: 12px; color: #303743; background: #fff; }
.price { color: var(--accent); font-size: 24px; font-weight: 900; }
.seats { color: var(--blue); font-weight: 850; }
.seats.low { color: var(--warning); }
.booking-cell { gap: 8px; }
.comparison-label { width: fit-content; border-radius: 999px; padding: 4px 8px; background: #eef6ff; color: var(--blue); font-size: 12px; font-weight: 900; }
.booking, .detail-toggle { min-height: 40px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; cursor: pointer; }
.booking { border: 0; background: var(--accent); color: white; flex-direction: column; gap: 1px; padding: 7px 10px; line-height: 1.1; position: relative; }
.booking strong { font-size: 18px; }
.booking span { font-size: 12px; font-weight: 850; }
.booking:hover { background: var(--accent-dark); }
.offer-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.offer-pill { min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: var(--text); text-decoration: none; display: grid; gap: 1px; background: #fff; text-align: left; cursor: pointer; position: relative; }
.offer-pill.best { border-color: #f2a7ae; background: #fff7f8; }
.offer-pill span { color: var(--muted); font-size: 11px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-pill strong { color: var(--accent); font-size: 14px; line-height: 1.15; }
.pr-mark { color: currentColor; font-size: 9px; font-weight: 800; line-height: 1; opacity: .72; }
.booking .pr-mark { position: absolute; top: 6px; right: 7px; }
.offer-pill .pr-mark { position: absolute; top: 5px; right: 5px; color: var(--muted); }
.detail-toggle { min-width: 92px; height: 42px; border: 1px solid var(--line); background: #fff; color: #27303a; gap: 8px; justify-self: center; }
.detail-toggle:hover { border-color: #b9c0ca; background: var(--surface-soft); }
.detail-toggle .detail-label { font-size: 14px; }
.detail-toggle .chevron { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; background: #eef1f5; font-size: 17px; line-height: 1; transform: translateY(-1px); }
.detail-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg) translateY(1px); }
.empty { padding: 40px; text-align: center; color: var(--muted); font-weight: 700; }
.result-more { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border-top: 1px solid var(--line-soft); background: var(--surface-soft); }
.show-more { min-width: 180px; height: 44px; border: 1px solid #aeb7c3; border-radius: 6px; background: #fff; color: #1e4f9e; font-weight: 850; cursor: pointer; }
.show-more:hover { border-color: #1e4f9e; background: #f4f8ff; }
.result-more span { color: var(--muted); font-size: 13px; font-weight: 750; }

.detail-panel { border-bottom: 1px solid var(--line-soft); background: #fbfcfe; padding: 18px 22px 22px; }
.detail-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.detail-summary strong { font-size: 17px; }
.detail-summary span { color: var(--muted); font-size: 13px; font-weight: 750; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 58px 46px 1fr; align-items: center; gap: 10px; font-weight: 750; }
.tl-time { font-size: 18px; font-weight: 900; }
.tl-type { display: inline-flex; justify-content: center; border-radius: 4px; padding: 4px 0; color: #fff; font-size: 12px; font-weight: 850; }
.tl-type.board { background: var(--blue); }
.tl-type.drop { background: var(--accent); }
.price-links { display: grid; gap: 10px; }
.price-link { min-height: 54px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; color: var(--text); text-decoration: none; background: #fff; text-align: left; cursor: pointer; position: relative; }
.price-link strong { color: var(--accent); font-size: 20px; }
.price-link span { color: var(--muted); font-size: 13px; font-weight: 750; }
.price-link em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.price-link .pr-mark { position: absolute; top: 7px; right: 8px; color: var(--muted); }

.affiliate-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.affiliate-modal.is-open { display: grid; }
.affiliate-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 19, 24, .64); }
.affiliate-modal-dialog { position: relative; z-index: 1; width: min(480px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; border: 1px solid #cbd2dc; border-radius: 8px; padding: 28px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.affiliate-modal-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef1f5; color: #303743; font-size: 24px; line-height: 1; cursor: pointer; }
.affiliate-modal-kicker { margin: 8px 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.affiliate-modal h2 { margin: 0; font-size: 23px; }
.affiliate-modal-route { margin: 10px 0 0; color: #303743; font-weight: 800; }
.affiliate-modal-details { display: grid; grid-template-columns: 74px 1fr; gap: 10px 12px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.affiliate-modal-details dt { color: var(--muted); font-weight: 750; }
.affiliate-modal-details dd { margin: 0; font-weight: 800; }
.affiliate-modal-book { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-size: 16px; font-weight: 900; }
.affiliate-modal-book small { font-size: 10px; opacity: .78; }
.affiliate-modal-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; font-weight: 650; }

@media (max-width: 1120px) {
  .site-header { position: static; height: auto; align-items: flex-start; padding: 18px 20px; flex-direction: column; }
  .nav { gap: 18px; flex-wrap: wrap; }
  main { padding: 18px; }
  .site-footer { padding: 18px; }
  .top-intro { grid-template-columns: 1fr; }
  .route-controls { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(138px, .8fr) minmax(105px, .65fr) 152px; }
  .primary { grid-column: span 1; }
  .fare-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-list { grid-template-columns: 1fr; gap: 14px; }
  .destination-rail { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .destination-tile { min-width: 150px; }
  .filters { gap: 8px 18px; }
  .calendar-strip { overflow-x: auto; grid-template-columns: repeat(10, minmax(104px, 1fr)); }
  .table { overflow-x: auto; }
  .row { min-width: 1080px; }
}

@media (max-width: 720px) {
  .site-header { gap: 12px; padding: 14px 16px; }
  .brand { font-size: 25px; }
  .nav { width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 2px; }
  .nav a { white-space: nowrap; padding: 8px 0; }
  main { padding: 14px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px 16px; }
  .top-intro { gap: 14px; margin-bottom: 14px; }
  .top-intro h1 { font-size: 32px; }
  .top-intro p { font-size: 14px; line-height: 1.65; }
  .search-title h1 { font-size: 26px; }
  .intro-fare { min-height: 78px; padding: 14px; }
  .search-panel { padding: 14px; box-shadow: none; }
  .search-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
  .compact-select { display: grid; min-width: 0; gap: 3px; }
  .compact-select select { width: 100%; min-width: 0; padding: 0 8px; }
  .route-controls { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 8px; }
  .route-controls .date-field { grid-column: 1 / span 2; }
  .route-controls .time-field { grid-column: 3; }
  .route-controls .primary { grid-column: 1 / -1; }
  .swap { width: 100%; }
  select, input, .primary, .date-control { height: 48px; font-size: 16px; }
  .filters { gap: 8px 16px; }
  .section-head, .results-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .result-controls { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .sort-field { width: 100%; }
  .calendar-strip { display: flex; overflow-x: auto; }
  .deal-origin-card { flex-basis: min(86vw, 330px); }
  .deal-price { font-size: 24px; }
  .fare-preview { grid-template-columns: 1fr; }
  .day { min-width: 108px; border: 1px solid var(--line); }
  .table { border: 0; overflow: visible; display: grid; gap: 12px; }
  .row.header { display: none; }
  .row { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 0; }
  .cell { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 13px; }
  .cell:nth-last-child(-n + 2) { border-bottom: 0; }
  .time-cell, .row .cell:nth-child(2) { grid-column: 1 / -1; }
  .row .cell:last-child { grid-column: 1 / -1; }
  .price { font-size: 22px; }
  .booking, .detail-toggle { width: 100%; }
  .offer-strip { grid-template-columns: 1fr 1fr; }
  .detail-toggle { justify-self: stretch; }
  .detail-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 16px; margin-top: -12px; }
  .result-more { flex-direction: column; }
  .show-more { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .affiliate-modal { padding: 14px; }
  .affiliate-modal-dialog { max-height: calc(100vh - 28px); padding: 24px 20px 20px; }
}
