/* ================================
   MAP LAYERS STYLES
   ================================
   Colors and styles for map points, polygons, and symbols
   All using low opacity for intelligence/defense aesthetic
   ================================ */

@import url("color_palette.css");

/* ================================
   POLYGON LAYER COLORS
   ================================ */

/* General polygons - Yellow theme */
.polygon-general {
  --fill-color: var(--color-gold); /* Gold yellow */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-gold-dark); /* Darker yellow for border */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Alert zones - Red theme */
.polygon-alert {
  --fill-color: var(--color-crimson); /* Crimson red */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-crimson-dark); /* Dark red */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Safe zones - Green theme */
.polygon-safe {
  --fill-color: var(--color-lime); /* Lime green */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-forest-green); /* Forest green */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Surveillance zones - Blue theme */
.polygon-surveillance {
  --fill-color: var(--color-royal-blue); /* Royal blue */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-midnight-blue); /* Midnight blue */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Network zones - Purple theme */
.polygon-network {
  --fill-color: var(--color-magenta); /* Magenta purple */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-magenta-dark); /* Dark purple */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Restricted zones - Orange theme */
.polygon-restricted {
  --fill-color: var(--color-dark-orange); /* Dark orange */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-accent-orange); /* Our accent orange */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Buffer zones - Cyan theme */
.polygon-buffer {
  --fill-color: var(--color-turquoise); /* Dark turquoise */
  --fill-opacity: 0.15;
  --stroke-color: var(--color-dark-cyan); /* Dark cyan */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* Overpass/OSM results - Pink theme */
.polygon-overpass {
  --fill-color: var(--color-bright-purple); /* Bright purple-pink */
  --fill-opacity: 0.2;
  --stroke-color: var(--color-bright-purple-dark); /* Dark purple */
  --stroke-opacity: 0.8;
  --stroke-width: 2;
}

/* ================================
   POINT/MARKER COLORS
   ================================ */

/* Main data points - Orange theme (matching accent) */
.point-main {
  --circle-color: var(--color-bright-orange); /* Bright orange */
  --circle-opacity: 0.2; /* Low opacity as requested */
  --circle-stroke-color: var(--color-black);
  --circle-stroke-width: 1;
  --circle-radius: 5;
}

/* Device points - Blue theme */
.point-device {
  --circle-color: var(--color-royal-blue); /* Royal blue */
  --circle-opacity: 0.2;
  --circle-stroke-color: var(--color-midnight-blue);
  --circle-stroke-width: 1;
  --circle-radius: 4;
}

/* Alert points - Red theme */
.point-alert {
  --circle-color: var(--color-crimson); /* Crimson */
  --circle-opacity: 0.3; /* Slightly higher for visibility */
  --circle-stroke-color: var(--color-crimson-dark);
  --circle-stroke-width: 2;
  --circle-radius: 6;
}

/* AIS/Boat points - Cyan/Turquoise theme */
.point-ais,
.point-boats {
  --circle-color: var(--color-turquoise); /* Dark turquoise */
  --circle-opacity: 0.2; /* Low opacity as requested */
  --circle-stroke-color: var(--color-white);
  --circle-stroke-width: 1;
  --circle-radius: 6;
}

/* ADS-B/Plane points - Sky blue theme */
.point-adsb,
.point-planes {
  --circle-color: var(--color-sky-blue); /* Sky blue */
  --circle-opacity: 0.2; /* Low opacity as requested */
  --circle-stroke-color: var(--color-white);
  --circle-stroke-width: 1;
  --circle-radius: 8;
}

/* Highlighted points - White outline */
.point-highlight {
  --circle-color: transparent;
  --circle-opacity: 1;
  --circle-stroke-color: var(--color-white);
  --circle-stroke-width: 3;
  --circle-radius: 8;
}

/* Overpass result points */
.point-overpass {
  --circle-color: var(--color-bright-purple);
  --circle-opacity: 0.3;
  --circle-stroke-color: var(--color-black);
  --circle-stroke-width: 1;
  --circle-radius: 4;
}

/* ================================
   CLUSTER COLORS
   ================================ */

.cluster-small {
  --circle-color: var(--color-light-blue); /* Light blue */
  --circle-opacity: 0.7;
  --circle-radius: 20;
}

.cluster-medium {
  --circle-color: var(--color-accent-orange); /* Tactical orange */
  --circle-opacity: 0.7;
  --circle-radius: 30;
}

.cluster-large {
  --circle-color: var(--color-crimson); /* Crimson red */
  --circle-opacity: 0.7;
  --circle-radius: 40;
}

/* ================================
   HEATMAP COLORS
   ================================ */

.heatmap-layer {
  --heatmap-opacity: 0.6;
  --heatmap-radius: 25;
  --heatmap-intensity: 1;
}

/* ================================
   TEXT/LABEL COLORS
   ================================ */

.map-label {
  --text-color: var(--color-black);
  --text-halo-color: var(--color-white);
  --text-halo-width: 2;
}

/* ================================
   LINE STYLES
   ================================ */

.line-dashed {
  --line-dasharray: 4, 2; /* 4px dash, 2px gap */
  --line-blur: 1;
}

.line-solid {
  --line-dasharray: none;
  --line-blur: 0;
}

/* ================================
   SPECIAL EFFECTS
   ================================ */

/* Selected state - increase opacity */
.selected {
  --fill-opacity: 0.3 !important;
  --stroke-opacity: 1 !important;
  --circle-opacity: 0.5 !important;
}

/* Hover state */
.hover {
  --fill-opacity: 0.25 !important;
  --stroke-width: 3 !important;
}

/* Animation for alerts - using pulseSubtle from map_controls_panel.css */

.pulsing {
  animation: pulse 2s infinite;
}

/* ================================
   UTILITY CLASSES
   ================================ */

/* Visibility controls */
.layer-hidden {
  visibility: hidden;
}

.layer-visible {
  visibility: visible;
}

/* Opacity levels */
.opacity-low {
  --fill-opacity: 0.1;
  --circle-opacity: 0.1;
}

.opacity-medium {
  --fill-opacity: 0.2;
  --circle-opacity: 0.2;
}

.opacity-high {
  --fill-opacity: 0.3;
  --circle-opacity: 0.3;
}

/* ================================
   Z-INDEX LAYERING
   ================================ */

.layer-background {
  z-index: 1;
}

.layer-polygons {
  z-index: 2;
}

.layer-points {
  z-index: 3;
}

.layer-highlights {
  z-index: 4;
}

.layer-labels {
  z-index: 5;
}
