:root {
  --bg: #05080c;
  --panel: #0a1017;
  --panel-2: #0e1721;
  --border: #182b3b;
  --blue: #15a9ff;
  --blue-2: #087dcc;
  --text: #f4f9fc;
  --muted: #8da3b4;
  --green: #35e5a1;
  --unknown: #f2b84b;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

button, input, select {
  font: inherit;
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 12, .96);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  font-size: 25px;
  background: linear-gradient(145deg, #102638, #09131c);
  border: 1px solid #194563;
  box-shadow: 0 0 24px rgba(21, 169, 255, .14);
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.header-stats b {
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.workspace {
  min-height: 0;
  flex: 1;
  display: flex;
  direction: rtl;
}

.sidebar {
  width: 390px;
  flex: 0 0 390px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--border);
  z-index: 800;
}

.search-panel {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input,
.search-panel select {
  width: 100%;
  height: 46px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: var(--panel-2);
}

.search-row input {
  padding: 0 14px;
}

.search-row input:focus,
.search-panel select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(21, 169, 255, .09);
}

.search-row button {
  width: 48px;
  flex: 0 0 48px;
  border: 1px solid #195074;
  border-radius: 13px;
  color: var(--blue);
  background: #0b2030;
  cursor: pointer;
  font-size: 25px;
}

.search-panel select {
  margin-top: 10px;
  padding: 0 12px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 17px 11px;
  color: var(--muted);
  font-size: 13px;
}

.results-header strong {
  color: var(--text);
  font-size: 15px;
}

.station-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 18px;
}

.station-card {
  margin-bottom: 9px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #0e1721, #0a1118);
  cursor: pointer;
  transition: .2s ease;
}

.station-card:hover,
.station-card.active {
  border-color: #176ca1;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.station-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.station-name {
  margin: 0;
  font-size: 15px;
}

.operator {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 12px;
}

.station-address {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--unknown);
  border: 1px solid rgba(242, 184, 75, .25);
  border-radius: 999px;
  background: rgba(242, 184, 75, .08);
  font-size: 11px;
}

.station-actions {
  display: flex;
  margin-top: 13px;
}

.navigate {
  width: 100%;
  padding: 9px 12px;
  color: #dff5ff;
  border: 1px solid #15577e;
  border-radius: 10px;
  background: #0b2637;
  cursor: pointer;
}

.map-wrap {
  min-width: 0;
  flex: 1;
  position: relative;
  direction: ltr;
}

#map {
  width: 100%;
  height: 100%;
  background: #071019;
}

.leaflet-tile-pane {
  filter: brightness(.72) contrast(1.15) saturate(.72);
}

.ev-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #8bd7ff;
  border-radius: 50% 50% 50% 8px;
  color: white;
  background: linear-gradient(145deg, #16aaff, #0874bb);
  box-shadow: 0 4px 18px rgba(0, 142, 229, .55);
  transform: rotate(-45deg);
}

.ev-marker span {
  transform: rotate(45deg);
  font-size: 14px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--text);
  background: var(--panel-2);
}

.popup {
  min-width: 210px;
  direction: rtl;
  text-align: right;
}

.popup h3 {
  margin: 0 0 5px;
}

.popup p {
  margin: 5px 0;
  color: var(--muted);
}

.popup button {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  color: white;
  border: 0;
  border-radius: 9px;
  background: var(--blue-2);
  cursor: pointer;
}

.map-legend {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 500;
  padding: 10px 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 14, 20, .92);
  direction: rtl;
  font-size: 12px;
}

.marker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
}

.marker-dot.unknown {
  background: var(--unknown);
}

.loading,
.empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 3px solid #163047;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.mobile-list-button {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .topbar {
    height: 64px;
    flex-basis: 64px;
    padding: 0 14px;
  }

  .brand small,
  .header-stats span:last-child {
    display: none;
  }

  .sidebar {
    position: absolute;
    inset: 64px 0 0 auto;
    width: min(92%, 390px);
    transform: translateX(105%);
    transition: transform .25s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .45);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-list-button {
    position: absolute;
    bottom: 20px;
    left: 18px;
    z-index: 600;
    display: flex;
    gap: 8px;
    padding: 12px 17px;
    color: white;
    border: 1px solid #176696;
    border-radius: 14px;
    background: #0b2637;
  }

  .map-legend {
    right: 12px;
    bottom: 72px;
  }
}

