.ol-zoom {
  top: 5px;
  right: 5px;
  left: auto;
}

.ol-locate {
  top: 70px;
  right: 5px;
  left: auto;
}

/* Transient location feedback stays within narrow map viewports. */
.ol-locate-status {
  position: absolute;
  top: 0;
  right: 36px;
  width: max-content;
  max-width: min(280px, calc(100vw - 65px));
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #18365f;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 5px #0003;
}

.ol-locate-status:empty {
  display: none;
}

.ol-setings {
  top: 100px;
  right: 5px;
  left: auto;
}

.ol-filter {
  top: 5px;
  left: 5px;
  background-color: rgba(255, 255, 255, 0.8);
}

.ol-filter img {
  height: 22px;
  max-width: 23px;
  margin-bottom: 5px;
}
.ol-overlay-container {
  z-index: 10;
}

.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 13px 13px 5px 13px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -50px;
}

.ol-popup:after,
.ol-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.ol-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
}

.ol-popup-closer:after {
  content: "✖";
}

.ol-attribution ul {
  font-size: 11px;
  line-height: 12px;
  padding: 0px;
}

#popup-content {
  overflow-y: hidden;
}

#popup-content .blue a {
  color: #205b9f;
  font-weight: 600;
}

#popup-content .overlayCam {
  margin-top: 4px;
  text-align: center;
}
#popup-content #overlayInfo {
  display: block;
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  top: 100px;
  left: 50px;
  padding: 10px;
  font-weight: 600;
  border-radius: 4px;
  color: #205b9f;
  border: 1px solid black;
  width: 70%;
}

/*******************************
 *  Form controls
 *******************************/
input[type="checkbox"] {
  cursor: pointer;
}

input[type="range"] {
  cursor: pointer;
  margin: 0px 15px;
  width: 86%;
  height: 2px;
  background: #205b9f;
}

/*******************************
 *  Snackbar / dialog.
 *******************************/
.snackbar {
  position: fixed;
  display: none;
  bottom: 80px;
  width: 100%;
  min-height: 48px;
  max-height: 80px;
  background-color: #205b9f;
  color: white;
  z-index: 30;
  will-change: transform;
  transform: translate(0, 80px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
  text-align: center;
  font-size: 18px;
  padding: 14px 12px 14px 24px;
}
@media (min-width: 480px) {
  .snackbar {
    left: 50%;
    min-width: 288px;
    max-width: 568px;
    border-radius: 2px;
    transform: translate(-50%, 80px);
  }
}
.dialog {
  position: fixed;
  left: calc(30% - 80px);
  top: 30%;
  display: none;
  flex-direction: column;
  align-items: center;
  border: none;
  z-index: 30;
  background: #fff;
  box-shadow:
    0 9px 46px 8px rgba(0, 0, 0, 0.14),
    0 11px 15px -7px rgba(0, 0, 0, 0.12),
    0 24px 38px 3px rgba(0, 0, 0, 0.2);
  width: 280px;
  padding: 20px;
}
.dialog button {
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  line-height: 36px;
  width: 100%;
}

/*******************************
 * Social buttons.
 *******************************/
.social-btn {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #9e9e9e;
  color: transparent;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border: none;
}
.social-btn.twitter {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABnklEQVR4Ae3XT4jMYRzH8Wc3pKz2IpsLt9kpR23kgERy0B4cNilkycFVKQdxcJVSa6OcZp3U7G5aBzkpBxdHLpSLC80us0tmZ+flYramZzK/f8rWfN7Hp76v8xP+p/Vn1Kzv8m7ZvLLQLmhXsqioLSnHwFNFbi4GaopcPQaaCl0MrG0woA+sqLjqvDs+AtbU0wLPfdN9s0aEP20x7ZN7xtTSAvscsChe1aCgswEzVtMCQ4K9PujcTyNC1BGX3Pw70IqAHYJg2OOOt2dC18Y10gIn1t/GVDUBU4K4s5qkBWYE69npgodeuSuIq5AeWHFUSNhCFmCPUzYnBN5nAQ4JCdummQWoJAaOkQXgXELgfhKAeC1Tdgk92upLVuCX0w4b6AFcISvAdaFH233OAzSM9wAekQeg5YnjhoWuXSQvAO8cFMSdsZoX+GHBhE1C1KBbWmQHXjpptH06ar83kAfgq9t2R6eHTHgB+QFoeeuBayZddsO01xpQHBDPxgX6wPK//oDMK3LVGChbUtRqSjEQlM2py7u6qpIQA8XWB5L3G+btE24TUTu9AAAAAElFTkSuQmCC");
}
.social-btn.facebook {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAsklEQVR4Ae3XQQqCYBBH8WnVwnuY4HE6jBdyGZieyV1gki6r10pG+CCSZsDFvP9+fiDfRon2FCeuPPi3mY4CWSYsy7lj1UiRAhcsa1NgwLIpBZ5sraei5Ije0EiBF9uqyfS0PVBzQPyAngzxBCrEFyi9gfXLOXNDMwJEp+e9AH4F3hZAAPJ9ewcCwB0weKYBBBBAAAHM3j8gHZY1KVAwYtVArsCaaJkMPk6j5xUwXgAb9gHRwUoXs8sZ4wAAAABJRU5ErkJggg==");
}

/* Responsive spot photos and static maps. */
.spot-image {
  margin: 1em 0;
}

.spot-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* The image reserves its map aspect ratio; wrappers follow the same height. */
.site-image {
  background-color: #f9f9f9;
  overflow: hidden;
}

.site-image a,
.site-image picture,
.site-image img {
  display: block;
  width: 100%;
  height: auto;
}

.webcam-zoom {
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
  background-color: #111;
  overflow: hidden;
}

/* Initial height midway between 16:9 and 4:3; vlive reports the actual ratio. */
.webcam-zoom:has(> iframe) {
  aspect-ratio: 32 / 21;
}

.webcam-zoom img,
.webcam-zoom iframe {
  transform: matrix(1, 0, 0, 1, 0, 0);
  transform-origin: 0 0;
  will-change: transform;
}

.webcam-zoom.zoom-mode iframe {
  pointer-events: none;
}

.webcam-zoom.is-zoomed {
  cursor: grab;
}

.webcam-zoom.is-dragging {
  cursor: grabbing;
}

.webcam-zoom-toggle {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 20;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  pointer-events: auto;
}

.webcam-zoom-icon {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webcam-zoom.zoom-mode .webcam-zoom-toggle {
  cursor: zoom-out;
  background: rgba(20, 96, 143, 0.42);
}

.webcam-zoom.is-zoomed .webcam-zoom-toggle {
  cursor: zoom-out;
  background: rgba(20, 96, 143, 0.42);
}

.webcam-zoom.is-zoomed .webcam-zoom-toggle .zoom-icon-plus {
  display: none;
}

/* Compact paid consent keeps optional storage choices equally prominent. */
.privacy-strip[hidden] {
  display: none;
}
.privacy-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  color: #18365f;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px #0003;
  display: flex;
  gap: 10px;
  align-items: center;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.privacy-copy {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.privacy-copy strong {
  margin-right: 6px;
}
.privacy-strip p {
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}
.privacy-strip p:empty {
  display: none;
}
.privacy-strip a {
  color: var(--blue);
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.privacy-actions button {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.privacy-actions button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}
@media (max-width: 750px) {
  .privacy-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .privacy-actions {
    flex-shrink: 1;
  }
  .privacy-actions button {
    flex: 1;
  }
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
}
.subscription-badge.interactive {
  cursor: pointer;
}
.subscription-badge:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.subscription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  font-size: 14px;
}
.subscription-status img {
  flex-shrink: 0;
}

#native-app-actions {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 6px;
  padding: 0 15px 10px 0;
}
#native-app-actions:empty {
  display: none;
}
#native-app-actions .button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
}

