/* DeepCast Map Widget — dark-themed Leaflet overlay styles
   All classes prefixed dc- to avoid collisions with host pages. */

/* ── Container ─────────────────────────────────────────────── */
.dc-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}

.dc-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}
/* Smooth colormapped data tiles when browser scales them up */
.dc-map-container .leaflet-tile-pane canvas.leaflet-tile {
  image-rendering: auto;
}

/* ── Loading overlay ───────────────────────────────────────── */
.dc-loading {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.85);
  transition: opacity 0.3s;
}

.dc-loading.dc-hidden {
  opacity: 0;
  pointer-events: none;
}

.dc-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: dc-spin 0.8s linear infinite;
}

@keyframes dc-spin {
  to { transform: rotate(360deg); }
}

/* ── Error banner ──────────────────────────────────────────── */
.dc-error {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(211, 47, 47, 0.92);
  color: #fff;
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── Base layer toggle (top-center pill) ──────────────────── */
.dc-base-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 801;
  padding: 10px 24px 16px;
  display: flex;
  user-select: none;
  -webkit-user-select: none;
}
.dc-map-container.dc-popup-active .dc-base-toggle,
.dc-map-container.dc-popup-active .dc-range-panel { display: none !important; }

.dc-base-toggle-inner {
  display: flex;
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dc-base-btn {
  flex: 1;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.5px;
  text-align: center;
}

.dc-base-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.dc-base-btn:last-child {
  border-radius: 0 20px 20px 0;
}

.dc-base-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.dc-base-btn.dc-base-active {
  background: #4fc3f7;
  color: #0d0d1a;
}

.dc-base-btn[data-tooltip] {
  position: relative;
}

.dc-base-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 50, 0.95);
  color: #e0e0e0;
  font: 400 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .dc-base-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ── Auto-range label (top-center, below SST/CHL toggle) ── */
