/* Spostia v11 — one visual language from route to available space. */
@font-face {
  font-family: "Anybody";
  src: url("./fonts/anybody-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f7f7f2;
  --ink: #102322;
  --muted: #4b5e5a;
  --line: #d5dfda;
  --primary: #20bfaf;
  --primary-soft: #e9f5f0;
  --primary-dark: #006b60;
  --shadow: 0 5px 20px rgb(16 35 34 / 4%);
}
.eyebrow, .welcome-kicker { letter-spacing: .105em; }
.btn { border-radius: 9px; }
.btn.primary { background: var(--primary); }
.btn:hover:not(:disabled) { filter: brightness(.94); }
.welcome-page { background: var(--paper); }
.welcome-header { padding-top: 26px; }
.welcome-country, .sidebar-chip { background: #e8eeea; }
.welcome-copy h1, .page-intro h1, .radar-head h2, .section-top h2, .welcome-entry h2 {
  font-family: "Anybody", "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
}
.welcome-copy h1 span { color: var(--primary-dark); }
.welcome-hero { gap: 45px; }
.welcome-scope span { border-color: #cbd7d1; background: transparent; }
.welcome-illustration {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  padding: 25px 27px 27px;
  border-radius: 15px;
  background: #102322;
  color: white;
  background-image: linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 44px 44px;
}
.visual-index { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #b9d4cc; font-size: 13px; font-weight: 800; letter-spacing: .11em; }
.visual-route { display: grid; grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); align-items: end; gap: 10px; margin: 45px 0 38px; }
.visual-route > div { min-width: 0; }
.visual-route > div:last-child { text-align: right; }
.visual-route > div > span { display: block; color: #b9d4cc; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.visual-route strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font: 700 clamp(25px, 3.1vw, 42px)/1.05 "Anybody", "Source Sans 3", sans-serif; letter-spacing: -.045em; }
.visual-route-line { position: relative; align-self: center; display: grid; place-items: center; height: 65px; }
.visual-route-line::before { position: absolute; left: -13px; right: -13px; top: 50%; border-top: 3px solid var(--primary); content: ''; }
.visual-route-line i { position: absolute; z-index: 1; top: calc(50% - 6px); width: 12px; height: 12px; border: 3px solid var(--primary); border-radius: 50%; background: #102322; }
.visual-route-line i:first-child { left: -13px; }
.visual-route-line i:last-child { right: -13px; }
.visual-truck { position: relative; z-index: 2; display: grid; place-items: center; width: 54px; height: 45px; border: 2px solid #102322; border-radius: 8px; background: var(--primary); color: #102322; }
.visual-truck svg { width: 42px; height: 37px; }
.visual-cargo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 18px; padding-top: 24px; border-top: 1px solid #46645d; }
.visual-cargo-copy strong { display: block; max-width: 230px; font-size: 21px; line-height: 1.18; }
.visual-cargo-copy span { display: block; margin-top: 6px; color: #c5d8d2; font-size: 16px; line-height: 1.35; }
.visual-capacity > span { display: block; margin-bottom: 8px; color: #b9d4cc; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.visual-capacity-track { display: flex; gap: 4px; height: 35px; padding: 4px; border: 2px solid white; border-radius: 5px; }
.visual-capacity-track b { display: grid; place-items: center; min-width: 0; background: var(--primary); color: #102322; font-size: 11px; letter-spacing: .02em; }
.visual-capacity-track b:first-child { width: 41%; }
.visual-capacity-track b:nth-child(2) { width: 25%; background: #f7f7f2; }
.visual-capacity-track em { flex: 1; }
.visual-capacity small { display: block; margin-top: 7px; color: #c5d8d2; font-size: 14px; }
.welcome-step { border-top-color: var(--ink); }
.welcome-step-icon { border-radius: 7px; background: #dcece5; }
.welcome-entry { border-radius: 13px; }
.welcome-eco { border-color: #d5dfda; border-radius: 13px; background: #f0f3ed; }

/* A selected route reads like the same ticket shown on the map and in the load. */
.radar-panel { border-color: #b9cbc3; border-radius: 14px; box-shadow: var(--shadow); }
.radar-map { background: #edf2ec; }
.radar-country { fill: #f7f7f2; stroke: #aebfb6; }
.radar-route { stroke: #007b70; opacity: .9; }
.radar-pin { border-radius: 9px; background: var(--ink); }
.radar-pin::after { border-color: var(--primary); border-radius: 13px; }
.radar-pin.is-selected { background: var(--ink); outline-color: var(--primary); }
.radar-selection { margin: 18px 22px; padding: 20px 23px 22px; border: 0; border-radius: 11px; background: var(--ink); color: white; }
.radar-ticket-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; color: #c1d5cf; font-size: 15px; }
.radar-ticket-head .eyebrow { color: var(--primary); }
.radar-ticket-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(30px, .28fr) minmax(0, 1fr); align-items: end; gap: 14px; margin: 22px 0 20px; }
.radar-ticket-route > div:last-child { text-align: right; }
.radar-ticket-route small { display: block; color: #c1d5cf; font-size: 13px; font-weight: 700; letter-spacing: .045em; }
.radar-ticket-route strong { display: block; overflow-wrap: anywhere; font: 700 clamp(27px, 3.6vw, 48px)/1.08 "Anybody", "Source Sans 3", sans-serif; letter-spacing: -.045em; }
.radar-ticket-line { position: relative; align-self: center; height: 3px; background: var(--primary); }
.radar-ticket-line::before, .radar-ticket-line::after { position: absolute; top: -5px; width: 13px; height: 13px; border: 3px solid var(--primary); border-radius: 50%; background: var(--ink); content: ''; }
.radar-ticket-line::before { left: -7px; }
.radar-ticket-line::after { right: -7px; }
.radar-ticket-details { display: flex; flex-wrap: wrap; gap: 8px 25px; padding: 12px 0; border-top: 1px solid #47645d; border-bottom: 1px solid #47645d; font-size: 17px; font-weight: 700; }
.radar-options { margin: 16px 0 0; }
.radar-option { border-color: #58716a; border-radius: 7px; background: transparent; color: white; }
.radar-option.is-selected { border-color: var(--primary); background: var(--primary); color: var(--ink); }
.radar-selection-action { align-items: end; margin-top: 19px; }
.radar-selection-action > span { color: white; font-size: 19px; font-weight: 700; }
.radar-selection-action small { color: #c1d5cf; font-size: 14px; font-weight: 400; }
.radar-footer { border-top: 1px solid var(--line); }

/* Browsing cards take their route proportions from the ticket above. */
.departures-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.departure-card { padding: 22px 25px 24px; border-color: #c7d5ce; border-radius: 12px; box-shadow: none; }
.departure-top { margin-bottom: 13px; color: var(--muted); font-size: 15px; }
.departure-top .eyebrow { color: var(--primary-dark); font-size: 13px; }
.departure-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(38px, .32fr) minmax(0, 1fr); align-items: center; gap: 12px; margin: 17px 0 21px; }
.departure-stop { padding: 0; }
.departure-stop:last-child { padding-bottom: 0; text-align: right; }
.departure-stop::before, .departure-stop:not(:last-child)::after { display: none; }
.departure-stop > span { color: var(--primary-dark); font-size: 13px; font-weight: 800; letter-spacing: .09em; }
.departure-stop strong { overflow-wrap: anywhere; font: 700 clamp(30px, 3vw, 43px)/1.08 "Anybody", "Source Sans 3", sans-serif; letter-spacing: -.045em; }
.departure-stop small { margin-top: 5px; font-size: 15px; }
.departure-route-link { position: relative; height: 3px; background: var(--primary-dark); }
.departure-route-link::before, .departure-route-link::after { position: absolute; top: -5px; width: 13px; height: 13px; border: 3px solid var(--primary-dark); border-radius: 50%; background: white; content: ''; }
.departure-route-link::before { left: -7px; }
.departure-route-link::after { right: -7px; }
.departure-space { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .72fr); align-items: center; gap: 9px 20px; margin: 0; padding: 15px 18px; border-radius: 7px; background: #eef3ed; }
.departure-space > div > span { display: block; color: var(--primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.departure-space strong { display: block; font-size: 25px; }
.capacity-progress { height: 14px; overflow: hidden; border-radius: 99px; background: #c9d9d2; }
.capacity-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary-dark); }
.departure-space .capacity-progress { grid-column: 2; grid-row: 1; }
.departure-space small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.departure-bottom { align-items: end; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.departure-bottom strong { font: 700 30px/1.12 "Anybody", "Source Sans 3", sans-serif; }
.departure-bottom .hint { margin-top: 5px; }
.price-example { color: var(--primary-dark); }

/* Capacity follows the same dark ticket language without obscuring warnings. */
.space-preview { border: 0; border-radius: 12px; background: var(--ink); color: white; }
.space-preview-route { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; color: #d6e9e2; font: 700 19px/1.2 "Anybody", "Source Sans 3", sans-serif; }
.space-preview-route i { position: relative; flex: 1; max-width: 100px; height: 2px; background: var(--primary); }
.space-preview-route i::before, .space-preview-route i::after { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); content: ''; }
.space-preview-route i::before { left: 0; }
.space-preview-route i::after { right: 0; }
.space-preview-head { border-top: 1px solid #48615a; padding-top: 14px; }
.space-preview-head .eyebrow { color: #9be7da; }
.space-preview-head strong { font: 700 27px/1.1 "Anybody", "Source Sans 3", sans-serif; }
.space-van-bay { border-color: white; border-radius: 5px 4px 3px 3px; }
.space-van-fill, .space-van-cab { background: var(--primary); }
.space-van-cab { border-color: white; border-radius: 3px 9px 3px 3px; }
.space-preview .capacity-progress { background: #48615a; }
.space-preview .capacity-progress > span { background: var(--primary); }
.space-preview.is-over .capacity-progress > span { background: #ffc1ad; }
.space-preview .hint { color: #c1d5cf; }
.space-preview-status { color: white; }
.space-preview.is-over .space-preview-status { color: #ffc1ad; }
.summary-card, .result-card { border-radius: 12px; border-color: #c7d5ce; }
.result-card h3, .result-card .price, .total-row strong { font-family: "Anybody", "Source Sans 3", sans-serif; }
.search-panel { border-radius: 12px; }
.sidebar { background: #ecf0eb; }
.topbar { background: var(--paper); }

@media (max-width: 700px) {
  .welcome-illustration { min-height: 325px; padding: 19px 20px 21px; }
  .visual-route { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 7px; margin: 38px 0 30px; }
  .visual-route strong { font-size: clamp(24px, 7.2vw, 34px); }
  .visual-truck { width: 40px; height: 37px; }
  .visual-truck svg { width: 34px; height: 29px; }
  .visual-cargo { gap: 12px; }
  .visual-cargo-copy strong { font-size: 18px; }
  .visual-cargo-copy span { font-size: 15px; }
  .radar-selection { margin: 14px 14px; padding: 18px; }
  .radar-ticket-route { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 9px; }
  .radar-ticket-route strong { font-size: clamp(26px, 7.2vw, 38px); }
  .departure-card { padding: 20px; }
  .departure-route { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 8px; }
  .departure-stop strong { font-size: clamp(27px, 7.3vw, 38px); }
  .departure-bottom .btn { width: 100%; }
}
@media (max-width: 410px) {
  .welcome-copy h1 { font-size: 38px; }
  .visual-index { font-size: 11px; }
  .visual-cargo { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .visual-cargo-copy strong { max-width: none; }
  .visual-capacity { max-width: 220px; }
  .radar-ticket-route small { font-size: 11px; }
  .radar-ticket-route strong { font-size: 26px; }
  .departure-stop strong { font-size: 27px; }
  .departure-top { font-size: 13px; }
  .departure-space { grid-template-columns: minmax(0, 1fr); }
  .departure-space .capacity-progress { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .space-van-fill { transition: none; }
}
