:root {
  --modal-title-size: 24px;
  --student-photo-size: 130px;
  --preview-photo-size: 150px;
}

@media (max-width: 768px) {
  :root {
    --modal-title-size: 20px;
    --student-photo-size: 100px;
    --preview-photo-size: 90px;
  }

  .students-modal-card {
    padding: 18px 14px 14px;
    border-radius: 14px;
  }

  .preview-faculdade-name {
    font-size: 10px;
    padding: 4px 7px;
    margin-bottom: 5px;
    max-width: 220px;
    /* Mais restrito em telas pequenas */
  }

  .preview-brand-badge {
    font-size: 9px;
    padding: 4px 7px;
    margin-bottom: 5px;
  }
}

/* Telas MUITO pequenas (ex.: iPhone SE Antigo) */
@media (max-width: 350px) {
  :root {
    --preview-photo-size: 80px;
  }

  .preview-faculdade-name {
    max-width: 180px;
  }
}

@media (min-width: 1600px) {
  :root {
    --modal-title-size: 28px;
    --student-photo-size: 150px;
    --preview-photo-size: 180px;
  }
}

html,
body {
  /* Permite que o mapa ocupe 100% da janela mas tambem funcione
     embutido numa landing page — nesse caso, sobrescreva #map { height } no arquivo pai. */
  height: 100%;
  margin: 0;
  font-family: 'Domine';
}

#map {
  width: 100%;
  /* Valor padrao: ocupa toda a janela. Para landing page, alterar esta variavel:
     ex.:  <div id="map" style="--map-height: 80vh"></div>       */
  height: var(--map-height, 100vh);
  min-height: 500px;
  background: radial-gradient(circle at top, #eef6ff 0%, #e6f0fa 45%, #ddeaf7 100%);
}

.map-back-control {
  margin-top: 16px !important;
  margin-left: 16px !important;
}

.map-back-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--map-back-arrow-color, #176e85);
  cursor: pointer;
  display: block;
  position: relative;
  font-size: 0;
  padding: 0;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.map-back-button span {
  display: none;
}

.map-back-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(-42%, -50%) rotate(45deg);
  transform-origin: center;
}

.map-back-button:hover,
.map-back-button:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: #ffffff;
  outline: none;
}

.map-back-button:active {
  background: rgba(228, 247, 246, 0.94);
  border-color: #ffffff;
}

.map-back-button.is-hidden {
  display: none;
}

.leaflet-interactive {
  transition: fill-opacity 0.22s ease, stroke-width 0.22s ease, transform 0.25s ease-in-out, filter 0.22s ease;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
  outline: none !important;
}

.leaflet-interactive:hover:not(.faculdade-marker):not(.leaflet-tooltip):not(.leaflet-popup),
.region-group-hover {
  fill-opacity: 1 !important;
  stroke-width: 2.5px !important;
  filter: brightness(1.22) saturate(1.1);
  cursor: pointer;
  animation: none !important;
}

.region-pop-highlight {
  animation: regionHighlightPop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  transform-box: view-box;
  transform-origin: var(--region-origin, center);
  z-index: 1000;
  will-change: transform, filter;
  transition: none !important;
}

@keyframes regionHighlightPop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  35% {
    transform: scale(1.06);
    filter: brightness(1.3) saturate(1.2);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.city-label-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 76, 120, 0.22);
  color: #163b5e;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Desabilita interacao direta no nome da cidade */
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --label-visual-scale: 1;
  transform-origin: center center;
  scale: var(--label-visual-scale);
}

.city-label-brasilia {
  /* Move o label de Brasília um pouco para cima (estava 22px) conforme solicitado */
  transform: translateX(-50%) translateY(4px) !important;
}

/* Ajustes manuais de labels para despoluição visual */
.city-label-niteroi {
  transform: translateX(20%) translateY(-22px) !important;
}

.city-label-saocaetanodosul {
  transform: translateX(5%) translateY(0px) !important;
}

