/* Écran Route — Déneigement */

.gps-point-pin {
  background: transparent !important;
  border: 0 !important;
}

.gps-point-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #e4c15a;
  font: 800 12px/1 system-ui, sans-serif;
  box-shadow: 0 0 0 2px #e4c15a;
}

#route-screen.panel-screen.screen.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #e4e2de;
}

#route-screen .panel-header {
  padding-top: max(12px, var(--app-safe-top, env(safe-area-inset-top, 0px)));
}

#route-screen .route-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.route-map {
  position: absolute;
  inset: 0;
}

.route-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  font: 600 14px/1.3 system-ui, sans-serif;
}

.route-pin,
.route-person,
.route-depart {
  background: transparent;
  border: 0;
}

.route-pin svg {
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.route-person span,
.route-depart span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  background: #1a1a1a;
  color: #f5e6b8;
  font: 800 13px/1 system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.route-depart span {
  background: #217346;
  color: #fff;
}

.leaflet-routePhone-pane {
  z-index: 900 !important;
}

.leaflet-marker-icon.route-rec {
  background: transparent !important;
  border: 0 !important;
  z-index: 10000 !important;
}

.leaflet-marker-icon.route-gps {
  background: transparent !important;
  border: 0 !important;
}

.route-gps span {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1a1a1a, 0 2px 8px rgba(0, 0, 0, 0.45);
}

.route-user {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.route-user__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.route-user .location-address,
.route-user .location-accuracy {
  margin: 0;
  font: 700 0.78rem/1.3 system-ui, sans-serif;
  color: #1a1a1a;
}
.route-gps-tools {
  position: absolute;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(240px, calc(100% - 24px));
}
.route-gps-tools__btn {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #1a1a1a;
  color: #f5e6b8;
  font: 800 0.85rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.route-gps-tools__btn[hidden] {
  display: none !important;
}
.route-gps-tools__btn--end {
  background: #7f1d1d;
  color: #fff;
}
.leaflet-marker-icon.route-me {
  background: transparent !important;
  border: 0 !important;
}
.route-me span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 2px #1a1a1a;
}
.route-run-mark {
  background: transparent !important;
  border: 0 !important;
}
.route-run-mark span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font: 800 14px/1 system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.route-run-mark--end span {
  background: #111;
}
.route-map-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(26, 26, 26, 0.92);
  color: #f5e6b8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.route-map-bar[hidden] {
  display: none !important;
}

.route-map-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font: 700 0.92rem/1.3 system-ui, sans-serif;
}

.route-map-bar__change {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #f5e6b8;
  color: #1a1a1a;
  font: 800 0.85rem system-ui, sans-serif;
  cursor: pointer;
}

.route-choice {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}

.route-choice[hidden] {
  display: none !important;
}

.route-choice__card {
  width: min(480px, 100%);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.route-choice__bar {
  height: 4px;
  background: linear-gradient(90deg, #8f7319, #e4c15a, #8f7319);
}

.route-choice__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 14px;
}

.route-choice__step {
  margin: 0 0 4px;
  font: 800 0.78rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8f7319;
}

.route-choice__title {
  margin: 0 0 8px;
  font: 800 1.2rem/1.2 system-ui, sans-serif;
  color: #1a1a1a;
}

.route-choice__status {
  margin: 0 0 8px;
  font: 600 0.9rem/1.35 system-ui, sans-serif;
  color: #6b7280;
}

.route-choice__status:empty {
  display: none;
}

.route-choice__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 46vh;
  overflow: auto;
}

.route-choice__btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  text-align: left;
  font: 800 1rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.route-choice__btn:active {
  background: #1a1a1a;
  color: #f5e6b8;
}

.route-choice__back {
  margin-top: 10px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #1a1a1a;
  font: 800 0.95rem system-ui, sans-serif;
  cursor: pointer;
}

.route-choice__back[hidden] {
  display: none !important;
}
