/* ═══════════════════════════════════════════════════
   WMS — OGC layer controls and feature info styles
   ═══════════════════════════════════════════════════ */

/* ── WMS Status Badge ── */
.wms-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 10px;
  margin-bottom: 8px;
}
.wms-status .ws-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.wms-status .ws-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}
.wms-status .ws-dot.offline {
  background: var(--accent-rose);
}
.wms-status .ws-label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.wms-status .ws-url {
  color: var(--text-muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── WMS Layer List ── */
.wms-layer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wms-layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid transparent;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wms-layer-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}
.wms-layer-item.active {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.wms-layer-item .wl-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.wms-layer-item .wl-info {
  flex: 1;
  min-width: 0;
}
.wms-layer-item .wl-name {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wms-layer-item .wl-desc {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── WMS Toggle ── */
.wms-toggle {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.wms-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}
.wms-toggle.on {
  background: var(--accent-cyan);
}
.wms-toggle.on::after {
  left: 16px;
  background: white;
}

/* ── WMS Opacity Slider ── */
.wms-opacity {
  width: 100%;
  margin-top: 6px;
  display: none;
}
.wms-layer-item.active .wms-opacity {
  display: block;
}
.wms-opacity input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}
.wms-opacity input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

/* ── Service Badges ── */
.wms-service-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.wms-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.wms-badge.wms {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}
.wms-badge.wfs {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

/* ── Feature Info Panel ── */
.feature-info-popup {
  font-size: 11px;
  line-height: 1.5;
}
.feature-info-popup .fi-title {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  font-size: 12px;
}
.feature-info-popup .fi-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px solid rgba(42, 53, 80, 0.3);
}
.feature-info-popup .fi-key {
  color: var(--text-muted);
  text-transform: capitalize;
}
.feature-info-popup .fi-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
}
