/* NoRep Universe (templates/universe.html) and a gym's page (templates/universe_gym.html), universe.py, 2026-11-01:
   Training's black look (static/training_gyms_map.css: the band, the tilted board, the gym pins) plus the bats, the
   legend and the gym page's parts. Dark whatever the site's theme; fits 320 px. */
.uv-lead { margin: 8px 0 0; color: var(--pgm-muted); font-size: 15px; max-width: 46ch; }
.uv-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--pgm-muted); font-size: 14px; }
.uv-legend li { display: inline-flex; align-items: center; gap: 8px; }
.uv-legend-gym { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: radial-gradient(circle at 32% 28%, #FF8A8F 0, #FF2B33 22%, #CC0022 60%, #7A0012 100%); border: 1.5px solid #fff; }
.uv-legend-gym span { transform: rotate(45deg); font: italic 800 12px/1 var(--pgm-display); color: #fff; }
.uv-legend-bat .uv-bat { width: 16px; height: 22px; display: block; }

/* a bat: a small pin (black, crimson edge, a white bat) about a quarter of a gym pin's size, in a 44 x 44 tap area */
.uv-bat-icon { background: none; border: 0; }
.uv-bat-pin { position: absolute; left: 14px; top: 18px; width: 16px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.uv-bat-pin svg { display: block; }
.uv-bat-icon:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 10px; }
.uv-pop-user { display: block; font: italic 800 18px/1.1 var(--pgm-display); color: #fff; }
.uv-pop-line { color: var(--pgm-muted); }
.uv-pop-links { margin-top: 4px; }
.uv-map .leaflet-popup-content a { color: var(--pgm-link); }

.uv-list { counter-reset: none; }
.uv-list li { padding: 0; }
.uv-list-link { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; text-decoration: none; min-height: 44px; }
.uv-list-link:hover h3 { text-decoration: underline; }
.uv-list-logo { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; }

/* a gym's page */
.uv-preview { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #2A0A10; border: 1px solid var(--pgm-edge); color: #FFD7DC; }
.uv-gym-band { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.uv-gym-logo { flex: none; width: 96px; height: 96px; border-radius: 16px; object-fit: contain; background: #fff; border: 2px solid var(--pgm-crimson); }
.uv-gym-head { min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.uv-kicker { margin: 0 0 4px; color: var(--pgm-link); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.uv-address { margin: 8px 0 0; color: var(--pgm-muted); }
.uv-gym-actions { margin: 14px 0 0; }
.uv-directions { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; min-height: 44px; box-sizing: border-box; }
.uv-directions .icon { width: 18px; height: 18px; }
.uv-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.uv-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 8px 14px; border-radius: 10px;
  background: var(--pgm-panel); border: 1px solid var(--pgm-line); color: #fff; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.uv-links a:hover { border-color: var(--pgm-crimson); }
.uv-links a span { min-width: 0; overflow-wrap: anywhere; }
.uv-section { margin: 0 0 18px; }
.uv-section h2 { margin: 0 0 8px; font-size: 26px; line-height: 1; }
.uv-text { margin: 0; white-space: pre-line; color: #E4E4E7; overflow-wrap: anywhere; }
.uv-muted { color: var(--pgm-muted); }
.uv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 0 0 18px; }
.uv-box { margin: 0; padding: 14px; border-radius: 12px; background: var(--pgm-panel); border: 1px solid var(--pgm-line); border-left: 3px solid var(--pgm-crimson); }
.uv-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.uv-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.uv-contact { padding: 16px; border-radius: 14px; background: linear-gradient(90deg, #1A0207, #0B0B0C); border: 1px solid var(--pgm-edge); }
.uv-form { display: grid; gap: 12px; max-width: 560px; }
.uv-form .field { margin: 0; }
.uv-form label { color: #fff; font-weight: 600; }
.uv-form input, .uv-form textarea { width: 100%; box-sizing: border-box; background: #0B0B0C; color: #fff; border: 1px solid #3A3A40; border-radius: 10px; padding: 10px 12px; font: inherit; }
.uv-form input:focus, .uv-form textarea:focus { outline: 2px solid var(--pgm-crimson); outline-offset: 1px; }
.uv-send { justify-self: start; margin-left: 0; border: 0; cursor: pointer; min-height: 44px; }
.uv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uv-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--pgm-link); min-height: 44px; }
.uv-gym .form-error { color: #FF8A95; }
@media (max-width: 720px) {
  .uv-gym-logo { width: 72px; height: 72px; }
}