.city-label-santoantoniodejesus {
  transform: translateX(-78%) translateY(4px) !important;
}

.city-label-saocristovao {
  transform: translateX(-45%) translateY(4px) !important;
}

.city-label-maceio {
  transform: translateX(-82%) translateY(4px) !important;
}

.city-label-crato {
  transform: translateX(-112%) translateY(-10px) !important;
}

.city-label-riodejaneiro {
  transform: translateX(-105%) translateY(-5px) !important;
}

.city-label-saopaulo {
  transform: translateX(-85%) translateY(4px) !important;
}

.city-label-jundiai {
  transform: translateX(-82%) translateY(-4px) !important;
}

.city-label-campinas {
  transform: translateX(-80%) translateY(-2px) !important;
}

.city-label-belohorizonte {
  transform: translateX(-70%) translateY(-6px) !important;
}


@media (max-width: 768px) {
  .city-label-text {
    font-size: 10px;
    padding: 1px 5px;
    transform: translateX(-50%) translateY(3px);

    /* Despoluição Mobile: Esconde nomes por padrão EXCETO capitais */
    opacity: 0;
    scale: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease,
      scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
      transform 0.4s ease;
  }

  /* Sempre mostra capitais OU o nome da cidade ativa/clicada */
  .city-label-text.is-label-focused,
  .capital-label .city-label-text,
  .capital-label-inner {
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
}

.capital-label .city-label-text,
.capital-label-inner {
  background: rgba(255, 255, 255, 0.92);
  color: #163b5e;
  border-color: rgba(29, 76, 120, 0.22);
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faculdade-marker {
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: none;
  /* Desabilita a hitbox retangular grande do Leaflet */
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  overflow: visible !important;
  transition: z-index 0.2s step-start;
}

.faculdade-marker:not(.faculdade-marker-small):not(.label-only-marker) {
  pointer-events: auto;
  touch-action: manipulation;
}

/* O conjunto ganha z-index se o pin for focado */
.faculdade-marker:has(.faculdade-pin:hover) {
  z-index: 9999 !important;
}

/* O Zoom e Brilho só acontecem se o mouse estiver REALMENTE no pin */
.faculdade-marker .faculdade-pin:hover {
  scale: 1.18;
  filter: brightness(1.08) saturate(1.08) drop-shadow(0 9px 10px rgba(70, 14, 18, 0.28));
}

/* O label zoom separado no hover ou quando focado programaticamente (mobile) */
.city-label-text.is-label-focused {
  scale: 1.12;
}


.faculdade-pin {
  pointer-events: auto;
  /* Reativa a interacão apenas no corpo do pin */
  position: relative;
  display: block;
  width: 18px;
  height: 24px;
  /* Cria uma hitbox circular invisivel no topo para o "cabecote" do pin */
  border-radius: 50% 50% 0 0;
  transition:
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.22s ease,
    filter 0.22s ease;
  transform-origin: center bottom;
  filter: drop-shadow(0 6px 6px rgba(55, 16, 16, 0.26));
  --pin-visual-scale: 1;
  /* Valor injetado via JS */
  /* Variaveis para ajuste inteligente de colisao */
  --pin-adjust-rotate: 0deg;
  --pin-adjust-shift-x: 0px;
  transform: translateX(var(--pin-adjust-shift-x)) rotate(var(--pin-adjust-rotate)) scale(var(--pin-visual-scale));
  /* Une a animacao de entrada (pop-in) com uma animacao continua de flutuar (floating) */
  animation:
    pinPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards,
    pinFloating 2.5s ease-in-out infinite;
  animation-delay: var(--pin-stagger, 0s), calc(var(--pin-stagger, 0s) + 1.2s);
}

@keyframes pinFloating {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3.5px;
  }
}

@keyframes pinPopIn {
  0% {
    scale: 0;
    opacity: 0;
  }

  45% {
    scale: 1.25;
    opacity: 1;
  }

  70% {
    scale: 0.85;
  }

  100% {
    scale: 1;
    opacity: 1;
  }
}

.faculdade-pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.78) 0 10%, transparent 11%),
    linear-gradient(145deg, #ff4d4d 0%, #df1f2d 50%, #9e101d 100%);
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(125, 16, 25, 0.72),
    0 2px 4px rgba(255, 255, 255, 0.24) inset,
    -2px -2px 5px rgba(120, 10, 18, 0.28) inset,
    0 2px 5px rgba(35, 8, 10, 0.22);
  transform: rotate(-45deg);
  transform-origin: center;
}