.dc-range-panel {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(10, 10, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 16px 10px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.dc-range-label {
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dc-range-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  color: #4fc3f7; cursor: pointer; padding: 4px; line-height: 1;
  transition: all 0.15s; display: flex; align-items: center; position: relative;
}
.dc-range-toggle:hover { border-color: rgba(255,255,255,0.4); color: #81d4fa; }
.dc-range-toggle.dc-range-stretch { color: #ff9800; border-color: rgba(255,152,0,0.5); }
.dc-range-toggle.dc-range-off { color: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.1); }
.dc-range-toggle.dc-range-off::after {
  content: ''; position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
}

.dc-contrast-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(10, 10, 25, 0.95);
  color: #fff;
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 900;
}
.dc-contrast-tip.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .dc-range-panel {
    padding: 6px 10px 8px;
    gap: 6px;
    font-size: 11px;
  }
}

/* ── Dark layer control (click-to-toggle dropdown) ────────── */
.dc-map-container .leaflet-control-layers {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  position: relative;
}

.dc-map-container .leaflet-control-layers-toggle {
  background-color: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  background-size: 28px 28px;
  cursor: pointer;
}

/* Only show our inserted toggle, hide any Leaflet-generated one */
.dc-map-container .leaflet-control-layers .leaflet-control-layers-toggle:first-child {
  display: block;
}
.dc-map-container .leaflet-control-layers .leaflet-control-layers-toggle:not(:first-child) {
  display: none;
}

/* Layer list drops below the toggle */
.dc-map-container .leaflet-control-layers-list {
  background: rgba(30, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 180px;
  z-index: 100;
  user-select: none;
  -webkit-user-select: none;
}

.dc-map-container .leaflet-control-layers label {
  color: #e0e0e0;
  font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.dc-map-container .leaflet-control-layers-separator {
  display: none;
}

/* ── Top-right control ordering ────────────────────────────── */
.leaflet-top.leaflet-right { display: flex; flex-direction: column; }
.dc-share-control { order: 1; z-index: 3; }
.leaflet-control-layers { order: 2; z-index: 2; }
.dc-report-control { order: 3; z-index: 1; }

/* ── Loading spinner for map control buttons ──────────────── */
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-btn-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff; border-radius: 50%;
  animation: dc-spin 0.6s linear infinite;
}

/* ── Share map control ─────────────────────────────────────── */
.dc-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #e0e0e0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dc-share-btn:hover {
  background: rgba(30, 30, 60, 0.95);
  color: #fff;
}

/* ── Share toast ───────────────────────────────────────────── */
.dc-share-toast {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 2000;
  padding: 10px 20px;
  background: rgba(30, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.dc-share-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 600px) {
  .dc-share-toast { max-width: 85vw; font-size: 13px; padding: 8px 16px; }
}

/* ── Dark zoom control ─────────────────────────────────────── */
.dc-map-container .leaflet-control-zoom a {
  background: rgba(10, 10, 25, 0.95);
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.12);
  user-select: none;
  -webkit-user-select: none;
  width: 44px;
  height: 44px;
  line-height: 1;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-map-container .leaflet-control-zoom {
  border: none;
  box-shadow: none;
}

.dc-map-container .leaflet-control-zoom a:hover {
  background: rgba(50, 50, 80, 0.95);
}

.dc-map-container .leaflet-control-zoom a {
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Dark attribution ──────────────────────────────────────── */
.dc-map-container .leaflet-control-attribution {
  background: rgba(30, 30, 50, 0.75);
  color: #999;
  font-size: 11px;
}

.dc-map-container .leaflet-control-attribution a {
  color: #4fc3f7;
}

@media (max-width: 600px) {
  .dc-map-container.dc-popup-active .leaflet-control-container { display: none !important; }
}

/* ── Dark popups ───────────────────────────────────────────── */
.dc-map-container .leaflet-popup-content-wrapper {
  background: rgba(30, 30, 50, 0.95);
  color: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
}

.dc-map-container .leaflet-popup-tip {
  background: rgba(30, 30, 50, 0.95);
}

.dc-map-container .leaflet-popup-content {
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 8px 12px;
  min-width: 200px;
}

.dc-map-container .leaflet-popup-close-button {
  color: #999;
}

.dc-map-container .leaflet-popup-close-button:hover {
  color: #fff;
}

/* ── Copy coordinates icon ────────────────────────────────── */
.dc-copy-coords:hover { opacity: 1 !important; }

/* ── Eddy popup custom styles ──────────────────────────────── */
.dc-map-container .leaflet-popup-content b {
  color: #fff;
}

/* ── Water labels (DivIcon) ────────────────────────────────── */
.dc-water-label {
  color: #fff;
  font: bold 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  text-align: center;
  text-shadow:
    -1px -1px 2px #000,
     1px -1px 2px #000,
    -1px  1px 2px #000,
     1px  1px 2px #000;
  pointer-events: none;
}

/* ── Graticule labels ──────────────────────────────────────── */
.dc-grat-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* ── Current arrows (SVG DivIcon) ──────────────────────────── */
.dc-current-arrow {
  pointer-events: none;
}

.dc-current-arrow svg {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* ── Inlet popup buy button ────────────────────────────────── */
.dc-inlet-popup {
  text-align: center;
}

.dc-inlet-buy-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: #FF8504;
  color: #fff;
  border: none;
  border-radius: 6px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.dc-inlet-buy-btn:hover {
  background: #e67800;
}


/* ── Report quick-access control (top-right, below layers) ── */
.dc-report-control {
  background: transparent;
  border: none;
  box-shadow: none;
}

.dc-report-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
  color: #e0e0e0;
  transition: background 0.15s;
  position: relative;
}

.dc-report-control-btn:hover {
  background: rgba(50, 50, 80, 0.95);
}

.dc-report-control-btn svg {
  width: 22px;
  height: 22px;
}

.dc-report-dropdown {
  display: none;
  position: fixed;
  min-width: 240px;
  max-width: 320px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(30, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 0;
}

.dc-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #c06a00;
  border-bottom: 1px solid #a85c00;
  border-radius: 6px 6px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dc-dropdown-title span {
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}

.dc-dropdown-title a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.dc-dropdown-title a:hover {
  color: #fff;
}

.dc-report-dropdown.dc-open {
  display: block;
}

.dc-report-dropdown-body {
  padding: 4px 0;
}

.dc-report-dropdown-item.dc-report-unread {
  padding-left: 24px;
  position: relative;
}

.dc-report-unread-dot {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF8504;
}

.dc-report-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #e0e0e0;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.dc-report-dropdown-item:hover {
  background: rgba(79, 195, 247, 0.15);
}

.dc-report-dropdown-item-name {
  font-weight: 600;
  color: #fff;
}

.dc-report-dropdown-item-detail {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.dc-report-dropdown-empty {
  padding: 12px;
  color: #999;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.dc-report-dropdown-loading {
  padding: 12px;
  color: #999;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

/* ── User location dot ────────────────────────────────────── */
.dc-user-location {
  background: none;
  border: none;
}

.dc-user-dot {
  position: relative;
  width: 14px;
  height: 14px;
  margin: 2px;
  background: #4285f4;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.dc-user-dot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  animation: dc-pulse 2s ease-out infinite;
}

@keyframes dc-pulse {
  0% { width: 14px; height: 14px; opacity: 0.6; }
  100% { width: 40px; height: 40px; opacity: 0; }
}

/* ── Home / reset view control (bottom-right) ───────────── */
.dc-home-control {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0 !important;
}

.dc-home-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
  color: #e0e0e0;
  transition: background 0.15s;
}

.dc-home-control-btn:hover {
  background: rgba(50, 50, 80, 0.95);
}

.dc-home-control-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Weather forecast bar ─────────────────────────────────── */
.dc-weather-bar {
  margin-bottom: 10px;
  padding: 8px 0;
}

.dc-weather-bar-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dc-weather-bar-days {
  display: flex;
  gap: 4px;
}

.dc-weather-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 50px;
  flex: 1;
}

.dc-weather-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.dc-weather-class {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.dc-weather-go {
  background: rgba(102, 187, 106, 0.15);
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.dc-weather-go .dc-weather-class {
  color: #66bb6a;
}

.dc-weather-caution {
  background: rgba(255, 167, 38, 0.15);
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.dc-weather-caution .dc-weather-class {
  color: #ffa726;
}

.dc-weather-nogo {
  background: rgba(239, 83, 80, 0.15);
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.dc-weather-nogo .dc-weather-class {
  color: #ef5350;
}

.dc-weather-summary {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  line-height: 1.3;
  text-align: center;
}

/* ── Weather map markers ─────────────────────────────────── */
.dc-weather-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* ── Mobile tweaks ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .dc-map-container .leaflet-control-layers-list {
    max-width: 220px;
  }

  .dc-report-dropdown {
    max-width: 240px;
  }

  .dc-map-container .leaflet-popup-content-wrapper {
    max-width: 280px;
  }
}

/* ── Hour slider (bottom-left Leaflet control) ───────────── */
.dc-hour-slider {
  display: none; /* temporarily hidden */
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(10, 10, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 14px 10px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font: 400 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.8);
  min-width: 200px;
}

.dc-hour-label {
  text-align: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dc-hour-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-hour-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.dc-hour-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.dc-hour-now {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #4fc3f7;
  border-color: rgba(79, 195, 247, 0.4);
}

.dc-hour-now:hover {
  color: #fff;
  border-color: #4fc3f7;
}

.dc-hour-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  min-width: 100px;
}

.dc-hour-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4fc3f7;
  cursor: pointer;
  border: 2px solid rgba(10, 10, 25, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.dc-hour-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4fc3f7;
  cursor: pointer;
  border: 2px solid rgba(10, 10, 25, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .dc-hour-slider {
    padding: 6px 10px 8px;
    min-width: 160px;
    font-size: 11px;
  }
  .dc-hour-range { min-width: 70px; }
  .dc-hour-btn { padding: 3px 6px; font-size: 10px; }
}

/* ── Eddy track tooltips ─────────────────────────────────── */
.dc-track-tooltip {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(15, 32, 65, 0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.dc-track-tooltip .leaflet-tooltip-tip {
  display: none;
}

/* ── Zone viewport (fishing area selector) ─────────────────── */
.dc-zone-viewport-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 20, 35, 0.95);
  -webkit-user-select: none;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #FFa030;
  box-shadow: 0 0 8px rgba(255, 133, 4, 0.6), 0 0 20px rgba(255, 133, 4, 0.25);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  max-width: calc(100% - 40px);
}
.dc-zone-viewport-bar.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dc-vp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1;
}
.dc-vp-close:hover {
  color: #fff;
}
.dc-vp-info {
  flex: 1;
  min-width: 0;
}
.dc-vp-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}
.dc-vp-inlet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dc-vp-inlet-name {
  font-size: 14px;
  font-weight: 600;
  color: #FF8504;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-vp-inlet-lock {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.dc-vp-inlet-lock:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
}
.dc-vp-inlet-lock.locked {
  border-color: #FF8504;
  color: #FF8504;
  background: rgba(255, 133, 4, 0.15);
}
.dc-vp-inlet-lock .dc-lock-shackle {
  transition: d 0.2s;
}
.dc-vp-inlet-lock:not(.locked) .dc-lock-shackle {
  d: path("M7 11V7a5 5 0 0 1 9 1");
}
.dc-vp-chip {
  background: none !important;
  border: none !important;
  overflow: visible !important;
}
.dc-vp-chip span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: rgba(10, 22, 40, 0.85);
  border: 1.5px solid #FFa030;
  box-shadow: 0 0 8px rgba(255, 133, 4, 0.6), 0 0 20px rgba(255, 133, 4, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: auto;
}
.dc-vp-chip-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 8px;
  margin: 0;
  vertical-align: middle;
}
.dc-vp-chip-close:hover {
  color: #fff;
}
.dc-vp-close-corner {
  background: none !important;
  border: none !important;
}
.dc-vp-close-corner span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(10, 22, 40, 0.85);
  border: 1.5px solid #FFa030;
  box-shadow: 0 0 8px rgba(255, 133, 4, 0.6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s, background 0.2s;
}
.dc-vp-close-corner span:hover {
  color: #fff;
  background: rgba(255, 133, 4, 0.3);
}
.dc-vp-inlet-tooltip {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.dc-vp-inlet-tooltip::before {
  border-top-color: rgba(10, 22, 40, 0.9);
}
.dc-vp-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.dc-vp-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.dc-vp-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.dc-vp-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dc-vp-confirm {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: #FF8504;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dc-vp-confirm:hover {
  background: #e67800;
}

/* Drag handles on viewport edges */
.dc-vp-handle {
  background: none !important;
  border: none !important;
}
.dc-vp-handle-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF8504;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
.dc-vp-handle-dot:hover,
.dc-vp-handle-dot:active {
  transform: scale(1.3);
}
/* Size display */
.dc-vp-size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .dc-zone-viewport-bar {
    bottom: 10px;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 12px;
  }
  .dc-vp-hint { display: none; }
  .dc-vp-inlet-name { font-size: 13px; }
}

/* ── Spot number labels (DivIcon) ────────────────────────── */
.dc-spot-number {
  background: none !important;
  border: none !important;
}

/* ── Feature tooltips (report spot features on map) ──────── */
.dc-feature-tooltip {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(15, 32, 65, 0.92);
  color: #e0e0e0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 260px;
}
.dc-feature-tooltip .leaflet-tooltip-tip { display: none; }

/* ── Processing circle pulse animation ─────────────────────── */
.dc-processing-circle {
  animation: dc-blink 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}
.dc-processing-circle path {
  stroke-linecap: round;
}
