/* ══════════════════════════════════════════════
   NOCTAMBUS — WIDGET.CSS
   2 panneaux séparés, fidèle au Figma TPG
══════════════════════════════════════════════ */

/* ════ WRAPPER — 2 panneaux flottants ════ */
.hero-widget {
  width: calc(100% - 48px);
  max-width: 1650px;
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
  align-items: start;
}

/* ════ PANNEAU GAUCHE ════ */
.hw-left {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ── Tabs — style plan.html : fond sombre + soulignement orange ── */
.hw-tabs {
  display: flex;
  background: var(--clr-bg);
}

.hw-tab {
  flex: 1;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.84rem;
  color: rgba(175, 175, 230, 0.5);
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all var(--t-fast);
}

.hw-tab-active {
  color: var(--clr-blanc) !important;
  border-bottom-color: var(--clr-orange);
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 0;
}

.hw-tab:hover:not(.hw-tab-active) {
  color: var(--clr-blanc);
}

/* ── Body ── */
.hw-body {
  background: var(--clr-cream);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

/* ─ Champs A/B avec swap au milieu ─ */
.hw-fields-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hw-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.hw-field-row:first-child {
  margin-bottom: 10px;
}

.hw-field-row:last-of-type {
  margin-top: 0;
}

.hw-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--clr-blanc);
  flex-shrink: 0;
}

.hw-badge-a {
  background: var(--clr-bg);
}

.hw-badge-b {
  background: var(--clr-b3);
}

.hw-badge-loc {
  background: var(--clr-orange);
  font-size: 0.95rem;
}

/* Input wrap — pilule style plan.html */
.hw-input-wrap {
  flex: 1;
  position: relative;
  background: var(--clr-b2);
  border-radius: var(--r-full);
  padding: 12px 16px;
  transition: background var(--t-fast);
}

.hw-input-wrap:focus-within {
  background: var(--clr-b3);
}

.hw-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-blanc);
  display: block;
}

.hw-input::placeholder {
  color: rgba(175, 175, 230, 0.55);
  font-weight: 400;
}

/* Swap : overlay absolu entre les 2 champs */
.hw-swap-row {
  position: relative;
  height: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding-right: 0;
}

.hw-swap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 80px;
  background: var(--clr-cream);
  border: 2px solid rgba(27, 0, 105, 0.18);
  color: var(--clr-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--t-fast);
  z-index: 10;
}

.hw-swap:hover {
  background: var(--clr-orange);
  color: var(--clr-blanc);
  border-color: var(--clr-orange);
  transform: translateY(-50%) rotate(180deg);
}

/* ── Bouton "Trouver mon itinéraire" ── */
.hw-search-btn {
  width: 100%;
  background: var(--clr-orange);
  color: var(--clr-blanc);
  border: none;
  border-radius: var(--r-full);
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast);
}

.hw-search-btn:hover {
  background: var(--clr-orange-dark);
}

/* Autocomplete */
.hw-ac-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--clr-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  z-index: 200;
  display: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hw-ac-drop.open {
  display: block;
}

.hw-ac-item {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--clr-b4);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast), color var(--t-fast);
}

.hw-ac-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-orange);
  flex-shrink: 0;
}

.hw-ac-item:hover {
  background: rgba(253, 83, 18, 0.1);
  color: var(--clr-blanc);
}

.hw-ac-item:last-child {
  border-bottom: none;
}

.hw-time-hint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(27, 0, 105, 0.5);
  margin-top: 10px;
}

.hw-time-orange {
  color: var(--clr-orange);
  font-weight: 700;
}

/* ════ PANNEAU DROIT ════ */
.hw-right {
  border-radius: 20px;
  overflow: hidden;
  background: var(--clr-cream);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Header "Horaires" — fond bleu foncé */
.hw-right-header {
  background: var(--clr-bg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-right-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-b4);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hw-right-title i {
  color: var(--clr-orange);
}

.hw-right-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-b4);
  font-size: 0.92rem;
  transition: all var(--t-fast);
}

.hw-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--clr-blanc);
}

.hw-refresh-icon {
  color: var(--clr-orange);
}

.hw-fav-on {
  color: var(--clr-orange);
}

