/* /map extra overlays (overlays.js): buttons, clouds chip, ISS marker, popups, legend */
.ov-ico { font-size: 1.1rem; line-height: 1.45rem; text-align: center; }
.lr-btn.ov-lr[aria-pressed="false"] .ov-ico { filter: grayscale(0.7); opacity: 0.6; }
.ov-chip[hidden] { display: none; }
.ov-iss { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 999px; border: 2px solid #7fd8ff;
  background: #0b1f3a; box-shadow: 0 0 0 4px rgba(127, 216, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.45); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.ov-iss:hover, .ov-iss:focus-visible { outline: 3px solid #3cc6d8; outline-offset: 2px; }
.ov-popup .maplibregl-popup-content { padding: 0.65rem 0.8rem 0.55rem; border-radius: 0.9rem; background: var(--bg, #fff); color: var(--fg, #111);
  border: 1px solid var(--line, #ddd); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.ov-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .ov-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.ov-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--bg, #fff); }
.ov-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip, .ov-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.ov-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--bg, #fff); }
.ov-popup .maplibregl-popup-close-button { font-size: 1.1rem; padding: 0 0.4rem; color: var(--muted, #555); }
.ov-pp { font-size: 0.82rem; line-height: 1.35; max-width: 19rem; display: grid; gap: 0.25rem; }
.ov-pp h4 { margin: 0; padding-right: 1.2rem; font-size: 0.92rem; display: flex; align-items: center; gap: 0.35rem; }
.ov-pp p { margin: 0; }
.ov-pp a { color: var(--primary, #0a7f99); font-weight: 650; }
.ov-meta { color: var(--muted, #555); font-size: 0.76rem; }
.ov-src { color: var(--muted, #555); font-size: 0.7rem; margin-top: 0.2rem !important; }
.ov-sw { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.35); }
.ov-cams { border-top: 1px solid var(--line, #ddd); padding-top: 0.3rem; margin-top: 0.15rem; }
.ov-cams ul { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.15rem; max-height: 10rem; overflow-y: auto; overscroll-behavior: contain; }
.ov-cam { width: 100%; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0.35rem; border: 0; border-radius: 0.4rem; background: none;
  color: var(--fg, #111); font: inherit; text-align: left; cursor: pointer; }
.ov-cam:hover, .ov-cam:focus-visible { background: color-mix(in srgb, var(--primary, #0a7f99) 14%, transparent); }
.ov-cam span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-cam small { color: var(--muted, #555); flex: none; }
.ov-legend { position: fixed; right: 0.75rem; bottom: 2.4rem; z-index: 13; display: grid; gap: 0.45rem; width: 13.5rem; padding: 0.45rem 0.6rem; border-radius: 0.7rem;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-size: 0.7rem; box-shadow: 0 6px 18px var(--shadow); }
.ov-legend[hidden] { display: none; }
/* "Courtesy of" tag (overlays.js paintCourtesy): small credit line at the foot of the overlay legend */
.ov-courtesy { border-top: 1px solid var(--line); padding-top: 0.3rem; color: var(--muted); font-size: 0.64rem; line-height: 1.35; }
.ov-courtesy .ov-cty { font-style: italic; }
.ov-courtesy a { color: var(--primary, #0a7f99); text-decoration: none; font-weight: 600; }
.ov-courtesy a:hover, .ov-courtesy a:focus-visible { text-decoration: underline; }
.ov-lg { display: grid; gap: 0.15rem; }
.ov-lg small { color: var(--muted); }
.ov-bar { height: 0.55rem; border-radius: 999px; border: 1px solid var(--line); }
.ov-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.6rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ov-legend { right: 0.5rem; bottom: calc(max(0.9rem, env(safe-area-inset-bottom)) + 7.6rem); width: 11.5rem; }
  body.sheet .ov-legend { display: none; }
}
