/* Wrapper do mapa: necessário para sobrepor os filtros no desktop */
div.sx-map-wrap{
  position: relative;
}

/* Div do mapa (o outro filho direto que NÃO é .sx-map-filters) */
div.sx-map-wrap > div:not(.sx-map-filters){
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
}

/* FILTROS: sobrepostos ao mapa (desktop) */
div.sx-map-wrap > div.sx-map-filters{
  box-sizing: border-box;
  position: absolute;
  top: 62px;
  left: 12px;
  bottom: 12px;
  width: 320px;
  max-width: calc(100% - 24px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  overflow: auto; /* se tiver muitas fases, scroll no painel inteiro */
}

/* Blocos internos */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter{
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Label */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-filter__label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(0,0,0,.72);
  text-transform: uppercase;
}

/* Select de substância */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > select.sx-map-filter__select{
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  background: #fff;
  color: rgba(0,0,0,.86);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > select.sx-map-filter__select:focus{
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

/* Lista de fases (checkboxes) */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list{
  box-sizing: border-box;
  width: 100%;
  max-height: 320px; /* ajuste fino: altura do bloco de checkboxes dentro do painel */
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  background: rgba(0,0,0,.02);
}

/* Linha/label do checkbox */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list > label.sx-map-phase{
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list > label.sx-map-phase:hover{
  background: rgba(0,0,0,.05);
}

/* Checkbox */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list > label.sx-map-phase > input[type='checkbox']{
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

/* Texto da fase */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list > label.sx-map-phase > span.sx-map-phase__text{
  font-size: 13px;
  line-height: 1.2;
  color: rgba(0,0,0,.86);
}

/* Contador */
div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter.sx-map-filter--count > div.sx-map-filter__count{
  /* box-sizing: border-box; */
  height: 25px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  background: rgba(0,0,0,.02);
  font-weight: 800;
  font-size: 14px;
  color: rgba(0,0,0,.85);
  padding: 0 13px;
}

/* MOBILE: filtros não sobrepostos e ficam depois do mapa */
@media (max-width: 980px){
  div.sx-map-wrap{
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* mapa primeiro */
  div.sx-map-wrap > div:not(.sx-map-filters){
    order: 1;
    height: 55vh;
    min-height: 360px;
    border-radius: 14px;
  }

  /* filtros depois */
  div.sx-map-wrap > div.sx-map-filters{
    order: 2;
    position: static;
    width: 100%;
    max-width: none;
    top: auto;
    left: auto;
    bottom: auto;

    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
  }

  div.sx-map-wrap > div.sx-map-filters > div.sx-map-filter > div.sx-map-phase-list{
    /* max-height: 220px; */
  }
}

.gm-style .gm-style-iw-c{
  padding: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.22) !important;
  overflow: visible !important;
}

.gm-style .gm-style-iw-d{
  overflow: hidden !important;
  padding: 0 !important;
}

/* “Bico” do balão */
.gm-style .gm-style-iw-tc::after{
  background: #000000 !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.18) !important;
}
.gm-style-iw-chr{
    height: 0;
}
/* Botão de fechar (X) */
.gm-style button.gm-ui-hover-effect{
  /* top: 10px !important; */
  right: 10px !important;
  opacity: .65 !important;
  /* transform: scale(1); */
}
.gm-style button.gm-ui-hover-effect:hover{
  opacity: 1 !important;
}

/* ===== Seu “card” ===== */
.sx-iw{
  width: 320px;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 14px 18px;
  box-sizing: border-box;
}

.sx-iw__title{
  font-size: 11px;
  font-weight: 700;
  color: #3b3b3b; /* navy escuro */
  margin: 0 34px 10px 0; /* espaço pro X */
  display: flex;
  gap: 5px;
  align-items: center;
}
.sx-iw__title svg{
    height: 21px;
}
.sx-iw__title h2{}
.sx-iw__row{
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
}

.sx-iw__row:first-of-type{
  border-top: none;
  padding-top: 2px;
}

.sx-iw__label{
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.sx-iw__value{
  font-size: 13px;
  color: #334155;
  text-transform: uppercase; /* igual ao print */
  letter-spacing: .2px;
  flex: 1;
}

/* Botão “VER DETALHES” */
.sx-iw__btn{
  display: block;
  margin-top: 12px;
  /* width: 100%; */
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ededed;
  border: 2px solid #111827;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  /* letter-spacing: .6px; */
  /* box-sizing: border-box; */
}

.sx-iw__btn:hover{
  background: #e2e2e2;
}

.container_meu_mapa{}
.container_meu_mapa > h2{
    margin: 20px;
    width: calc(100% - 40px);
    font-size: 16px;
    font-family: oswald;
    font-weight: 400;
    text-transform: uppercase;
    padding: 16px 20px;
    border-left: 2px solid #ccc;
    background: #fff;
    border-radius: 8px;
}
.container_meu_mapa > p{
    margin: 20px;
    width: calc(100% - 40px);
}
.container_meu_mapa > #map{}
/* ===== Lista do cluster (InfoWindow) - sem styles inline no JS ===== */
.sx-iw > div.sx-iw__cluster{
  max-height: 240px;
  overflow: auto;
  padding-top: 6px;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row{
  padding: 6px 0;
  border-top: 1px solid #e6e6e6;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row:first-child{
  border-top: none;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row > div.sx-iw__cluster-title{
  line-height: 1.2;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row > div.sx-iw__cluster-title > a.sx-iw__cluster-link{
  text-decoration: none;
  color: inherit;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row > div.sx-iw__cluster-title > a.sx-iw__cluster-link:hover{
  text-decoration: underline;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row > div.sx-iw__cluster-sub{
  font-size: 12px;
  opacity: .9;
  text-transform: uppercase;
}

.sx-iw > div.sx-iw__cluster > div.sx-iw__cluster-row > div.sx-iw__cluster-sub.sx-iw__cluster-sub--fase{
  opacity: .8;
  text-transform: none;
}
