/* Swiss Departures — calculateur moderne, palettes de transport conservées. */
.sd-journey {
  max-width:960px; margin:1rem auto; padding:1.25rem;
  background:#fff; color:#202631; border:1px solid #e5e9ef;
  border-radius:16px; font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  box-shadow:0 4px 22px rgba(22,33,50,.045); box-sizing:border-box;
}
.sd-journey *, .sd-journey *::before, .sd-journey *::after {box-sizing:border-box}
.sd-journey h2,.sd-journey h3 {
  display:block; margin:0 0 .8rem!important; color:#1b2533!important;
  font-size:1.05rem; font-weight:700; line-height:1.4;
  letter-spacing:normal; text-transform:none; text-shadow:none;
}
.sd-journey-form {display:grid; gap:.85rem; min-width:0}
.sd-journey label {
  display:grid; gap:.35rem; min-width:0; color:#3b4654;
  font-size:.88rem; font-weight:600; letter-spacing:normal; text-transform:none;
}
.sd-journey input,.sd-journey select {
  display:block; width:100%; max-width:100%; min-width:0; min-height:44px;
  padding:10px 12px; background:#fff!important; color:#1f2937!important;
  border:1px solid #cfd6df!important; border-radius:9px;
  font:inherit; font-size:.95rem; letter-spacing:normal; text-transform:none;
  box-shadow:none!important; appearance:auto;
}
.sd-journey input::placeholder {color:#788492!important; opacity:1}
.sd-journey input:focus,.sd-journey select:focus {
  outline:2px solid rgba(47,100,175,.18); outline-offset:1px;
  border-color:#527daf!important; box-shadow:none!important;
}
.sd-journey input[type="date"],.sd-journey input[type="time"] {
  display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box;
}
.sd-journey-options {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; min-width:0}
.sd-journey-options > * {min-width:0; max-width:100%}
.sd-journey button {
  min-height:44px; padding:10px 16px; cursor:pointer;
  background:#243b58!important; color:#fff!important;
  border:1px solid #243b58!important; border-radius:9px;
  font:inherit; font-weight:650; letter-spacing:normal; text-transform:none;
  box-shadow:none!important; transition:background .15s ease;
}
.sd-journey button:hover {background:#355477!important; color:#fff!important}
.sd-journey button:disabled {opacity:.55; cursor:wait}

/* Suggestions : fond blanc, texte sombre. */
.sd-journey-form > label {position:relative}
.sd-station-suggestions {
  position:absolute; top:100%; left:0; right:0; z-index:30;
  max-height:240px; overflow-y:auto; background:#fff;
  border:1px solid #d5dce5; border-radius:9px;
  box-shadow:0 12px 25px rgba(20,30,45,.14);
}
.sd-station-suggestions:empty {display:none}
.sd-journey .sd-station-option {
  display:block; width:100%; min-height:38px; padding:10px 12px;
  text-align:left; background:#fff!important; color:#273343!important;
  border:0!important; border-bottom:1px solid #edf0f3!important;
  border-radius:0!important; font-size:.92rem; font-weight:500;
  letter-spacing:normal; text-transform:none; box-shadow:none!important;
}
.sd-journey .sd-station-option:hover,.sd-journey .sd-station-option:focus {
  background:#edf3fa!important; color:#172b42!important; outline:none;
}

/* Résultats : cartes blanches et résumé sans palettes. */
.sd-journey-results {margin-top:1.2rem; min-width:0}
.sd-journey-card {padding:1.15rem 0; border-top:1px solid #e5e9ef; min-width:0}
.sd-journey-card > h3 {margin-bottom:.8rem!important}
/* Résumé de l'itinéraire */

.sd-journey-overview {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 24px 90px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}

.sd-journey-overview .sd-time,
.sd-journey-overview .sd-destination {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 12px;
    background: #f3f5f7;
    border: 1px solid #dce2e8;
    border-radius: 9px;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    line-height: 1.35;
    white-space: normal;
}

.sd-journey-overview .sd-time {
    justify-content: center;
    color: #172b43 !important;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 10px 6px;
}

.sd-journey-overview .sd-destination {
    color: #263343 !important;
    font-size: 1rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.sd-journey-overview .sd-time::after,
.sd-journey-overview .sd-destination::after {
    content: none;
}

.sd-journey-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68798a;
    font-size: 1.2rem;
    font-weight: 700;
}




.sd-journey-meta {display:flex; gap:7px; flex-wrap:wrap; margin:.7rem 0!important}
.sd-journey-meta-tile {
  display:inline-block; min-height:0; padding:5px 10px;
  background:#f3f6f9; border:1px solid #e7ebf0; border-radius:999px;
  color:#48586b!important; font-size:1rem; font-weight:600;
  text-shadow:none; box-shadow:none; text-transform:none;
}
.sd-journey-meta-tile::after {content:none}
.sd-journey-details summary {
  cursor:pointer; color:#345e89; font-size:1rem;
  letter-spacing:normal; margin:.65rem 0; padding:.25rem 0;
}
.sd-journey-message {color:#3c4b5c; margin:.6rem 0}
.sd-journey-sections {min-width:0}
.sd-journey .sd-journey-section {
  display:block; padding:8px 0; min-width:0;
  border-top:1px solid #edf0f3; background:#fff;
}

/* SEULES les étapes en transport gardent les palettes noires et jaunes. */
.sd-journey .sd-journey-step {
  width:100%; min-width:0; overflow:hidden;
  border:1px solid #8a7777; border-radius:3px;
  color:#f3d36b; font-family:"Courier New",monospace;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),inset 0 -2px 0 rgba(0,0,0,.8);
}
.sd-journey .sd-journey-step-header {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:5px 14px; padding:9px 12px; min-width:0;
  border-bottom:1px solid #555;
  background:linear-gradient(to bottom,#202020,#0d0d0d);
  color:#f3d36b; font-size:1rem; font-weight:bold;
}
.sd-journey .sd-journey-step-service {overflow-wrap:anywhere; text-align:right}
.sd-journey .sd-journey-step-body {
  display:grid; gap:5px; padding:10px 12px;
  background:linear-gradient(to bottom,#191919,#050505);
  color:#f3d36b; font-size:.97rem; line-height:1.4; overflow-wrap:anywhere;
}
.sd-journey .sd-journey-step-from {font-weight:bold}
.sd-journey .sd-journey-step-direction {color:#d9c57b}
.sd-journey .sd-journey-step-to {font-weight:bold}
.sd-journey .sd-journey-step-to::before {content:'Prochain arrêt: '; color:#d9c57b}

/* Étapes à pied : présentation moderne et lisible */

.sd-journey .sd-journey-section--walk {
    background: #fff;
    border: 0;
    padding: 6px 0;
}

.sd-journey .sd-journey-walk {
    min-width: 0;
    padding: 14px 16px;

    background: #f1f5f9;
    border-left: 4px solid #527daf;
    border-radius: 0 10px 10px 0;

    color: #334155;
    font-size: .95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Heure et indication À PIED */

.sd-journey .sd-journey-walk-title {
    margin-bottom: 8px;
    color: #234e7e;
    font-size: 1rem;
    font-weight: 750;
}

/* Arrêt de départ */

.sd-journey .sd-journey-walk-from {
    margin-top: 0;
    color: #475569;
    font-size: .9rem;
}

/* Arrêt à rejoindre */

.sd-journey .sd-journey-walk-to {
    margin-top: 6px;
    color: #172b43;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.5;
}

/* Mobile */

@media (max-width: 650px) {
    .sd-journey .sd-journey-walk {
        padding: 12px;
        font-size: .9rem;
    }

    .sd-journey .sd-journey-walk-title {
        font-size: .95rem;
    }

    .sd-journey .sd-journey-walk-to {
        font-size: .95rem;
    }
}

@media(max-width:800px) {
  .sd-journey {width:100%; max-width:100%; padding:1rem; border-radius:12px}
}
@media(max-width:650px) {
  .sd-journey-options {grid-template-columns:1fr}
  .sd-journey-overview {
    grid-template-columns:70px minmax(0,1fr); gap:5px 8px; align-items:stretch;
  }
  .sd-journey-overview > :nth-child(1) {grid-column:1; grid-row:1}
  .sd-journey-overview > :nth-child(2) {grid-column:2; grid-row:1}
  .sd-journey-overview > :nth-child(3) {grid-column:1 / -1; grid-row:2; text-align:center}
  .sd-journey-overview > :nth-child(4) {grid-column:1; grid-row:3}
  .sd-journey-overview > :nth-child(5) {grid-column:2; grid-row:3}
  .sd-journey-overview .sd-time,.sd-journey-overview .sd-destination {
    padding:8px; font-size:.84rem; white-space:normal; overflow-wrap:anywhere;
  }
  .sd-journey .sd-journey-step-header {padding:9px 10px; font-size:.94rem}
  .sd-journey .sd-journey-step-body {padding:9px 10px; font-size:.94rem}
}


/* Transition douce entre l'interface blanche et les palettes */

.sd-journey .sd-journey-section:not(.sd-journey-section--walk) {
    background: #e2e5e9;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

/* Légère profondeur autour de la palette */
.sd-journey .sd-journey-step {
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.8);
}

/* Version mobile */
@media (max-width: 650px) {
    .sd-journey .sd-journey-section:not(.sd-journey-section--walk) {
        padding: 8px;
        border-radius: 10px;
    }
}


/* Titre des cartes d'itinéraires */

.sd-journey .sd-journey-card > h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 16px !important;
    padding: 0 0 12px;

    color: #1b2533 !important;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.4;

    border-bottom: 2px solid #e5e9ef;
}

/* Accent bleu à gauche */

.sd-journey .sd-journey-card > h3::before {
    content: "";
    display: block;
    flex: 0 0 5px;
    align-self: stretch;

    background: #527daf;
    border-radius: 4px;
}