/* Venue explorer (explorer.js). The chart keeps its own sea/land colours in both themes: it's a chart, not a card. */
.vx { --sea: #061a35; --sea-2: #0d2f5a; --land: #31558b; --land-edge: #a9c8f2; --wall: #c9d6ea; --hot: #59a1ff;
  margin: 24px 0 8px; }
.vx-bar { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); width: max-content; max-width: 100%; }
.vx-bar button { border: 0; background: none; color: var(--muted); font: 700 13px/1 var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur); }
.vx-bar button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.vx-view { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sea);
  aspect-ratio: 1 / 1.12; max-height: 78vh; width: 100%; touch-action: pan-y; isolation: isolate; user-select: none; -webkit-user-select: none; }
@media (min-width: 700px) { .vx-view { aspect-ratio: 16 / 11; } }
.vx-world { position: absolute; left: 0; top: 0; width: 3200px; height: 3200px; transform-origin: 0 0; will-change: transform; }
.vx-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.vx-sea { fill: var(--sea); }
.vx-gridline { stroke: rgba(143, 181, 255, .07); stroke-width: 14; }
/* wind zones (James's sketch, 16 Nov): pink = lighter, green = more breeze. Under the land, so the coast trims them. */
.vx-zone { stroke-width: 34; stroke-linejoin: round; stroke-dasharray: 90 70; }
.vx-zone--light { fill: rgba(232, 74, 196, .2); stroke: rgba(240, 110, 210, .7); }
.vx-zone--more { fill: rgba(70, 222, 120, .18); stroke: rgba(110, 240, 150, .75); }
.vx-key { position: absolute; top: 10px; right: 10px; display: grid; gap: 5px; font: 600 11.5px/1.2 var(--font); color: #e8f2ff; background: rgba(3, 19, 46, .8); padding: 8px 10px; border-radius: 10px; pointer-events: none; backdrop-filter: blur(4px); }
.vx-key[hidden], .vx-key-i[hidden] { display: none; }
.vx-key-i { display: flex; align-items: center; gap: 7px; }
.vx-key-i i { width: 14px; height: 10px; border-radius: 3px; border: 1.5px dashed; }
.vx-key-light i { background: rgba(232, 74, 196, .35); border-color: rgb(240, 110, 210); }
.vx-key-more i { background: rgba(70, 222, 120, .3); border-color: rgb(110, 240, 150); }
@media (max-width: 480px) { .vx-key { font-size: 10.5px; padding: 6px 8px; top: 56px; } }
.vx-shallow { fill: none; stroke: rgba(89, 161, 255, .1); stroke-width: 200; stroke-linejoin: round; }
.vx-land { fill: var(--land); stroke: var(--land-edge); stroke-width: 22; stroke-linejoin: round; }
.vx-wall { fill: var(--wall); stroke: var(--wall); stroke-width: 26; stroke-linejoin: round; }
.vx-waves { position: absolute; opacity: 0; transition: opacity .6s var(--ease); image-rendering: auto; pointer-events: none; }
.vx-waves.on { opacity: 1; }
.vx[data-layer="wind"] .vx-waves.on { opacity: .38; }   /* harbour: swell outside the wall shows where the bay is */
.vx-wind { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.vx-wind.on { opacity: 1; }

.vx-over { position: absolute; inset: 0; pointer-events: none; }
.vx-label { position: absolute; left: 0; top: 0; font: 700 11px/1.1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: rgba(214, 228, 250, .8); white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); transition: opacity .4s; }
.vx-label--sea { color: rgba(143, 181, 255, .7); font-style: italic; text-transform: none; letter-spacing: .02em; font-weight: 600; font-size: 12px; }
.vx-label--spot { color: #fff; text-transform: none; letter-spacing: 0; font-size: 11px; }
.vx-label--spot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #ffd66b; vertical-align: 1px; }
.vx[data-area="overview"] .vx-label--spot, .vx[data-area="overview"] .vx-label--zoom, .vx:not([data-area="overview"]) .vx-label--big { opacity: 0; }

.vx-hot { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; gap: 6px; transition: opacity .35s var(--ease); }
.vx-hot-ring { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--hot); background: rgba(89, 161, 255, .18); box-shadow: 0 0 0 0 rgba(89, 161, 255, .5); animation: vx-pulse 2.2s var(--ease) infinite; }
.vx-hot-t { font: 800 12px/1 var(--font); color: #fff; background: var(--accent); padding: 7px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.vx-hot:hover .vx-hot-t, .vx-hot:focus-visible .vx-hot-t { background: #fff; color: var(--accent); }
.vx:not([data-area="overview"]) .vx-hot { opacity: 0; pointer-events: none; }
@keyframes vx-pulse { 0% { box-shadow: 0 0 0 0 rgba(89, 161, 255, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(89, 161, 255, 0); } }

/* wind comes from the top, always */
.vx-arrow { position: absolute; top: 10px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.vx-arrow-l { font: 800 12px/1 var(--font); color: #fff; background: rgba(3, 19, 46, .78); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.vx-arrow-l small { font-weight: 600; color: #b9cdf0; margin-right: 5px; }
.vx-arrow svg { width: 26px; height: 46px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: vx-blow 1.8s var(--ease) infinite; }
@keyframes vx-blow { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.vx-north { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(143, 181, 255, .3); background: rgba(3, 19, 46, .78); display: grid; place-items: center; padding: 0; cursor: pointer; backdrop-filter: blur(4px); transition: background var(--dur), border-color var(--dur); }
.vx-north:hover { border-color: rgba(255, 255, 255, .7); }
.vx-north[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.vx-north:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vx-north i { display: block; width: 0; height: 0; transform: rotate(var(--vx-rot, 0deg)); position: relative; }
.vx-north i::before { content: "N"; position: absolute; left: -5px; top: -17px; font: 800 10px/1 var(--font); color: #fff; font-style: normal; }
.vx-north i::after { content: ""; position: absolute; left: -4px; top: -6px; border: 4px solid transparent; border-bottom: 9px solid #ff6b6b; border-top: 0; }
.vx-north-t { position: absolute; left: 48px; top: 50%; translate: 0 -50%; font: 700 11px/1 var(--font); color: #d6e4fa; white-space: nowrap; background: rgba(3, 19, 46, .78); padding: 5px 8px; border-radius: 999px; pointer-events: none; }

/* wind picker: a north-up pie of sectors, tap a wedge or its label */
.vx-dial { position: absolute; right: 10px; bottom: 10px; width: 124px; height: 124px; border-radius: 50%; background: rgba(3, 19, 46, .84); border: 1px solid rgba(143, 181, 255, .3); backdrop-filter: blur(4px); }
.vx-pie { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); overflow: visible; }
.vx-wedge { fill: rgba(89, 161, 255, .14); stroke: rgba(143, 181, 255, .35); stroke-width: .8; cursor: pointer; transition: fill var(--dur) var(--ease); }
.vx-wedge:hover { fill: rgba(89, 161, 255, .3); }
.vx-wedge.on { fill: var(--accent); stroke: #fff; }
.vx-pie-arrow { transition: transform .8s var(--ease); pointer-events: none; }
.vx-pie-arrow path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vx-d { position: absolute; left: 50%; top: 50%; width: 46px; height: 24px; margin: -12px 0 0 -23px; border: 0; border-radius: 999px; background: none; color: #d6e4fa; font: 800 10px/1 var(--font); cursor: pointer; padding: 0; white-space: nowrap;
  transform: rotate(var(--a)) translateY(-37px) rotate(calc(-1 * var(--a))); transition: color var(--dur); }
.vx-d[aria-checked="true"] { color: #fff; }
.vx-d:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.vx-hint { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 154px); font: 600 12px/1.3 var(--font); color: #e8f2ff; background: rgba(3, 19, 46, .8); padding: 8px 11px; border-radius: 10px; pointer-events: none; backdrop-filter: blur(4px); }
.vx-hint[hidden] { display: none; }
.vx-hint { transition: opacity .6s var(--ease); }
.vx-hint.out { opacity: 0; }
@media (max-width: 520px) {
  .vx-hint { font-size: 11px; padding: 7px 9px; max-width: calc(100% - 136px); }
  .vx-dial { width: 112px; height: 112px; }
  .vx-d { transform: rotate(var(--a)) translateY(-33px) rotate(calc(-1 * var(--a))); font-size: 9.5px; }
}
.vx-view { cursor: grab; }
.vx.vx-drag .vx-view { cursor: grabbing; }
.vx-view button { cursor: pointer; }
.vx-arrow svg { transition: none; }

.vx-busy-dot { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font: 600 11px/1 var(--font); color: #b9cdf0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.vx.vx-busy .vx-busy-dot { opacity: 1; }

.vx-notes { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vx-notes-head { font-weight: 700; color: var(--heading); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vx-notes > :last-child { margin-bottom: 0; }
.vx figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .vx-hot-ring, .vx-arrow svg { animation: none; }
  .vx-pie-arrow { transition: none; }
}
