/* Gazzano Territorios v1.2.7 — frontend. Todo encapsulado bajo .gzt-* */
.gz-service-territory-links.gzt-enhanced,
.gzt-shortcode.gzt-enhanced {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.gzt-map-card {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #d7e3e6;
  border-radius: 13px;
  background: #edf2f3;
}

.gzt-territory-number {
  display: block;
  width: 100%;
  margin: 2px 0 8px;
  color: #23404a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.gzt-map {
  width: 100%;
  height: 270px;
  min-height: 240px;
  max-width: 100%;
  background: #eef2f3;
}

.gzt-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 10px auto 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #16483a;
  color: #fff;
  box-shadow: 0 5px 16px rgba(14, 51, 42, .24);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gzt-location-btn:hover,
.gzt-location-btn:focus-visible {
  background: #103c31;
  color: #fff;
}

.gzt-location-btn[disabled] {
  opacity: .72;
  cursor: wait;
}

.gzt-location-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.gzt-location-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.gzt-multi-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  max-width: calc(100% - 18px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #17343e;
  box-shadow: 0 2px 9px rgba(0,0,0,.14);
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
}

.gzt-map-card + .gzt-map-card {
  margin-top: 10px;
}

.gz-service-territory-links .gz-service-detail-link.gzt-source-hidden,
.gzt-territory-source.gzt-source-hidden {
  display: none !important;
}

.gzt-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  pointer-events: auto;
}

.gzt-zoom-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #24343a;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gzt-zoom-btn + .gzt-zoom-btn {
  border-top: 1px solid #d9dfe1;
}

.gzt-zoom-btn:hover,
.gzt-zoom-btn:focus-visible {
  background: #f1f4f5;
  outline: none;
}

@media (max-width: 560px) {
  .gzt-zoom-controls {
    display: none;
  }

  .gzt-map {
    height: 255px;
    min-height: 225px;
  }

  .gzt-location-btn {
    min-height: 41px;
    padding: 0 14px;
  }
}


.gzt-block-label {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16483a;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.24);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.gzt-user-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2d7ff9;
  box-shadow: 0 0 0 7px rgba(45,127,249,.20), 0 3px 10px rgba(0,0,0,.28);
  pointer-events: none;
}

.gzt-map-card .maplibregl-map,
.gzt-map-card .maplibregl-canvas-container,
.gzt-map-card .maplibregl-canvas {
  max-width: 100%;
}

.gzt-map-card .maplibregl-ctrl-attrib {
  font-size: 8px;
  line-height: 1.25;
}



.gzt-map-card .maplibregl-ctrl-group {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.gzt-map-card .maplibregl-ctrl-attrib.maplibregl-compact {
  max-width: none;
  border-radius: 999px 0 0 0;
}

.gzt-map-card .maplibregl-ctrl-attrib-button {
  font-size: 13px;
}


/* Atribución obligatoria: se inicia compacta/cerrada y se abre al tocar el icono. */
.gzt-map-card .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
  display: none !important;
}

.gzt-map-card .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
  min-width: 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}

.gzt-map-card .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button {
  display: block !important;
  width: 24px;
  height: 24px;
}
