/* Parqueo y buses (pages/parqueo.html)
   Tema .page-dark definido en index.css */

/* Título de sección ligero (h1 de página y h2 de la sección BUS) */
.page-header h1.section-title,
.section-title {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(36px, 11vw, 48px);
  color: var(--page-text);
  letter-spacing: 2px;
  text-align: center;
}

/* --- Datos clave --- */

.stat-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.stat-value {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 24px;
  color: var(--page-accent);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  margin-top: 4px;
}

/* --- Información de parqueo --- */

.info-parqueo {
  width: 100%;
}

.info-parqueo ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-parqueo li {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
}

.info-parqueo li::marker {
  color: var(--page-accent);
}

.info-parqueo li span {
  color: var(--page-accent);
}

/* --- Separadores --- */

.line-accent {
  width: 100%;
  height: 2px;
  background-color: var(--page-accent);
}

.line-accent--thin {
  height: 1px;
  opacity: 0.8;
  margin: 8px 0;
}

/* --- Buses --- */

.info-buses {
  width: 100%;
}

.info-buses .section-title {
  margin-bottom: 24px;
}

.row-buses {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin: 16px 0;
}

.buses-container {
  width: 50%;
}

.buses-route {
  display: flex;
  align-items: center;
}

.buses-route h3 {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--page-accent);
}

.buses-schedule {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: var(--page-text);
  align-self: center;
}

.buses-hours {
  font-weight: 400;
}

.vertical-line {
  width: 1px;
  align-self: stretch;
  background-color: var(--page-accent);
}

/* --- Enlace a mapa --- */

.map-parqueo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  padding: 15px 20px;
  background-color: var(--page-accent);
  border-radius: 999px;
  color: var(--page-text);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.map-parqueo:active {
  transform: scale(0.98);
  background-color: var(--page-accent-soft);
}

@media (hover: hover) {
  .map-parqueo:hover {
    background-color: var(--page-accent-soft);
  }
}

.map-img {
  width: 22px;
  flex-shrink: 0;
}

.map-parqueo h3 {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* --- Selector de app de mapas (iOS) --- */

.map-sheet {
  width: 100%;
  max-width: 480px;
  margin: auto auto 0;
  padding: 20px;
  border: none;
  border-radius: 24px 24px 0 0;
  background: var(--page-dark);
  color: var(--page-text);
}

.map-sheet[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: map-sheet-slide-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-sheet.is-closing {
  animation: map-sheet-slide-out 0.18s ease forwards;
}

.map-sheet::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

@keyframes map-sheet-slide-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes map-sheet-slide-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(24px);
  }
}

.map-sheet-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.map-sheet-header h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.close-map-sheet {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.close-map-sheet svg {
  width: 18px;
  height: 18px;
}

.map-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-sheet-option {
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--page-text);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease;
}

.map-sheet-option:active {
  background-color: rgba(255, 255, 255, 0.16);
}

@media (hover: hover) {
  .map-sheet-option:hover {
    background-color: rgba(255, 255, 255, 0.16);
  }
}
