/* ========================================================== */
/* 1. ESTILOS GERAIS E DA NAVBAR */
/* ========================================================== */

/* Estilo para títulos de gráficos/cards*/

#title2_1, #title2_2, #title2_3, #title3_1, #title3_2, #title3_3, #title4_1, #title4_2, #title4_3,
#title_p3_1_1, #title_p3_1_2, #title_p3_1_3, #title_p3_1_4, #title_p3_1_5, #title_p3_1_6{
  font-size: 15px;
  font-weight: 600;
}
/* Título principal da Navbar (SEI Território) */
.navbar-brand {
  font-size: 25px !important;  /* Aumenta o tamanho da fonte do título */
  font-weight: bold;
}

/* Ajuste de fonte para o título da navbar em telas menores que 768px (padrão Bootstrap para tablets) */
@media (max-width : 768px) {
  .navbar-brand{
    font-size: 20px !important;
  }
}

/* Esconder texto das abas (Educação, Saúde, etc.) em telas pequenas */
.custom-visibility {
  display: block; /* Exibe o título por padrão */
}
      
/* Esconde o título em telas menores que 1000px */
@media (max-width: 1000px) {
  .custom-visibility {
    display: none;
    width: 25%;
  }
}

/* Filtro para ícones de mapa Leaflet (para ajustar a cor do marcador) */
img.leaflet-marker-icon {
  filter: hue-rotate(155deg) saturate(1.6) contrast(120%)  brightness(95%);
}

/* ===========================================================*/
/* 2. LOGOTIPO (#logo-SEI-BA) - Posicionamento e Responsividade */
/* =========================================================== */

#logo-SEI-BA {
  position: absolute; 
  top: 5px;
  right: 1%;
  height: 45px;
}

/* Ajustes de responsividade para o logotipo em diferentes tamanhos de tela */
@media (max-width: 992px) {
  #logo-SEI-BA {
    right: 80px;
    top: 7px;
  }
}
      
@media (max-width: 700px) {
  #logo-SEI-BA {
    height: 35px;
    top: 9px;
  }
}
      
@media (max-width: 600px) {
  #logo-SEI-BA {
    height: 25px;
    right: 75px;
    top: 15px;
  }
}
      
@media (max-width: 500px) {
  #logo-SEI-BA {
    height: 20px;
    right: 75px;
    top: 19px;
  }
}
      
@media (max-width: 440px) {
  #logo-SEI-BA {
    height: 15px;
    right: 75px;
    top: 22px;
  }
}
      
@media (max-width: 400px) {
  #logo-SEI-BA {
    height: 12px;
    right: 75px;
    top: 23px;
  }
}

/* ========================================================== */
/* 3. SEÇÃO 'HOME' (Capa e Mapa) */
/* ========================================================== */

/* Estilos de corpo e fundo para a página inicial */
.body1 {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
} 

/* Remove padding e margem para que o conteúdo ocupe toda a área da aba "Home" */
.tab-pane[data-value='Home'] {
  padding: 0 !important;
  margin: 0 !important;
}

/* Fundo branco para containers Leaflet (Mapas) */
/* Garante que o Leaflet preencha a altura total de seu contêiner flexível */
.leaflet-container { 
  background: white; 
}

/* --- 3.1 Imagem de Capa e Texto Sobreposto --- */

.imagem-com-texto {
  position: relative;
  width: 100%;
  height: calc(100vh - 50px); 
  overflow: hidden;
}

.imagem-com-texto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

.texto-sobre-imagem {
  padding: 0px;
  margin: 0px;
  position: absolute;
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
}

.texto-sobre-imagem h1 {
  font-size: 48px;
  color: #0b2020;
  font-weight: 530;
  margin-bottom: 20px;
}

.texto-sobre-imagem p {
  font-size: 27px;
  padding-bottom: 2.5rem;
  max-width: 100%;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 2px 2px 4px black;
}

.fonte-imagem {
    position: absolute;
    bottom: 15px;   /* distância da borda inferior */
    right: 20px;    /* distância da borda direita */
    font-size: 12px;
    color: white;
    padding: 5px 10px;
}


/* --- 3.2 Mapa e Seção de Destaque (Informações) --- */

.mapa-com-info {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
}

.highlight-section {
  background-color: white;
  color: #115d5d;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  padding-left: 3vw;
  padding-right: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribui as informações uniformemente */
  height: 800px;  /* Aumenta a altura */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.highlight-section h1 {
  font-size: 3.3em;
  margin-bottom: 2rem;
  color: #115d5d;
  font-weight: bold;
  text-align: left;
}

.highlight-section .info-block {
  margin-bottom: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
}

.info-number {
  font-size: 2.3em;
  font-weight: bold;
  color: #115d5d;
}

.info-label {
  display: flex;
  font-size: 1.3em;
  color: #115d5d;
}

.mapa-coluna {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 80vh;
}

.mapa-titulo {
  background-color: white;
  padding: 1.5rem 2rem 1rem;
}

.mapa-titulo p {
  font-size:  clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #022538;
}

.mapa-titulo h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: 7px;
  color: #115d5d;
}

.iframe-mapa {
  flex-grow: 1;
  height: 100%;
  width: 100%;
  border: none;
}

/* ========================================================== */
/* 4. RESPONSIVIDADE ADICIONAL (Telas Pequenas, <= 700px) */
/* ========================================================== */

@media (max-width : 768px) {
  .munic-ti {
    padding-right: 0px !important;
  }
  .name-mun {
    padding-right: 20px !important;
  }
}

@media (max-width: 700px) {
  .texto-sobre-imagem {
    padding-top: 100px;
  }
  .texto-sobre-imagem h1 {
    font-size: 40px;
  }
  .texto-sobre-imagem p {
    font-size: 20px;
  }
   .highlight-section {
    width: 100%;
    height: auto;
    padding: 2.5rem;
    text-align: center;
    align-items: center; /* Centraliza horizontalmente os blocos */
    justify-content: center; /* Centraliza verticalmente os blocos */
  }
  .highlight-section .info-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .info-label {
    text-align: center; /* Alinha o texto no centro */
    font-size: 1.3em;
    color: #115d5d;
  }
  .mapa-com-info {
    flex-direction: column;
  }
  .highlight-section {
    width: 100%;
  }
  .iframe-mapa {
    height: 500px;
  }
  .mapa-titulo {
    text-align: center;
  }
}
      
/* ========================================================== */
/* 5. BOTÃO COBERTURA VACINAL
/* ========================================================== */
.btn-button_imuni {
  background-color: #115d5d !important;  /* cor personalizada */
  color: white !important;
  border: none !important;
  border-radius: 8px;
  padding: 6px 12px;
}

.btn-button_imuni:hover {
  background-color: #115d5d !important;
}

.btn-button_imuni .glyphicon-triangle-bottom {
  display: none !important;
}

#controls {
  /* Appearance */
  background-color: transparent;
  /*opacity: 0.65;
  zoom: 0.9;
  transition: opacity 500ms 1s;*/
}
#controls:hover {
  /* Fade in while hovering */
  opacity: 0.95;
  transition-delay: 0;
}

.container-fluid.html-fill-item.html-fill-container {
  border-top-width: 0px;
}
.sw-dropdown-in .form-group.shiny-input-container {
  margin-bottom: 0px !important;
}





.dropdown-menu.show {
  background-color: #f2f2f2 !important;
}

.dropdown-menu.show a:hover {
  background-color: #f2f2f2 !important;
}
