/*Deplan*/
/*
:root {
  --main-bgcolor: linear-gradient(rgb(100, 100, 100),rgb(80, 80, 80),rgb(80, 80, 80),rgb(100, 100, 100));
  --main-color: rgb(170, 170, 170);
  --main-color-hover: rgb(100, 100, 100);
 
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(100, 100, 100, 0.8),rgb(80, 80, 80),rgb(80, 80, 80),rgba(100, 100, 100, 0.8));
  --ger-cam-item: rgb(150, 150, 150);
}
  */
/*Daedalus*/
/* :root {
  --main-bgcolor: linear-gradient(rgb(165, 70, 51),rgb(151, 40, 18),rgb(151, 40, 18),rgb(165, 70, 51));
  --main-color: rgb(232, 187, 103);
  --main-color-hover: rgb(149, 50, 31);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(148, 86, 41,0.8),rgb(148, 86, 41),rgb(148, 86, 41),rgba(148, 86, 41,0.8));
  --ger-cam-item: rgb(232, 187, 103);
} */
/*Azul*/
/*
:root {
  --main-bgcolor: linear-gradient(rgb(64, 66, 206),rgb(48, 50, 155),rgb(48, 50, 155),rgb(64, 66, 206));
  --main-color: rgb(129, 130, 216);
  --main-color-hover: rgb(64, 66, 206);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(64, 66, 206,0.8),rgb(64, 66, 206),rgb(64, 66, 206),rgba(64, 66, 206,0.8));
  --ger-cam-item: rgb(129, 130, 216);
}
*/
/*Vermelho*/
/*
:root {
  --main-bgcolor: linear-gradient(rgb(116, 36, 30),rgb(97, 12, 6),rgb(97, 12, 6),rgb(116, 36, 30));
  --main-color: rgb(155, 64, 58);
  --main-color-hover: rgb(97, 12, 6);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(136, 10, 1,0.8),rgb(136, 10, 1),rgb(136, 10, 1),rgba(136, 10, 1,0.8));
  --ger-cam-item: rgb(228, 90, 80);
}
*/
/*Verde*/

/* :root {
  --main-bgcolor: linear-gradient(rgb(42, 104, 77),rgb(0, 47, 27),rgb(0, 47, 27),rgb(42, 104, 77));
  --main-color: rgb(83, 136, 113);
  --main-color-hover: rgb(42, 104, 77);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(7, 71, 44,0.8),rgb(7, 71, 44),rgb(7, 71, 44),rgba(7, 71, 44,0.8));
  --ger-cam-item: rgb(148, 172, 162);
} */
/*blackMapa*/
:root {
  --main-bgcolor: linear-gradient(rgb(47, 58, 73),rgb(23,30,39),rgb(23,30,39),rgb(47,58,73));
  --main-color: rgb(33, 43, 53);
  --main-color-hover: rgb(23, 30, 39);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(76,154,231,0.8),rgb(76,154,231),rgb(76,154,231),rgba(76,154,231,0.8));
  --ger-cam-item: rgba(4,15,27,0.8);
}
/*Lilas*/
/* :root {
  --main-bgcolor: linear-gradient(rgb(98, 37, 105),rgb(81, 29, 87),rgb(81, 29, 87),rgb(98, 37, 105));
  --main-color: rgb(184, 169, 201);
  --main-color-hover: rgb(98, 37, 105);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(98, 37, 105,0.8),rgb(98, 37, 105),rgb(98, 37, 105),rgba(98, 37, 105,0.8));
  --ger-cam-item: rgb(184, 169, 201);
} */
/*Azul Very Peri*/
/* 
:root {
  --main-bgcolor: linear-gradient(rgb(78, 59, 129),rgb(30, 25, 77),rgb(30, 25, 77),rgb(78, 59, 129));
  --main-color: rgb(160, 163, 213);
  --main-color-hover: rgb(30, 25, 77);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(137, 119, 174,0.8),rgb(78, 59, 129),rgb(78, 59, 129),rgba(137, 119, 174,0.8));
  --ger-cam-item: rgb(160, 163, 213);
} */

/*Vinho*/

/* :root {
  --main-bgcolor: linear-gradient(rgb(116,31,59),rgb(83,19,39),rgb(83,19,39),rgb(116,31,59));
  --main-color: rgb(186, 50, 98);
  --main-color-hover: rgb(81, 37, 47);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(116,31,59,0.8),rgb(116,31,59),rgb(116,31,59),rgba(116,31,59,0.8));
  --ger-cam-item: rgb(186, 50, 98);
} */

/*Marron*/

/* :root {
  --main-bgcolor: linear-gradient(rgb(79, 50, 34),rgb(65, 35, 16),rgb(65, 35, 16),rgb(79, 50, 34));
  --main-color: rgb(212, 172, 110);
  --main-color-hover: rgb(79, 50, 34);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(79, 50, 34,0.8),rgb(79, 50, 34),rgb(79, 50, 34),rgba(79, 50, 34,0.8));
  --ger-cam-item: rgb(212, 172, 110);
} */

