/* Thematic map selector — BEM */

.thematic-selector {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px;
  max-width: 220px;
}

.thematic-selector__title {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  margin: 0;
}

.thematic-selector__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}

.thematic-selector__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  text-align: left;
  width: 100%;
  transition: background-color 0.15s;
}

.thematic-selector__item:hover {
  background-color: #f3f4f6;
}

.thematic-selector__item--active {
  background-color: #dcfce7;
  color: #166534;
  font-weight: 500;
}

.thematic-selector__item--locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #9ca3af;
}

.thematic-selector__item--locked:hover {
  background-color: #fef2f2;
}

.thematic-selector__item--locked .thematic-selector__icon {
  color: #d1d5db;
}

.thematic-selector__icon {
  font-size: 18px;
  color: #6b7280;
}

.thematic-selector__item--active .thematic-selector__icon {
  color: #16a34a;
}

.thematic-selector__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thematic-selector__badge {
  font-size: 12px;
  flex-shrink: 0;
}

.thematic-selector__badge--premium {
  font-size: 0.625rem;
  font-weight: 600;
  color: #7c3aed;
  background: #ede9fe;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (min-width: 768px) {
  .thematic-selector {
    max-width: 260px;
  }
}


/* ------------------------------------------------------------------ */
/* Floating remove-theme FAB (inside map)                              */
/* ------------------------------------------------------------------ */
.thematic-remove-fab {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, transform 0.15s;
}

.thematic-remove-fab:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.thematic-remove-fab .material-icons-outlined {
  font-size: 22px;
}

/* ------------------------------------------------------------------ */
/* Thematic dropdown selector (top bar)                                */
/* ------------------------------------------------------------------ */
.thematic-dropdown-selector__item {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: background-color 0.15s;
}

.thematic-dropdown-selector__item.active {
  background-color: #dcfce7;
  color: #166534;
  font-weight: 500;
}

.thematic-dropdown-selector__item--locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #9ca3af;
}

.thematic-dropdown-selector__item--locked:hover {
  background-color: #fef2f2 !important;
  color: #9ca3af;
}

.thematic-dropdown-selector__plan-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: #7c3aed;
  background: #ede9fe;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.thematic-dropdown-selector__plan-tag--clickable {
  opacity: 0.85;
}
