/* ===== Onde estamos ===== */

.home-where {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.00) 30%, rgba(0, 0, 0, 0.00) 70%, rgba(0, 0, 0, 0.25) 100%), linear-gradient(180deg, #17539F 0%, #1753A0 100%);
  overflow: hidden;
}

.home-where__container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  box-sizing: border-box;
  text-align: center;
}

.home-where__title {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -1px;
}

.home-where__subtitle {
  margin: 0 0 40px;
  color: #FFF;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 130%;
}

/* Map wrapper */
.home-where__map-wrapper {
  display: flex;
  justify-content: center;
}

.home-where__map {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.home-where__map > svg {
  display: block;
  width: 100%;
  height: auto;
}

/* SVG region styling (inline SVG) */
.home-where__map > svg [data-region] {
  cursor: pointer;
}

.home-where__map > svg .js-region-group:hover path[fill="#1C78BE"] {
  fill: #2a8fd4;
}

.home-where__map > svg .js-marker-group:hover {
  filter: brightness(1.2);
}

.home-where__svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-where__svg path[data-region] {
  cursor: pointer;
  transition: filter 0.2s ease, fill 0.2s ease;
}

.home-where__svg path[data-region]:hover {
  fill: #2a8fd4;
  filter: brightness(1.15);
}

/* Tooltip */
.home-where__tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: translate(-50%, -100%);
  margin-top: -10px;
}

.home-where__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.home-where__tooltip.is-visible {
  opacity: 1;
}

/* Pins */
.home-where__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 39px;
  height: 39px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.home-where__pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.home-where__pin-img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Region images (fallback if using img approach) */
.home-where__region {
  position: absolute;
  pointer-events: none;
}

/* Overlay */
.home-where__overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-where__overlay[hidden] {
  display: none;
}

/* Modal */
.home-where__modal {
  position: relative;
  width: 100%;
  width: 629px;
  height: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.home-where__modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.home-where__modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}


/* Modal content */
.home-where__modal-region {
  margin: 0;
  color: #1E293B;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.home-where__modal-section-title {
  margin: 0;
  color: #1E293B;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.home-where__modal-unit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin: 0 0 16px;
}

.home-where__modal-unit-name {
  margin: 0;
  color: #1E293B;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.home-where__modal-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(21, 21, 21, 0.85);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0;
  margin: 0 0 2px;
}

.home-where__modal-info:last-child {
  margin-bottom: 0;
}

.home-where__modal-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.home-where__modal-divider {
  border: 0;
  border-top: 1px solid #e8e8e8;
}

.home-where__modal-divider-sede {
  margin: 16px 0;
}

.home-where__modal-divider-filiais {
  margin: 16px 0 0;
}

.home-where__modal-filiais-title {
  margin: 0;
  color: #1E293B;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.home-where__modal-filial {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 8px;
  border-bottom: 1px solid #e8e8e8;
}

.home-where__modal-filial:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.home-where__modal-filiais-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.home-where__modal-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .home-where {
    padding: 56px 0;
  }

  .home-where__title {
    font-size: 32px;
  }

  .home-where__container {
    display: flex;
    flex-direction: column;
  }

  .home-where__subtitle {
    order: 1;
    margin-bottom: 0;
    margin-top: 24px;
    font-size: 16px;
  }

  .home-where__modal {
    padding: 24px;
    padding-top: 48px;
    max-width: 100%;
    border-radius: 12px;
  }
}
