/* Climax Moly surface water quality map + Water Quality Standards page. */
.water-map {
  --wm-drinking: #f7931d;
  --wm-surface: #005bab;
  --wm-hover: #f68a26;   /* Operations map highlight orange (client, Nov 5, 2026) */
  --wm-panel-width: clamp(170px, 11vw, 230px);
  /* Full browser width, breaking out of any content column. */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.water-map__stage { position: relative; }
.water-map__map { position: relative; width: 100%; background: #0d3f5a; }
/* The image sets the map's shape; dots are % of its width/height. */
.water-map__img { display: block; width: 100%; height: auto; }

.water-map__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  z-index: 2;
  transition: transform .15s;
}
.water-map__dot--drinking { background: var(--wm-drinking); }
.water-map__dot--surface  { background: var(--wm-surface); }
.water-map__dot:hover,
.water-map__dot.is-active,
.water-map__dot:focus { background: var(--wm-hover); z-index: 4; outline: none; }
/* Rollover: white rings radiate out from the dot, like the Operations map. */
.water-map__dot::before,
.water-map__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #fff;
  opacity: 0;
  pointer-events: none;
}
.water-map__dot:hover::before, .water-map__dot:hover::after,
.water-map__dot.is-active::before, .water-map__dot.is-active::after,
.water-map__dot:focus::before, .water-map__dot:focus::after {
  animation: wm-glow-grow 2.5s ease-out infinite;
}
.water-map__dot:hover::after,
.water-map__dot.is-active::after,
.water-map__dot:focus::after { animation-delay: .83s; }
@keyframes wm-glow-grow {
  0%   { opacity: 0; transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: scale(2.6); }
}
@media (prefers-reduced-motion: reduce) {
  .water-map__dot::before, .water-map__dot::after { animation: none !important; opacity: 1; transform: scale(1.6); }
}

/* Hover box: 290 x 220 (client spec): name, photo, value + date. */
.water-map__tip {
  position: absolute;
  width: 290px;
  height: 220px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, calc(-100% - 14px));
  background: #fff;
  border: 1px solid #c9c9c9;
  padding: 6px 8px 4px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
  z-index: 5;
}
.water-map__tip.is-active { opacity: 1; visibility: visible; }
.water-map__tip.is-below { transform: translate(-50%, 14px); }
.water-map__tip-name {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: var(--wm-surface);
  margin-bottom: 4px;
}
.water-map__tip--drinking .water-map__tip-name { color: #b8650a; }
.water-map__tip-photo {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
}
.water-map__tip-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* any photo shape fits the box */
}
.water-map__tip-data {
  display: block;
  padding-top: 4px;
  font-size: 13px;
  color: var(--wm-surface);
}
.water-map__tip-data strong { font-size: 15px; margin-right: 10px; }
.water-map__tip--drinking .water-map__tip-data { color: #b8650a; }

/* Right column: white list on a dark panel, like the FCX region sidebar. */
.water-map__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12%;
  width: var(--wm-panel-width);
  background: #3b3b3b;
  z-index: 3;
}
.water-map__list { margin: 0; padding: 0; list-style: none; background: #fff; }
.water-map__list li { border-bottom: 1px solid #9a9a9a; margin: 0 8px; }
.water-map__list li:last-child { border-bottom: 0; }
.water-map__list-link {
  display: block;
  padding: 8px 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  color: var(--wm-surface);
  text-decoration: none;
}
.water-map__list-link.is-active,
.water-map__list-link:hover,
.water-map__list-link:focus { color: var(--wm-hover); text-decoration: none; }
/* Pinned (clicked) location: stays highlighted until closed. */
.water-map__list-link.is-pinned { color: var(--wm-hover); font-weight: 700; }
.water-map__dot.is-pinned { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .6); }

/* Optional title/legend (block config); normally empty. */
.water-map__title { margin: 30px 16px 16px; text-align: center; color: #e3832e; text-transform: uppercase; }
.water-map__legend { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.water-map__legend ul { margin: 0 0 6px; padding: 0; list-style: none; }
.water-map__legend-item { position: relative; padding-left: 28px; margin-bottom: 4px; }
.water-map__legend-item::before { content: ""; position: absolute; left: 4px; top: .25em; width: 14px; height: 14px; border-radius: 50%; }
.water-map__legend-item--drinking { color: var(--wm-drinking); }
.water-map__legend-item--drinking::before { background: var(--wm-drinking); }
.water-map__legend-item--surface { color: var(--wm-surface); }
.water-map__legend-item--surface::before { background: var(--wm-surface); }
.water-map__note { padding-left: 28px; font-size: 14px; }

/* Enlarged photo (click the photo in the hover box). */
.water-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  background: rgba(0, 0, 0, .8);
  cursor: zoom-out;
}
.water-map-lightbox img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 90px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}
.water-map-lightbox__caption { color: #fff; margin-top: 10px; font-family: Arial, Helvetica, sans-serif; }
.water-map-lightbox__close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* Tan intro box on the page (page body). */
.water-quality-intro .container950 { padding-top: 36px; }
.water-quality-title {
  margin: 0 0 6px;
  text-align: center;
  color: #e3832e;
  text-transform: uppercase;
}
.water-quality-legend {
  text-align: center;
  color: var(--wm-surface, #005bab);
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 4px;
}
.water-quality-legend::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: #005bab;
  vertical-align: -1px;
}
.water-quality-note { text-align: center; font-size: 13px; margin-bottom: 24px; }

/* Tablets/phones: list drops below the map in columns (FCX approach). */
@media (max-width: 979px) {
  .water-map__panel { position: static; width: auto; background: #fff; border-top: 1px solid #c8c8c8; }
  .water-map__list { columns: 2; column-gap: 0; }
  .water-map__list li { break-inside: avoid; }
  .water-map__dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .water-map__tip { width: 220px; height: 170px; }
}
@media (max-width: 560px) {
  .water-map__list { columns: 1; }
}

/* 100vw includes the vertical scrollbar; stop the few-pixel sideways scroll. */
body:has(.water-map) { overflow-x: hidden; }
