.bentu-range-box {
  --bg: transparent;
  --ink: #071936;
  --teal: #12bfb2;
  --teal-dark: #0f756d;
  --border: #dce6ec;
  --city-text: #17364a;
  --city-distance: #465e6d;
  --unreachable: #8f1d1d;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent;
  color: var(--ink);
  padding: 10px 16px 20px;
}

.bentu-range-box,
.bentu-range-box * {
  box-sizing: border-box;
}

.bentu-range-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.bentu-range-heading {
  text-align: center;
  margin: 0 0 30px;
}

.bentu-range-title {
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
  padding: 0;
  text-transform: none;
}

.bentu-range-subtitle {
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: #34445c;
  margin: 0;
  padding: 0;
}

.bentu-range-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.bentu-control-group {
  width: 100%;
}

.bentu-range-mopedbil .bentu-mode-control {
  display: none;
}

/* =========================================================
   Radar
   ========================================================= */

.bentu-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.bentu-map-soft {
  display: none;
}

.bentu-map-ring,
.bentu-map-range,
.bentu-center-soft {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.bentu-map-ring {
  border: 1px dashed rgba(18, 191, 178, 0.55);
  z-index: 1;
}

.ring-1 {
  width: 21%;
  height: 21%;
}

.ring-2 {
  width: 42%;
  height: 42%;
}

.ring-3 {
  width: 64%;
  height: 64%;
}

.ring-4 {
  width: 86%;
  height: 86%;
}

.bentu-map-range {
  width: 86%;
  height: 86%;
  background: rgba(18, 191, 178, 0.18);
  border: 3px solid var(--teal);
  box-shadow:
    0 0 0 1px rgba(15, 117, 109, 0.12),
    inset 0 0 26px rgba(18, 191, 178, 0.08);
  transition:
    width 0.25s ease,
    height 0.25s ease;
  z-index: 2;
}

.bentu-map-range-label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 25px;
  padding: 4px 9px;
  color: #ffffff;
  background: var(--teal-dark);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(7, 25, 54, 0.16);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.bentu-map-range.is-compact .bentu-map-range-label {
  display: none;
}

/* =========================================================
   Destination labels
   ========================================================= */

.bentu-city {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 6;
}

.bentu-city-point {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
}

.bentu-city-copy {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 100px;
  padding: 2px 4px;
  color: var(--city-text);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

.bentu-city-name {
  display: block;
  color: inherit;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 850;
  white-space: nowrap;
}

.bentu-city-distance {
  display: block;
  margin-top: 2px;
  color: var(--city-distance);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

/*
 * Connector lines are hidden by default.
 * JavaScript enables one only when a label was moved to resolve a collision.
 */
.bentu-city-connector {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  transform-origin: 0 50%;
  background: rgba(45, 79, 92, 0.55);
  z-index: 1;
}

.bentu-city.has-connector .bentu-city-connector {
  display: block;
}

/* Reachable destination. */
.bentu-city.reachable .bentu-city-point {
  background: var(--teal-dark);
  border: 1px solid #ffffff;
  box-shadow:
    0 0 0 3px rgba(15, 117, 109, 0.16),
    0 2px 5px rgba(7, 25, 54, 0.14);
}

/*
 * Unreachable destination:
 * readable dark red text plus a crossed red marker.
 * The state is therefore not communicated by colour alone.
 */
.bentu-city.unreachable .bentu-city-copy,
.bentu-city.unreachable .bentu-city-name,
.bentu-city.unreachable .bentu-city-distance {
  color: var(--unreachable);
}

.bentu-city.unreachable .bentu-city-point {
  background: #ffffff;
  border: 2px solid var(--unreachable);
  box-shadow: 0 0 0 2px rgba(143, 29, 29, 0.10);
}

.bentu-city.unreachable .bentu-city-point::before,
.bentu-city.unreachable .bentu-city-point::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 1.5px;
  background: var(--unreachable);
  border-radius: 2px;
}

.bentu-city.unreachable .bentu-city-point::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.bentu-city.unreachable .bentu-city-point::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/*
 * Old fixed positions are neutralized. JavaScript calculates each point
 * from data-km using the same scale as the range circle.
 */
.city-namsos,
.city-steinkjer,
.city-verdal,
.city-levanger,
.city-stjordal,
.city-hommelvik,
.city-selbu,
.city-roros,
.city-oppdal,
.city-berkak,
.city-orkanger,
.city-kristiansund,
.city-brekstad {
  left: 50%;
  top: 50%;
}

/* =========================================================
   Trondheim centre
   ========================================================= */

.bentu-center-soft {
  background: rgba(18, 131, 119, 0.12);
  z-index: 4;
}

.soft-a {
  width: 46px;
  height: 46px;
}

.soft-b {
  width: 28px;
  height: 28px;
}

.bentu-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--teal-dark);
  border-radius: 50%;
  z-index: 5;
}

