/* Full-bleed canvas pages: the map owns everything below the navbar */
body.with-canvas {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.with-canvas main {
  flex: 1;
  min-height: 0;
}

.atlas-canvas {
  position: relative;
  height: 100%;
}

.atlas-canvas--map {
  position: absolute;
  inset: 0;
}

/* The almanac floats over the map's corner */
.atlas-canvas--panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: min(24rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 16px 32px -18px rgba(72, 58, 128, 0.3);
}

.atlas-canvas--panel-header {
  padding: 0.75rem 1rem 0.5rem;
}

.atlas-canvas--landmark {
  cursor: pointer;
}

.atlas-canvas--landmark:hover {
  background: var(--wash);
}

/* Pins wear the maturity scale (README, "From sponge to stone"); the fill's
   alpha lives in --maturity-fill, so the inline fill-opacity stands down */
.atlas-pin[data-maturity] {
  stroke: var(--maturity);
  fill: var(--maturity-fill);
  fill-opacity: 1;
}

.atlas-pin--survey {
  stroke: var(--gold);
  fill: var(--gold);
  fill-opacity: 0.4;
  stroke-dasharray: 4 3;
}

.atlas-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--card);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  box-shadow: 0 8px 16px -8px rgba(72, 58, 128, 0.5);
}

.atlas-canvas .leaflet-popup-content-wrapper,
.atlas-canvas .leaflet-popup-tip {
  background: var(--card);
  color: var(--ink);
}

.atlas-popup--maturity {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  color: var(--maturity);
}

/* Minimal cluster transitions, inlined from the plugin's stylesheet */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
  transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}

.atlas-canvas .leaflet-control-attribution {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--muted);
  font-size: 0.65rem;
}

.atlas-canvas .leaflet-control-attribution a {
  color: var(--muted);
}

