/* GeoRiskPulse - Windy Drawer, Timeline, Modals, & Action Controls */

/* 1. Windy-Style Right Sidebar (Layer Menu) */
.layer-sidebar {
  position: absolute;
  top: 80px;
  right: 18px;
  bottom: 80px;
  width: 320px;
  max-width: calc(100vw - 36px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-sidebar.collapsed {
  transform: translateX(calc(100% + 30px));
}

.sidebar-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.sidebar-toggle-btn {
  position: absolute;
  top: 80px;
  right: 18px;
  z-index: 999;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--shadow-glow-cyan);
}

.layer-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-group-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0 4px;
}

/* Layer Card Item */
.layer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.layer-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

.layer-card.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.layer-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layer-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.layer-card.active .layer-icon-box {
  background: var(--accent-cyan);
  color: #050b14;
}

.layer-info h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.layer-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  pointer-events: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
}

input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #050b14;
}

/* 2. Bottom Timeline Controller Bar */
.bottom-timeline-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  width: min(840px, calc(100vw - 36px));
}

.timeline-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: none;
  color: #050b14;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: var(--shadow-glow-cyan);
  transition: var(--transition);
  flex-shrink: 0;
}

.timeline-play-btn:hover {
  transform: scale(1.1);
}

.timeline-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.timeline-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.timeline-cam-toggle-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-left: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.timeline-cam-toggle-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cam-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
}

.cam-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.switch-sm {
  width: 32px;
  height: 18px;
}

.switch-sm .slider:before {
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
}

.switch-sm input:checked + .slider:before {
  transform: translateX(14px);
}

/* 3. Floating PetaBencana Action Button */
.floating-report-trigger {
  position: absolute;
  bottom: 85px;
  right: 18px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff2a5f 0%, #ff6b35 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(255, 42, 95, 0.5);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.floating-report-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 42, 95, 0.7);
}

/* 4. Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show,
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 580px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show .modal-box,
.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Modal Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.disaster-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.disaster-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.disaster-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.disaster-type-btn.active {
  background: rgba(255, 42, 95, 0.15);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.3);
}

.disaster-type-btn span.icon {
  font-size: 22px;
}

.disaster-type-btn span.label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modal Tabs (for Embed & API) */
.modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.code-snippet-box {
  background: #040812;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a5f3fc;
  position: relative;
  overflow-x: auto;
  line-height: 1.5;
}

.btn-copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-code:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* ==========================================================================
   WINDY-STYLE EXTENSIONS: VERTICAL DOCK, CATALOG GRID, UPLOADER, & FLOATING WEBCAMS
   ========================================================================== */

