/*
 * This is a manifest file that'll be compiled into application.css.
 */

@import url("/assets/sidebar-cd6adad1.css");
@import url("/assets/admin_events-e0054432.css");
@import url("/assets/events_list-436fd9a7.css");
@import url("/assets/public_events-8089bdeb.css");
@import url("/assets/multiselect-e524c8d3.css");

/* Custom Leaflet Pin Markers */
.custom-pin-marker {
  background: transparent !important;
  border: none !important;
}

.pin-marker {
  position: relative;
  width: 32px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* Event Hover Tooltip - FLAT DESIGN - Simple Name Only */
.leaflet-tooltip.event-hover-tooltip {
  background: white !important;
  border: 2px solid #374151 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  padding: 8px 12px !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  white-space: nowrap !important;
  max-width: 250px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  opacity: 1 !important;
}

.leaflet-tooltip.event-hover-tooltip:before {
  border-top-color: #374151 !important;
}

.leaflet-tooltip-top.event-hover-tooltip:before {
  border-top-color: #374151 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid #374151 !important;
}

.leaflet-tooltip-bottom.event-hover-tooltip:before {
  border-bottom-color: #374151 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-bottom: 8px solid #374151 !important;
}

/* Event Hover Tooltip - ENHANCED with name, type, and coordinates */
.leaflet-tooltip.event-hover-tooltip-enhanced {
  background: white !important;
  border: 2px solid #374151 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  opacity: 1 !important;
  min-width: 180px !important;
  max-width: 280px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow: hidden !important;
}

.leaflet-tooltip.event-hover-tooltip-enhanced:before {
  border-top-color: #374151 !important;
}

.leaflet-tooltip-top.event-hover-tooltip-enhanced:before {
  border-top-color: #374151 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid #374151 !important;
}

.leaflet-tooltip-bottom.event-hover-tooltip-enhanced:before {
  border-bottom-color: #374151 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-bottom: 8px solid #374151 !important;
}

/* Enhanced tooltip content structure */
.event-tooltip-content {
  padding: 10px 14px;
  max-width: 276px;
  box-sizing: border-box;
  overflow: hidden;
}

.event-tooltip-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.event-tooltip-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #9333ea;
  background: rgba(147, 51, 234, 0.1);
  padding: 2px 8px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.event-tooltip-coords {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Leaflet Popup Styling - FLAT DESIGN */
.leaflet-popup-content {
  margin: 0;
  padding: 0;
  min-width: 240px;
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 0; /* FLAT */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.leaflet-popup-tip {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-event-popup-flat .leaflet-popup-content-wrapper {
  border-radius: 0; /* FLAT */
}

.event-popup-card-flat {
  min-width: 300px;
}

.poi-header-flat {
  border-bottom: 2px solid #e5e7eb;
}

/* Layer Control - FLAT DESIGN */
.leaflet-control-layers {
  border: 2px solid #e5e7eb !important;
  border-radius: 0 !important; /* FLAT */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  background: white !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-control-layers-toggle {
  background-image: none !important;
  width: 40px !important;
  height: 40px !important;
  background: #9333ea !important; /* Primary color */
  border-radius: 0 !important; /* FLAT */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.leaflet-control-layers-toggle::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.leaflet-control-layers-expanded {
  padding: 16px !important;
  min-width: 200px !important;
}

.leaflet-control-layers-base,
.leaflet-control-layers-overlays {
  margin-bottom: 8px;
}

.leaflet-control-layers-base:last-child,
.leaflet-control-layers-overlays:last-child {
  margin-bottom: 0;
}

.leaflet-control-layers-separator {
  height: 2px !important;
  background: #e5e7eb !important;
  margin: 12px 0 !important;
  border: none !important;
}

.leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  padding: 8px 10px !important;
  margin: 2px 0 !important;
  border-radius: 0 !important; /* FLAT */
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

.leaflet-control-layers label:hover {
  background: #f3f4f6 !important;
  transform: translateX(2px);
}

.leaflet-control-layers-base label {
  background: rgba(147, 51, 234, 0.03);
}

.leaflet-control-layers-base label:hover {
  background: rgba(147, 51, 234, 0.08) !important;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  cursor: pointer !important;
  accent-color: #9333ea !important;
}

.leaflet-control-layers span {
  flex: 1;
}

/* Leaflet container z-index (lower than modal) */
.leaflet-container {
  font-family: inherit;
  cursor: default;
  z-index: 1 !important;
}

.leaflet-pane {
  z-index: auto !important;
}

.leaflet-popup-pane {
  z-index: 700 !important;
}

.leaflet-tooltip-pane {
  z-index: 650 !important;
}

/* Pulsing animation for active events on PINS */
@keyframes pulse-pin {
  0% {
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0.7));
  }
  70% {
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
  }
}

.marker-pulse-pin {
  animation: pulse-pin 2s infinite;
}

/* Draggable polygon points cursor */
.leaflet-interactive {
  cursor: pointer !important;
}

/* Polygon editing mode */
[data-controller*="map-draw"] .leaflet-container {
  cursor: crosshair;
}

/* GPS mode cursor */
[data-controller*="map-draw"][data-map-draw-mode-value="gps"] .leaflet-container {
  cursor: pointer;
}

/* Sidebar transitions */
.sidebar-transition {
  transition: width 0.3s ease-in-out;
}

/* Events panel transitions */
.events-panel-transition {
  transition: all 0.3s ease-in-out;
}

/* Modal backdrop - HIGHEST z-index */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal container - HIGHEST z-index */
#event-modal {
  z-index: 9999 !important;
}

/* JIRA-like card styling - FLAT DESIGN */
.event-card {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  border-radius: 0; /* FLAT */
}

.event-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}

/* Fullscreen map layout */
.map-fullscreen {
  height: calc(100vh - 64px);
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Events panel overlay - FLAT */
.events-panel-overlay {
  position: absolute;
  background: white;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  border-radius: 0; /* FLAT */
}

.events-panel-bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Text sizes */
.text-2xs {
  font-size: 0.625rem;
  line-height: 0.75rem;
}

/* Sticky header for lists */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 2px solid #e5e7eb;
}

/* Map page body overflow control */
.map-page-body {
  overflow: hidden;
}

/* Search results hover effect with dynamic border color */
[data-action*="selectEvent"]:hover,
[data-action*="selectAddress"]:hover {
  border-left-color: var(--hover-border-color, #9333ea) !important;
}
