/* Pool Viewer: styled after the MassMarsh Earth Engine app (Roboto, 420 px side panel, dark-red accents). */
html, body { height: 100%; margin: 0; }
.pv-layout { display: flex; height: calc(100vh - 56px); min-height: 480px; }
.pv-side {
  width: 420px; flex: 0 0 420px; padding: 10px 14px; box-sizing: border-box;
  overflow-y: auto; background: #fff; border-right: 1px solid #ddd;
  font-family: Roboto, Arial, sans-serif; font-size: 13px; color: #222; line-height: 1.35;
}
.pv-map { flex: 1 1 auto; background: #e2e8f0; }
@media (max-width: 800px) {
  .pv-layout { flex-direction: column; height: auto; }
  .pv-side { width: auto; flex: none; max-height: 55vh; border-right: none; border-bottom: 1px solid #ddd; }
  .pv-map { height: 45vh; }
}

/* title row and dividers, as in createTitlePanel / createDivider */
.pv-title { display: flex; align-items: baseline; margin: 6px 0 4px 0; }
.pv-title .brand { font-size: 20px; font-weight: bold; color: #881c1c; text-decoration: none; }
.pv-title a.brand:hover { text-decoration: underline; }
.pv-title .sub { font-size: 20px; font-style: italic; color: #000; margin-left: 2px; }
.pv-divider { height: 2px; background: #881c1c; margin: 5px 0 15px 0; }
.pv-thin { height: 1px; background: #999; margin: 5px 0 10px 0; }
.pv-thin.navy { background: #00008B; }
.pv-thin.light { background: #ccc; margin: 15px 0 10px 0; }

.pv-step { font-size: 12px; font-weight: bold; color: #881c1c; margin: 0 0 8px 0; }
.pv-section { font-size: 16px; font-weight: bold; font-style: italic; margin: 8px 0 6px 0; display: flex; align-items: center; gap: 10px; }
.pv-info-btn { font: 13px Roboto, sans-serif; width: 56px; height: 28px; padding: 0; margin: 0; border: 1px solid #ccc; background: #fff; border-radius: 2px; color: #555; cursor: pointer; }
.pv-info { font-size: 12px; color: #444; margin: 4px 0 8px 0; display: none; }
.pv-info.open { display: block; }
.pv-h { font-weight: bold; margin: 10px 0 4px 0; }
.pv-h.lg { font-size: 14px; }
.pv-p { margin: 4px 0; }
.pv-note { font-size: 10px; color: #666; margin: 2px 0; }
.pv-small { font-size: 11px; color: #666; margin: 2px 0; }
.pv-grey { font-size: 11px; color: #888; font-style: italic; }
.pv-ok { font-size: 11px; color: green; font-weight: bold; }
.pv-err { font-size: 11px; color: #c00; }
.pv-warn { font-size: 10px; color: #e65100; }
.pv-prompt { font-size: 14px; font-weight: bold; color: #c00; margin: 8px 0; }
.pv-credit { font-size: 9px; color: #666; margin-top: 6px; }
.pv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }

/* GEE ui.Button look: light grey, 1 px border, bold 12 px centred label */
.pv-side button {
  font: bold 12px Roboto, Arial, sans-serif; color: #222; padding: 8px 14px; margin: 5px 6px 5px 0;
  background: #f5f5f5; border: 1px solid #d0d0d0; border-radius: 3px; cursor: pointer; text-align: center;
}
.pv-side button:hover:not(:disabled) { background: #e9e9e9; }
.pv-side button:disabled { opacity: 0.45; cursor: default; }
.pv-side button.armed { background: #fff1c2; border-color: #DAA520; }
.pv-side button.wide { width: 100%; margin-left: 0; margin-right: 0; padding: 9px 0; }
.pv-side button.small { font-size: 11px; padding: 4px 10px; }
.pv-side button.x { font-size: 10px; padding: 1px 6px; margin: 0; }
.pv-side select, .pv-side input[type=text] {
  font: 13px Roboto, Arial, sans-serif; padding: 5px 8px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #222;
}
.pv-side select { font-weight: bold; text-align: center; }
.pv-side input[type=range] { width: 200px; vertical-align: middle; }
.pv-back { margin-top: 15px; width: 100px; }

.pv-legend-bar { width: 200px; height: 20px; border: 1px solid #999; background: linear-gradient(to right, #FF8C00, #FFFFFF, #0000FF); }
.pv-legend-labels { display: flex; font-size: 10px; margin-top: 2px; width: 200px; justify-content: space-between; }

.pv-chart-wrap { position: relative; width: 100%; margin: 6px 0; }
.pv-chart-wrap canvas { width: 100% !important; }
.pv-caption { font-size: 10px; color: #999; margin: 2px 0 6px 0; }
.pv-caption.red { color: #e63946; font-weight: bold; }

.pv-pool-row { display: flex; align-items: center; gap: 6px; font-size: 11px; margin: 3px 0; }
.pv-pool-row .dot { font-size: 14px; line-height: 1; }

.leaflet-container { font-family: Roboto, Arial, sans-serif; }
.pv-tool-switch { background: rgba(255,255,255,0.5); font: 11px Roboto, sans-serif; padding: 2px; border-radius: 3px; }

/* --- 2026-10-20: switcher, tooltip info icons, map legend overlay, map tools (measure / basemap), listserv dialog --- */
.pv-tool-switch { background: rgba(255,255,255,0.8); font: bold 13px Roboto, sans-serif; padding: 5px 6px; border-radius: 4px; border: 1px solid #bbb; }
.pv-info-i { display: inline-flex; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #9aa3ad; color: #9aa3ad; font: bold 11px Georgia, serif; font-style: italic; line-height: 1; align-items: center; justify-content: center; cursor: help; position: relative; }
.pv-info-i:hover, .pv-info-i:focus { border-color: #00bcd4; color: #00bcd4; outline: none; }
.pv-tip { position: fixed; z-index: 6000; background: #fff; border: 1px solid #cfd8dc; box-shadow: 0 2px 10px rgba(0,0,0,0.3); padding: 8px 10px; border-radius: 4px; font: normal 12px Roboto, sans-serif; font-style: normal; color: #333; white-space: pre-wrap; text-align: left; pointer-events: none; }
.pv-map-legend { position: absolute; left: 10px; bottom: 26px; z-index: 800; background: rgba(255,255,255,0.85); padding: 6px 10px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.3); pointer-events: none; font: 12px Roboto, sans-serif; }
.pv-map-legend .pv-h { margin: 0 0 4px 0; }
.pv-map-opacity { position: absolute; bottom: 26px; left: 50%; z-index: 800; background: rgba(255,255,255,0.88); padding: 5px 10px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.3); font: 12px Roboto, sans-serif; color: #333; }
.pv-map-opacity-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; white-space: nowrap; }
.pv-map-opacity-row input[type=range] { width: 150px; margin: 0; vertical-align: middle; }
.pv-map-opacity-title { font-weight: bold; margin-right: 2px; }
.pv-map-opacity-label { min-width: 48px; text-align: right; }
.pv-map-opacity-val { width: 24px; text-align: right; }
.pv-map-opacity-rows { max-height: 45vh; overflow-y: auto; margin-bottom: 4px; }
.pv-map-opacity-head { cursor: pointer; font-weight: bold; text-align: center; user-select: none; padding: 1px 2px; }
.pv-map-opacity-head:hover { color: #00bcd4; }
.pv-maptool { position: relative; }
.pv-maptool-btn { width: 34px; height: 34px; border: 1px solid #bbb; border-radius: 4px; background: rgba(255,255,255,0.75); color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.pv-maptool-btn:hover { background: rgba(255,255,255,0.95); color: #00838f; }
.pv-maptool-dd { position: absolute; right: 0; top: 36px; min-width: 250px; background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); padding: 4px 0; z-index: 1100; max-height: 60vh; overflow: auto; }
.pv-maptool-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font: 12px Roboto, sans-serif; color: #333; cursor: pointer; white-space: nowrap; }
.pv-maptool-item:hover { background: #e0f7fa; }
.pv-maptool-item.active { font-weight: bold; color: #00838f; }
.pv-maptool-item svg { width: 18px; height: 18px; flex: none; }
.pv-maptool-note { padding: 6px 10px; font: italic 11px Roboto, sans-serif; color: #777; }
.pv-measure-tip { background: rgba(255,255,255,0.92); border: 1px solid #ff3d00; color: #333; font: bold 12px Roboto, sans-serif; }
.pv-measure-result { background: rgba(255,255,255,0.92); border: 1px solid #ff3d00; color: #b71c1c; font: bold 12px Roboto, sans-serif; white-space: nowrap; }
.pv-links { margin: 6px 0 10px 0; font-size: 12px; }
.pv-links a { color: #881c1c; margin-right: 14px; text-decoration: underline; }
.pv-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 5000; display: flex; align-items: center; justify-content: center; }
.pv-dialog { position: relative; background: #fff; border-radius: 10px; padding: 28px 24px 22px; width: min(420px, 90vw); box-shadow: 0 8px 30px rgba(0,0,0,0.3); font-family: Roboto, sans-serif; text-align: center; }
.pv-dialog-x { position: absolute; right: 10px; top: 6px; border: none; background: none; font-size: 22px; color: #888; cursor: pointer; }
.pv-dialog-h { font-size: 18px; font-weight: bold; color: #881c1c; margin-bottom: 8px; }
.pv-dialog-input { width: 100%; padding: 8px 10px; margin: 12px 0 6px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.pv-dialog-btn { background: #881c1c; color: #fff; border: none; padding: 8px 22px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.pv-dialog-btn:disabled { opacity: 0.7; cursor: default; }
.pv-search { position: relative; }
.pv-search-input { width: 240px; height: 32px; padding: 0 10px; border: 1px solid #bbb; border-radius: 4px; background: rgba(255,255,255,0.92); font: 13px Roboto, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.pv-search-dd { position: absolute; left: 0; top: 34px; width: 320px; max-width: 70vw; background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 1100; max-height: 50vh; overflow: auto; }
.pv-search-item { padding: 6px 10px; font: 12px Roboto, sans-serif; color: #333; cursor: pointer; border-bottom: 1px solid #eee; }
.pv-search-item:hover { background: #e0f7fa; }
.pv-search-note { padding: 6px 10px; font: italic 11px Roboto, sans-serif; color: #777; }
.pv-back { display: block; margin-top: 8px; }
.pv-arrow { font-weight: 700; display: inline-block; position: relative; top: -1px; margin-right: 2px; font-size: 1.05em; }
.pv-arrow-r { margin-right: 0; margin-left: 2px; }
.pv-measure-result { padding: 4px 18px 4px 8px; }
.pv-measure-result .pv-measure-x { display: block; position: absolute; right: 2px; top: -1px; font: bold 15px Roboto, sans-serif; color: #b71c1c; cursor: pointer; line-height: 1; padding: 0 3px; }
.pv-measure-result.sel { border-width: 2px; }

/* expandable charts (icon top-right of every chart; near full-window modal with a Download button) */
.pv-chart-wrap { position: relative; }
.pv-chart-expand, button.pv-chart-expand { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #666; padding: 3px; cursor: pointer; opacity: 0.75; z-index: 2; line-height: 0; border-radius: 0; }
.pv-chart-expand:hover { opacity: 1; color: #1a73e8; }
.pv-chart-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 7000; display: flex; align-items: center; justify-content: center; }
.pv-chart-modal-box { position: relative; background: #fff; border-radius: 6px; width: 92vw; height: 90vh; max-width: 1700px; display: flex; flex-direction: column; padding: 36px 24px 14px; box-sizing: border-box; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.pv-chart-modal-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: transparent; color: #444; cursor: pointer; border-radius: 15px; padding: 4px; line-height: 0; }
.pv-chart-modal-x:hover { background: #eee; color: #000; }
.pv-chart-modal-chart { flex: 1 1 auto; min-height: 0; }
.pv-chart-modal-chart .pv-caption { font-size: 13px; }
.pv-chart-modal-foot { text-align: center; padding-top: 10px; }
.pv-chart-modal-foot button { font-size: 14px; padding: 6px 22px; }
/* header search box (beta page header) */
.mm-search .pv-search-dd { top: 38px; left: 0; width: 100%; min-width: 300px; }
/* pool imagery swipe: side-title image menus */
.pv-swipe { position: relative; }
.pv-swipe-menu { position: absolute; z-index: 30; min-width: 150px; max-height: 92%; overflow: auto; background: rgba(255,255,255,0.86); border: 1px solid #999; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); font: 11px Roboto, sans-serif; color: #222; }
.pv-swipe-menu-h { padding: 4px 8px; font-weight: bold; border-bottom: 1px solid #ccc; }
.pv-swipe-item { padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.pv-swipe-item:hover { background: rgba(0,229,255,0.25); color: #006064; }
.pv-swipe-item.sel { font-weight: bold; }
.pv-swipe { display: inline-block; max-width: 100%; }
.pv-swipe .pv-chart-expand { top: 3px; right: 3px; }
.pv-swipe-big { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pv-swipe-big canvas { max-height: 100%; }

.pv-site-popup .leaflet-popup-content { margin: 10px 12px; line-height: 1.3; }
.pv-site-popup .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 3px 14px rgba(0,0,0,0.35); }

.pv-beta { display: inline-block; background: #881c1c; color: #fff; border-radius: 4px; padding: 1px 7px; font: 600 11px Roboto, Arial, sans-serif; letter-spacing: 0.04em; vertical-align: middle; margin-left: 8px; line-height: 1.5; }
.pv-side button .pv-beta { margin-left: 6px; font-size: 10px; padding: 0 6px; }
.pv-chart-links { display: flex; gap: 8px; justify-content: flex-end; margin: 2px 0 6px 0; }
.pv-chart-links button, .pv-site-popup .pv-chart-links button { font-size: 11px; padding: 2px 10px; }
.pv-note.pv-save-hint { font-size: 12px; }