/*Black*/
/*
:root {
  --main-bgcolor: linear-gradient(rgb(46, 46, 46),rgb(0, 0, 0),rgb(0, 0, 0),rgb(46, 46, 46));
  --main-color: rgb(68, 68, 80);
  --main-color-hover: rgb(13, 12, 19);
  --main-color-disabled: rgb(190, 203, 243);
  --main-color-turnoff: rgb(253, 184, 165);
  --ger-cam: linear-gradient(rgba(75, 75, 75,0.8),rgb(36, 36, 36),rgb(36, 36, 36),rgba(75, 75, 75, 0.8));
  --ger-cam-item: rgb(90, 90, 94);
}
*/
/*----------------------------------------------------------------------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 0px;
}

/* revisao sebafr - 20221031 - Criacao de classe generica (pode-se utilizar essa classe em outras situacoes) para removendo icone de zoombox da tela do mapa, usando apenas a opção na toolbar do projeto */

.leaflet_classe_off {
  /* controle devera ser desligado */
  display: none;
}

.leaflet-control-layers {
  /* controle de layer desligado */
  display: none;
  /* controle de layer ligado */
  /* display: block; */
  overflow: auto;
}

.leaflet-popup-content {
  margin: 0px 0px;
  width: fit-content;
}

.leaflet-popup-tip-container {
  display: none;
}

.leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.leaflet-container a.leaflet-popup-close-button {
  padding: 5px 5px 0 0;
  color: rgb(153, 153, 153);
  user-select: none;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: rgb(0, 0, 0);
}

body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.flexbox-container {
  display: flex;
  background-color: rgb(255, 255, 255);
  padding: 0;
  flex-direction: column;
  height: 100vh;
}
/*----------------------------------------------topbar---------------------------------------------*/

    :root { --bg: #685b92; --text: #ffffff; --text-dim: rgba(255,255,255,.85); --sep: rgba(255,255,255,.5); }
    /* Reset básico */
    * { box-sizing: border-box; }
    body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; color: var(--text); }
    a { color: var(--text); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* Topbar */
    .topbar {
      background: var(--bg);
      color: var(--text);
      font-size: 14px;           /* ≈ text-sm */
      width: 100%;
      padding: 10px 16px;         /* py-2 px-4 */
      z-index: 6;
    }
    .topbar__container {
      max-width: 1120px;         /* ≈ max-w-7xl */
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    /* Bloco esquerdo (links institucionais) */
    .links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
    }
    .links .pipe {
      display: none;             /* hidden em telas pequenas */
      color: var(--sep);
    }
    @media (min-width: 640px) {  /* sm: */
      .links .pipe { display: inline; }
    }
    .links .strong { font-weight: 700; white-space: nowrap; }

    /* Bloco direito (redes + Diário Oficial + fonte) */
    .right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: nowrap;
    }
    .divider {
      display: none;
      border-left: 1px solid var(--sep);
      height: 16px;
      margin: 0 8px;
    }
    @media (min-width: 640px) {
      .divider { display: inline-block; }
    }

    /* Ícones sociais */
    .icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 4px;
      color: var(--text);
    }
    .icon:hover { filter: brightness(1.1); text-decoration: none; }

    /* Controles de fonte (A-/A/A+) */
    .font-controls {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: 4px;
    }
    .font-btn {
      background: transparent;
      border: 1px solid var(--sep);
      color: var(--text-dim);
      border-radius: 6px;
      padding: 2px 6px;
      line-height: 1;
      cursor: pointer;
      font-weight: 600;
      transition: background .2s ease, color .2s ease, border-color .2s ease;
    }
    .font-btn:hover {
      background: rgba(255,255,255,.08);
      color: var(--text);
      border-color: rgba(255,255,255,.8);
    }

    /* Acessibilidade visual nos focos */
    a:focus, button:focus {
      outline: 2px solid #60a5fa; /* azul */
      outline-offset: 2px;
    }

    /* Tratamento de quebra de linha para muitos links */
    @media (max-width: 480px) {
      .topbar__container { gap: 6px; }
      .links { gap: 10px; }
    }

/*------------------------------mapa LeafLet----------------------------------------------*/
#map {
  display: flex;
  height: 100%;
  z-index: 0;
}

/*--------------------------Sidebar gerenciador de Camadas--------------------------------*/
.sidebargercam {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 94px;
  left: -300px;
  width: 300px;
  height: 96%;
}

.btgercam {
  display: flex;
  position: absolute;
  justify-content: center;
  top: -45px;
  left: 310px;
  height: 40px;
  width: 40px;
  align-items: center;
  background: var(--bg);
  border-radius: 100px;
  cursor: pointer;
  border: transparent;
  z-index: 30;
}

.opengercam {
  padding-bottom: 50px;
  background: rgb(255, 255, 255);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  /* border-radius: 0 0 5px; */
  transition: all 0.8s ease-in-out;
  white-space: nowrap;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 4;
}

