#map {
  position: relative;
}

.water-depth-preview-sheet {
  --water-depth-sheet-drag-y: 0px;
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(210px, 30dvh, 310px);
  max-height: 35dvh;
  padding: 0 18px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: hidden auto;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 122, 43, 0.18), transparent 38%),
    linear-gradient(180deg, #24282d 0%, #15181c 100%);
  border: 1px solid rgba(244, 122, 43, 0.34);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + var(--water-depth-sheet-drag-y)));
  transition: transform 220ms ease, opacity 180ms ease, visibility 220ms;
  pointer-events: none;
  overscroll-behavior: contain;
}

.water-depth-preview-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(var(--water-depth-sheet-drag-y));
  pointer-events: auto;
}

.water-depth-preview-sheet.is-dragging {
  transition: none;
  user-select: none;
}

.water-depth-preview-drag-zone {
  display: grid;
  place-items: center;
  height: 28px;
  margin: 0 44px;
  cursor: grab;
  touch-action: none;
}

.water-depth-preview-drag-zone:active {
  cursor: grabbing;
}

.water-depth-preview-drag-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
}

.water-depth-preview-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #f8fafc;
  font: 300 29px/1 Arial, sans-serif;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
}

.water-depth-preview-content {
  display: flex;
  min-height: calc(100% - 28px);
  flex-direction: column;
}

.water-depth-preview-eyebrow {
  margin: 0 48px 5px 0;
  color: #f47a2b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.water-depth-preview-name {
  margin: 0 48px 4px 0;
  color: #fff;
  font-size: clamp(20px, 4.8vw, 27px);
  line-height: 1.12;
}

.water-depth-preview-meta {
  display: flex;
  margin: 0 0 14px;
  flex-wrap: wrap;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.water-depth-preview-details {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.water-depth-preview-details > div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(5, 8, 12, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 12px;
}

.water-depth-preview-details dt {
  margin-bottom: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.water-depth-preview-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f1f5f9;
  font-size: 12px;
  line-height: 1.3;
}

.water-depth-preview-cta {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  color: #16191d;
  font: inherit;
  font-weight: 800;
  background: #f47a2b;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(244, 122, 43, 0.2);
}

.water-depth-preview-close:focus-visible,
.water-depth-preview-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .water-depth-preview-sheet {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: 560px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(244, 122, 43, 0.34);
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .water-depth-preview-sheet {
    transition: none;
  }
}

.water-depth-contours-draft-note {
  position: absolute;
  z-index: 7;
  bottom: 34px;
  left: 50%;
  max-width: calc(100% - 150px);
  padding: 4px 8px;
  color: rgba(248, 250, 252, 0.82);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.water-depth-contours-draft-note[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .water-depth-contours-draft-note {
    bottom: 40px;
    max-width: calc(100% - 118px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