.faculdade-pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #fff2f2 100%);
  border: 1.5px solid rgba(158, 16, 29, 0.62);
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow:
    0 1px 2px rgba(80, 10, 10, 0.16) inset,
    0 1px 2px rgba(255, 255, 255, 0.42);
}



.state-faculdade-indicator-marker {
  background: transparent;
  border: 0;
  pointer-events: none;
}

.state-faculdade-indicator {
  display: block;
  position: relative;
  width: 12px;
  height: 16px;
}

.state-faculdade-indicator::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72) 0 10%, transparent 11%),
    linear-gradient(145deg, #ff4d4d 0%, #df1f2d 55%, #9e101d 100%);
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(55, 16, 16, 0.2);
  transform: rotate(-45deg);
}

.state-faculdade-indicator::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(158, 16, 29, 0.35);
}

/* --- REGION SIGLA LABELS (hover-only at regions level) --- */
.region-sigla-marker {
  background: transparent;
  border: 0;
  pointer-events: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.region-sigla-label {
  font-family: 'Domine', serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  /* Animação de entrada sincronizada */
  animation: siglaPopIn 0.8s ease forwards;
  animation-delay: 0.4s;
  will-change: opacity, transform;
}



.state-detail-label {
  font-family: 'Domine', serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: -1;

  /* Animação de entrada sincronizada */
  animation: siglaPopIn 0.8s ease forwards;
  animation-delay: 0.5s;
  will-change: opacity, transform;
}

@keyframes siglaPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }

  100% {
    opacity: 0.95;
    transform: scale(1);
  }
}

/* Bloco duplicado removido para evitar conflitos de pointer-events */

.faculdade-marker-small {
  cursor: default;
}

.faculdade-marker-fixed .faculdade-pin {
  /* Removemos a animacao pinFloating, mantendo apenas o pinPopIn (entrada) */
  animation: pinPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
  animation-delay: var(--pin-stagger, 0s);
}

.faculdade-marker-small .faculdade-pin {
  width: 12px;
  height: 16px;
  pointer-events: none;
  /* Pins do país são apenas visuais — eventos passam para a região abaixo */
  /* Ativa o pop-in mas mantém estático depois (sem flutuar) */
  animation: pinPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
  animation-delay: var(--pin-stagger, 0s);
}

.faculdade-marker-small .faculdade-pin::before {
  width: 12px;
  height: 12px;
  top: 0;
  left: 0;
  border-width: 1.5px;
}

.faculdade-marker-small .faculdade-pin::after {
  top: 3.5px;
  left: 3.5px;
  width: 5px;
  height: 5px;
  border-width: 1px;
}

/* VERSAO GRANDE (Para visao de Estado) */
.faculdade-marker-large .faculdade-pin {
  width: 28px;
  height: 38px;
}

.faculdade-marker-large .faculdade-pin::before {
  width: 28px;
  height: 28px;
  top: 0;
  left: 0;
  border-width: 3px;
}

.faculdade-marker-large .faculdade-pin::after {
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-width: 2px;
}



.leaflet-tooltip.faculdade-preview-tooltip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  border: 1px solid rgba(23, 92, 128, 0.18);
  border-radius: 14px;
  box-shadow:
    0 18px 38px rgba(8, 32, 54, 0.22),
    0 2px 8px rgba(57, 211, 203, 0.12);
  padding: 10px;
  pointer-events: auto !important;
  cursor: default;
  z-index: 9999 !important;
  backdrop-filter: blur(8px);
  animation: previewFadeIn 0.14s ease-out both;
}