.setagercam {
  /* Defina o tamanho da imagem  */
  width: 20px;
  height: auto;
  color: rgb(0, 0, 0);
  font-size: 20px;

  /* Centralização */
  display: block;
  margin: 0 auto;

  /* Animação  */
  transition: all 0.6s ease-in-out;
  z-index: 25;
  user-select: none;
  
  /* TRUQUE PARA COR: */

  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.gerenciadorcamadas {
  position: fixed;
  top: 33px; /* ajusta conforme a altura da topbar */
  left: -300px;
  right: 0;
  width: 300px;
  z-index: 55;
  background-color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  height: 62px;
  padding: 10px;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Obs: adicione no conteúdo principal padding-top: calc(38px + 58px)
     para evitar que fique oculto atrás desta faixa fixa. */
}
.gerenciadorcamadas img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.logos_tela {
  display: flex;
  position: absolute;
  background: rgb(255, 255, 255);
  height: 50px;
  bottom: 25px;
}
.logos_tela .logosehabtela {
  position: relative;
  height: 30px;
  padding: 10px;
  user-select: none;
}
.logos_tela .logosehabtela img {
  width: 100px;
  padding: 0 8px 0 0;
  z-index: 0;
}
.logosehab img {
  display: inline-block;
  margin-right: 35px;
  width: 120px;
  z-index: 0;
}
.camadas {
  height: 30px;
  width: 100%;
  font-size: 15px;
  padding: 5px 0 0 10px;
  background: var(--bg);
  color: rgb(201, 201, 201);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
  user-select: none;
}
.camadas:hover {
  color: white;
  font-weight: bold;
}

.mp-base {
  display: grid;
  grid-template-columns: auto auto;
  padding: 10px;
  user-select: none;
}

.mp-base .imabase {
  position: relative;
  margin: 5px;
  width: 100px;
  border: 2px solid rgb(233, 233, 233);
  border-radius: 5px;
}

.mp-base .imabase:hover {
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.bt_toggle {
  display: none;
  position: absolute;
  background-color: transparent;
  color: transparent;
  width: 100px;
  height: 0px;
  margin: 0px;
  cursor: pointer;
  transition: .8s;
  white-space: nowrap;
  z-index: 7;
}

.bt_toggle:checked~a {
  color: var(--main-color);
}

#cbLayer {
  width: 12px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  float: right;
  margin-right: 20px;
  opacity: 0.1;
  z-index: 8;
}

#cbLayer:hover {
  opacity: 1;
  color: var(--main-color-hover);
  width: 14px;
  transition: all 0.5s;
}

.camadavtr:hover~#cbLayer {
  display: block;
  opacity: 0.5;
  transition: all 0.5s;
}

.gpcamadas {
  padding: 0px 0 0 10px;
  color: var(--main-color-hover);
  user-select: none;
}

.camadavtr {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  margin: 5px 25px;
}

.camadavtr:hover {
  text-decoration: none;
  color: rgba(0, 0, 0, 1);
}

.gpbutton {
  position: relative;
  left: 24px;
  top: 20px;
  border: none;
  background-color: transparent;
  color: var(--main-color-hover);
  padding: 0;
  z-index: 20;
}
.gpTexto {
  display: inline;
  padding-left: 10px;
}
/*----------------------------------Modal Draggable das legendas temáticas----------------------------*/
.modalDragg {
  display: none;
  flex-direction: column;
  position: absolute;
  padding-bottom: 10px;
  background-color: rgb(255, 255, 255);
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  user-select: none;
  z-index: 9;
}

#legendaPadraoheader {
  display: flex;
  position: relative;
  padding: 0 25px 0 25px;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  height: 38px;
  background: var(--bg);
  font-size: 12px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  cursor: pointer;
  z-index: 10;
}

#modalBotaoClose {
  display: flex;
  position: absolute;
  flex-direction: column;
  padding: 5px 5px 0 0;
  right: 0;
  background-color: transparent;
  border: none;
  font: 16px/14px Tahoma, Verdana, sans-serif;
  font-weight: bold;
  color: rgb(153, 153, 153);
  cursor: pointer;
  z-index: 11;
}

#modalBotaoClose:hover {
  color: rgb(255, 255, 255);
}

#imgPadrao {
  margin: 10px 15px 0px 10px;
}
/*-------------------------------Árvore de Camadas com ferramentas------------------------------------*/
/*
 Only custom marker for summary/details
 For cross browser compatible styling hide Firefox's marker by setting summary { display: block }
 and Chrome and Safari's marker by setting ::-webkit-details-marker {display: none;}
*/
summary {
  cursor: pointer;
  outline: 0;
  transition-duration: all 0.6s ease-in-out;
}

summary::-webkit-details-marker {
  display: none;
}

.tree-nav__item {
  display: block;
  white-space: nowrap;
  color: var(--ger-cam-item);
  position: relative;
  user-select: none;
}

.tree-nav__item.is-expandable::before {
  border-left: 1px solid #333;
  content: "";
  height: 100%;
  left: 0.8rem;
  position: absolute;
  top: 1.6rem;
  height: calc(100% - 2.0rem);
}

.tree-nav__item .tree-nav__item {
  margin-left: 2.4rem;
}

.tree-nav__item.is-expandable[open]>.tree-nav__item-title::before {
  font-family: "ionicons";
  transform: rotate(90deg);
}

.tree-nav__item.is-expandable>.tree-nav__item-title {
  padding-left: 2.4rem;
  text-wrap: auto;
}

.tree-nav__item.is-expandable>.tree-nav__item-title::before {
  position: absolute;
  will-change: transform;
  transition: transform 300ms ease;
  font-family: "ionicons";
  color: rgb(134, 134, 134);
  font-size: 0.6rem;
  content: "\f125";
  left: 0;
  display: inline-block;
  width: 1.6rem;
  text-align: center;
}

.tree-nav__item-title {
  cursor: pointer;
  display: inline-block;
  outline: 0;
  font-size: 0.8rem;
  line-height: 1.5rem;
  color: var(--bg);
  margin-right: 5px;
}

.tree-nav__item-title:hover {
  color: var(--main-color-hover);
  font-weight: bold;
}

.tree-nav__item-title .icon {
  display: inline;
  padding-left: 1.6rem;
  margin-right: 0.8rem;
  color: var(--main-color-hover);
  font-size: 1.4rem;
  position: relative;
  z-index: 50;
}

