/* atles/shared/atlas.css */
/* Base layout */
:root {
  --atlas-bg: #0b0f14;
  --atlas-pin-size: 18px;

  --atlas-tooltip-bg: rgba(12, 16, 22, 0.96);
  --atlas-tooltip-border: rgba(255, 255, 255, 0.12);
  --atlas-tooltip-text: rgba(255, 255, 255, 0.92);
  --atlas-tooltip-muted: rgba(255, 255, 255, 0.65);
}

html, body {
  height: 100%;
}

.atlas-wrap {
  width: 100%;
  height: 100%;
  background: var(--atlas-bg);
}

#atlas-map {
  width: 100%;
  height: 100%;
}

/* Leaflet tweaks */
.leaflet-container {
  background: var(--atlas-bg);
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Pins */
.atlas-pin {
  width: var(--atlas-pin-size);
  height: var(--atlas-pin-size);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  /* transform: scale(var(--atlas-pin-scale, 1));
  transform-origin: center center; */
}

/* Wrapper: positioned/scaled by Leaflet (we do NOT touch transform here) */
.atlas-pin-wrap {
  width: var(--atlas-pin-size);
  height: var(--atlas-pin-size);
}

/* Actual visible pin: we counter-scale THIS so it stays fixed size */
.atlas-pin-wrap .atlas-pin {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);

  transform: scale(var(--atlas-pin-scale, 1));
  transform-origin: center center;
}

/* Tooltip styling */
.atlas-leaflet-tooltip.leaflet-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.atlas-tooltip {
  color: var(--atlas-tooltip-text);
  background: var(--atlas-tooltip-bg);
  border: 1px solid var(--atlas-tooltip-border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 200px;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.atlas-tooltip__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.atlas-tooltip__meta {
  color: var(--atlas-tooltip-muted);
  margin-bottom: 6px;
  font-size: 12px;
}

.atlas-tooltip__label {
  font-weight: 600;
  color: var(--atlas-tooltip-text);
}

.atlas-tooltip__desc {
  color: var(--atlas-tooltip-text);
  font-size: 13px;
}

/* Cursor hints */
.leaflet-marker-icon.atlas-pin {
  cursor: pointer;
}
