/* Home: one lit map of both continents to drag, zoom and tap. homemap.js sets --u (map units per screen px) and --lamp
   (lamp size in screen px) on the map, so names, lamps and strokes keep their screen size at every zoom. */
.homemap { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.homemap:active { cursor: grabbing; }
.grid line { stroke: rgba(232, 236, 244, .05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.glow { opacity: .75; transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .3s; mix-blend-mode: screen; }
.glow.hot { opacity: 1; transform: scale(1.7); }
.town { font: 600 calc(13px * var(--u, 1)) var(--sign); letter-spacing: .05em; fill: var(--muted); paint-order: stroke; stroke: var(--sea);
  stroke-width: calc(3px * var(--u, 1)); stroke-linejoin: round; transform: translate(calc(9px * var(--u, 1)), calc(-7px * var(--u, 1)));
  opacity: 0; transition: opacity .3s, fill .3s; pointer-events: none; }
.town.in, .homemap:not(.live) .town[data-z="0.5"] { opacity: 1; }
.town.hot { fill: var(--soft); opacity: 1; }
.homemap .lights .v { r: calc(var(--lamp, 2px) * var(--u, 1)); transition: opacity .35s, fill .25s; cursor: pointer; }
.homemap .lights .v.hot { r: calc(var(--lamp, 2px) * var(--u, 1) * 2.4); }

/* map controls: zoom and the two small continent maps to jump over the Atlantic */
.mapctl { position: fixed; right: var(--edge); bottom: var(--edge); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.zoom, .jump button, .vcard { background: rgba(12, 23, 48, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.zoom { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; }
.zoom button { width: 2.6rem; height: 2.6rem; font: 600 1.35rem var(--sign); color: var(--moon); background: none; border: 0; cursor: pointer; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { color: var(--amber); }
.jump { display: flex; gap: .5rem; }
.jump button { display: grid; gap: .3rem; padding: .45rem .45rem .35rem; border-radius: 12px; color: var(--muted); cursor: pointer;
  font: 600 .8rem var(--sign); letter-spacing: .04em; transition: border-color .2s, color .2s, box-shadow .2s; }
.jump button:hover { color: var(--moon); border-color: rgba(232, 236, 244, .3); }
.jump button[aria-pressed=true] { color: var(--soft); border-color: rgba(255, 181, 71, .6); box-shadow: 0 0 18px rgba(255, 181, 71, .2); }
.jumpmap { display: block; width: 8.5rem; height: 4.6rem; }
.jumpmap .land { fill: #22365A; stroke: none; }
.jumpmap circle { fill: var(--amber); }

/* the venue card that opens on a lamp */
.vcard { position: fixed; z-index: 3; width: min(20rem, calc(100vw - 1.5rem)); padding: 1rem 1.1rem .8rem; border-radius: 16px;
  border-color: rgba(255, 181, 71, .35); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 181, 71, .12); }
.vcard h3 { font-size: 1.35rem; color: var(--soft); margin: 0 1.8rem .3rem 0; overflow-wrap: anywhere; }
.vcard p { margin: 0 0 .45rem; font-size: .9rem; }
.vcard .meta { color: var(--muted); }
.vcard .state.on { color: #A6E8A6; }
.vcard .state.gone { color: var(--rose); }
.vcard .stars { color: var(--amber); }
.vcard .gist { color: var(--text); }
.vcard .more { display: inline-block; margin-top: .2rem; font-weight: 700; }
.vcard .x { position: absolute; top: .45rem; right: .5rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: none;
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.vcard .x:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* the panel: the big lit sign, the search and the brightest cities */
.home .panel .sign { font-size: clamp(2.6rem, 4.2vw, 3.3rem); line-height: 1; margin: .2rem 0 .8rem; }
.home .lede { font-size: 1rem; color: var(--text); }
.home .find { display: block; margin: 1.3rem 0 1rem; }
.home .find label { display: block; font: 700 1.7rem/1 var(--sign); color: var(--moon); margin-bottom: .55rem; }
.home .find .row { display: flex; gap: .5rem; }
.home .find .input { flex: 1; min-width: 0; border-radius: 12px; padding: .75rem .9rem; }
.towns { list-style: none; margin: .4rem 0 1rem; }
.towns li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.towns a { font: 600 1.3rem/1.1 var(--sign); color: var(--moon); text-decoration: none; }
.towns li:hover a, .towns a:focus-visible { color: var(--soft); }
.towns .cc { color: var(--muted); font-size: .8rem; }
.towns .n { color: var(--amber); font: 700 1.15rem var(--sign); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255, 181, 71, .5); }

@media (max-width: 900px) {
  .mapctl { position: absolute; top: calc(55vh - 8.6rem); right: .75rem; bottom: auto; }
  .zoom { display: none; }
  .jumpmap { width: 6rem; height: 3.3rem; }
  .vcard { position: absolute; }
  .home .find .input { font-size: 16px; }
}