.tree-nav__item-title .icon::before {
  top: 0;
  position: absolute;
  left: 0;
  display: inline-block;
  width: 1.6rem;
  text-align: center;
}

.tree-nav__item-title::-webkit-details-marker {
  display: none;
}

.form-control-range {
  display: inline-block;
  width: 30%;
}

.form-control-range_base {
  display: flex;
  position: relative;
  top:-25px;
  left: 30px;
  opacity: 0.4;
  width: 30%;
  cursor: pointer;
  z-index: 50;
}

.fa-lightbulb:hover {
  color: var(--main-color-hover);
  font-weight: bold;
}

.fa-download:hover {
  color: var(--main-color-hover);
  font-weight: bold;
}

.fa-square-t:hover {
  color: var(--main-color-hover);
  font-weight: bold;
}

/*----------------------------------Alteração da posição do controle de Zoom do LeafLet---------------*/
.leaflet-top2 {
  display: flex;
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  right: -20px;
  /* possible because the placeholder's parent is the map */
  transform: translateX(-22px);
  /* using the CSS3 Transform technique */
  padding-top: 10px;
}

.leaflet-top2 .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-top3 {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  right: 44px;
  /* possible because the placeholder's parent is the map */
  transform: translateX(-44px);
  /* using the CSS3 Transform technique */
  padding-top: 10px;
}

.leaflet-top3 .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-bot2 {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  bottom: 18px;
  right: -45px;
  /* possible because the placeholder's parent is the map */
  transform: translateX(-44px);
  /* using the CSS3 Transform technique */
  padding-top: 10px;
}

.leaflet-bot2 .leaflet-control {
  margin-bottom: 35px;
}
/*-----------------------------------Controle de navegação avançar/retroceder zoom e pan----------------------------*/
.history-control {
  display: block;
  position: fixed;
  bottom: 53px;
  right: 35px
}
/*-----------------------------------Barra de Ferramentas - aSide----------------------------*/
.btaside {
  display: flex;
  position: absolute;
  top: 10px;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  background: var(--bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  cursor: pointer;
  border: transparent;
  z-index: 20;
}

.setabarra {
  color: rgb(255, 255, 255);
  text-align: center;
  font-size: 20px;
  width: 2.5em;
  user-select: none;
  transition: transform 0.6s ease;
}

#divaa1 {
  position: absolute;
  right: 10px;
  top: 40px;
  width: 40px;
  height: 40px;
  border-radius: 100px;
}

.aside-button {
  display: none;
  position: absolute;
  top: 10px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.6s ease;
  color: transparent;
  background: transparent;
}
/*----------------------------------Gráfico de Pizza - piechart3d-----------------------*/
#piechart3d {
  display: none;
  flex-direction: column;
  position: absolute;
  z-index: 9;
  border: 1px solid #999999;
  text-align: center;
}

#headerPie {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background: var(--bg);
  font-family: all, sans-serif;
  color: #ffffff;
}

/*-----------------------------------------------------rodapé------------------------------------*/
.rodape {
  display: flex;
  position: absolute;
  bottom: 0px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  width: 100%;
  height: 25px;
  background: var(--bg);
  color: rgb(255, 255, 255);
  user-select: none;
  z-index: 200;
}

#date {
  position: relative;
  left: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: rgb(255, 255, 255);
}

.nivelZoom {
  width: 150px;
}

.textAcao {
  width: 350px;
  text-align: center;
}

.LatLong {
  margin-right: 10px;
  width: 200px;
  text-align: right;
}

#msg_lat_long {
  right: 10px;
}

#btnUTM {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  width: 20px;
  border-radius: 50%;
}

#btnIcon {
  color: rgb(255, 255, 255);
  opacity: 0.5;
  cursor: pointer;
}

.leaflet-control-mouseCoordinate {
  display: block;
  position: fixed;
  right: 110px;
  bottom: 54px;
  width:250px;
  min-height:30px;
  text-align:left;
  opacity: 0.7;
  border-radius:5px;
  box-shadow:0 1px 5px rgba(0,0,0,.4);
  background:none repeat scroll 0 0 #fff;
  color:#333;
  padding:6px 10px 6px 6px;
}
.leaflet-control-mouseCoordinate table {
  width:100%
}
.coords {
  width:90px
}
/*------------------------------pesquisa de endereços do Google----------------------------------*/
.pesqgoogle {
  display: flex;
  position: absolute;
  justify-content: end;
  top: 37px;
  right: 110px;
  width: 450px;
  height: 0px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 0 0 10px 0;
  user-select: none;
  white-space: nowrap;
  z-index: 4;
}

.btpesqgoogle {
  display: flex;
  flex-flow: column;
  position: relative;
  top: 25px;
  height: 25px;
  width: 100px;
  align-items: center;
  justify-content: center;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background: var(--bg);
  border-radius: 0 0 5px 5px;
  cursor: pointer;
  border: transparent;
  user-select: none;
  z-index: 5;
}

.labpesqgoogle {
  font-size: 12px;
  color: rgb(201, 201, 201);
}

.labpesqgoogle:hover {
  color: rgb(255, 255, 255);
  transition: all 0.3s ease-in-out;
}

.titpesqgoogle {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  top: 10px;
  width: 100%;
  height: 40px;
  background: var(--bg);
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 15px;
  text-align: center;
  padding: 10px 0 10px 0;
  white-space: nowrap;
  user-select: none;
  z-index: 5;
}

