:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #18262a; background: #f2f4f3; font-size: 16px;
  --ink: #18262a; --muted: #52666a; --line: #d6dfdd;
  --green: #1f6552; --green-dark: #174c3e; --pad: 24px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #72aa9a; outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; }
.top { margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.55rem); letter-spacing: -.04em; line-height: 1.1; }
h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.015em; }
h3 { margin: 0 0 12px; font-size: .9rem; }
.subtle { color: var(--muted); font-size: .9rem; margin: 7px 0 0; }
.layout { display: grid; grid-template-columns: minmax(0, 408px) minmax(0, 1fr); align-items: start; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form-panel { padding: var(--pad); }
.section { margin: 0 0 25px; padding: 0 0 25px; border-bottom: 1px solid #e5ebe9; }
.section:last-child { margin: 0; padding: 0; border: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; margin: -8px 0 12px; }
.clear-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.reset-btn { min-height: 44px; border: 0; background: transparent; color: var(--green); font-size: .82rem; font-weight: 730; padding: 8px 0 8px 8px; text-underline-offset: 3px; }
.reset-btn:hover { text-decoration: underline; }
label, .label { color: #344c51; font-size: .85rem; font-weight: 670; }
input[type="number"], .search-input {
  display: block; width: 100%; min-width: 0; height: 44px; border: 1px solid #c4d0d0;
  border-radius: 6px; background: #fff; padding: 9px 11px; line-height: 24px;
}
input[type="number"]:hover, .search-input:hover { border-color: #829b9c; }
input[readonly] { background: #f7f9f8; color: #4c6266; }
.trip-fields { border: 1px solid #c4d0d0; border-radius: 9px; background: #fff; }
.trip-place { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 60px; padding: 8px 13px; }
.trip-place + .trip-place { border-top: 1px solid #e3e9e7; }
.trip-label { color: var(--muted); font-size: .77rem; font-weight: 700; }
.trip-place strong { font-size: .95rem; }
.combobox, .search-wrap { position: relative; min-width: 0; }
.search-wrap svg { position: absolute; left: 8px; top: 50%; width: 17px; height: 17px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-input { height: 42px; padding-left: 32px; padding-right: 32px; border-color: transparent; font-size: .94rem; font-weight: 650; }
.search-input:focus { border-color: #829b9c; }
.chevron { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-68%) rotate(45deg); pointer-events: none; }
.destination-menu { position: absolute; z-index: 10; top: calc(100% + 8px); left: -61px; right: -13px; max-height: 300px; overflow: auto; border: 1px solid #bdcbca; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(24,38,42,.16); padding: 6px; }
.province-label { padding: 10px 10px 5px; color: var(--muted); font-size: .72rem; font-weight: 760; }
.destination-option { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 4px; background: #fff; padding: 8px 10px; text-align: left; font-size: .85rem; }
.destination-option:hover, .destination-option[data-active="true"], .destination-option[aria-selected="true"] { background: #eef3f1; color: var(--green-dark); }
.destination-main { display: block; color: #2b4449; font-weight: 650; }
.destination-meta { display: block; margin-top: 1px; color: var(--muted); font-size: .72rem; }
.no-result { padding: 13px 10px; color: var(--muted); font-size: .82rem; }
.duration-row { display: grid; grid-template-columns: minmax(55px,1fr) 67px auto 67px auto; align-items: center; gap: 9px; margin-top: 14px; }
.duration-row > span { color: var(--muted); font-size: .85rem; }
.duration-row input { text-align: center; padding: 7px 2px; }
.passenger-picker { position: relative; margin-top: 14px; }
.passenger-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border: 1px solid #c4d0d0; border-radius: 7px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: .86rem; }
.passenger-picker summary::-webkit-details-marker { display: none; }
.passenger-picker summary::after { content: "⌄"; color: var(--muted); }
.passenger-picker summary strong { margin-left: auto; font-size: .85rem; }
.passenger-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; border: 1px solid #d6dfdd; border-radius: 7px; padding: 14px; background: #fafbfb; }
.passenger-fields label { display: grid; gap: 6px; }
.component-list { margin: 0; padding: 0; list-style: none; color: #2d4348; font-size: .86rem; }
.component-list li { padding: 10px 0; border-top: 1px solid #e9efed; }
.component-list li:first-child { border-top: 0; }
.muted, .route-via { color: var(--muted); font-weight: 500; }
.advanced-settings { margin-top: 14px; border-top: 1px solid #e3e9e7; padding-top: 6px; }
.advanced-settings summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-size: .83rem; font-weight: 720; cursor: pointer; }
.advanced-body { display: grid; gap: 12px; margin-top: 10px; }
.room-group { border: 1px solid #dde5e3; border-radius: 6px; background: #fafbfb; padding: 12px; }
.room-group-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: .8rem; }
.room-group-head span { color: var(--muted); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.room-field { display: grid; align-content: start; gap: 5px; }
.room-field label, .room-field .label { font-size: .75rem; font-weight: 620; }
.room-field input { height: 40px; }
.room-field output { display: flex; align-items: center; min-height: 40px; border: 1px solid #dce5e2; border-radius: 6px; background: #f3f6f5; padding: 7px 11px; font-size: .86rem; }
.option { display: flex; align-items: center; min-height: 44px; gap: 11px; color: #2d4348; font-size: .87rem; cursor: pointer; }
.option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.manual-rate { display: grid; gap: 7px; }
.manual-rate input { max-width: 220px; }
.result { overflow: hidden; }
.result-top { padding: var(--pad); border-bottom: 1px solid #e2e9e7; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.pill { border: 1px solid #cbd9d5; border-radius: 999px; background: #eef3f1; padding: 5px 10px; color: #3c5b53; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.route { margin: 16px 0 3px; font-size: 1.08rem; font-weight: 740; letter-spacing: -.012em; }
.summary { margin: 0; color: var(--muted); font-size: .82rem; }
.result-body { padding: 0 var(--pad) 18px; }
.category { margin: 24px 0 7px; color: #536b67; font-size: .75rem; font-weight: 780; }
.line { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,auto); align-items: center; gap: 18px; margin-left: 26px; border-top: 1px solid #e8edec; padding: 14px 0; }
.line-title { font-size: .87rem; font-weight: 680; }
.line-note { margin-top: 3px; color: var(--muted); font-size: .77rem; }
.line-right { text-align: right; white-space: nowrap; }
.line-total, .grand { font-variant-numeric: tabular-nums; }
.line-total { font-size: .9rem; font-weight: 780; }
.rate-fixed { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.empty { padding: 24px 0; color: var(--muted); font-size: .85rem; }
.alert { margin: 15px 0 0; border: 1px solid #d9bd8a; border-radius: 5px; background: #fff8eb; padding: 10px 12px; color: #68431c; font-size: .8rem; }
.total-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 3px double #799189; background: #203b38; padding: 21px var(--pad); color: #fff; }
.total-band span { color: #d7e4e0; font-size: .8rem; }
.grand { font-size: clamp(1.4rem,3vw,1.82rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.conclusion { border-top: 1px solid #dfe7e5; background: #f8faf9; padding: 20px var(--pad); }
.conclusion-title { margin: 0 0 6px; color: #465f5a; font-size: .78rem; font-weight: 780; }
.conclusion-list { margin: 0; padding-left: 18px; color: #30494e; font-size: .84rem; line-height: 1.65; }
.conclusion-list li + li { margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--pad); }
.btn { min-height: 44px; border: 1px solid #bfcfcb; border-radius: 6px; background: #fff; padding: 9px 14px; color: #243e43; font-size: .82rem; font-weight: 730; }
.btn:hover:not(:disabled) { background: #edf2f0; }
.btn-primary { border-color: var(--green); background: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); }
#toast { position: fixed; z-index: 60; right: 20px; bottom: 20px; max-width: min(360px,calc(100% - 40px)); border-radius: 6px; background: #203b38; padding: 11px 15px; color: #fff; font-size: .84rem; box-shadow: 0 8px 22px rgba(24,38,42,.2); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 30px; border-top: 1px solid #d3dddb; padding-top: 16px; color: #4c6266; font-size: .78rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a, .cookie-notice a, .brand-link { color: var(--green-dark); text-underline-offset: 3px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover, .cookie-notice a:hover, .brand-link:hover { text-decoration-thickness: 2px; }
.cookie-notice { position: fixed; z-index: 50; left: 50%; bottom: 18px; display: flex; justify-content: space-between; align-items: center; width: min(720px,calc(100% - 28px)); gap: 20px; border: 1px solid #bfcfcb; border-radius: 8px; background: #fff; padding: 15px 17px; box-shadow: 0 12px 32px rgba(21,42,44,.18); transform: translateX(-50%); }
.cookie-notice strong { display: block; font-size: .85rem; }
.cookie-notice p { margin: 3px 0 0; color: #4c6266; font-size: .76rem; line-height: 1.45; }
.cookie-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .78rem; font-weight: 700; }
.cookie-actions a, .cookie-actions button { display: inline-flex; align-items: center; min-height: 44px; }
.cookie-actions button { border: 0; border-radius: 6px; background: var(--green); padding: 9px 14px; color: #fff; font-weight: 750; }
.cookie-actions button:hover { background: var(--green-dark); }
.legal-shell { width: min(780px,calc(100% - 40px)); margin: 0 auto; padding: 28px 0 48px; }
.legal-header { margin-bottom: 20px; }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; }
.legal-card { border: 1px solid #d6dfdd; border-radius: 10px; background: #fff; padding: clamp(24px,5vw,48px); }
.legal-updated { margin: 8px 0 32px; color: var(--muted); font-size: .8rem; }
.legal-card section + section { margin-top: 27px; }
.legal-card section h2 { margin-bottom: 8px; }
.legal-card section p { margin: 0; color: #374f54; }
.legal-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 34px; border-radius: 6px; background: var(--green); padding: 11px 16px; color: #fff; font-size: .84rem; font-weight: 750; text-decoration: none; }
.legal-cta:hover { background: var(--green-dark); }
.error-page { display: grid; place-content: center; width: min(560px,calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 40px 0; text-align: center; }
.error-code { color: var(--green); font-size: .82rem; font-weight: 820; font-variant-numeric: tabular-nums; }
.error-page h1 { margin-top: 12px; }
.error-page p { margin: 12px 0 0; color: var(--muted); }
.error-page .legal-cta { justify-self: center; }
input[aria-invalid="true"], .search-input[aria-invalid="true"] { border-color: #984640; background: #fffafa; }
@media (max-width: 870px) { .layout { grid-template-columns: 1fr; } .wrap { width: min(680px,calc(100% - 32px)); padding-top: 24px; } .top { margin-bottom: 22px; } }
@media (max-width: 520px) {
  :root { --pad: 18px; }
  .wrap { width: calc(100% - 24px); padding: 18px 0 40px; }
  .line { margin-left: 16px; gap: 10px; }
  .line-title, .line-total { font-size: .83rem; }
  .rate-fixed { font-size: .7rem; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn-primary { grid-column: 1/-1; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cookie-notice { align-items: stretch; flex-direction: column; gap: 10px; }
  .cookie-actions { justify-content: space-between; }
  .legal-shell { width: calc(100% - 24px); padding-top: 18px; }
  .destination-menu { max-height: 360px; }
}
@media (max-width: 400px) {
  .trip-place { grid-template-columns: 38px minmax(0,1fr); gap: 4px; padding: 8px 9px; }
  .destination-menu { left: -43px; right: -9px; }
  .duration-row { grid-template-columns: 1fr 55px auto 55px auto; gap: 6px; }
  .passenger-fields { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .line { grid-template-columns: 1fr; }
  .line-right { text-align: left; white-space: normal; }
  .result-heading { align-items: flex-start; }
  .pill { white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media print {
  body { background: #fff; }
  .wrap { width: 100%; padding: 0; }
  .top { margin-bottom: 12px; }
  .layout { display: block; }
  .form-panel, .actions, .pill, .site-footer, .cookie-notice, .skip-link { display: none !important; }
  .panel, .legal-card { border: 0; }
  .result-top { padding: 10px 0 15px; }
  .result-body { padding: 0; }
  .total-band { border-top: 2px solid var(--ink); background: #fff; padding: 15px 0; color: var(--ink); }
  .total-band span { color: #4c6266; }
  .line { break-inside: avoid; }
  h1 { font-size: 22px; }
  .top .subtle { display: none; }
}
