/* Selected mockup parity layer. Loaded after styles.css on /app-v18/. */
.map-first-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  background: var(--navy-950);
}
.map-first-shell .topbar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: calc(42px + var(--safe-top));
  padding: calc(4px + var(--safe-top)) 10px 4px;
  width: 100%;
}
.map-first-shell .brand-block { gap: 7px; }
.map-first-shell .brand-icon {
  display: block !important;
  height: 29px;
  width: 29px;
}
.map-first-shell .brand-block strong { font-size: 13px; }
.map-first-shell .icon-button {
  border-radius: 9px;
  font-size: 17px;
  height: 32px;
  min-width: 32px;
  padding: 0 6px;
}
.map-first-shell .brand-block span { display: none; }
.map-first-shell #refreshButton { display: none; }
.map-first-shell .map-wrap {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.map-first-shell .statusbar {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
}.map-first-shell .map-toolbar {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  left: 10px;
  min-height: 0;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 9px;
  z-index: 700;
}
.map-first-shell .map-toolbar .search-box,
.map-first-shell .map-toolbar .toolbar-button,
.map-first-shell .map-toolbar .fuel-choice-button {
  background: rgba(255,255,255,.97);
  pointer-events: auto;
  border: 1px solid rgba(201,214,223,.96);
  box-shadow: 0 5px 16px rgba(5,27,45,.13);
}
.map-first-shell .map-toolbar .search-box {
  border-radius: 13px;
  flex: 1 1 360px;
  min-height: 40px;
  min-width: 220px;
  padding: 0 11px;
}
.map-first-shell .map-toolbar .search-box input { font-size: 12px; }
.map-first-shell .map-toolbar .toolbar-button,
.map-first-shell .map-toolbar .fuel-choice-button {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}.map-first-shell .map-toolbar .fuel-choice {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}
.map-first-shell .map-toolbar .control-icon {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  height: 15px;
  justify-content: center;
  line-height: 1;
  min-width: 15px;
}
.map-first-shell .map-toolbar .fuel-choice-button[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.map-first-shell .leaflet-top.leaflet-left {
  top: var(--map-toolbar-inset, 54px);
  transition: top .16s ease;
}
.map-first-shell .leaflet-bottom.leaflet-right {
  bottom: var(--vehicle-card-inset, 0px);
  transition: bottom .16s ease;
}
.map-first-shell .offline-badge {
  top: calc(var(--map-toolbar-inset, 54px) + 6px);
}
.map-first-shell .vehicle-strip[hidden] { display: none !important; }
.map-first-shell #vehicleFreshness {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
.map-first-shell #vehicleRange { display: block; }
.map-first-shell .vehicle-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}
.map-first-shell .smart-fuel-arrow { line-height: 1; }
@media (orientation: landscape) and (min-width: 701px) {
  .map-first-shell .vehicle-strip {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    bottom: 16px;
    box-shadow: none;
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    left: 50%;
    max-height: none;
    max-width: 860px;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    transform: translateX(-50%);
    width: min(88%, 860px);
  }
  .map-first-shell .vehicle-status,
  .map-first-shell .vehicle-actions > *,
  .map-first-shell .vehicle-card-toggle {
    pointer-events: auto;
  }
  .map-first-shell .vehicle-status {
    align-items: center;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(204,217,226,.96);
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(5,27,45,.18);
    gap: 9px;
    grid-template-columns: 58px minmax(0,1fr);
    min-height: 60px;
    padding: 7px 42px 7px 9px;
    position: relative;
  }
  .map-first-shell .vehicle-icon {
    background: #f4f7f9;
    border-radius: 11px;
    display: flex;
    height: 46px;
    width: 58px;
  }
  .map-first-shell .vehicle-icon svg {
    height: 40px;
    margin: auto;
    width: 56px;
  }
  .map-first-shell .vehicle-primary-line {
    gap: 16px;
    justify-content: flex-start;
  }
  .map-first-shell .vehicle-primary-line strong { font-size: 13px; }
  .map-first-shell .vehicle-primary-line > span { font-size: 11px; }
  .map-first-shell .vehicle-fuel-meter {
    height: 4px;
    max-width: 170px;
  }
  .map-first-shell #vehicleRange { font-size: 8px; }
  .map-first-shell .vehicle-card-toggle {
    height: 32px;
    min-width: 32px;
    right: 7px;
    top: 14px;
  }
  .map-first-shell .vehicle-actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(92px,.58fr) minmax(210px,1.42fr);
  }
  .map-first-shell .smart-radius,
  .map-first-shell .smart-fuel-button {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(204,217,226,.96);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(5,27,45,.18);
    min-height: 60px;
  }
  .map-first-shell .smart-radius {
    display: flex;
    margin: 0;
    min-width: 0;
  }
  .map-first-shell .smart-radius span { display: none; }
  .map-first-shell .smart-radius select {
    background: transparent;
    border: 0;
    border-radius: 16px;
    font-size: 12px;
    min-height: 60px;
    min-width: 0;
    padding: 0 12px;
    width: 100%;
  }
  .map-first-shell .smart-fuel-button {
    background: linear-gradient(135deg,#ff9f1b,#ff7817);
    border: 0;
    color: #fff;
    gap: 8px;
    padding: 0 14px;
  }
  .map-first-shell .smart-fuel-copy strong { font-size: 12px; }
  .map-first-shell .smart-fuel-arrow {
    font-size: 24px;
    margin-left: auto;
  }
  .map-first-shell .vehicle-card-collapsed {
    grid-template-columns: minmax(280px,340px);
    max-width: 340px;
    width: min(82%,340px);
  }
  .map-first-shell .vehicle-card-collapsed .vehicle-status {
    padding-right: 42px;
  }
}
@media (orientation: portrait), (max-width: 700px) {
  .map-first-shell .map-toolbar {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4,minmax(0,1fr));
    left: 7px;
    right: 7px;
    top: 8px;
  }
  .map-first-shell .map-toolbar .search-box {
    grid-column: 1 / -1;
    min-height: 42px;
    min-width: 0;
    width: 100%;
  }
  .map-first-shell .map-toolbar .toolbar-button,
  .map-first-shell .map-toolbar .fuel-choice-button {
    font-size: 9px;
    gap: 4px;
    min-height: 38px;
    min-width: 0;
    padding: 0 4px;
    width: 100%;
  }
  .map-first-shell .map-toolbar .control-icon {
    font-size: 12px;
    height: 13px;
    min-width: 13px;
  }
  .map-first-shell .map-toolbar .fuel-choice { display: contents; }
  .map-first-shell .vehicle-strip {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(204,217,226,.96);
    border-radius: 20px;
    bottom: 10px;
    box-shadow: 0 14px 34px rgba(5,27,45,.22);
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr;
    left: 10px;
    max-height: none;
    overflow: visible;
    padding: 8px 10px 10px;
    transform: none;
    width: calc(100% - 20px);
  }
  .map-first-shell .vehicle-strip::before {
    background: #cbd6dd;
    border-radius: 99px;
    content: '';
    height: 4px;
    justify-self: center;
    width: 42px;
  }
  .map-first-shell .vehicle-status {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 8px;
    grid-template-columns: 58px minmax(0,1fr);
    min-height: 56px;
    padding: 1px 40px 2px 0;
    position: relative;
  }
  .map-first-shell .vehicle-icon {
    background: #f4f7f9;
    border-radius: 10px;
    display: flex;
    height: 48px;
    width: 58px;
  }
  .map-first-shell .vehicle-icon svg {
    height: 42px;
    margin: auto;
    width: 56px;
  }
  .map-first-shell .vehicle-primary-line {
    gap: 8px;
    justify-content: space-between;
  }
  .map-first-shell .vehicle-primary-line strong { font-size: 12px; }
  .map-first-shell .vehicle-primary-line > span { font-size: 11px; }
  .map-first-shell .vehicle-fuel-meter {
    height: 5px;
    max-width: none;
  }
  .map-first-shell #vehicleRange { font-size: 8px; }
  .map-first-shell .vehicle-card-toggle {
    height: 32px;
    min-width: 32px;
    right: 0;
    top: 10px;
  }
  .map-first-shell .vehicle-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(82px,.55fr) minmax(0,1.45fr);
  }
  .map-first-shell .smart-radius { margin: 0; min-width: 0; }
  .map-first-shell .smart-radius select,
  .map-first-shell .smart-fuel-button {
    border-radius: 12px;
    font-size: 9px;
    min-height: 40px;
    min-width: 0;
    padding: 0 7px;
    width: 100%;
  }
  .map-first-shell .smart-radius select { min-width: 0; }
  .map-first-shell .smart-fuel-button {
    gap: 5px;
    justify-content: center;
  }
  .map-first-shell .smart-fuel-symbol { font-size: 13px; }
  .map-first-shell .smart-fuel-copy strong { font-size: 9px; }
  .map-first-shell .smart-fuel-arrow {
    font-size: 18px;
    margin-left: auto;
  }
  .map-first-shell .vehicle-card-collapsed::before { display: none; }
}
@media (orientation: landscape) and (min-width: 701px) and (max-width: 900px) {
  .map-first-shell .vehicle-strip {
    gap: 7px;
    grid-template-columns: minmax(250px,300px) minmax(0,1fr);
    width: min(90%, 720px);
  }
  .map-first-shell .vehicle-actions {
    gap: 6px;
    grid-template-columns: minmax(78px,.52fr) minmax(170px,1.48fr);
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .map-first-shell .vehicle-strip { bottom: 8px; }
  .map-first-shell .vehicle-status,
  .map-first-shell .smart-radius,
  .map-first-shell .smart-fuel-button {
    min-height: 52px;
  }
  .map-first-shell .vehicle-icon { height: 40px; width: 52px; }
  .map-first-shell .vehicle-icon svg { height: 36px; width: 50px; }
  .map-first-shell .smart-radius select { min-height: 52px; }
  .map-first-shell #vehicleRange {
    display: block !important;
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .map-first-shell .vehicle-actions {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  }
  .map-first-shell .smart-fuel-button { grid-column: 1 / -1; }
}