.formpesqgoogle {
  padding: 20px 10px 10px 10px;
}

.formsearch {
  font-size: 12px;
  top: 50px;
  left: 10px;
}

.logragoogle {
  border: 1px solid rgb(134, 134, 134);
  width: 240px;
  border-radius: 4px;
  color: rgb(0, 0, 0)
}

.regiaogoogle {
  margin-left: 5px;
  border: 1px solid rgb(134, 134, 134);
  width: 100px;
  border-radius: 4px;
  color: rgb(0, 0, 0)
}

.zoomgoogle {
  margin-left: 5px;
  border: 1px solid rgb(134, 134, 134);
  border-radius: 4px;
  width: 25px;
  text-align: center;
  color: rgb(0, 0, 0)
}

.btnpesqgoogle {
  margin-left: 5px;
  font-size: 14px;
  color: rgb(153, 153, 153);
  background: var(--bg);
  border-radius: 4px;
  border-color: transparent;
}

.btnpesqgoogle:hover {
  background: var(--main-color-hover);
  color: rgb(255, 255, 255);
}

.labellogra {
  font-size: 12px;
  color: rgb(0, 0, 0);
}

.arealogra {
  appearance: none;
  padding: 5px;
  align-items: flex-start;
  font-size: 12px;
  height: 25px;
  width: 402px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

@media (max-width:858px) {
  .slideDown {
    left: 0px;
  }
}

/*----------------------------------pesquisa de geometrias pelo nome, endereço----------------------------------------------------------------------*/
.search-container {
  margin-top: 10px;
  right: 110px;
  z-index: 4;
}
.titpesqhabita {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  top: 0px;
  width: 100%;
  height: 40px;
  background: var(--bg);
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 15px;
  text-align: center;
  padding: 10px 0 10px 0;
  white-space: nowrap;
  user-select: none;
  z-index: 5;
}
#search-input {
  position: relative;
  border: 1px solid rgb(61, 61, 61);
  width: 395px;
  border-radius: 4px;
  color: rgb(0, 0, 0);
}






