/* The old-map look shared by the travel map page and the admin map editor.
   The map itself is painted in gl-base.js; this styles the frame, controls and pins. */
.glmap {
  background: #dcc796; font-family: "Instrument Sans", system-ui, sans-serif;
  --ink: #3b2a14; --pin: #7a2e1d; --pin-ring: rgba(122, 46, 29, 0.28); --parchment: #f2e4c4;
}
.glmap::after { /* darkened edges, like an aged sheet */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 120px rgba(74, 44, 14, 0.45);
}
.glmap .maplibregl-ctrl-group { background: #161615; border: 1px solid #2a2926; box-shadow: none; }
.glmap .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.glmap .maplibregl-ctrl-group button + button { border-top: 1px solid #2a2926; }
.glmap .maplibregl-ctrl-icon { filter: invert(0.9) sepia(0.2); }
.glmap .maplibregl-ctrl-attrib { background: rgba(242, 228, 196, 0.85); color: #3b2a14; font-size: 11px; }
.glmap .maplibregl-ctrl-attrib a { color: #3b2a14; }
.glmap .maplibregl-marker { z-index: 3; }

/* place pins at world level; spots (with name tags) once zoomed in */
.gl-spot { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.gl-spot .gl-tag {
  background: rgba(242, 228, 196, 0.94); color: #3b2a14; border: 1px solid #a8864a; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(60, 30, 10, 0.25); font: italic 500 14px Fraunces, Georgia, serif; padding: 2px 8px; white-space: nowrap;
  transition: opacity 0.15s;
}
.glmap.zoomed-out .gl-spot, .glmap:not(.zoomed-out) .gl-place { display: none; }
.glmap.tags-hidden .gl-spot .gl-tag { opacity: 0; pointer-events: none; }
.glmap.tags-hidden .gl-spot:hover .gl-tag, .glmap .gl-spot.active .gl-tag { opacity: 1; }
.glmap .gl-spot.active .om-dot { transform: scale(1.35); }
.glmap .gl-place .om-pin { position: relative; }
.glmap .gl-place .gl-hover {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: rgba(242, 228, 196, 0.94); color: #3b2a14; border: 1px solid #a8864a; border-radius: 4px;
  font: italic 500 14px Fraunces, Georgia, serif; padding: 2px 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.glmap .gl-place:hover .gl-hover { opacity: 1; }

/* pins */
.om-pin {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pin); color: var(--parchment); border: 2px solid var(--parchment);
  display: flex; align-items: center; justify-content: center;
  font: 600 12px "Instrument Sans", system-ui, sans-serif;
  box-shadow: 0 0 0 5px var(--pin-ring), 0 4px 10px rgba(60, 30, 10, 0.45);
  cursor: pointer; transition: transform 0.15s;
}
.om-pin:hover { transform: scale(1.12); }
.om-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--pin); border: 3px solid var(--parchment);
  box-shadow: 0 0 0 2px var(--pin), 0 3px 8px rgba(60, 30, 10, 0.45);
  cursor: pointer; transition: transform 0.15s;
}
.om-dot:hover, .om-dot.active { transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) { .om-pin, .om-dot { transition: none; } }