.leaflet-popup.faculdade-preview-popup .leaflet-popup-content-wrapper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  border: 1px solid rgba(23, 92, 128, 0.18);
  border-radius: 14px;
  box-shadow:
    0 18px 38px rgba(8, 32, 54, 0.22),
    0 2px 8px rgba(57, 211, 203, 0.12);
  padding: 10px;
  pointer-events: auto !important;
  cursor: default;
  z-index: 9999 !important;
  /* NO floating here: evita que o balao descole da 'setinha' (tip) no mobile */
}

.leaflet-popup.faculdade-preview-popup .leaflet-popup-content {
  margin: 0;
  padding: 0;
  width: auto !important;
}

.leaflet-popup.faculdade-preview-popup .leaflet-popup-tip {
  background: #f8fcff;
  border-left: 1px solid rgba(23, 92, 128, 0.18);
  border-bottom: 1px solid rgba(23, 92, 128, 0.18);
  box-shadow: none;
}

.leaflet-popup.faculdade-preview-popup .leaflet-popup-close-button,
.faculdade-preview-popup .leaflet-popup-close-button,
.faculdade-preview-popup a.leaflet-popup-close-button {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


.preview-faculdade-name {
  margin: 0 auto 7px;
  padding: 5px 9px;
  background: rgba(239, 248, 255, 0.86);
  border: 1px solid rgba(22, 59, 94, 0.1);
  border-radius: 8px;
  color: #17334c;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  /* Permite quebras em nomes muito longos no mobile */
  max-width: 280px;
  word-wrap: break-word;
}

.preview-ufmg-highlight {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.preview-city-name {
  color: #5f7589;
  font-weight: 500;
  margin-left: 2px;
}

.preview-brand-badge {
  margin: 0 auto 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 211, 203, 0.16) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(42, 176, 169, 0.34);
  color: #1a9f98;
  font-family: 'Domine', serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  white-space: nowrap;
  width: fit-content;
}

.preview-students {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
}

.preview-students-animated {
  /* Animacao padrao para conteudo REAL, aplicada apenas via JS na primeira vez */
  animation: previewExplosion 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.05s forwards;
}

.preview-students.preview-is-loading {
  /* No placeholder, mantemos estatico para evitar o 'piscar' duplo ao carregar fotos reais */
  animation: none;
  opacity: 1;
  transform: scale(1);
}

.preview-student-image {
  width: var(--preview-photo-size);
  height: var(--preview-photo-size);
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(8, 32, 54, 0.18),
    0 0 0 1px rgba(22, 59, 94, 0.08);
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.preview-student-image:hover {
  transform: translateY(-3px) scale(1.06);
  filter: saturate(1.05) contrast(1.03);
  box-shadow:
    0 14px 24px rgba(8, 32, 54, 0.24),
    0 0 0 2px rgba(57, 211, 203, 0.24);
  z-index: 10;
  position: relative;
}



.preview-student-placeholder {
  background: linear-gradient(145deg, #f8fbff 0%, #e7f0f8 100%);
}

.preview-student-deferred {
  display: inline-block;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%),
    linear-gradient(145deg, #e8eef4 0%, #dce6f0 100%);
  border: 1px dashed rgba(22, 59, 94, 0.18);
}

.students-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(8, 24, 38, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(5px);
}

.students-modal-overlay.is-open {
  display: flex;
}

.students-modal-card {
  width: min(540px, 100%);
  max-height: min(85vh, 800px);
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 22px 22px 18px;
  position: relative;
  box-shadow:
    0 26px 70px rgba(4, 20, 34, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  border: 1px solid rgba(23, 92, 128, 0.14);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}


.students-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef5fa;
  color: #17334c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 32, 54, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.students-modal-close:hover {
  transform: scale(1.06);
  background: #e4f7f6;
  color: #0f817c;
}

.students-modal-title {
  margin: 0 0 14px;
  color: #163b5e;
  text-align: center;
  width: 100%;
}

.modal-header-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 2px 34px 18px;
  border-bottom: 1px solid rgba(22, 59, 94, 0.1);
  margin-bottom: 14px;
}

.faculty-badge {
  background: linear-gradient(135deg, #1eaaa2 0%, #39d3cb 100%);
  color: #ffffff;
  padding: 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 8px 18px rgba(57, 211, 203, 0.24);
}

.modal-title-main {
  font-size: var(--modal-title-size);
  font-weight: 700;
  color: #142f47;
  line-height: 1.12;
  letter-spacing: 0;
}

.modal-title-footer {
  font-size: 14px;
  color: #486579;
  font-weight: 500;
  line-height: 1.35;
}

.students-modal-title-brand {
  font-weight: 800;
  color: #1a9f98;
  display: inline-block;
}


.students-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(min(85vh, 800px) - 100px);
  overflow-y: auto;
  padding: 4px 8px 4px 2px;
  scrollbar-color: rgba(26, 159, 152, 0.42) transparent;
  scrollbar-width: thin;
}


.students-modal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 70, 110, 0.11);
  border-radius: 14px;
  padding: 10px 12px 10px 10px;
  box-shadow: 0 4px 14px rgba(8, 32, 54, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.students-modal-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 59, 94, 0.12);
  border-color: rgba(26, 159, 152, 0.28);
}