/*-----------------formulario de atributos edição de geometria-------------------*/
.formEdicao {
  position: relative;
  border-radius: 8px;
  /* width: 190px; */
  height: auto;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

.tituloForm {
  position: relative;
  align-self: center;
  background: var(--bg);
  text-align: center;
  padding: 10px 0 10px 0;
  width: inherit;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  font-size: 12px;
  color: rgb(255, 255, 255);
  user-select: none;
}

.labelidEdicao {
  margin-left: 10px;
  margin-bottom: 10px;
}

.inputidEdicao {
  border: none;
  text-align: center;
  font-size: 10px;
  background: transparent;
  width: 30px;
  margin-right: 20px;
}

.radioEdicao {
  margin-left: 10px;
  margin-right: 5px;
}

.labeldiamEdicao {
  margin-left: 10px;
}

.inputdiamEdicao {
  width: 50px;
  font-size: 10px;
  text-align: center;
  background: rgba(255, 236, 196, 0.6);
  border: transparent;
  border-radius: 4px;
  padding: 2px;
  margin: 5px;
}

.inputmatEdicao {
  width: 90px;
  font-size: 10px;
  text-align: center;
  background: rgba(255, 236, 196, 0.6);
  border: transparent;
  border-radius: 4px;
  padding: 2px;
  margin: 5px;
}

.labelextEdicao {
  margin-left: 10px;
  margin-bottom: 10px;
}

.inputextEdicao {
  width: 80px;
  font-size: 10px;
  text-align: center;
  height: 0px;
}

.labelcatEdicao {
  margin-left: 10px;
  margin-bottom: 10px;
}

.inputcatEdicao {
  width: 184px;
  font-size: 10px;
  text-align: center;
  background: rgba(255, 236, 196, 0.6);
  border: transparent;
  border-radius: 4px;
  padding: 2px;
  margin-left: 5px;
}

.datasEdicao {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.labeldtaEdicao {
  margin-left: 10px;
  font-size: 10px;
}

.inputdtaEdicao {
  width: 180px;
  font-size: 10px;
  text-align: left;
  background: transparent;
  border: transparent;
  border-radius: 4px;
  padding: 2px;
  margin-left: 5px;
}

.butEdicao {
  position: relative;
  text-align: center;
  user-select: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  padding: 8.5px;
}

.botao1,
.botao2 {
  font-size: 9px;
  background: var(--main-color);
  padding: 4px;
  color: rgb(255, 255, 255);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.botao1:hover {
  background: var(--bg);
}

.botao2:hover {
  background: var(--bg);
}

.botao1 {
  margin-right: 45px;
}

/*--------------------------------------Ficha de atributos WMS----------------------------------------------*/
.attribWMS {
  position: relative;
  border-radius: 8px;
  width: 100%;
  height: auto;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

.tituloWMS {
  display: block;
  width: 86%;
  margin: 10px;
  padding: 10px 45px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}

.formWMS {
  position: relative;
  align-items: center;
  margin-top: 5px;
  font-size: 9px;
}

.summwms {
  font-size: 10px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.5);
  margin-left: 5px;
  user-select: none;
}

details[open] .summwms {
  color: var(--main-color-hover);
  transition: 0.8s ease-in-out;
}

/* revisao sebafr - 20230124 - inserindo condicao de desabilitar os details do menu de layer*/
details[disabled] summary,
details.disabled summary {
  /* pointer-events: none; */
  /* user-select: none; */
  /* prevents text selection */
  color: var(--main-color-disabled);
  transition: 0.8s ease-in-out;
}

/* revisao sebafr - 20230126 - inserindo condicao de desabilitar os <a> do menu de layer*/
.disabled-link {
  color: var(--main-color-disabled);
  transition: 0.8s ease-in-out;
  pointer-events: none;
  user-select: none;
}

.turnoff-link {
  color: var(--main-color-turnoff);
  filter:drop-shadow(0px 0px 9px rgb(0, 0, 0));
  transition: 0.8s ease-in-out;
  pointer-events: none;
  user-select: none;
}

hr {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 5px;
  color: rgb(134, 134, 134);
}

.labelwms {
  display: block;
  margin-left: 10px;
  margin-bottom: 0px;
  font-weight: normal;
  user-select: none;  
}

.inputwms {
  margin-left: 10px;
  margin-right: 5px;
  margin-bottom: 5px;
  width: 160px;
  background: rgba(0, 0, 0, 0.1);
  border: transparent;
  border-radius: 4px;
  font-size: 9px;
  font-weight: bold;
  padding: 2px;
}

/*---------------------------------------------botão Mais informações--------------------------------------*/
.botaorede {
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  
  margin-top: 5px;
  border-radius: 0 0 8px 8px;
  padding: 10px 0 10px 0;
  user-select: none;
}

a.btinfo {
  font-size: 9px;
  background: var(--main-color);
  padding: 4px;
  color: rgb(255, 255, 255);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  text-decoration: none;
  cursor: pointer;
}

.btinfo:hover {
  background: var(--bg);
}

.js-measuringprompt {
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  color: rgb(0, 0, 0);
  padding: 5px 0 5px;
  background-color: rgb(255, 255, 255);
}

.js-starthelp {
  text-align: left;
  font-size: 14px;
  font-weight: normal;
}

.js-measuretasks {
  align-items: center;
}

.js-results {
  font-weight: normal;
  font-size: 12px;
}

.js-modalResultMeasure {
  align-items: center;
  padding: 10px;
}

.zcoords {
  display: flex;
  justify-content: space-around;
  top: 35px;
  left: 350px;
  width: 100px;
  text-wrap: nowrap;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.8);
}

/*----------------------------------posição da barra de escala ao lado dos créditos------------------------------------------------------------------*/
.leaflet-control-container .leaflet-bottom.leaflet-right {
  direction: rtl;
}

.leaflet-control-container .leaflet-bottom.leaflet-right > * {
  margin: 0;
  bottom: 30px;
  float: left;
  direction: ltr;
  clear: none;
}

/*----------------------------------posição dos botões de criação/ edição de geometrias------------------------------------------------------------------*/
.leaflet-pm-draw{
  top: 10px;
  right: 50px;
}
.leaflet-pm-edit{
  top: 10px;
  right: 50px;
}
/*----------------------------------formulario search location nas camadas habitação------------------------------------------------------------------*/
/* Estilo para os resultados */
#search-results {
  position: absolute;
  z-index: 1000;
  width: calc(100% - 30px);
  font-size: 12px;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(221, 221, 221);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
}

.resultados-pesquisa {
height: auto;
}

.result-item {
  padding: 5px 15px;
  border-bottom: 1px solid rgb(238, 238, 238);
  cursor: pointer;
  transition: background 0.2s;
}

.result-item:hover {
  background-color: rgb(248, 249, 250);
}

.result-meta {
  font-size: 0.85em;
  color: rgb(102, 102, 102);
  margin-top: 5px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-meta span {
  display: inline-block;
}

.category {
  background: rgb(231, 76, 60);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
}

.geom-type {
  font-style: italic;
}

.custom-marker {
  background: transparent;
  border: none;
}

.custom-marker i {
  color: rgb(231, 76, 60);
  font-size: 24px;
  text-shadow: 0 0 3px white;
}
  /* ----------------------------dropdown menu superior--------------------------------*/
    .dropbtn {
    display: flex;
    position: absolute;
    top: -24px;
    right: 20px;
    font-weight: bold;
    font-size: 0.84em !important;
    text-transform: uppercase;
    border: none;
    outline: none;
    color: rgb(160, 160, 160);
    background-color: transparent;
    font-family: inherit;
    margin: 0;
    z-index: 40;
    cursor: pointer;
  }
  
  .dropbtn:hover {
    color: rgb(255, 255, 255);
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: relative;
    background-color: rgb(255, 255, 255);
    height: 100px;
    top: 27px;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 40;
  }
  
  .dropdown-content a {
    position: relative;
    padding: 5px 16px;
    text-decoration: none;
    display: block;
    color: rgb(160, 160, 160);
  }
  
  .dropdown-content a:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
  }
  .show {
    display: flex;
    position: absolute;
    flex-direction: column;
    top: 150px;
    right: 130px;
    width: max-content;
    color:rgb(0, 0, 0);
    transition: all 0.8s ease;
  }

  /* Estilos para o menu de usuário */

/* Remove o fundo e borda do botão "Olá, usuário" */
.user-menu-button {
  background: transparent;
  border: none;
  color: inherit; /* Usa a mesma cor do texto do header */
  cursor: pointer;
  padding: 0;
  font-family: inherit; /* Usa a mesma fonte da página */
  font-size: inherit;   /* Usa o mesmo tamanho de fonte */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-menu-button:hover {
  text-decoration: underline;
}

/* Estilo do menu dropdown que aparece */
.user-menu-dropdown {
  position: absolute;
  top: 100%; /* Posiciona logo abaixo do botão */
  right: 0;
  margin-top: 8px; /* Pequeno espaço acima */
  width: 176px;    /* Largura do menu */
  background-color: #2D3748; /* Cor de fundo escura (cinza-azulado) */
  color: #E2E8F0;           /* Cor do texto clara */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 50; /* Garante que fique sobre outros elementos */
  overflow: hidden; /* Garante que os cantos arredondados funcionem nos links */
}

/* Estilo dos links "Painel" e "Sair" dentro do dropdown */
.user-menu-dropdown a {
  display: block;
  padding: 8px 12px;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 14px;
}
.user-menu-dropdown a:hover { background-color: #4A5568; }
.hidden { display: none; }
.user-menu-chevron { transition: transform 0.2s ease-in-out; }
.user-menu-button[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
[data-user-menu-wrapper] { position: relative; display: inline-block; }

/* ===== Popup Leaflet ===== */
.leaflet-popup.popup-edicao .leaflet-popup-content {
  padding: 12px 14px;
  max-width: 480px; /* aumente se quiser popup mais largo */
  box-sizing: border-box;
}
.leaflet-popup.popup-edicao .leaflet-popup-content {
  /* Remove a margem padrão do Leaflet que aumenta a largura */
  margin: 0;
  padding: 12px 14px;
  max-width: 420px;             
  box-sizing: border-box;
}

/* Conteúdo principal do popup no vo */
.popup-edicao .attribWMS { width: 100%; }

/* Header do popup novo ocupa 100% */
.popup-edicao .attribWMS > .tituloWMS {
  display: block;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}

/* Inputs e botões nunca estouram a caixa */
.popup-edicao .inputwms,
.popup-edicao .btnwms {
  box-sizing: border-box;
  max-width: 100%;
}
.popup-edicao .inputwms { width: 96%; }

.popup-edicao .labelwms { display:block; margin:8px 0 4px; font-weight:600; color:#374151; }
.popup-edicao .inputwms {
  padding: .55rem .7rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
}
.popup-edicao .inputwms:disabled { opacity: .9; }
.popup-edicao details { margin: 0 0 6px 0; }
.popup-edicao .summwms { cursor: pointer; font-weight: 700; color:#111827; }

/* Área dos botões (visualização/geom/attr): duas colunas iguais */
.popup-edicao .botaorede {
  align-items: center;        /* centraliza verticalmente os dois blocos (ações + link) */
  padding: 6px;               /* espaço interno ao redor de tudo */
  gap: .6rem;                 /* espaço entre a coluna de ações e o link */
}


@media (max-width: 420px) {
  .popup-edicao .botaorede .action-group {
    flex-direction: column;
    gap: .45rem;
    align-items: stretch;     /* faz cada botão ocupar a largura disponível */
  }
}

/* Grupo de ações (os 3 botões) */
.popup-edicao .botaorede .action-group {
  display: flex;              /* mantém os botões em linha */
  gap: .5rem;                 /* espaço entre cada botão */
  align-items: center;        /* centraliza verticalmente os botões */
  justify-content: flex-start;/* garante que fiquem à esquerda, juntos */
  padding-left: 4px;          /* pequeno recuo da esquerda para não colar na borda */
  min-height: 36px;           /* evita que o grupo encolha verticalmente demais */
  box-sizing: border-box;
}



/* Em telas pequenas (narrow popup) empilha os itens */
@media (max-width: 420px) {
  .popup-edicao .botaorede {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

/* Botões grandes e consistentes */
.popup-edicao .btnwms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem .9rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Hover/sombra sutil */
.popup-edicao .btnwms:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.popup-edicao .link-attrs,
.popup-edicao a.btinfo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  text-decoration: none;
  box-sizing: border-box;
}

/* Separar visualmente o link */
.popup-edicao .link-attrs {
  border: 1px solid #e5e7eb;
  background: #fff;
}

/* Em telas pequenas, fazer os botões full-width */
@media (max-width: 420px) {
  .popup-edicao .btnwms,
  .popup-edicao .link-attrs,
  .popup-edicao a.btinfo {
    width: 100%;
  }
}


/* Form antigo: botão Fechar destacado e full width */
.popup-edicao .formEdicao .butEdicao { margin-top: .75rem; }
.popup-edicao .formEdicao .botao1 {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
  cursor: pointer;
  text-align: center;
}
.popup-edicao .formEdicao .botao1:hover {
  background: #fee2e2;
  border-color: #fecaca;
}

/* ================================== */
/* ===== CONTROLE DE SCROLL POPUP ===== */
/* ================================== */

/* Para o POPUP NOVO (com botões de editar geometria/atributos) */
.popup-edicao .formWMS {
    padding-top: 2px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Para o POPUP ANTIGO (somente com botão 'Fechar') */
.popup-edicao .formEdicao form#atributos {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

/* ========================================================================= */
/* --- AJUSTES DE RESPONSIVIDADE CONSOLIDADOS (INÍCIO) --- */
/* ========================================================================= */

/* --- AJUSTE GLOBAL PARA TELAS MENORES QUE 1120PX --- */
@media (max-width: 1120px) {
    .topbar__container {
        
        max-width: 100% !important; 
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* --- AJUSTE PARA TABLETS (640px a 1066px) --- */

@media (min-width: 640px) and (max-width: 1066px) {
    /* Mantém a largura 100% e padding */
    .topbar__container {
        max-width: 100% !important; 
        padding-left: 10px;
        padding-right: 10px;
        /* Garante que os blocos de links e controles fiquem nas extremidades */
        justify-content: space-between; 
    }

    /* Compacta os links institucionais */
    .links {
        gap: 6px; 
        /* Reduz a fonte do bloco de links para caber mais */
        font-size: 13px; 
    }

    /* Compacta o bloco da direita */
    .right {
        gap: 6px; 
    }
    
    /* Oculta o controle de fonte A-/A/A+ */
    .font-controls {
         display: none !important; 
    }

    /* Oculta os ícones sociais (Instagram, Facebook) para liberar espaço */
    .icon {
        display: none !important;
    }
}


/* --- Responsividade para Celular (MAX-WIDTH: 639px) --- */

/* ------------------ CABEÇALHO (TOPBAR) ------------------ */
@media (max-width: 639px) {
    /* ESTRUTURA BASE (Centralizada e Otimizada) */
    .topbar {
        padding: 6px 10px;
    }
    .topbar__container {
        justify-content: center; /* Centraliza o bloco de login/usuário */
        align-items: center;
        flex-wrap: nowrap;
        max-width: 100%; /* Garantia de 100% de largura */
    }
    
    /* OCULTAÇÕES RADICAIS */
    .links, /* Oculta todos os links institucionais */
    .icon, /* Oculta ícones sociais */
    .divider, /* Oculta separador */
    .right > a[href*="diariooficial"], /* Oculta Diário Oficial */
    .font-controls, /* Oculta botões de acessibilidade */
    .hamburger-icon, /* Oculta o ícone Hamburguer */
    #menu-toggle:checked ~ .links {
        display: none !important;
    }
    
    /* MANTÉM APENAS CONTROLES DE CONTA */
    .right {
        width: auto;
        gap: 8px;
        justify-content: center; /* Centraliza o conteúdo do bloco de controle */
    }
    [data-user-menu-wrapper] {
        margin-right: 0;
    }
    
    /* Oculta os logos Habitasampa na tela do mapa */
    .logos_tela {
        display: none !important;
    }
}

/* ------------------ RODAPÉ (FOOTER) ------------------ */
@media (max-width: 639px) {
    .rodape {
        height: auto;
        padding: 5px 10px;
        flex-direction: column;
        align-items: center; /* Centraliza horizontalmente os blocos empilhados */
        gap: 4px;
        font-size: 11px;
    }

    /* OCULTAÇÕES RADICAIS */
    #date,
    .nivelZoom,
    .LatLong,
    #btnUTM { /* Oculta o botão de UTM */
        display: none !important;
    }

    /* MENSAGEM DE AÇÃO (Fica no topo, centralizada) */
    .textAcao {
        width: 100%;
        order: 1;
        text-align: center; 
        font-weight: bold;
        color: #f8f8f8;
    }

    /* CONTROLE DE COORDENADAS (Centralizado) */
    .zcoords {
        order: 2;
        width: 100%; /* Ocupa a largura total para centralizar o conteúdo */
        max-width: none;
        background: transparent;
        color: #ffffff;
        font-size: 11px;
        justify-content: center; /* Centraliza o input e o botão */
    }
    
    .zcoords #coordinatesInput {
        width: 80%;
        padding: 2px 5px;
        border-radius: 4px;
        font-size: 11px;
        border: none;
    }
    .zcoords button {
        margin-left: 5px;
    }
}

/* --- AJUSTE ULTRA COMPACTO PARA TABLETS PEQUENOS (640px a 767px) --- */
@media (min-width: 640px) and (max-width: 767px) {

    /* Reduz o tamanho da fonte em toda a barra para compactar o texto */
    .topbar {
        font-size: 12px;
    }
    
    /* Bloco de Links Institucionais (`.links`): */
    .links {
        /* Reduz o espaçamento entre os links */
        gap: 6px; 
    }
    
    /* Reduz o padding em torno do contêiner */
    .topbar__container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Oculta os links institucionais menos essenciais para preencher a lacuna */
    .links > a.nowrap:nth-child(1), /* "Acesso à informação" */
    .links > span.pipe:nth-child(2), /* Primeiro pipe */
    .links > a.nowrap:nth-child(5), /* "Legislação" */
    .links > span.pipe:nth-child(6) /* Quarto pipe */
    {
        display: none !important;
    }
}
/* ========================================================================= */
/* --- AJUSTES DE RESPONSIVIDADE CONSOLIDADOS --- */
/* ========================================================================= */

/* Estilos para modo de alto contraste */
html.a11y-contrast {
    filter: contrast(120%) grayscale(100%);
    background-color: #000 !important;
    color: #fff !important;
}

html.a11y-contrast img {
    filter: grayscale(0%); /* Mantém imagens normais se desejar */
}

/* Ajuste fino para Leaflet no modo contraste */
html.a11y-contrast .leaflet-container {
    filter: invert(100%) hue-rotate(180deg);
}

.tree-nav__item-title i.far {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important; 
}

.fa-square-t::before {
    content: "\f031" !important; 
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important; 
}

.fa-square-t {
    opacity: 1 !important;
    color: var(--ger-cam-item) !important; 
}


a.tree-nav__item-title.turnoff-link, 
.turnoff-link {
    pointer-events: auto !important; 
    cursor: pointer !important;
}

/*customização do all.min.css do leaflet*/
.fa-angle-right:before {
    padding: 5px
}