.connector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.connector-chip {
  padding: 6px 9px;
  border: 1px solid #1a587e;
  border-radius: 9px;
  color: #bce9ff;
  background: #0a2536;
  font-size: 11px;
  direction: ltr;
}

.no-connector-data {
  color: #718899;
  font-size: 11px;
}

.opening-hours {
  margin: 8px 0 0;
  color: #a7c4d5;
  font-size: 12px;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #172936;
  color: #718899;
  font-size: 10px;
}

.source-line {
  margin-top: 10px !important;
  color: #718899 !important;
  font-size: 11px;
}

.status-pill.realtime {
  color: #35e5a1;
  border-color: rgba(53, 229, 161, .3);
  background: rgba(53, 229, 161, .09);
}

.install-button {
  margin-right: auto;
  margin-left: 18px;
  padding: 9px 14px;
  color: #dff5ff;
  border: 1px solid #176696;
  border-radius: 11px;
  background: linear-gradient(145deg, #0d3045, #091e2b);
  cursor: pointer;
}

.install-button:hover {
  border-color: #15a9ff;
  box-shadow: 0 0 20px rgba(21, 169, 255, .12);
}

@media (max-width: 760px) {
  .install-button {
    margin-left: 8px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

.brand-logo {
  width: 76px;
  height: 58px;
  margin: -7px -10px -7px -7px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 102, 230, .26));
}

@media (max-width: 760px) {
  .brand-logo {
    width: 64px;
    height: 50px;
    margin-right: -9px;
  }
}

.brand-logo {
  width: 108px;
  height: 72px;
  margin: -12px -18px -12px -14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: #9bb0bf;
  cursor: pointer;
  font-size: 12px;
}

.toggle-filter input {
  width: 17px;
  height: 17px;
  accent-color: #15a9ff;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 88px;
    height: 62px;
    margin-right: -16px;
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.favorite-button {
  width: 31px;
  height: 31px;
  padding: 0;
  color: #8299aa;
  border: 1px solid #243746;
  border-radius: 9px;
  background: #0a141c;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.favorite-button.active {
  color: #ffd15b;
  border-color: #6c5727;
  background: rgba(255, 209, 91, .08);
}

.distance {
  color: #15a9ff;
  white-space: nowrap;
}

.data-credit {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #233441;
  color: #647b8b;
  font-size: 9px;
  white-space: nowrap;
}

/* IBS_EV_ROUTE_UI_V1 */
.route-planner {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(48, 120, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right,
      rgba(34, 101, 220, 0.18),
      transparent 55%),
    rgba(8, 14, 23, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 38px rgba(0, 0, 0, 0.24);
}

.route-planner-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.route-planner-title strong {
  color: #fff;
  font-size: 17px;
}

.route-engine-label {
  padding: 5px 9px;
  border: 1px solid rgba(40, 113, 255, 0.35);
  border-radius: 10px;
  background: rgba(35, 102, 224, 0.12);
  color: #8eb8ff;
  font-size: 11px;
  font-weight: 800;
  direction: ltr;
}

.route-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.route-point-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #2475f5;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.route-point.destination .route-point-icon {
  background: #e6343f;
}

.route-point-text {
  min-width: 0;
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.35;
}

.route-point-text.pending {
  color: #8492a7;
}

.route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.route-button {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.route-button:hover {
  border-color: rgba(67, 137, 255, 0.55);
  background: rgba(42, 107, 222, 0.15);
}

.route-button.primary {
  border-color: #2d78f2;
  background: linear-gradient(135deg, #286fe6, #1749a7);
}

.route-button.active {
  border-color: #ec3a45;
  background: rgba(230, 52, 63, 0.16);
}

.route-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.route-result {
  display: none;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.route-result.visible {
  display: block;
}

.route-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.route-summary-item {
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.route-summary-item b {
  display: block;
  color: #fff;
  font-size: 20px;
  direction: ltr;
}

.route-summary-item small {
  color: #8d9aae;
}

.route-alternatives {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
}

.route-alternative {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #cdd9e9;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.route-alternative.selected {
  border-color: #3682ff;
  background: rgba(40, 111, 230, 0.2);
  color: #fff;
}

.route-message {
  margin-top: 10px;
  color: #94a4ba;
  font-size: 12px;
  line-height: 1.4;
}

.route-message.error {
  color: #ff8088;
}

body.route-picking-destination,
body.route-picking-destination #map {
  cursor: crosshair !important;
}

.route-map-banner {
  position: absolute;
  z-index: 900;
  top: 18px;
  right: 50%;
  display: none;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(7, 12, 20, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(50%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.route-map-banner.visible {
  display: block;
}

@media (max-width: 760px) {
  .route-planner {
    padding: 13px;
  }

  .route-map-banner {
    top: 12px;
    width: max-content;
    max-width: calc(100% - 28px);
  }
}

/* IBS_EV_GEOCODING_UI_V1 */
.destination-search {
  position: relative;
  margin-bottom: 13px;
}

.destination-search-row {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
}

.destination-search-row input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  outline: none;
  background: rgba(255,255,255,.045);
  color: #fff;
  font: inherit;
}

.destination-search-row input:focus {
  border-color: #347ef5;
  box-shadow: 0 0 0 3px rgba(52,126,245,.13);
}

.destination-search-row button {
  border: 1px solid #347ef5;
  border-radius: 13px;
  background: linear-gradient(135deg, #2c72e9, #17489f);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.destination-search-row button:disabled {
  cursor: wait;
  opacity: .65;
}

.destination-search-results {
  display: none;
  max-height: 250px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #0b111b;
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.destination-search-results.visible {
  display: block;
}

.destination-result {
  display: grid;
  width: 100%;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: transparent;
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.destination-result:last-child {
  border-bottom: 0;
}

.destination-result:hover {
  background: rgba(43,111,226,.14);
}

.destination-result-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(230,52,63,.15);
  color: #ff606a;
}

.destination-result strong,
.destination-result small {
  display: block;
}

.destination-result strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.destination-result small {
  color: #8f9caf;
  font-size: 11px;
  line-height: 1.35;
}

.destination-search-status {
  min-height: 18px;
  margin-top: 6px;
  color: #78889d;
  font-size: 11px;
}

.destination-search-status.error {
  color: #ff7d86;
}

.destination-empty {
  padding: 15px;
  color: #9ba8ba;
  font-size: 12px;
  text-align: center;
}

/* IBS_EV_ROUTE_CHARGERS_UI_V1 */
.route-chargers {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.route-chargers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-chargers-heading strong {
  color: #fff;
  font-size: 14px;
}

.route-chargers-heading button {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(54,130,255,.45);
  border-radius: 10px;
  background: rgba(42,105,215,.13);
  color: #b9d2ff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.route-charger-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.route-charger-filters select {
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: #101722;
  color: #dce5f2;
  font: inherit;
  font-size: 11px;
}

.route-charger-filters select:last-child {
  grid-column: 1 / -1;
}

.route-charger-status {
  margin: 9px 0;
  color: #8494aa;
  font-size: 11px;
}

.route-charger-status.error {
  color: #ff7b84;
}

.route-charger-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.route-charger-card {
  display: grid;
  width: 100%;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.route-charger-card:hover {
  border-color: rgba(45,125,246,.42);
  background: rgba(36,103,215,.11);
}

.route-charger-rank {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(26,185,111,.15);
  color: #50df9c;
  font-size: 12px;
  font-weight: 900;
}

.route-charger-content {
  min-width: 0;
}

.route-charger-content strong,
.route-charger-content small {
  display: block;
}

.route-charger-content strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.route-charger-content small {
  color: #8291a5;
  font-size: 10px;
  line-height: 1.4;
}

.route-charger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}

.route-charger-tags i {
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.055);
  color: #bdcbe0;
  font-size: 9px;
  font-style: normal;
}

.route-charger-empty {
  padding: 15px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 11px;
  color: #8c9aaf;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* IBS_EV_ROUTE_CHARGERS_UI_V1 */
.route-chargers {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.route-chargers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-chargers-heading strong {
  color: #fff;
  font-size: 14px;
}

.route-chargers-heading button {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(54,130,255,.45);
  border-radius: 10px;
  background: rgba(42,105,215,.13);
  color: #b9d2ff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.route-charger-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.route-charger-filters select {
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: #101722;
  color: #dce5f2;
  font: inherit;
  font-size: 11px;
}

.route-charger-filters select:last-child {
  grid-column: 1 / -1;
}

.route-charger-status {
  margin: 9px 0;
  color: #8494aa;
  font-size: 11px;
}

.route-charger-status.error {
  color: #ff7b84;
}

.route-charger-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.route-charger-card {
  display: grid;
  width: 100%;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.route-charger-card:hover {
  border-color: rgba(45,125,246,.42);
  background: rgba(36,103,215,.11);
}

.route-charger-rank {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(26,185,111,.15);
  color: #50df9c;
  font-size: 12px;
  font-weight: 900;
}

.route-charger-content {
  min-width: 0;
}

.route-charger-content strong,
.route-charger-content small {
  display: block;
}

.route-charger-content strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.route-charger-content small {
  color: #8291a5;
  font-size: 10px;
  line-height: 1.4;
}

.route-charger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}

.route-charger-tags i {
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.055);
  color: #bdcbe0;
  font-size: 9px;
  font-style: normal;
}

.route-charger-empty {
  padding: 15px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 11px;
  color: #8c9aaf;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* IBS_EV_SMART_PLANNER_V1 */
.smart-ev-planner {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.vehicle-profile {
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.vehicle-profile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.vehicle-profile summary::-webkit-details-marker {
  display: none;
}

.vehicle-profile summary strong,
.vehicle-profile summary small {
  display: block;
}

.vehicle-profile summary strong {
  font-size: 13px;
}

.vehicle-profile summary small {
  margin-top: 2px;
  color: #7f8ea2;
  font-size: 10px;
}

.vehicle-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 11px 11px;
}

.vehicle-profile-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.vehicle-profile-grid label > span {
  color: #8998ac;
  font-size: 10px;
}

.vehicle-profile-grid input,
.vehicle-profile-grid select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  outline: none;
  background: #101722;
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-left: 50px;
}

.input-unit i {
  position: absolute;
  top: 50%;
  left: 8px;
  color: #6f8096;
  font-size: 9px;
  font-style: normal;
  transform: translateY(-50%);
  pointer-events: none;
}

.save-vehicle-profile {
  width: calc(100% - 22px);
  min-height: 42px;
  margin: 0 11px 11px;
  border: 1px solid #347df3;
  border-radius: 11px;
  background: linear-gradient(135deg, #2d74e9, #164799);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.smart-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.smart-plan-heading strong {
  color: #fff;
  font-size: 14px;
}

.smart-plan-heading span {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(230,167,47,.12);
  color: #e6b85b;
  font-size: 9px;
  font-weight: 800;
}

.smart-plan-waiting {
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 11px;
  color: #8595aa;
  font-size: 11px;
  text-align: center;
}

.smart-plan-alert {
  padding: 12px;
  border: 1px solid;
  border-radius: 12px;
}

.smart-plan-alert strong,
.smart-plan-alert span {
  display: block;
}

.smart-plan-alert strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.smart-plan-alert span {
  font-size: 11px;
}

.smart-plan-alert.success {
  border-color: rgba(31,190,113,.3);
  background: rgba(31,190,113,.1);
  color: #7be1ae;
}

.smart-plan-alert.warning {
  border-color: rgba(230,167,47,.3);
  background: rgba(230,167,47,.09);
  color: #efc875;
}

.smart-plan-alert.danger {
  border-color: rgba(235,66,78,.3);
  background: rgba(235,66,78,.09);
  color: #ff8991;
}

.smart-plan-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.smart-plan-metrics div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  text-align: center;
}

.smart-plan-metrics b,
.smart-plan-metrics small {
  display: block;
}

.smart-plan-metrics b {
  color: #fff;
  font-size: 16px;
  direction: ltr;
}

.smart-plan-metrics small {
  margin-top: 3px;
  color: #7f8ea2;
  font-size: 9px;
}

.smart-plan-stops {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.smart-stop-card {
  display: grid;
  width: 100%;
  grid-template-columns: 29px 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(47,124,244,.22);
  border-radius: 12px;
  background: rgba(38,105,216,.07);
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.smart-stop-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #2775ed;
  font-size: 12px;
  font-weight: 900;
}

.smart-stop-content strong,
.smart-stop-content small {
  display: block;
}

.smart-stop-content strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.smart-stop-content small {
  color: #8d9db2;
  font-size: 9px;
  line-height: 1.45;
}

.smart-stop-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0;
  direction: ltr;
}

.smart-stop-flow i {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #dce8fa;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.smart-stop-flow em {
  color: #54d99a;
  font-style: normal;
}

.smart-plan-disclaimer {
  margin: 10px 0 0;
  color: #66778d;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .vehicle-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* IBS_EV_VEHICLE_PROFILE_VISIBLE_V1 */
#routePlanner > .smart-ev-planner {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

#routePlanner > .smart-ev-planner .vehicle-profile {
  margin-bottom: 12px;
  border-color: rgba(52,125,243,.25);
  background:
    linear-gradient(
      145deg,
      rgba(35,99,207,.12),
      rgba(255,255,255,.025)
    );
}

#routePlanner > .smart-ev-planner .vehicle-profile summary {
  min-height: 52px;
}

#routePlanner > .smart-ev-planner .smart-plan-heading,
#routePlanner > .smart-ev-planner #smartPlanSummary,
#routePlanner > .smart-ev-planner #smartPlanStops,
#routePlanner > .smart-ev-planner .smart-plan-disclaimer {
  display: none;
}

#routeResult.visible
  ~ .smart-ev-planner
  .smart-plan-heading {
  display: flex;
}

/*
 * The planner is before routeResult, so JavaScript adds this
 * class after route calculation.
 */
.smart-ev-planner.route-ready .smart-plan-heading {
  display: flex !important;
}

.smart-ev-planner.route-ready #smartPlanSummary,
.smart-ev-planner.route-ready #smartPlanStops,
.smart-ev-planner.route-ready .smart-plan-disclaimer {
  display: block !important;
}

.vehicle-profile summary::after {
  content: "פתיחה / סגירה";
  margin-right: auto;
  color: #7eaaff;
  font-size: 9px;
  font-weight: 800;
}

/* IBS_EV_VEHICLE_SELECTOR_V1 */
.vehicle-catalog-selector {
  margin: 0 11px 13px;
  padding: 12px;
  border: 1px solid rgba(49,126,246,.24);
  border-radius: 13px;
  background:
    radial-gradient(
      circle at top right,
      rgba(36,104,221,.14),
      transparent 60%
    ),
    rgba(6,12,21,.35);
}

.vehicle-catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 11px;
}

.vehicle-catalog-heading strong,
.vehicle-catalog-heading small {
  display: block;
}

.vehicle-catalog-heading strong {
  color: #fff;
  font-size: 12px;
}

.vehicle-catalog-heading small {
  margin-top: 2px;
  color: #718198;
  font-size: 9px;
}

.vehicle-catalog-live {
  padding: 5px 7px;
  border: 1px solid rgba(31,190,113,.28);
  border-radius: 8px;
  background: rgba(31,190,113,.08);
  color: #62dba1;
  font-size: 8px;
  font-weight: 900;
  direction: ltr;
}

.vehicle-catalog-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vehicle-catalog-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.vehicle-catalog-fields label > span {
  color: #8291a5;
  font-size: 9px;
}

.vehicle-catalog-fields select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  outline: none;
  background: #101722;
  color: #fff;
  font: inherit;
  font-size: 11px;
}

.vehicle-catalog-fields select:focus {
  border-color: #377ff2;
  box-shadow: 0 0 0 3px rgba(55,127,242,.12);
}

.vehicle-catalog-fields select:disabled {
  cursor: wait;
  opacity: .55;
}

.vehicle-version-field {
  grid-column: 1 / -1;
}

.selected-vehicle-data {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.selected-vehicle-data.visible {
  display: grid;
}

.selected-vehicle-data div {
  padding: 8px;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  text-align: center;
}

.selected-vehicle-data b,
.selected-vehicle-data small {
  display: block;
}

.selected-vehicle-data b {
  color: #fff;
  font-size: 12px;
  direction: ltr;
}

.selected-vehicle-data small {
  margin-top: 2px;
  color: #728198;
  font-size: 8px;
}

.vehicle-catalog-status {
  min-height: 15px;
  margin-top: 8px;
  color: #73839a;
  font-size: 9px;
}

.vehicle-catalog-status.success {
  color: #62dba1;
}

.vehicle-catalog-status.error {
  color: #ff7e87;
}

@media (max-width: 420px) {
  .vehicle-catalog-fields {
    grid-template-columns: 1fr;
  }

  .vehicle-version-field {
    grid-column: auto;
  }
}

/* IBS_EV_ISRAEL_VEHICLE_UI_V1 */
.israel-vehicle-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(31,190,113,.2);
  border-radius: 10px;
  background: rgba(31,190,113,.055);
  cursor: pointer;
}

.israel-vehicle-filter input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #21c77a;
}

.israel-vehicle-filter span,
.israel-vehicle-filter b,
.israel-vehicle-filter small {
  display: block;
}

.israel-vehicle-filter b {
  color: #dfffee;
  font-size: 10px;
}

.israel-vehicle-filter small {
  margin-top: 2px;
  color: #6f9b84;
  font-size: 8px;
}

.selected-vehicle-data .israel-vehicle-card {
  border: 1px solid rgba(31,190,113,.22);
  background: rgba(31,190,113,.075);
}

.selected-vehicle-data .israel-vehicle-card b {
  color: #70e5ad;
  direction: rtl;
}

.selected-vehicle-data .vehicle-data-warning {
  border: 1px solid rgba(255,181,71,.2);
  background: rgba(255,181,71,.07);
}

.selected-vehicle-data .vehicle-data-warning b {
  color: #ffc66d;
  direction: rtl;
}

@media (max-width: 420px) {
  .israel-vehicle-filter {
    align-items: flex-start;
  }

  .selected-vehicle-data {
    grid-template-columns: 1fr;
  }
}

/* IBS_EV_VEHICLE_PROFILE_MODAL_V1 */

/*
 * Closed state: compact card that does not hide station results.
 */
.smart-ev-planner .vehicle-profile:not([open]) {
  margin: 8px 10px;
  border-radius: 12px;
}

.smart-ev-planner .vehicle-profile:not([open]) summary {
  min-height: 54px;
  padding: 10px 13px;
}

.smart-ev-planner .vehicle-profile:not([open]) summary strong {
  font-size: 12px;
}

.smart-ev-planner .vehicle-profile:not([open]) summary small {
  font-size: 9px;
}

/*
 * Open state: floating modal. It no longer increases the sidebar height
 * or pushes station names below the visible area.
 */
.smart-ev-planner .vehicle-profile[open] {
  position: fixed;
  z-index: 10050;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  margin: 0;
  padding: 0 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(71,135,255,.38);
  border-radius: 18px;
  background: #091321;
  box-shadow:
    0 28px 90px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.025);
}

/* Dark backdrop behind the floating window. */
.smart-ev-planner .vehicle-profile[open]::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(2,6,12,.72);
  backdrop-filter: blur(4px);
}

/* Sticky title also serves as the close control. */
.smart-ev-planner .vehicle-profile[open] > summary {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 61px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,19,33,.97);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
}

.smart-ev-planner .vehicle-profile[open] > summary::after {
  content: "סגירה ✕";
  margin-right: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  color: #c7d6eb;
  font-size: 9px;
  font-weight: 800;
}

.smart-ev-planner .vehicle-profile[open] > summary > span:last-child {
  display: none;
}

.vehicle-profile-modal-open {
  overflow: hidden;
}

/* Give the modal content comfortable spacing. */
.smart-ev-planner .vehicle-profile[open]
.vehicle-catalog-selector {
  margin: 12px;
}

.smart-ev-planner .vehicle-profile[open]
.vehicle-profile-grid {
  padding-right: 12px;
  padding-left: 12px;
}

.smart-ev-planner .vehicle-profile[open]
.save-vehicle-profile {
  width: calc(100% - 24px);
  margin-right: 12px;
  margin-left: 12px;
}

/* Tablet and Tesla in-car browser. */
@media (min-width: 700px) {
  .smart-ev-planner .vehicle-profile[open] {
    width: min(620px, calc(100vw - 40px));
  }

  .smart-ev-planner .vehicle-profile[open]
  .vehicle-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow mobile screens. */
@media (max-width: 520px) {
  .smart-ev-planner .vehicle-profile[open] {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    transform: none;
  }

  .smart-ev-planner .vehicle-profile[open]
  .vehicle-catalog-fields,
  .smart-ev-planner .vehicle-profile[open]
  .vehicle-profile-grid {
    grid-template-columns: 1fr;
  }

  .smart-ev-planner .vehicle-profile[open]
  .vehicle-version-field {
    grid-column: auto;
  }
}

/* IBS_EV_MANUAL_VEHICLE_DATA_V1 */
.manual-vehicle-data-button {
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(71,135,255,.3);
  border-radius: 10px;
  background: rgba(51,111,226,.1);
  color: #9fc0ff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.manual-vehicle-data-button:hover,
.manual-vehicle-data-button:focus {
  border-color: #4f8fff;
  background: rgba(51,111,226,.18);
  color: #fff;
}

.manual-vehicle-data-button.attention {
  border-color: rgba(255,181,71,.55);
  background: rgba(255,181,71,.12);
  color: #ffcc7b;
  animation: manual-data-pulse 1.8s ease-in-out infinite;
}

.vehicle-profile-grid.manual-edit-active {
  padding-top: 11px;
  border-top: 1px solid rgba(71,135,255,.18);
}

.vehicle-profile-grid .manual-edit-field {
  border-color: rgba(71,135,255,.45);
}

.vehicle-profile-grid .missing-catalog-value {
  border-color: rgba(255,181,71,.55);
  background: rgba(255,181,71,.07);
}

.vehicle-profile-grid .missing-catalog-value::placeholder {
  color: #dcae66;
  opacity: 1;
  font-size: 9px;
}

@keyframes manual-data-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,181,71,0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(255,181,71,.08);
  }
}

/* IBS_EV_STATION_LOADER_V22 */
.station-loading-state small {
  display: block;
  margin-top: 5px;
  color: #63758d;
  font-size: 9px;
}

.station-load-error {
  margin: 18px 12px;
  padding: 18px 14px;
  border: 1px solid rgba(255,126,135,.24);
  border-radius: 13px;
  background: rgba(255,126,135,.065);
  text-align: center;
}

.station-load-error strong {
  display: block;
  color: #ffadb3;
  font-size: 13px;
}

.station-load-error p {
  margin: 7px 0 13px;
  color: #8999ad;
  font-size: 10px;
  line-height: 1.6;
}

.station-load-error button {
  min-width: 130px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(72,139,250,.4);
  border-radius: 10px;
  background: rgba(52,113,231,.15);
  color: #b9d0ff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.station-load-error button:hover,
.station-load-error button:focus {
  border-color: #5794ff;
  background: rgba(52,113,231,.24);
  color: #fff;
}