/* Barre résumé stops */
.hw-summary {
  background: var(--clr-b2);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-summary-stops {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hw-summary-stop {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--clr-b4);
}

.hw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hw-dot-a {
  background: var(--clr-orange);
}

.hw-dot-b {
  background: var(--clr-b3);
}

.hw-summary-icons {
  display: flex;
  gap: 6px;
}

/* Sous-onglets */
.hw-subtabs {
  display: flex;
  background: var(--clr-cream);
  border-bottom: 1px solid rgba(27, 0, 105, 0.1);
}

.hw-subtab {
  flex: 1;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgba(27, 0, 105, 0.4);
  text-align: center;
  transition: all var(--t-fast);
}

.hw-subtab-active {
  color: var(--clr-bg);
  border-bottom-color: var(--clr-bg);
}

.hw-date-row {
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: rgba(27, 0, 105, 0.45);
  background: var(--clr-cream);
  border-bottom: 1px solid rgba(27, 0, 105, 0.08);
}

/* Zone résultats */
.hw-results {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}

.hw-results::-webkit-scrollbar {
  width: 4px;
}

.hw-results::-webkit-scrollbar-thumb {
  background: var(--clr-b3);
  border-radius: 2px;
}

/* ════ ITEM ITINÉRAIRE ════ */
.hw-itin-item {
  border-bottom: 1px solid rgba(27, 0, 105, 0.1);
  cursor: pointer;
  transition: background var(--t-fast);
  background: var(--clr-cream);
}

.hw-itin-item:last-child {
  border-bottom: none;
}

.hw-itin-item.selected {
  background: #fff;
}

/* Ligne principale (heure A — track — heure B) */
.hw-itin-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 6px;
}

.hw-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 46px;
  flex-shrink: 0;
}

.hw-time-col.right {
  align-items: flex-end;
}

.hw-time {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-bg);
  line-height: 1.1;
}

.hw-delay {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(27, 0, 105, 0.35);
  min-height: 13px;
}

.hw-delay.late {
  color: #C0392B;
}

.hw-delay.early {
  color: #27AE60;
}

/* Track visuel */
.hw-track-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
}

.hw-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hw-track-line {
  flex: 1;
  height: 2.5px;
  background: var(--clr-bg);
  position: relative;
}

.hw-track-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 125%;
  transform: translateY(-50%);
  border-left: 5px solid var(--clr-bg);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  scale: 1.5;
}

.hw-track-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--clr-bg);
  background: var(--clr-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--clr-bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hw-track-walk {
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: var(--clr-bg);
}

/* Méta (chrono + changements) — visible seulement si item selected */
.hw-itin-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 18px 0;
}

.hw-meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: rgba(27, 0, 105, 0.55);
}

.hw-meta-chip i {
  color: var(--clr-orange);
  font-size: 0.84rem;
}

/* Actions (détails + alarme) — réservées pour item sélectionné */
.hw-itin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
}

.hw-btn-detail {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-orange);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: opacity var(--t-fast);
}

.hw-btn-detail:hover {
  opacity: 0.75;
}

.hw-btn-alarm {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(27, 0, 105, 0.45);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color var(--t-fast);
}

.hw-btn-alarm:hover,
.hw-btn-alarm.on {
  color: var(--clr-orange);
}

/* ════ DÉTAIL ITINÉRAIRE (style TPG) ════ */
.hw-detail-panel {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(27, 0, 105, 0.1);
}

.hw-detail-panel.open {
  display: block;
}

/* Timeline verticale — ligne continue via pseudo-élément sur le conteneur */
.hw-detail-timeline {
  padding: 14px 18px;
  position: relative;
}

/* Ligne verticale continue de haut en bas du premier au dernier point */
.hw-detail-timeline::before {
  content: '';
  position: absolute;
  left: calc(18px + 5px);
  /* 18px padding + 5px = centre du dot 12px */
  top: 22px;
  /* commence au centre du premier dot */
  bottom: 22px;
  /* finit au centre du dernier dot */
  width: 2px;
  background: var(--clr-b3);
  opacity: 0.3;
  z-index: 0;
}

.hw-dtl-stop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.hw-dtl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 12px;
  padding-top: 3px;
}

/* Point de timeline — cercle avec anneau */
.hw-dtl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-orange);
  flex-shrink: 0;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--clr-orange);
  z-index: 2;
  position: relative;
}

/* Supprime l'ancienne ligne verticale individuelle — remplacée par ::before */
.hw-dtl-line {
  display: none;
}

.hw-dtl-content {
  flex: 1;
  padding-bottom: 20px;
}

.hw-dtl-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hw-dtl-time {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-bg);
}

.hw-dtl-delay {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(27, 0, 105, 0.4);
  margin-left: 4px;
}

.hw-dtl-delay.late {
  color: #C0392B;
}

.hw-dtl-stop-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--clr-bg);
  flex: 1;
}

.hw-dtl-quai {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(27, 0, 105, 0.45);
}

/* Segment bus dans le détail */
.hw-dtl-segment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(27, 0, 105, 0.04);
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 6px;
}

.hw-dtl-seg-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--clr-bg);
  font-weight: 600;
}

.hw-dtl-seg-info {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: rgba(27, 0, 105, 0.5);
  margin-top: 2px;
}

/* Marche à pied */
.hw-dtl-walk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(27, 0, 105, 0.5);
  padding: 6px 0;
  font-style: italic;
}

/* ════ ITEM PROCHAIN DÉPART ════ */
.hw-dep-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(27, 0, 105, 0.08);
  background: var(--clr-cream);
  cursor: pointer;
  transition: background var(--t-fast);
}

