/* mapa_geral.css */

:root {
  --primary-color: #00387a;
  --bg-light: #f4f7f6;
}

body { 
  background-color: var(--bg-light); 
  font-family: 'Poppins', sans-serif; 
  color: #333;
}

.header-map {
  margin: 25px 0;
  text-align: center;
}

/* Container de suporte */
.map-container-80 { 
  width: 95%; 
  max-width: 1400px;
  margin: 0 auto 40px auto; 
}

/* Estilo das etiquetas dos consórcios no mapa */
.consorcio-label {
  background: transparent; 
  border: none; 
  box-shadow: none;
  color: #000; 
  font-weight: 700; 
  font-size: 10px;
  text-shadow: 1px 1px 3px white, -1px -1px 3px white; 
  text-align: center; 
  pointer-events: none;
  text-transform: uppercase;
}

/* Overlay de carregamento e status */
.loading-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(255,255,255,0.9); 
  z-index: 9999;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
}

.spinner-border { 
  color: var(--primary-color); 
  width: 3rem; 
  height: 3rem; 
}

#status-text {
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

.card { 
  border: none; 
  border-radius: 15px; 
}

/* =========================================
   AJUSTE DE ALTURA E LARGURA DO MAPA (NOVO)
========================================= */

.mapa-fullwidth {
    width: 100%;
    height: 400px; /* Altura fixa no Desktop */
    background: #fff;
    z-index: 1;
}

/* No celular: Altura um pouco menor para facilitar o manuseio */
@media (max-width: 768px) {
    .mapa-fullwidth {
        height: 350px;
    }
}

/* =========================================
   BOTÃO DE TELA CHEIA (GERAL E HOVER)
========================================= */

.btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000; /* Fica por cima do mapa */
    background: white;
    border: 1px solid #ccc;
    color: var(--primary-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Efeito Hover exclusivo para Desktop */
@media (min-width: 992px) {
    .btn-fullscreen:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

.btn-fullscreen:active {
    transform: scale(0.95);
    background: var(--primary-color);
    color: white;
}

/* =========================================
   COMPORTAMENTO DE TELA CHEIA NATIVA
========================================= */

/* Quando o mapa entra em tela cheia, força ocupar a tela toda */
:fullscreen .mapa-fullwidth { height: 100vh !important; width: 100vw !important; }
:-webkit-full-screen .mapa-fullwidth { height: 100vh !important; width: 100vw !important; }
:-moz-full-screen .mapa-fullwidth { height: 100vh !important; width: 100vw !important; }
:-ms-fullscreen .mapa-fullwidth { height: 100vh !important; width: 100vw !important; }

/* =========================================
   ESTILO DO BOTÃO QUANDO ESTIVER EM TELA CHEIA
========================================= */

.btn-fullscreen.btn-exit-fullscreen {
    background-color: #ef4444; /* Vermelho de alerta */
    color: white;
    border-color: #ef4444;
}

@media (min-width: 992px) {
    .btn-fullscreen.btn-exit-fullscreen:hover {
        background-color: #dc2626; /* Vermelho mais escuro no hover */
        border-color: #dc2626;
        color: white;
    }
}