/* Spostia v07 — original welcome page and journey browsing. */
.welcome-page { min-height: 100vh; background: #fff; }
.welcome-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 30px 40px 18px; }
.welcome-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; width: 225px; max-width: 55%; }
.welcome-logo { display: block; width: 100%; height: auto; }
.welcome-claim { display: block; margin: 0; color: var(--ink); font-size: 18px; line-height: 1.2; font-weight: 650; letter-spacing: normal; text-transform: none; }
.welcome-country { flex-shrink: 0; padding: 9px 13px; border-radius: 9px; background: #edf3f2; color: var(--muted); font-size: 16px; font-weight: 650; }
.welcome-main { max-width: 1240px; min-height: 0; margin: 0 auto; padding: 30px 40px 32px; }
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 52px; margin: 0 0 42px; }
.welcome-copy { min-width: 0; }
.welcome-kicker { display: block; margin-bottom: 17px; color: var(--primary-dark); font-size: 16px; font-weight: 700; letter-spacing: .8px; }
.welcome-copy h1 { max-width: 580px; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.05; font-weight: 750; letter-spacing: -1.2px; }
.welcome-copy h1 span { display: block; color: var(--primary-dark); }
.welcome-copy > p { max-width: 535px; margin-top: 22px; color: var(--muted); font-size: 22px; line-height: 1.45; }
.welcome-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.welcome-scope span { padding: 6px 11px; border: 1px solid #ccded9; border-radius: 7px; background: #f7faf9; font-size: 16px; font-weight: 600; }
.welcome-illustration { min-width: 0; padding: 22px 12px 23px; border-radius: 26px; background: var(--primary-soft); }
.welcome-illustration-label { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 10px; font-size: 16px; font-weight: 650; }
.welcome-status-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--primary-dark); }
.welcome-scene { display: block; width: 100%; height: auto; margin-top: 10px; }
.welcome-illustration-caption { display: grid; gap: 4px; padding: 0 12px; text-align: center; }
.welcome-illustration-caption strong { font-size: 20px; line-height: 1.4; }
.welcome-illustration-caption span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.welcome-step { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 18px; min-width: 0; padding-top: 24px; border-top: 2px solid #d8e8e3; }
.welcome-step-icon { position: relative; min-width: 0; padding: 9px 0 5px; border-radius: 16px; background: #e3f7f4; }
.welcome-icon { display: block; width: 80px; max-width: 100%; height: 72px; color: #142525; }
.welcome-step-number { position: absolute; top: -9px; right: -6px; display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid white; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.welcome-step h2 { margin: 3px 0 10px; font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.3px; }
.welcome-step p { color: var(--muted); font-size: 18px; line-height: 1.45; }
.welcome-entry { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 34px; padding: 26px 30px; border-radius: 20px; background: var(--ink); color: white; }
.welcome-entry > div { min-width: 0; }
.welcome-entry h2 { font-size: 28px; line-height: 1.25; }
.welcome-entry p { margin-top: 8px; color: #d5e7e2; font-size: 18px; line-height: 1.5; }
.welcome-enter { flex-shrink: 0; min-width: 218px; min-height: 58px; font-size: 20px; }
.welcome-partner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 12px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.5; text-align: center; }
.welcome-partner-button { min-height: 48px; padding: 10px 2px; border: 0; background: transparent; color: var(--primary-dark); font-size: 18px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.welcome-footer { max-width: 920px; margin: 22px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.5; text-align: center; }
.welcome-footer strong { color: var(--ink); font-weight: 650; }

/* Journey cards show direction, time and capacity before the action. */
.departures-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.departure-card { min-width: 0; padding: 25px; border: 1px solid #cbded9; border-radius: 20px; background: white; box-shadow: 0 6px 22px rgb(20 37 37 / 4%); }
.departure-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.departure-top > div { min-width: 0; }
.departure-top strong { display: block; font-size: 18px; font-weight: 650; }
.departure-top small { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.route-status { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 10px; border-radius: 8px; background: #e3f7f4; color: var(--primary-dark); font-size: 16px; font-weight: 650; line-height: 1.35; }
.route-status.full, .route-status.neutral { background: #edf1f1; color: var(--muted); }
.departure-route { display: grid; gap: 0; margin: 22px 0; }
.departure-stop { position: relative; min-width: 0; padding: 0 0 25px 28px; }
.departure-stop:last-child { padding-bottom: 0; }
.departure-stop::before { position: absolute; top: 7px; left: 0; z-index: 1; width: 13px; height: 13px; border: 3px solid var(--primary-dark); border-radius: 50%; background: white; content: ''; }
.departure-stop:last-child::before { background: var(--primary-dark); }
.departure-stop:not(:last-child)::after { position: absolute; top: 20px; bottom: -7px; left: 6px; border-left: 2px solid #b2cbc4; content: ''; }
.departure-stop strong { display: block; color: var(--ink); font-size: 28px; line-height: 1.25; font-weight: 700; }
.departure-stop label, .departure-stop span, .departure-stop small { display: block; color: var(--muted); font-size: 16px; line-height: 1.4; }
.departure-stop strong + small { margin-top: 6px; }
.departure-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.45; }
.departure-meta > span { display: flex; align-items: center; gap: 7px; }
.departure-meta .icon { width: 22px; height: 22px; }
.departure-space { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f0f8f5; }
.departure-space strong { color: var(--ink); font-size: 22px; font-weight: 700; }
.departure-space span { color: var(--muted); font-size: 16px; }
.departure-space meter { width: 100%; height: 9px; accent-color: var(--primary-dark); }
.departure-bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.departure-bottom > div { min-width: 0; }
.departure-bottom small { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; }
.departure-bottom strong, .departure-bottom .price { display: block; color: var(--ink); font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.departure-bottom .btn { min-height: 52px; }
.departure-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 16px; margin: 24px 0; padding: 24px; border: 1px solid #c6dbd5; border-radius: 18px; background: white; }
.departure-filter > * { min-width: 0; }
.departure-filter .check { margin: 0; }
.route-banner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 22px 0; padding: 22px; border: 1px solid #c5ddd6; border-radius: 16px; background: #e3f7f4; }
.route-banner > div { flex: 1 1 220px; min-width: 0; }
.route-banner h2, .route-banner h3 { font-size: 22px; line-height: 1.35; }
.route-banner p { margin-top: 7px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.partner-publish { min-width: 0; max-width: 850px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.partner-publish h2, .partner-publish h3 { margin-bottom: 18px; }
.partner-publish > p { margin-bottom: 24px; color: var(--muted); }
.partner-publish .fields + .fields { margin-top: 20px; }
.partner-publish .notice { margin-top: 22px; }
@media (max-width: 1100px) {
  .welcome-hero { gap: 30px; }
  .welcome-copy h1 { font-size: 46px; }
  .welcome-copy > p { font-size: 20px; }
  .welcome-steps { gap: 20px; }
  .welcome-step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .welcome-step-icon { width: 80px; }
  .departures-grid { grid-template-columns: minmax(0, 1fr); }
  .departure-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .welcome-header { padding: 22px 24px 15px; }
  .welcome-brand { width: 190px; max-width: 55%; }
  .welcome-country { padding: 7px 9px; font-size: 16px; }
  .welcome-main { padding: 18px 24px 26px; }
  .welcome-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 28px; }
  .welcome-copy h1 { font-size: 44px; line-height: 1.07; letter-spacing: -.8px; }
  .welcome-copy > p { margin-top: 16px; font-size: 20px; }
  .welcome-kicker { margin-bottom: 13px; font-size: 14px; }
  .welcome-scope { margin-top: 18px; }
  .welcome-illustration { padding: 16px 12px 18px; border-radius: 20px; }
  .welcome-scene { max-height: 215px; margin-top: 0; }
  .welcome-illustration-caption strong { font-size: 18px; }
  .welcome-illustration-caption span { font-size: 16px; }
  .welcome-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .welcome-step { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .welcome-step-icon { width: 76px; padding: 5px 0; }
  .welcome-icon { height: 68px; }
  .welcome-step h2 { margin-top: 0; font-size: 24px; }
  .welcome-step p { font-size: 18px; }
  .welcome-entry { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 28px; padding: 24px; }
  .welcome-entry h2 { font-size: 26px; }
  .welcome-enter { width: 100%; min-width: 0; }
  .welcome-partner { margin-top: 22px; }
  .welcome-footer { text-align: left; }
  .departure-card { padding: 22px; }
  .departure-filter { padding: 20px; }
  .partner-publish { padding: 22px; }
}
@media (max-width: 440px) {
  .welcome-header { gap: 12px; padding: 20px 18px 14px; }
  .welcome-brand { width: 174px; max-width: 55%; }
  .welcome-claim { font-size: 18px; }
  .welcome-country { font-size: 14px; }
  .welcome-main { padding: 15px 18px 24px; }
  .welcome-copy h1 { font-size: 38px; line-height: 1.08; }
  .welcome-copy > p { font-size: 20px; line-height: 1.4; }
  .welcome-hero { margin-bottom: 24px; }
  .welcome-illustration { display: none; }
  .welcome-step { gap: 14px; grid-template-columns: 68px minmax(0, 1fr); }
  .welcome-step-icon { width: 68px; padding: 4px 0; }
  .welcome-icon { height: 62px; }
  .welcome-step h2 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
  .welcome-step p { font-size: 18px; line-height: 1.4; }
  .welcome-entry { padding: 22px; }
  .welcome-entry h2 { font-size: 25px; }
  .departure-card { padding: 20px; }
  .departure-bottom .btn { width: 100%; }
  .departure-filter { gap: 16px 12px; padding: 20px; }
  .departure-filter > :nth-child(n+3) { grid-column: 1 / -1; }
  .departure-stop strong { font-size: 26px; }
  .route-banner { padding: 20px; }
  .route-banner .btn { width: 100%; }
  .partner-publish { padding: 20px; }
  .partner-publish .fields { grid-template-columns: minmax(0, 1fr); }
}

/* Approved logo and claim form one accessible lockup; the PNG stays intact. */
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; text-align: left; }
.brand-lockup .brand-logo { display: block; width: 180px; max-width: 100%; height: auto; }
.brand-lockup .brand-claim { display: block; max-width: 100%; margin: 0; padding: 0; font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.2; font-weight: 650; letter-spacing: normal; text-transform: none; color: var(--ink); white-space: normal; }
@media (max-width: 800px) {
  .brand-lockup .brand-logo { width: 154px; }
  .brand-lockup.mobile-logo { max-width: 154px; }
}

/* Integration with the existing application header and search form. */
.departure-filter { display: block; }
.partner-publish { margin-bottom: 30px; }
.topbar .brand-lockup.mobile-logo { display: none; }
@media(max-width:800px) {
 .topbar .brand-lockup.mobile-logo { display: flex; }
 .sidebar > .brand-lockup { display: none; }
 .topbar { min-height: 108px; height:108px; }
 .sidebar { padding-top:116px; }
 .brand-lockup .brand-claim { font-size:17px; line-height:1.15; }
}

@media(max-width:480px) {
 .brand-lockup.mobile-logo { flex:0 1 180px; max-width:180px; }
 .brand-lockup.mobile-logo .brand-logo { width:180px; }
 .role-picker select { width:138px; font-size:16px; }
 .brand-lockup .brand-claim { white-space:nowrap; }
}
