:root {
  --roxo-appolo: #6d2e2e;
  --roxo-claro: #8f4444;
  --branco: #ffffff;
  --cinza-claro: #f5f5f5;
  --cinza-medio: #e0e0e0;
  --cinza-escuro: #666666;
}

.artistas-view-toggle {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 22px;
  justify-content: center;
  min-height: 76px;
  padding: 34px 12px 8px;
  user-select: none;
}

.artistas-view-label {
  color: var(--cinza-escuro);
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 42px;
  text-align: center;
  transition: color 240ms ease;
}

.artistas-view-toggle:not(.is-map) .artistas-view-label-list,
.artistas-view-toggle.is-map .artistas-view-label-map {
  color: var(--roxo-appolo);
  font-weight: 700;
}


.artistas-map-view {
  margin-bottom: 28px;
}

.artistas-map-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.artistas-map-heading h2 {
  color: var(--roxo-appolo);
  font-family: "Jost", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.artistas-map-kicker {
  color: var(--cinza-escuro);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.artistas-map-count {
  background: var(--cinza-claro);
  border: 1px solid var(--cinza-medio);
  border-radius: 999px;
  color: var(--roxo-appolo);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
}

.artistas-map-container {
  background: #f5f0e5;
  border-radius: 8px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.35);
  min-height: 440px;
  overflow: hidden;
  position: relative;
}

.artistas-map-container::after {
  background:
    linear-gradient(135deg, rgba(109, 46, 46, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(144, 218, 238, 0.18), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 450;
}

.artistas-map {
  height: min(68vh, 620px);
  min-height: 440px;
  width: 100%;
}

.artistas-map .leaflet-tile-pane {
  filter: sepia(0.25) saturate(0.7) hue-rotate(335deg) brightness(1.05);
}

.artistas-map .leaflet-control-container {
  font-family: "Jost", sans-serif;
}

.artistas-map-empty {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: var(--roxo-appolo);
  display: flex;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  bottom: 32px;
  left: 18px;
  right: 18px;
  justify-content: center;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 12px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  z-index: 700;
}

.artistas-map-status {
  align-items: center;
  color: var(--cinza-escuro);
  display: flex;
  font-size: 0.88rem;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.artistas-map-reset {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cinza-medio);
  border-radius: 5px;
  color: var(--roxo-appolo);
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}

.artistas-map-reset:hover {
  background: var(--cinza-claro);
}

.artistas-map-center {
  background: var(--roxo-appolo);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--roxo-appolo);
}

.artistas-map-marker {
  background: transparent;
  border: 0;
}

.artistas-map-pin {
  --pin-size: 28px;
  height: var(--pin-size);
  position: relative;
  width: var(--pin-size);
}

.artistas-map-pin::before {
  background: var(--roxo-appolo);
  border: 3px solid var(--branco);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.32);
  content: "";
  height: var(--pin-size);
  left: 0;
  position: absolute;
  top: 0;
  transform: rotate(-45deg);
  transition: transform 260ms ease, background 260ms ease;
  width: var(--pin-size);
}

.artistas-map-pin::after {
  background: var(--branco);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 10px;
  position: absolute;
  top: 10px;
  transition: transform 260ms ease;
  width: 8px;
}

.artistas-map-marker:hover .artistas-map-pin::before {
  background: var(--roxo-claro);
  transform: translateY(6px) rotate(-45deg);
}

.artistas-map-marker:hover .artistas-map-pin::after {
  transform: translateY(6px);
}

.artistas-map-preview {
  align-items: center;
  background: var(--roxo-appolo);
  border: 3px solid var(--branco);
  border-radius: 6px;
  bottom: calc(100% + 12px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  color: var(--branco);
  display: flex;
  gap: 10px;
  left: 50%;
  max-width: 240px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 8px);
  transition: opacity 220ms ease, transform 220ms ease;
  width: max-content;
  z-index: 999;
}

.artistas-map-preview::after {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--branco);
  bottom: -10px;
  content: "";
  left: calc(50% - 8px);
  position: absolute;
}

.artistas-map-marker:hover .artistas-map-preview,
.artistas-map-marker:focus-visible .artistas-map-preview {
  opacity: 1;
  transform: translate(-50%, 0);
}

.artistas-map-preview img {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  flex: 0 0 52px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.artistas-map-preview strong,
.artistas-map-preview span {
  display: block;
  font-family: "Jost", sans-serif;
  line-height: 1.2;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artistas-map-preview span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  margin-top: 3px;
}

.artistas-map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.artistas-map-popup-card {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 230px;
}

.artistas-map-popup-card img {
  border-radius: 999px;
  flex: 0 0 58px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.artistas-map-popup-card h3 {
  color: var(--roxo-appolo);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}

.artistas-map-popup-card p {
  color: var(--cinza-escuro);
  font-size: 0.82rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.artistas-map .artistas-map-popup-card a {
  color: var(--roxo-appolo);
  font-weight: 800;
  text-decoration: none;
}

.artistas-map .artistas-map-popup-card a:hover {
  color: var(--roxo-claro);
}

@media (max-width: 768px) {
  .artistas-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .artistas-view-toggle {
    width: 100%;
  }

  .artistas-map,
  .artistas-map-container {
    min-height: 360px;
  }

  .artistas-map {
    height: 64vh;
  }

  .artistas-map-preview {
    max-width: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artistas-view-toggle *,
  .artistas-view-toggle *::after,
  .artistas-map-preview,
  .artistas-map-pin::before,
  .artistas-map-pin::after {
    transition: none;
  }
}