.hw-dep-item.selected {
  background: #fff;
}

.hw-dep-item:last-child {
  border-bottom: none;
}

.hw-dep-time-col {
  display: flex;
  flex-direction: column;
  min-width: 44px;
  flex-shrink: 0;
}

.hw-dep-info {
  flex: 1;
}

.hw-dep-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
}

.hw-dep-dest {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-bg);
  flex: 1;
}

.hw-dep-quai {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  color: rgba(27, 0, 105, 0.45);
}

.hw-dep-from {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(27, 0, 105, 0.45);
  margin-bottom: 6px;
}

.hw-dep-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

/* ════ DÉTAIL PROCHAIN DÉPART — liste arrêts ════ */
.hw-dep-detail {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(27, 0, 105, 0.08);
}

.hw-dep-detail.open {
  display: block;
}

.hw-dep-dtl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 8px;
  border-bottom: 1px solid rgba(27, 0, 105, 0.08);
}

.hw-dep-dtl-info {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(27, 0, 105, 0.5);
  font-style: italic;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(27, 0, 105, 0.06);
}

.hw-stop-list {
  padding: 6px 18px;
  position: relative;
}

/* Ligne continue derrière tous les points */
.hw-stop-list::before {
  content: '';
  position: absolute;
  left: calc(18px + 4px);
  /* 18px padding + 4px = centre du cercle 10px */
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: rgba(27, 0, 105, 0.18);
  z-index: 0;
}

.hw-stop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.hw-stop-row:last-child {
  border-bottom: none;
}

.hw-stop-dot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.hw-stop-circ {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-orange);
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--clr-orange);
  z-index: 1;
}

/* Supprime l'ancienne ligne individuelle */
.hw-stop-vert {
  display: none;
}

.hw-stop-time {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--clr-bg);
  min-width: 38px;
}

.hw-stop-delay {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(27, 0, 105, 0.35);
  min-width: 20px;
}

.hw-stop-delay.late {
  color: #C0392B;
}

.hw-stop-name {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--clr-bg);
  flex: 1;
  font-weight: 500;
}

.hw-stop-name.bold {
  font-weight: 700;
}

.hw-stop-quai {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(27, 0, 105, 0.4);
}

/* ════ FOOTER ════ */
.hw-footer {
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  background: var(--clr-cream);
  border-top: 1px solid rgba(27, 0, 105, 0.08);
}

.hw-btn-map {
  background: var(--clr-orange);
  color: var(--clr-blanc);
  border: none;
  border-radius: 22px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--t-fast), transform var(--t-fast);
}

.hw-btn-map:hover {
  background: var(--clr-orange-dark);
  transform: translateY(-1px);
}

/* Barre de défilement page (< Plus tôt / Plus tard >) */
.hw-nav-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  border-top: 1px solid rgba(27, 0, 105, 0.08);
  background: var(--clr-cream);
}

.hw-nav-btn {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--clr-b3);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}

.hw-nav-btn:hover {
  color: var(--clr-orange);
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1000px) {
  .hero-widget {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }
}

@media (max-width: 500px) {
  .hero-widget {
    width: calc(100% - 16px);
  }
}
/* ════ MODAL FAVORIS ════ */
.hw-fav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hw-fav-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.hw-fav-modal {
  background: var(--clr-cream);
  border-radius: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hw-fav-backdrop.open .hw-fav-modal {
  transform: translateY(0) scale(1);
}
.hw-fav-header {
  background: var(--clr-bg);
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hw-fav-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-b4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hw-fav-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--clr-b4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.hw-fav-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--clr-blanc);
}
.hw-fav-list {
  padding: 12px 0;
}
.hw-fav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid rgba(27, 0, 105, 0.07);
}
.hw-fav-item:last-child { border-bottom: none; }
.hw-fav-item:hover { background: rgba(27, 0, 105, 0.04); }
.hw-fav-item:hover .hw-fav-arrow { transform: translateX(3px); color: var(--clr-orange); }
.hw-fav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-fav-info { flex: 1; min-width: 0; }
.hw-fav-route {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--clr-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-fav-stops {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(27, 0, 105, 0.45);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-fav-arrow {
  color: rgba(27, 0, 105, 0.25);
  font-size: 0.9rem;
  transition: transform var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.hw-fav-empty {
  padding: 32px 20px;
  text-align: center;
}
.hw-fav-empty p {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: rgba(27, 0, 105, 0.4);
}
.hw-fav-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(27, 0, 105, 0.08);
  display: flex;
  justify-content: flex-end;
}
.hw-fav-done {
  background: var(--clr-orange);
  color: var(--clr-blanc);
  border: none;
  border-radius: var(--r-full);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hw-fav-done:hover {
  background: var(--clr-orange-dark);
  transform: translateY(-1px);
}
