/* ========== Taxi Layer (B-34) ========== */

/* ── Marcador ─────────────────────────────────────────────────────────────── */

.taxi-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.taxi-marker-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0369a1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ── Popup ────────────────────────────────────────────────────────────────── */
/* El popup de Leaflet es blanco también en modo oscuro: aquí no valen las
   variables de tema, que en oscuro darían texto claro sobre fondo blanco. */

.taxi-popup {
  min-width: 13.5rem;
}

.taxi-popup-name {
  display: block;
  font-size: 0.9375rem;
}

.taxi-popup .taxi-popup-address,
.taxi-popup .taxi-popup-note {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
}

.taxi-popup .taxi-popup-note {
  font-weight: 600;
}

.taxi-popup-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.leaflet-popup-content a.taxi-popup-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 1px solid #0369a1;
  border-radius: 8px;
  color: #0369a1;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.leaflet-popup-content a.taxi-popup-btn--primary {
  background: #0369a1;
  color: #fff;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

#taxi-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.taxi-sidebar-header {
  flex-shrink: 0;
  padding: 1rem 1rem 0.75rem;
}

.taxi-sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.taxi-sidebar-subtitle {
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.taxi-call-panel {
  flex-shrink: 0;
  padding: 0 0.75rem 0.75rem;
}

.taxi-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: #0369a1;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.taxi-call-info {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.taxi-call-info a,
.taxi-source a {
  color: var(--link);
}

.taxi-stops-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.75rem;
}

.taxi-stop-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.taxi-stop-card:hover,
.taxi-stop-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.taxi-stop-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.taxi-stop-card-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.taxi-stop-card-address,
.taxi-stop-card-note {
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.taxi-stop-card-note {
  font-weight: 600;
}

.taxi-stop-card-dist {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.taxi-source {
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.4;
}