.support-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 8px;
  margin: 16px 0;
}
.support-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.support-product h3 {
  margin: 0 0 4px;
  padding: 0;
}
main .om .support-product p {
  margin: 0;
  line-height: 1.4;
}
.support-product .button {
  margin: 8px 0 0;
  padding: 8px 12px;
}
.support-current {
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-current img {
  flex-shrink: 0;
}

.preview-product {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.preview-product:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.preview-panel {
  margin: 0 0 24px;
  padding: 16px;
  background: #f0f2ff;
  border: 1px solid #c5cae9;
  border-radius: 8px;
}
.preview-panel form {
  margin: 0;
}
.preview-panel .button {
  margin: 0;
}

nav.drawer a[data-preferred-source] {
  white-space: normal;
  line-height: 1.5;
  padding: 8px 12px 8px 0;
}

/* A compact, dismissible invitation at the bottom of the viewport. */
.preferred-source-prompt {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  padding: 18px 60px 18px 18px;
  border: 1px solid #bac5e7;
  border-top: 4px solid #205b9f;
  border-radius: 6px;
  background: #f5f7fc;
  color: #354477;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.5;
}
.preferred-source-prompt[hidden] {
  display: none;
}
.preferred-source-prompt button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 7px 0 0;
  line-height: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}
.preferred-source-prompt button:hover {
  background: #e4e9f5;
}

.preferred-source-prompt strong {
  display: block;
  color: #253569;
  font-size: 17px;
  font-weight: 600;
}
.preferred-source-prompt p {
  margin: 8px 0 14px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}
.preferred-source-add {
  display: inline-block;
  padding: 3px 20px;
  border-radius: 5px;
  background: #205b9f;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.preferred-source-add:hover {
  background: var(--blue);
}
.preferred-source-add:focus-visible,
.preferred-source-prompt button:focus-visible {
  outline: 3px solid #253569;
  outline-offset: 3px;
}

/* Camera media and its popup share one responsive width. */
.ol-popup.camera-popup { width:min(538px,calc(100vw - 24px)); }
.camera-popup #popup-content { width:100%; }
.camera-popup .overlayCam a { display:block; position:relative; }
.camera-popup .camImg { display:block; width:100%; height:auto; max-height:60dvh; object-fit:contain; }

.map-site-highlight {
  width:44px;
  height:44px;
  box-sizing:border-box;
  border:3px solid #0879ff;
  border-radius:50%;
  background:rgba(8,121,255,.18);
  box-shadow:0 0 0 2px white, 0 0 0 5px rgba(8,121,255,.45);
  animation:map-site-blink 1s ease-in-out 2;
  pointer-events:none;
  font-size:0;
}

@keyframes map-site-blink {
  0%, 100% { opacity:1; }
  50% { opacity:.12; }
}
@media (prefers-reduced-motion: reduce) {
  .map-site-highlight { animation:none; }
}
