/* ===== Layout base ===== */
.saa-locais-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

.saa-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 304px);
  overflow: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.saa-map {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===== Botão reset mapa ===== */
.saa-map-reset-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.saa-map-reset-btn:hover {
  background: #f9fafb;
}

/* ===== Busca e filtro ===== */
.saa-search input,
.saa-filters select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.saa-search input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.saa-filters {
  margin: 10px 0 8px;
}

/* ===== Lista ===== */
.saa-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saa-empty {
  padding: 12px;
  color: #6b7280;
  text-align: center;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
}

.saa-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.saa-item.active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.saa-header {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.saa-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saa-toggle {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.saa-toggle:hover {
  background: #e5e7eb;
}

/* ===== Collapse interno ===== */
.saa-collapse[hidden] {
  display: none;
}
.saa-collapse-inner {
  padding: 8px 12px 12px;
  border-top: 1px solid #f1f5f9;
}

/* linhas principais */
.saa-collapse-inner .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 12px;
  font-size: 13px;
  color: #111827;
  border-bottom: 1px solid #e9eef5;
}
.saa-collapse-inner .row:last-of-type {
  border-bottom: none;
}

.saa-collapse-inner .row .left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  color: #6b7280;
}
.saa-collapse-inner .row .icon {
  display: inline-flex;
  color: #64748b;
}
.saa-collapse-inner .row .label {
  font-weight: 600;
  font-size: 12px;
}

/* links (e-mail) neutros */
.saa-collapse-inner .row .value a {
  color: inherit;
  text-decoration: none;
}
.saa-collapse-inner .row .value a:hover {
  text-decoration: none;
}

/* ===== Telefone + Horário (valor embaixo do rótulo) ===== */
.row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 0 12px;
  border-bottom: 1px solid #e9eef5;
}

.row-duo .cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.row-duo .cell .icon {
  color: #64748b;
}

.row-duo .cell .label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 12px;
  color: #6b7280;
}

.row-duo .cell .value {
  font-size: 13px;
  color: #111827;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== Técnicos ===== */
.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tech-list li {
  display: block;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #111827;
  line-height: 1.4;
}

/* ===== Ações (Rotas) ===== */
.saa-collapse-inner .actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.saa-collapse-inner .actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #111827;
}
.saa-collapse-inner .actions .btn:hover {
  background: #f9fafb;
}

/* ===== InfoWindow (popup do mapa): só imagem + título ===== */
.saa-iw {
  max-width: 360px;
}
.saa-iw .sv img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
}
.saa-iw h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .saa-locais-wrapper {
    grid-template-columns: 1fr;
  }
  .saa-sidebar {
    position: static;
    max-height: none;
  }
}

.page-content {
    margin: 20px 0px 50px !important;
}