/* Goose's Eye (server/website/launch/eye). Tokens come from /style.css. */
.eye-head { padding-bottom: 18px; }
.eye-head h1 { font-size: clamp(32px, 4vw, 46px); margin: 4px 0 6px; }
.eye-head .sub { font-size: 16px; }
.eye-head .sub b { color: var(--butter); }
.navlinks a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.eye-wrap { padding-top: 18px; padding-bottom: 40px; }

.eye-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.eye-btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink-mute);
  background: transparent; color: var(--ink); font: 800 16px var(--font-body); cursor: pointer;
}
.eye-btn:hover { background: rgba(251, 248, 241, .1); }
.eye-btn:focus-visible, .eye-states button:focus-visible, .eye-x:focus-visible, .eye-film button:focus-visible {
  outline: 3px solid var(--amber-2); outline-offset: 2px;
}
.eye-btn-main { background: var(--amber); border-color: var(--amber); color: var(--cream-ink); }
.eye-btn-main:hover { background: var(--amber-2); }
.eye-btn-main[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.eye-btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

.eye-states {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1 1 320px; min-width: 0;
}
.eye-states button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--card-2);
  color: var(--ink-soft); font: 700 14px var(--font-body); cursor: pointer;
}
.eye-states button:hover { background: var(--wine); color: #fff; }
.eye-states b { color: var(--amber-2); font-weight: 800; }

.eye-stage {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--night-2);
  height: clamp(440px, 74svh, 800px);
}
#eye-map { position: absolute; inset: 0; }
.eye-tip {
  position: absolute; z-index: 3; pointer-events: none; max-width: 240px; padding: 5px 10px; border-radius: 8px;
  background: var(--deep); color: var(--ink); font-size: 13px; font-weight: 700; transform: translate(12px, 12px);
}
.eye-tip[hidden] { display: none; }
.eye-status {
  position: absolute; left: 12px; top: 56px; z-index: 2; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(13, 12, 17, .82); color: var(--ink-soft); font-size: 14px; font-weight: 700; max-width: calc(100% - 24px);
}
.eye-status:empty { display: none; }

.eye-panel {
  position: absolute; z-index: 4; left: 12px; bottom: 12px; width: 340px; max-height: calc(100% - 24px); overflow: auto;
  background: var(--deep); border-radius: 18px; padding: 10px 10px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.eye-panel[hidden] { display: none; }
.eye-x {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(13, 12, 17, .8); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.eye-shot { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; }
.eye-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eye-none { margin: 0; color: var(--ink-mute); font-weight: 700; }
.eye-none[hidden] { display: none; }
.eye-panel h2 { font: 800 19px/1.2 var(--font-display); margin: 12px 4px 4px; }
.eye-meta { margin: 0 4px 10px; font-size: 14px; color: var(--ink-mute-2); }
.eye-meta span + span::before { content: "\00b7\00a0"; }
.eye-actions { display: flex; gap: 8px; margin: 0 4px; }
.eye-film {
  list-style: none; margin: 12px 4px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.eye-film:empty { display: none; }
.eye-film button { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--card-2); cursor: pointer; }
.eye-film img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eye-note { color: var(--ink-mute); font-size: 14px; margin: 16px 0 0; max-width: 62em; }

/* map chrome in the site palette */
.eye-stage .maplibregl-ctrl-attrib { background: rgba(13, 12, 17, .75); color: var(--ink-mute); }
.eye-stage .maplibregl-ctrl-attrib a { color: var(--pink-soft); }
.eye-stage .maplibregl-ctrl-group { background: var(--deep); }
.eye-stage .maplibregl-ctrl-group button + button { border-top-color: var(--card-2); }
.eye-stage .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }

@media (max-width: 700px) {
  .eye-wrap { padding-left: 16px; padding-right: 16px; }
  .eye-head .wrap, .eye-head .nav { padding-left: 16px; padding-right: 16px; }
  .eye-states { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; }
  .eye-states button { white-space: nowrap; }
  .eye-panel { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62%; }
  .eye-shot { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .eye-btn { transition: none; }
}

.eye-layers { position: absolute; z-index: 5; left: 12px; top: 12px; max-width: calc(100% - 70px); }
.eye-layers summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--deep); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.eye-layers summary::-webkit-details-marker { display: none; }
.eye-layers summary:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.eye-layers[open] summary { background: var(--amber); color: var(--cream-ink); }
.eye-layers-body {
  margin-top: 8px; width: 300px; max-width: 100%; max-height: 60svh; overflow: auto; padding: 12px 14px; border-radius: 16px;
  background: var(--deep); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font-size: 14px;
}
.eye-layers label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; cursor: pointer; }
.eye-layers input { width: 18px; height: 18px; accent-color: var(--amber); }
.eye-lead, .eye-credit, .eye-msg { margin: 0 0 8px; color: var(--ink-mute-2); font-size: 13px; }
.eye-credit { margin: 8px 0 0; color: var(--ink-mute); font-size: 12px; }
.eye-msg:empty { display: none; }
.eye-cnt { margin-left: auto; color: var(--amber-2); font-weight: 800; }
.eye-key { list-style: none; margin: 0 0 6px 26px; padding: 0; font-size: 13px; color: var(--ink-soft); }
.eye-key[hidden] { display: none; }
.eye-key li { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.eye-key i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.eye-key b { margin-left: auto; color: var(--ink-mute-2); font-weight: 700; }
.eye-stage .maplibregl-popup-content {
  background: var(--deep); color: var(--ink); border-radius: 14px; padding: 12px 34px 12px 14px; font: 14px/1.4 var(--font-body); max-width: 260px;
}
.eye-stage .maplibregl-popup-tip { border-top-color: var(--deep); border-bottom-color: var(--deep); }
.eye-stage .maplibregl-popup-close-button { color: var(--ink); font-size: 20px; width: 32px; height: 32px; }
.eye-pop h3 { font: 800 16px/1.2 var(--font-display); margin: 0 0 6px; }
.eye-pop p { margin: 0 0 3px; color: var(--ink-soft); }
.eye-pop .eye-fine { margin-top: 8px; font-size: 12px; color: var(--ink-mute); }

/* On-map layer toggles: one tap per layer, mirrors the Layers checkboxes. */
.eye-tog { position: absolute; z-index: 5; right: 12px; top: 84px; display: flex; flex-direction: column; gap: 8px; }
.eye-tog button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--amber); background: rgba(13,12,17,.85);
  color: var(--amber); display: grid; place-items: center; cursor: pointer; padding: 0; }