.bentu-center-label {
  position: absolute;
  left: 52%;
  top: 54.5%;
  transform: translateX(-50%);
  background: var(--teal-dark);
  color: #ffffff;
  border: 1px solid rgba(18, 191, 178, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(7, 25, 54, 0.12);
  z-index: 7;
}

/* =========================================================
   Controls and results
   ========================================================= */

.bentu-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bentu-card {
  background: #ffffff;
  border: 1px solid rgba(7, 25, 54, 0.10);
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bentu-km-large {
  font-size: 64px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--ink);
}

.bentu-km-large span:last-child {
  font-size: 22px;
  color: var(--teal-dark);
  letter-spacing: 0;
  margin-left: 4px;
}

.bentu-caption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.bentu-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}

.bentu-battery-text {
  color: var(--teal-dark);
}

.bentu-slider-wrap {
  position: relative;
  height: 48px;
  border: 2px solid rgba(7, 25, 54, 0.18);
  background: #ffffff;
  overflow: hidden;
}

.bentu-slider-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--teal-dark),
    #148f86,
    #35cabd
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.bentu-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 48px;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.bentu-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 8px;
  color: var(--ink);
}

.bentu-toggle-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}

.bentu-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bentu-btn {
  border: 1px solid rgba(7, 25, 54, 0.18);
  background: #ffffff;
  color: var(--ink);
  height: 44px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.bentu-btn.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.bentu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bentu-stat {
  background: #ffffff;
  border: 1px solid rgba(7, 25, 54, 0.10);
  padding: 24px 20px;
  min-height: 126px;
}

.bentu-stat-big {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}

.bentu-stat-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.bentu-stat-sub {
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink);
}

/* =========================================================
   Personbil model and range selection
   ========================================================= */

.bentu-vehicle-control[hidden],
.bentu-range-choice-control[hidden] {
  display: none !important;
}

.bentu-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  height: auto;
  padding: 9px 12px;
  line-height: 1.15;
}

.bentu-choice-btn span {
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.bentu-choice-btn small {
  display: block;
  color: #536377;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

.bentu-choice-btn.active small {
  color: rgba(255, 255, 255, 0.86);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .bentu-range-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bentu-panel {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .bentu-range-box {
    padding: 8px 10px 18px;
  }

  .bentu-range-title {
    font-size: 14px;
  }

  .bentu-range-heading {
    margin-bottom: 24px;
  }

  .bentu-km-large {
    font-size: 52px;
  }

  .bentu-stats {
    grid-template-columns: 1fr;
  }

  .bentu-city-copy {
    max-width: 88px;
    padding: 2px 3px;
  }

  .bentu-city-name {
    font-size: 9px;
  }

  .bentu-city-distance {
    font-size: 8px;
  }

  .bentu-city-point {
    width: 9px;
    height: 9px;
  }

  .bentu-map-range-label {
    min-width: 47px;
    min-height: 22px;
    padding: 3px 7px;
    font-size: 9px;
  }
}
