/* ========================================
   🗺️ MAPAS DE BARRIOS - PEDÍ TU SERVICIO
   Archivo: mapas.css
   ======================================== */

/* ---------- Contenedor principal ---------- */
.pts-mapa-container {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ---------- Header del mapa ---------- */
.pts-mapa-header {
  padding: 16px 20px;
  background-color: #f8f9fa;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #eaeaea;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Las 2 líneas del header ---------- */
.pts-mapa-linea1,
.pts-mapa-linea2 {
  display: block; /* 📱 Móvil: cada línea en su propio renglón */
}

.pts-mapa-linea2 {
  font-size: 1.1em;
  margin-top: 4px;
  color: #1a1a1a;
}

/* ---------- Wrapper del iframe ---------- */
.pts-mapa-iframe-wrapper {
  width: 100%;
  height: 300px; /* 📱 Altura en móvil */
  position: relative;
}

.pts-mapa-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   📱 TABLET (768px en adelante)
   ======================================== */
@media (min-width: 768px) {
  .pts-mapa-container {
    max-width: 720px;
    margin: 40px auto;
  }

  .pts-mapa-header {
    font-size: 16px;
    padding: 18px 24px;
  }

  /* 💻 Desktop: header en 1 sola línea */
  .pts-mapa-linea1,
  .pts-mapa-linea2 {
    display: inline;
  }

  .pts-mapa-linea2 {
    margin-top: 0;
    margin-left: 4px;
  }

  .pts-mapa-iframe-wrapper {
    height: 400px;
  }
}

/* ========================================
   💻 DESKTOP (1024px en adelante)
   ======================================== */
@media (min-width: 1024px) {
  .pts-mapa-container {
    max-width: 900px;
    margin: 50px auto;
  }

  .pts-mapa-iframe-wrapper {
    height: 450px;
  }
}

/* ========================================
   🌙 MODO OSCURO (automático)
   ======================================== */
@media (prefers-color-scheme: dark) {
  .pts-mapa-container {
    background-color: #1a1a1a;
    border-color: #333333;
  }

  .pts-mapa-header {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-bottom-color: #333333;
  }

  .pts-mapa-linea2 {
    color: #ffffff;
  }
}
/* ========================================
   🔙 BOTÓN VOLVER A CABA (Hub principal)
   ======================================== */

/* Breadcrumb superior (arriba del hero) */
.back-to-hub {
  background: var(--bg-alt, #efe5d5);
  border-bottom: 1px solid var(--line, #e4d8c4);
  padding: 10px 0;
  margin-top: 72px; /* espacio para el header fijo */
}

.back-to-hub__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #7c6b57);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-hub__link:hover {
  color: var(--accent, #c2602d);
}

.back-to-hub__link strong {
  color: var(--ink, #2b2118);
  font-weight: 700;
}

.back-to-hub__link:hover strong {
  color: var(--accent, #c2602d);
}

/* Botón de regreso al hub (antes del formulario) */
.hub-return {
  background: var(--bg-alt, #efe5d5);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--line, #e4d8c4);
  border-bottom: 1px solid var(--line, #e4d8c4);
}

.hub-return__text {
  font-size: 16px;
  color: var(--muted, #7c6b57);
  margin-bottom: 16px;
  font-weight: 500;
}

.hub-return__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface, #fff);
  color: var(--ink, #2b2118);
  border: 2px solid var(--line, #e4d8c4);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.hub-return__btn:hover {
  background: var(--accent, #c2602d);
  color: #fff;
  border-color: var(--accent, #c2602d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 96, 45, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-hub {
    margin-top: 64px;
    padding: 8px 0;
  }
  .back-to-hub__link {
    font-size: 13px;
  }
  .hub-return {
    padding: 24px 16px;
  }
  .hub-return__text {
    font-size: 15px;
  }
  .hub-return__btn {
    padding: 12px 22px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}