/* quarto-leaflet: map container styles */
.quarto-leaflet-map {
  width: 100%;
  min-height: 200px;
  z-index: 1;
}

/* Remove default L.divIcon background/border for icon font markers */
.leaflet-div-icon-custom {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quarto-leaflet-icon-pin {
  width: var(--ql-pin-size, 34px);
  height: var(--ql-pin-size, 34px);
  position: relative;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.quarto-leaflet-icon-pin-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  font-size: var(--ql-pin-size, 34px);
  color: var(--ql-pin-color, currentColor);
  line-height: 1;
}

.quarto-leaflet-icon-glyph {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  font-size: var(--ql-icon-size, 14px);
  color: #fff;
  line-height: 1;
}

/* revealjs themes can make controls transparent; enforce readable UI */
.reveal .leaflet-container .leaflet-bar a,
.reveal .leaflet-container .leaflet-control-layers-toggle {
  background-color: rgba(255, 255, 255, 0.96);
  color: #1b1b1b;
  border-bottom: 1px solid #bdbdbd;
}

.reveal .leaflet-container .leaflet-control-layers,
.reveal .leaflet-container .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9);
  color: #1b1b1b;
}