:root {
  color-scheme: light;
  --ink: #142b31;
  --muted: #465e62;
  --accent: #086b66;
  --line: #d8e4e1;
  --paper: #f1f6f3;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input[type="radio"] { cursor: pointer; }
:focus-visible { outline: 3px solid #149b8c; outline-offset: 2px; }
.masthead {
  padding: 28px max(5vw, calc((100vw - 1320px) / 2)) 66px;
  color: #f8fffa;
  background: radial-gradient(ellipse at 88% 0%, #22665e, transparent 60%), #102e36;
}
.brand { font-weight: 750; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.brand span, h1 em { color: #a1e6cc; }
h1 { margin: 14px 0 7px; font: 500 clamp(2.4rem, 5.1vw, 4.7rem)/1 Georgia, serif; letter-spacing: -.045em; }
.masthead p { margin: 14px 0 0; color: #deebe8; }
.explorer {
  width: min(90%, 1320px);
  margin: -34px auto 0;
  display: grid;
  grid-template-columns: minmax(275px, 340px) minmax(0, 1fr);
  min-height: 545px;
  height: min(65vh, 720px);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 34px #153f3920;
  background: white;
}
.directory { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.filters { padding: 20px 18px 3px; }
.filters > label { display: block; font-weight: 750; }
#search { width: 100%; margin: 8px 0 12px; padding: 10px; border: 1px solid #aabeba; border-radius: 8px; background: #fbfdfc; }
fieldset { margin: 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
legend { margin-bottom: 5px; font-size: .83rem; color: var(--muted); }
fieldset label { white-space: nowrap; background: var(--paper); padding: 5px 8px; border-radius: 20px; font-size: .85rem; }
input[type="radio"] { accent-color: var(--accent); vertical-align: middle; }
#status { font-size: .83rem; color: var(--muted); }
#clubs { margin: 0; padding: 0 18px 14px; list-style: none; overflow: auto; }
#clubs li { border-top: 1px solid var(--line); }
.club {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 6px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  text-align: left;
  color: var(--ink);
  background: white;
}
.club:hover { background: var(--paper); }
.club-name { font-weight: 720; }
.club-place { color: var(--muted); font-size: .82rem; grid-column: 1; }
.arrow { color: var(--accent); grid-column: 2; grid-row: 1 / 3; align-self: center; }
.map-panel { position: relative; min-height: 0; isolation: isolate; }
#map { height: 100%; background: #dbe8e4; }
#reset, #map-error { position: absolute; z-index: 500; box-shadow: 0 2px 8px #001e3326; background: white; border-radius: 8px; padding: 9px 12px; }
#reset { right: 12px; top: 12px; border: 1px solid #aabeba; color: var(--ink); }
#map-error { inset: auto 12px 22px; }
.pin { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; border: 2px solid white; box-shadow: 0 1px 6px #183a45aa; font-size: 13px; font-weight: 800; }
.popup-button { display: block; margin: 4px 0; text-align: left; border: 0; color: var(--accent); background: transparent; text-decoration: underline; }
footer { width: min(90%, 1320px); margin: 14px auto 26px; color: var(--muted); font-size: .83rem; }
dialog { position: relative; width: min(92vw, 480px); padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 16px 60px #102e3644; }
dialog::backdrop { background: #102e3680; }
dialog h2 { margin: 0 32px 18px 0; font-size: 1.45rem; }
.close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 1.4rem; }
dt { font-weight: 750; margin-top: 14px; }
dd { margin: 4px 0; color: var(--muted); }
.site-link { display: inline-block; margin-top: 4px; background: var(--accent); color: white; padding: 9px 13px; border-radius: 8px; }
@media (max-width: 690px) {
  .masthead { padding-bottom: 49px; }
  .explorer { width: 94%; height: auto; min-height: 0; grid-template-columns: 1fr; margin-top: -25px; }
  .map-panel { grid-row: 1; height: clamp(250px, 43svh, 390px); }
  .directory { border-right: 0; border-top: 1px solid var(--line); }
  #clubs { max-height: 350px; }
}
