html,
body,
#map {
  height: 100%;
  margin: 0;
}

.hidden {
  opacity: 0;
  display: none;
  pointer-events: none;
}

.interactive {
  cursor: pointer;
}

/* For DIV markers */
.highlighted {
  border-color: #ffc671 !important;
  background-color: #e37304  !important;
  color: white !important;
}

/* For SVG paths */
.highlighted-path {
  stroke: #ffc671 !important;
  fill: #e37304 !important;
  fill-opacity: 0.7 !important;
}

.dimmed-path {
  opacity: 0.5 !important;
  fill-opacity: 0.25 !important;
}

#map {
  position: absolute;
  inset: 0;
}

.leaflet-interactive.marker-shadow {
  filter: url('#marker-shadow')
}

.repeater-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #0a66c2;
  background: rgba(10, 102, 194, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  font: 700 9px system-ui, sans-serif;
  color: #ffffff;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

.repeater-dot.stale {
  background: rgba(75, 101, 126, 0.9);
  border: 1px solid #777777;
  color: #c3c3c3;
}

.repeater-dot.dead {
  background: rgba(38, 38, 39, 0.9);
  border: 1px solid #333333;
  color: #929292;
}

.leaflet-popup-content {
  font: 13px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.attribution-tweak .leaflet-control-attribution {
  font-size: 11px;
}

.mesh-control {
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.4;
  width: 12em;
}

.mesh-control-row {
  align-items: center;
}

.mesh-control-row.mesh-control-title {
  font-weight: 700;
}

.mesh-control-row + .mesh-control-row {
  margin-top: 8px;
}

.mesh-control-row label {
  display: flex;
  gap: 8px;
  font-weight: 500;
}

.mesh-control input[type="checkbox"] {
  appearance: none;           /* Remove native checkbox */
  -webkit-appearance: none;   /* Safari */
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.mesh-control input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 16px;
  color: #0a66c2;
  pointer-events: none;
}

.mesh-control input[type="checkbox"]:hover {
  background: #e8e8e8;
}

.mesh-control input,
.mesh-control select {
  border-radius: 3px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  flex: 1 1 0%;
  min-width: 0px;
}

.mesh-control-row button {
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}

.mesh-control-row button:hover {
  background: #e8e8e8;
}

.mesh-control .top-rpt-row {
  width: 100%;
  font-size: x-small;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 0.5em;
}

.mesh-control .top-rpt-row:nth-child(odd) {
  background-color: #e5e5e5;
}

.mesh-control .top-rpt-row div:first-child {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; 
}

.mesh-control .top-rpt-row div:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}