.eye-tog button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eye-tog button[aria-pressed="true"] { background: var(--amber); color: var(--cream-ink); }
.eye-tog button[data-tog="alpr"][aria-pressed="true"] { background: #38bdf8; border-color: #38bdf8; color: #0d0c11; }
.eye-tog button[data-tog="speed"][aria-pressed="true"] { background: #fb923c; border-color: #fb923c; color: #0d0c11; }
.eye-tog button[data-tog="redlight"][aria-pressed="true"] { background: #ef4444; border-color: #ef4444; color: #0d0c11; }
.eye-tog button[data-tog="alpr"] { border-color: #38bdf8; color: #38bdf8; }
.eye-tog button[data-tog="speed"] { border-color: #fb923c; color: #fb923c; }
.eye-tog button[data-tog="redlight"] { border-color: #ef4444; color: #ef4444; }
.eye-tog button:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }

/* Search and the place summary card */
.eye-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eye-search { position: relative; margin-bottom: 14px; max-width: 520px; z-index: 30; }
.eye-search-box { position: relative; }
.eye-search-box svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--ink-mute); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.eye-search input {
  width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 2px solid var(--ink-mute);
  background: var(--deep); color: var(--ink); font: 700 16px var(--font-body);
}
.eye-search input::placeholder { color: var(--ink-mute); font-weight: 600; }
.eye-search input:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; border-color: var(--amber-2); }
.eye-sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto;
  background: var(--deep); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
.eye-sugg[hidden] { display: none; }
.eye-sugg li { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.eye-sugg li:hover { background: var(--card-2); }
.eye-sugg li[aria-selected="true"] { background: var(--amber); color: var(--cream-ink); }
.eye-card {
  position: relative; margin: 0 0 14px; padding: 14px 56px 14px 16px; border-radius: 16px; background: var(--card);
  border: 2px solid var(--amber); max-width: 62em;
}
.eye-card[hidden] { display: none; }
.eye-card h2 { font: 800 20px/1.2 var(--font-display); margin: 0 0 4px; }
.eye-card-line { margin: 0 0 4px; font-weight: 800; color: var(--butter); font-size: 16px; }
.eye-card-fine { margin: 0 0 10px; font-size: 13px; color: var(--ink-mute-2); }
.eye-card .eye-x { top: 10px; right: 10px; }
.eye-tog button[data-tog="weather"] { border-color: #a78bfa; color: #a78bfa; }
.eye-tog button[data-tog="weather"][aria-pressed="true"] { background: #a78bfa; border-color: #a78bfa; color: #0d0c11; }
@media (max-width: 700px) {
  .eye-search { max-width: none; }
}
