/* ============================================================================
   DiveSites (Dive Site Location Logger): ONLY what is DiveSites' own. Written 2026-11-14.
   🔴 ONE SUITE: everything shared comes from the parent (as airlog.css and divecalc.css say):
        /assets/css/toolbox.css   the site (tokens, type, .wrap, .badge, .notice)
        /assets/css/watb-app.css  every app (the app bar, the forms' rows, the footer band)
      Nothing here restates a token or restyles a shared part.
   ========================================================================= */

/* DiveSites' accent: orange (toolbox.css --accent-sites). */
body.app--divesites { --accent: var(--accent-sites); --tint: var(--accent-sites); }

/* The lists: Country › Region › Area, then the sites. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.25rem 0 0; }
.filters select { min-width: 0; max-width: 100%; }
.country { margin: 1.75rem 0 0; }
.country h2 { font-size: 1.25rem; margin: 0 0 .25rem; border-bottom: 1px solid rgba(88, 110, 117, .45); padding-bottom: .3rem; }
.country h3 { font-size: 1.05rem; margin: .9rem 0 .1rem; color: var(--base1); }
.country h4 { font-size: .95rem; margin: .6rem 0 0; color: var(--base1); font-weight: 500; }
.sites { list-style: none; margin: .2rem 0 0; padding: 0; }
.site { padding: .45rem 0; border-bottom: 1px solid rgba(88, 110, 117, .25); display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: baseline; }
.site__about { color: var(--text-muted, var(--base0)); font-size: 14px; flex-basis: 100%; }
.mark { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--base1); border: 1px solid rgba(88, 110, 117, .6); border-radius: 980px; padding: 0 .45rem; }
.empty { color: var(--base1); margin: 1.5rem 0 0; }

/* One site. */
.logged { color: var(--base1); }
.facts { margin: 1.25rem 0 0; display: grid; gap: .1rem; max-width: 36rem; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(88, 110, 117, .3); }
.fact dt { color: var(--base1); }
.fact dd { margin: 0; color: var(--base2); text-align: right; font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.notes { max-width: 36rem; }
.maplinks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* The form's own parts the suite doesn't have yet: a select, the ticks, the notes. */
.form .row select { grid-column: 2 / 4; min-width: 0; width: 100%; box-sizing: border-box; }
.form .row--error select { border-color: var(--yellow); border-width: 2px; }
.form .row--choices { grid-template-columns: 1fr; }
.form .row--choices .label { color: var(--base1); font-size: 15px; }
.form .row--text { grid-template-columns: 1fr; }
.form textarea {
  font: inherit; font-size: 16px; color: var(--base2); background: var(--base02); width: 100%; box-sizing: border-box;
  border: 1px solid rgba(88, 110, 117, 0.6); border-radius: var(--radius-sm); padding: .5rem .6rem;
}
.form .row--wide .choice { grid-column: 1 / -1; }

/* A site's page: Depths, Visibility and Water temperature, each three values on one line (Paul, 2026-11-15). Three narrow
   columns still fit at 320px. */
.trio { margin: 1.5rem 0 0; max-width: 36rem; }
.text-head { margin: 2rem 0 .4rem; }   /* Features, Access, Additional notes: clear of the blocks above (Paul, 2026-11-15) */
.trio h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.trio dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.trio dl > div { border: 1px solid rgba(88, 110, 117, .35); border-radius: var(--radius-sm); padding: .45rem .6rem; min-width: 0; }
.trio dt { color: var(--base1); font-size: 14px; }
.trio dd { margin: .15rem 0 0; color: var(--base2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* The map (SPEC D4, 2026-11-22): Leaflet (assets/leaflet/, served from here) over OpenStreetMap's tiles. The box is hidden
   until assets/divesites-map.js draws it, so the page without JavaScript is the list alone. */
.ds-map { height: 22rem; margin: 1.25rem 0 0; border: 1px solid rgba(88, 110, 117, .45); border-radius: var(--radius-sm); }
.ds-map--one { height: 15rem; max-width: 36rem; }
.ds-map[hidden], .ds-legend[hidden] { display: none; }
@media (max-width: 480px) { .ds-map { height: 17rem; } }
/* The popup is Leaflet's own light card: its link stays a dark, readable blue on it (not the site's link colour). */
.ds-map .leaflet-popup-content a { color: #073642; font-weight: 600; }
.ds-map .leaflet-control-attribution a { color: #0b5394; }

/* The markers, by kind (Screens::MAP_KINDS; ⚠️ Claude's picks, for Paul's OK). Accents carry colour, never words: each
   group is named in the legend. A dark ring keeps every one visible on the light tiles. */
.ds-pin { stroke: #002b36; }
.ds-pin--WRECK, .ds-key--WRECK                                 { fill: var(--yellow); background: var(--yellow); }
.ds-pin--CAVE, .ds-pin--CAVERN, .ds-key--CAVE                  { fill: var(--violet); background: var(--violet); }
.ds-pin--TECHNICAL, .ds-key--TECHNICAL                         { fill: var(--blue);   background: var(--blue); }
.ds-pin--REEF, .ds-pin--WALL, .ds-key--REEF                    { fill: var(--green);  background: var(--green); }
.ds-pin--SHORE, .ds-pin--BOAT, .ds-pin--DRIFT, .ds-key--SHORE  { fill: var(--cyan);   background: var(--cyan); }
.ds-pin--ICE, .ds-key--ICE                                     { fill: var(--base2);  background: var(--base2); }
.ds-pin--NONE, .ds-key--NONE                                   { fill: var(--orange); background: var(--orange); }
.ds-legend { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 14px; color: var(--base1); }
.ds-legend li { display: flex; align-items: center; gap: .4rem; }
.ds-key { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #002b36; box-shadow: 0 0 0 1px rgba(147, 161, 161, .5); }

/* "Tell us about this site" (D5, 2026-11-22): the link under a public site's map links. */
.report-link { margin: 1rem 0 0; font-size: 15px; }