.students-modal-row-loading:hover {
  transform: none;
}


.students-modal-photo {
  width: var(--student-photo-size);
  height: var(--student-photo-size);
  object-fit: cover;
  border: 2px solid #ffffff;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(8, 32, 54, 0.14),
    0 0 0 1px rgba(22, 59, 94, 0.08);
}



.students-modal-photo-placeholder {
  background: linear-gradient(145deg, #f8fbff 0%, #e7f0f8 100%);
  border-color: rgba(49, 90, 128, 0.22);
}

.students-modal-name {
  font-size: 16px;
  font-weight: 700;
  color: #17334c;
  word-break: break-word;
  line-height: 1.3;
}

.students-modal-name-loading {
  display: block;
  width: min(220px, 50%);
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    linear-gradient(145deg, #e8eef4 0%, #dce6f0 100%);
}




@keyframes previewExplosion {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }

  60% {
    opacity: 1;
    transform: scale(1.04);
  }

  80% {
    transform: scale(0.99);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   MOBILE OVERRIDES (Pins menores para maior densidade)
   ========================================================================== */
@media (max-width: 768px) {
  .leaflet-interactive {
    transition: none !important;
    filter: none !important;
  }

  .leaflet-interactive:hover:not(.faculdade-marker):not(.leaflet-tooltip):not(.leaflet-popup),
  .region-group-hover {
    filter: none !important;
    transform: none !important;
  }

  .region-pop-highlight {
    animation: none !important;
  }

  .faculdade-pin,
  .faculdade-marker-fixed .faculdade-pin,
  .faculdade-marker-small .faculdade-pin {
    animation: none !important;
    animation-delay: 0s;
    filter: drop-shadow(0 3px 4px rgba(55, 16, 16, 0.18));
    transition: none;
  }

  .faculdade-pin::before {
    box-shadow:
      0 0 0 1px rgba(125, 16, 25, 0.5),
      0 1px 3px rgba(35, 8, 10, 0.16);
  }

  .faculdade-pin::after {
    box-shadow: none;
  }

  .leaflet-popup.faculdade-preview-popup .leaflet-popup-content-wrapper {
    box-shadow: 0 10px 22px rgba(8, 32, 54, 0.18);
  }

  .preview-students-animated {
    animation: none;
  }

  .preview-student-image {
    box-shadow: 0 4px 10px rgba(8, 32, 54, 0.14);
    transition: none;
  }

  .students-modal-overlay {
    backdrop-filter: none;
  }

  .students-modal-row,
  .students-modal-photo {
    box-shadow: none;
  }

  .faculdade-marker-large .faculdade-pin::after {}
}