/* 1. Windy Vertical Circular Quick-Switch Dock (Right Edge) */
.windy-vertical-dock {
  position: absolute;
  top: 75px;
  right: 14px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.dock-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* ==========================================================================
   WINDY-STYLE INSTANT HOVER TOOLTIPS (Exact Match to User Screenshot)
   ========================================================================== */

[data-tooltip] {
  position: relative !important;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: #32373f;
  background: rgba(45, 51, 62, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9999;
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip positioned to the LEFT (for right vertical dock buttons) */
[data-tooltip-pos="left"]::before {
  bottom: auto;
  left: auto;
  right: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(3px);
}

[data-tooltip-pos="left"]:hover::before,
[data-tooltip-pos="left"]:focus-visible::before {
  transform: translateY(-50%) translateX(0);
}

/* Tooltip positioned to the BOTTOM (for top navbar items) */
[data-tooltip-pos="bottom"]::before {
  bottom: auto;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
}

[data-tooltip-pos="bottom"]:hover::before,
[data-tooltip-pos="bottom"]:focus-visible::before {
  transform: translateX(-50%) translateY(0);
}

.dock-circle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.dock-circle-btn:hover {
  transform: scale(1.08);
}

.dock-circle-btn .dock-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.dock-circle-btn.active .dock-thumb {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.8), 0 2px 8px rgba(0,0,0,0.8);
}

.dock-thumb .dock-icon {
  font-size: 16px;
  z-index: 2;
}

/* Gradient backgrounds for dock thumbnails */
.thumb-radar { background: linear-gradient(135deg, #065f46, #eab308, #ef4444); }
.thumb-sat { background: radial-gradient(circle at 40% 40%, #0369a1, #1e293b, #0f172a); }
.thumb-wind { background: conic-gradient(from 180deg at 50% 50%, #10b981, #06b6d4, #3b82f6, #10b981); }
.thumb-quake { background: radial-gradient(circle, #ff2a5f, #7f1d1d); }
.thumb-tectonics { background: linear-gradient(135deg, #0284c7, #0f172a); }
.thumb-insar { background: linear-gradient(135deg, #ea580c, #7c2d12); }
.thumb-cam { background: linear-gradient(135deg, #f59e0b, #b45309); }
.thumb-fire { background: radial-gradient(circle, #f97316, #b91c1c); }
.thumb-report { background: linear-gradient(135deg, #ec4899, #831843); }
.thumb-catalog { background: #b91c1c; border-color: #ef4444 !important; }

/* 2. Windy-Style Full Category Grid Catalog Drawer */
.windy-catalog-drawer {
  position: absolute;
  top: 70px;
  right: 18px;
  bottom: 40px;
  width: 490px;
  max-width: calc(100vw - 24px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.windy-catalog-drawer.collapsed {
  transform: translateX(calc(100% + 40px));
}

.catalog-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-search-wrap {
  position: relative;
  flex: 1;
}

.catalog-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
}

.catalog-search-input {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 10px 0 32px;
  color: #fff;
  font-size: 0.78rem;
  outline: none;
}

.catalog-search-input:focus {
  border-color: var(--accent-cyan);
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-catalog-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-catalog-action:hover, .btn-catalog-action.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: var(--accent-cyan);
}

.catalog-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-cat-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.catalog-grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-grid-card:hover {
  transform: translateY(-2px);
}

.catalog-card-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: 52px;
  border-radius: 8px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-grid-card.active .catalog-card-visual {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

.catalog-card-icon {
  font-size: 20px;
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
}

.catalog-card-visual .pin-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 10px;
  opacity: 0.85;
  z-index: 3;
}

.catalog-card-visual .tag-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
  color: #38bdf8;
  z-index: 3;
}

.catalog-card-visual .tag-badge.badge-danger {
  background: #b91c1c;
  color: #fff;
}

.catalog-card-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
  height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.catalog-grid-card:hover .catalog-card-label {
  color: #ffffff;
}

/* Windy-Style Rich Hover Tooltip (Images 1 & 2) */
.catalog-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(22, 27, 34, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  width: 210px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1200;
  text-align: left;
}

.catalog-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(22, 27, 34, 0.98) transparent transparent transparent;
}

.catalog-hover-tooltip .tooltip-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-hover-tooltip .tooltip-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.catalog-grid-card:hover .catalog-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Hide card titles option (show title only on hover popup) */
.windy-catalog-drawer.hide-card-titles .catalog-card-label {
  display: none !important;
}

.windy-catalog-drawer.hide-card-titles .catalog-cards-grid {
  gap: 8px;
}

/* Rich Map Gradients for catalog card thumbnails */
.visual-radar { background: linear-gradient(135deg, #059669, #eab308, #dc2626); }
.visual-satellite { background: radial-gradient(circle at 40% 40%, #0284c7, #0f172a); }
.visual-storm { background: linear-gradient(135deg, #854d0e, #ef4444); }
.visual-wildfires { background: radial-gradient(circle, #ea580c, #7f1d1d); }
.visual-tectonics { background: radial-gradient(circle, #0284c7, #09172e); }
.visual-faults { background: linear-gradient(135deg, #991b1b, #1e293b); }
.visual-insar { background: linear-gradient(135deg, #c2410c, #431407); }
.visual-liquefaction { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
.visual-quakes { background: radial-gradient(circle, #dc2626, #450a0a); }
.visual-tsunami { background: linear-gradient(135deg, #0284c7, #082f49); }
.visual-quake-depth { background: linear-gradient(135deg, #475569, #1e293b); }
.visual-seismic-hazard { background: linear-gradient(135deg, #b91c1c, #450a0a); }
.visual-wind { background: conic-gradient(from 180deg at 50% 50%, #10b981, #06b6d4, #3b82f6); }
.visual-gusts { background: linear-gradient(135deg, #10b981, #064e3b); }
.visual-accum-wind { background: linear-gradient(135deg, #0284c7, #1e1b4b); }
.visual-pressure { background: linear-gradient(135deg, #0d9488, #134e4a); }
.visual-temp { background: linear-gradient(135deg, #f97316, #ef4444); }
.visual-dewpoint { background: linear-gradient(135deg, #0284c7, #0369a1); }
.visual-humidity { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.visual-uv { background: linear-gradient(135deg, #f59e0b, #d97706); }
.visual-rain-thunder { background: linear-gradient(135deg, #2563eb, #1e1b4b); }
.visual-rain-accum { background: linear-gradient(135deg, #1d4ed8, #1e293b); }
.visual-thunderstorm { background: linear-gradient(135deg, #4338ca, #1e1b4b); }
.visual-cloud-cover { background: linear-gradient(135deg, #64748b, #334155); }
.visual-webcams { background: linear-gradient(135deg, #f59e0b, #78350f); }
.visual-reports { background: linear-gradient(135deg, #ec4899, #4c0519); }

/* Settings Modal Unit Row & Pills (Image 3) */
.setting-unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  min-width: 90px;
}

.unit-pill-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.unit-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.unit-btn:hover {
  color: #fff;
}

.unit-btn.active {
  background: #c2410c;
  color: #fff;
  box-shadow: 0 0 10px rgba(194, 65, 12, 0.5);
}

/* 3. Uploader Sidebar Drawer (Windy-style) */
.uploader-sidebar {
  position: absolute;
  top: 70px;
  right: 18px;
  bottom: 80px;
  width: 380px;
  max-width: calc(100vw - 36px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(22, 27, 34, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.uploader-sidebar.collapsed {
  transform: translateX(calc(100% + 40px));
}

.uploader-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-uploader-back {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.uploader-subtitle {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.uploader-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.dropzone-icon {
  font-size: 32px;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #0284c7, #0284c7);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 8px 24px;
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.6);
}

.dropzone-text {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.dropzone-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.supported-badges {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.supported-badges span {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #94a3b8;
}

.section-heading-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.badge-comm-count {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.community-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-file-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.community-file-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.community-card-top {
  display: flex;
  gap: 10px;
}

.comm-thumb-preview {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comm-thumb-preview.kml { background: radial-gradient(circle, #065f46, #022c22); }
.comm-thumb-preview.gpx { background: radial-gradient(circle, #991b1b, #450a0a); }
.comm-thumb-preview.geojson { background: radial-gradient(circle, #0369a1, #082f49); }

.format-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
}

.badge-format-kml { background: #16a34a; color: #fff; }
.badge-format-gpx { background: #dc2626; color: #fff; }
.badge-format-geojson { background: #0284c7; color: #fff; }

.thumb-watermark {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  letter-spacing: 1px;
}

.comm-meta {
  flex: 1;
  min-width: 0;
}

.comm-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comm-file-info {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comm-time-size {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
}

.comm-desc-preview {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.comm-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-comm-action {
  flex: 1;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-comm-action:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
}

/* User Uploaded Layers List */
.user-layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  margin-bottom: 6px;
}

.user-layer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.user-layer-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.user-layer-actions {
  display: flex;
  gap: 4px;
}

.btn-zoom-layer, .btn-remove-layer {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
}

.btn-zoom-layer:hover { color: var(--accent-cyan); }
.btn-remove-layer:hover { color: #ef4444; }

/* 4. On-Map Floating Webcam Cards (Windy-style) */
.webcam-floating-card-wrapper {
  background: transparent !important;
  border: none !important;
}

.webcam-floating-card {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.webcam-floating-card:hover {
  transform: scale(1.15);
  border-color: #00f0ff;
  z-index: 9999;
}

.webcam-card-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.webcam-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.webcam-live-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffb703;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.webcam-card-pill {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.webcam-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.webcam-time-ago {
  font-size: 0.6rem;
  color: #fff;
  font-weight: 600;
}

/* "Tambahkan webcam baru" Floating Card */
.webcam-add-card-wrapper {
  background: transparent !important;
  border: none !important;
}

.webcam-add-card {
  width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.88);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.webcam-add-card:hover {
  transform: scale(1.08);
  border-color: #f59e0b;
}

.webcam-add-title {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.webcam-add-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #f59e0b;
}

.badge-new-plus {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
}

/* 5. Wildfires / Hotspot Marker */
.wildfire-marker {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wildfire-symbol {
  font-size: 18px;
  z-index: 2;
  filter: drop-shadow(0 0 4px #ea580c);
}

.wildfire-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.4);
  animation: pulse-fire 1.8s infinite ease-out;
}

@keyframes pulse-fire {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Toast Notifications */
.grp-toast-notification {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 21, 39, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.grp-toast-notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   AI LANGUAGE PICKER, USER BEACON, ZONE RISK CARD, & BMKG HAZARD
   ========================================================================== */

/* 1. Language Picker Dropdown */
.lang-picker-wrapper {
  position: relative;
}

.btn-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0 12px;
  height: 38px;
  cursor: pointer;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 1100;
}

.lang-dropdown-menu.hidden {
  display: none;
}

.lang-opt-btn {
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.lang-opt-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #fff;
}

/* 2. User Location Radar Beacon */
.user-beacon-icon-wrapper {
  background: transparent !important;
  border: none !important;
}

.user-beacon-container {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-beacon-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #fff;
  box-shadow: 0 0 14px #00f0ff;
  z-index: 3;
}

.user-beacon-ring, .user-beacon-ring-delay {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  animation: beacon-pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.user-beacon-ring-delay {
  animation-delay: 1s;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 3. Floating User Zone Risk Intelligence Card */
.user-zone-risk-card {
  position: absolute;
  top: 124px;
  left: 14px;
  z-index: 920;
  width: 320px;
  max-width: calc(100vw - 28px);
  background: rgba(13, 21, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  padding: 12px 14px;
  transition: opacity 0.3s, transform 0.3s, padding 0.3s;
}

.user-zone-risk-card.minimized {
  width: auto;
  max-width: 290px;
  padding: 7px 12px;
  cursor: pointer;
}

.user-zone-risk-card.minimized .zone-card-body {
  display: none !important;
}

.user-zone-risk-card.minimized .zone-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.user-zone-risk-card.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.zone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.zone-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-minimize-zone, .btn-close-zone {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.btn-minimize-zone:hover, .btn-close-zone:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.zone-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.pulse-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulse-dot 1.5s infinite;
}

.btn-close-zone {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

.btn-close-zone:hover {
  color: #fff;
}

.zone-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}

.zone-label {
  color: #94a3b8;
}

.zone-val {
  font-weight: 600;
  color: #fff;
}

.zone-val.highlight-fault {
  color: #ff6b35;
}

.zone-val.risk-high {
  color: #ef4444;
}

.zone-val.risk-medium {
  color: #f59e0b;
}

.zone-val.risk-low {
  color: #22c55e;
}

.zone-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-zone-action {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-zone-action:hover {
  background: var(--accent-cyan);
  color: #000;
}

.zone-status-pill {
  font-size: 0.68rem;
  color: #22c55e;
  font-weight: 600;
}

/* 4. BMKG Indonesia Earthquake Marker */
.bmkg-marker-wrapper {
  background: transparent !important;
  border: none !important;
}

.bmkg-marker-pulse {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.85);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.8);
  animation: pulse-bmkg 2s infinite;
  cursor: pointer;
}

.bmkg-badge-mag {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  color: #ffffff;
}

@keyframes pulse-bmkg {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   MARITIME WEATHER, WAVE HEIGHT & SHIPBUOY STYLING (FASE 2)
   ========================================================================== */

.wave-height-tag-icon {
  background: transparent !important;
  border: none !important;
}

.wave-height-badge {
  background: rgba(13, 21, 39, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #38bdf8;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.wave-height-badge:hover {
  transform: scale(1.1);
}

.buoy-custom-icon, .rob-alert-custom-icon {
  background: transparent !important;
  border: none !important;
}

.buoy-marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.9);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.8);
  animation: pulse-dot 2.2s infinite;
  cursor: pointer;
  transition: transform 0.2s;
}

.buoy-marker-pin:hover {
  transform: scale(1.15);
}

.rob-alert-pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.9);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.8);
  animation: pulse-bmkg 2s infinite;
  cursor: pointer;
  transition: transform 0.2s;
}

.rob-alert-pin:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   WINDY FLOATING TOOLS CONTAINER & DYNAMIC COLOR SCALE BAR
   ========================================================================== */

.windy-floating-tools-container {
  position: absolute;
  bottom: 80px;
  right: 18px;
  z-index: 920;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.floating-tools-top-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-icon-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.tool-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.floating-tools-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.quick-filter-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.filter-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tool-btn:hover, .filter-tool-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.quick-sub-pills {
  display: flex;
  gap: 6px;
}

.sub-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.sub-pill-btn:hover, .sub-pill-btn.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

.quick-sources-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #94a3b8;
}

.quick-sources-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Color Scale Bar (Windy-style Legend at Bottom Right) */
.windy-color-scale-bar {
  position: absolute;
  bottom: 8px;
  right: 18px;
  z-index: 920;
  width: 280px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scale-unit-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #38bdf8;
}

.scale-gradient-strip {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #3b82f6, #06b6d4, #10b981, #eab308, #ef4444, #831843);
}

.scale-numbers {
  display: flex;
  gap: 6px;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: #94a3b8;
}

/* ==========================================================================
   OFFLINE EMERGENCY BANNER & TOOLKIT STYLING (PWA DISASTER MODE)
   ========================================================================== */

.offline-emergency-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  width: min(920px, calc(100vw - 24px));
  background: rgba(185, 28, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #ef4444;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
  padding: 8px 14px;
  transition: opacity 0.3s, transform 0.3s;
}

.offline-emergency-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulse-offline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb703;
  box-shadow: 0 0 10px #ffb703;
  animation: pulse-dot 1.2s infinite;
  flex-shrink: 0;
}

.banner-text {
  font-size: 0.74rem;
  color: #ffffff;
  line-height: 1.35;
  flex: 1;
}

.btn-emergency-quick {
  background: #ffffff;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-emergency-quick:hover {
  background: #fee2e2;
  transform: scale(1.04);
}

.emergency-guide-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.emergency-hotlines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hotline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  transition: var(--transition);
}

.hotline-card:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.hotline-number {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ff2a5f;
  font-family: var(--font-mono);
  background: rgba(255, 42, 95, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
}

.hotline-name {
  font-size: 0.72rem;
  color: #e2e8f0;
  line-height: 1.3;
  font-weight: 600;
}

.assembly-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.assembly-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.assembly-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

.assembly-info strong {
  color: #22c55e;
}

.assembly-info span {
  color: #94a3b8;
  font-size: 0.68rem;
}

.assembly-marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.9);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2s infinite;
}

.btn-pwa-install {
  background: rgba(0, 240, 255, 0.14) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  color: #00f0ff !important;
  animation: pulse-dot 3s infinite;
}

/* ==========================================================================
   MOBILE & RESPONSIVE TWEAKS (WINDY-STYLE COMPACT CONTROLS)
   ========================================================================== */
@media (max-width: 768px) {
  .windy-vertical-dock {
    top: 65px;
    right: 8px;
    gap: 7px;
  }
  
  .dock-circle-btn .dock-thumb {
    width: 34px;
    height: 34px;
  }
  
  .dock-thumb .dock-icon {
    font-size: 14px;
  }

  .basemap-switcher {
    top: 66px;
    left: 8px;
    padding: 2px;
  }

  .basemap-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .user-zone-risk-card {
    top: 108px;
    left: 8px;
    width: calc(100vw - 16px);
    max-width: 320px;
    padding: 8px 10px;
  }

  .bottom-timeline-bar {
    bottom: 8px;
    padding: 6px 10px;
    gap: 8px;
    width: calc(100vw - 16px);
  }

  .timeline-header span:first-child,
  .timeline-header span:last-child {
    display: none;
  }

  .timeline-ticks span:nth-child(2),
  .timeline-ticks span:nth-child(3),
  .timeline-ticks span:nth-child(4) {
    display: none;
  }

  .timeline-cam-toggle-box {
    display: none;
  }

  .windy-floating-tools-container {
    bottom: 74px;
    right: 8px;
  }

  .floating-tools-bottom-row {
    display: none; /* Hide dense sub-pills on mobile to avoid overlapping */
  }

  .windy-color-scale-bar {
    display: none; /* Keep mobile map clean */
  }

  .windy-catalog-drawer {
    top: 60px;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
}

