/* ============================================================================
   UbicateBien.pe - High-Impact Spatial UI Styles
   Theme: Obsidian / Deep Slate with Emerald, Cyan, Amber, Rose accents
   ============================================================================ */

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Nav Tabs */
.nav-tab.active-tab {
  background-color: #10b981;
  color: #09090b;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  font-weight: 700;
}

/* Subtabs in Nominal Card */
.subtab-btn.active-subtab {
  background-color: #1f2937;
  color: #10b981;
  border-bottom: 2px solid #10b981;
}

/* MapLibre Container Customizations */
.maplibregl-map {
  font-family: 'Inter', sans-serif;
}

.maplibregl-ctrl-group {
  background: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid #374151 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.maplibregl-ctrl-group button {
  border-bottom: 1px solid #374151 !important;
}

.maplibregl-ctrl-group button:last-child {
  border-bottom: none !important;
}

.maplibregl-ctrl-icon {
  filter: invert(1) hue-rotate(180deg);
}

/* MapLibre Popups Dark Theme */
.maplibregl-popup-content {
  background: rgba(11, 15, 25, 0.95) !important;
  color: #f4f4f5 !important;
  border: 1px solid #374151 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  max-width: 280px !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: rgba(11, 15, 25, 0.95) !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(11, 15, 25, 0.95) !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(11, 15, 25, 0.95) !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(11, 15, 25, 0.95) !important;
}

.maplibregl-popup-close-button {
  color: #94a3b8 !important;
  padding: 6px 10px !important;
  font-size: 16px !important;
}
.maplibregl-popup-close-button:hover {
  color: #ffffff !important;
  background: transparent !important;
}

/* Custom Marker Styling */
.marker-target {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #ffffff;
  box-shadow: 0 0 20px #10b981, 0 0 40px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.marker-competitor {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.marker-competitor:hover {
  transform: scale(1.6);
  z-index: 30;
}

.marker-competitor.type-ruc20 {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.marker-competitor.type-overture {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}
.marker-competitor.type-municipal {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.marker-anchor {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #06b6d4;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.marker-anchor:hover {
  transform: scale(1.6);
  z-index: 30;
}

.marker-public-work {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f97316;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.marker-public-work:hover {
  transform: scale(1.6);
  z-index: 30;
}

/* Convenience POI Marker (Mode: Housing) */
.marker-convenience {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #06b6d4;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.marker-convenience:hover {
  transform: scale(1.6);
  z-index: 30;
}

/* Address Autocomplete Suggestions Dropdown */
.address-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(63, 63, 70, 0.4);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.address-suggestion-item:last-child {
  border-bottom: none;
}
.address-suggestion-item:hover,
.address-suggestion-item.is-selected {
  background-color: rgba(39, 39, 42, 0.9);
}

/* Radar Opportunity Interactive Buttons */
.radar-opportunity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(9, 9, 11, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}
.radar-opportunity-card:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateX(3px);
}

.radar-saturated-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(9, 9, 11, 0.7);
  border: 1px solid rgba(244, 63, 94, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.radar-saturated-card:hover {
  background-color: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.5);
  transform: translateX(3px);
}

/* Card 3 Freemium Unlocked Class */
#card3-locked-layer.is-unlocked {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}
