.frc-home-map {
  position: relative;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
  background: #090e12;
  color: #fff;
  isolation: isolate;
}

.frc-home-map,
.frc-home-map *,
.frc-home-map *::before,
.frc-home-map *::after {
  box-sizing: border-box;
}

.frc-home-map__canvas {
  width: 100%;
  height: clamp(230px, 29vw, 330px);
  min-height: 230px;
  background: radial-gradient(circle at 50% 45%, #1a2024 0, #0b1014 72%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.frc-home-map.is-ready .frc-home-map__canvas {
  opacity: 1;
}

.frc-home-map__status {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  margin: 0 !important;
  padding: 20px !important;
  color: #aeb5bb;
  font: 600 13px/1.4 Arial, sans-serif;
  text-align: center;
}

.frc-home-map__status[hidden] {
  display: none !important;
}

.frc-home-map .leaflet-container {
  font-family: Arial, sans-serif;
  background: #090e12;
}

.frc-home-map .leaflet-tile-pane {
  filter: contrast(1.1) brightness(0.92) saturate(0.55);
}

.frc-home-map .leaflet-control-attribution {
  margin: 0;
  padding: 1px 4px;
  background: rgba(5, 8, 10, 0.58);
  color: #778087;
  font-size: 8px;
}

.frc-home-map .leaflet-control-attribution a {
  color: #929ba2;
  text-decoration: none;
}

.frc-home-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.frc-home-map .leaflet-control-zoom a,
.frc-home-map .leaflet-control-zoom a:hover,
.frc-home-map .leaflet-control-zoom a:focus {
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 22, 0.92);
  color: #fff;
  font: 700 20px/27px Arial, sans-serif;
  text-decoration: none;
}

.frc-home-map .leaflet-control-zoom a:hover,
.frc-home-map .leaflet-control-zoom a:focus {
  background: #e1251b;
}

.frc-home-map .leaflet-control-zoom a.leaflet-disabled {
  background: rgba(13, 18, 22, 0.72);
  color: #747b80;
}

.frc-home-map__marker-wrap {
  border: 0;
  background: transparent;
}

.frc-home-map__marker {
  position: absolute;
  top: 1px;
  left: 2px;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #ff3027;
  border-radius: 50% 50% 50% 0;
  background: #e51f18;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
  transform: rotate(-45deg);
}

.frc-home-map__marker--on-road {
  border-color: #ff3027;
  background: #e51f18;
}

.frc-home-map__marker--off-road {
  border-color: #fb923c;
  background: #f97316;
}

.frc-home-map__marker i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #171b1e;
}

.frc-home-map .leaflet-popup-content-wrapper,
.frc-home-map .leaflet-popup-tip {
  border: 1px solid #565d62;
  border-radius: 0;
  background: #11171b;
  color: #f5f6f7;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.65);
}

.frc-home-map .leaflet-popup-content {
  margin: 9px 12px;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .frc-home-map,
  .frc-home-map__canvas {
    min-height: 210px;
  }

  .frc-home-map__canvas {
    height: 56vw;
    max-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frc-home-map__canvas { transition: none; }
}
