/* tarjeta-panel.css — Tarjeta Va y Ven bottom sheet panel
   Colors come from the central palette in /styles.css (--vv-*). */

.vv-tarjeta-content {
  padding: 0 0 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--vv-text);
}

.vv-tarjeta-header {
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--vv-border);
}

.vv-tarjeta-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--vv-text);
}

/* Selector wrapper */
.vv-tarjeta-selector-wrap {
  padding: 16px 20px 8px;
}

/* Radio group container */
.vv-tarjeta-selector {
  display: flex;
  position: relative;
  background: var(--vv-surface-2);
  border-radius: 10px;
  padding: 4px;
  gap: 0;
}

/* Sliding indicator */
.vv-tarjeta-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--vv-accent);
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
  transition: transform 0.18s ease;
  pointer-events: none;
  z-index: 0;
}

.vv-tarjeta-indicator--right {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  .vv-tarjeta-indicator {
    transition: none;
  }
}

/* Each radio option */
.vv-tarjeta-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--vv-text-2);
  cursor: pointer;
  position: relative;
  z-index: 1; /* above indicator */
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.vv-tarjeta-option.active {
  color: white;
}

.vv-tarjeta-option:focus-visible {
  outline: 2px solid var(--vv-accent);
  outline-offset: 2px;
}

.vv-tarjeta-option svg {
  flex-shrink: 0;
}

.vv-tarjeta-hint {
  margin: 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--vv-text-2);
  text-align: center;
}

/* ── Expedición nearby list ───────────────────────────────────────── */
.vv-tarjeta-list {
  padding: 0 0 8px;
}

.vv-tarjeta-list-label {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vv-text-2);
}

.vv-tarjeta-lugar {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-top: 0.5px solid var(--vv-border);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.vv-tarjeta-lugar:active {
  background: var(--vv-surface-2);
}

.vv-tarjeta-lugar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.vv-tarjeta-marca-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.vv-tarjeta-lugar-nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--vv-text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.vv-tarjeta-lugar-dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--vv-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.vv-tarjeta-lugar-dir {
  font-size: 12px;
  color: var(--vv-text-2);
  line-height: 1.4;
}

.vv-tarjeta-lugar-hora {
  margin-top: 3px;
  font-size: 11px;
  color: var(--vv-text-2);
}

.vv-tarjeta-lugar-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--vv-text-2);
  line-height: 1.4;
}

/* Skeleton loading */
.vv-tarjeta-lugar-skel {
  padding: 14px 20px;
  border-top: 0.5px solid var(--vv-border);
}

.vv-tarjeta-skel {
  background: var(--vv-surface-2);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  margin-bottom: 7px;
}

.vv-tarjeta-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: vvTarjetaShimmer 1.4s infinite;
}

@media (prefers-color-scheme: dark) {
  .vv-tarjeta-skel::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  }
}

@keyframes vvTarjetaShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .vv-tarjeta-skel::after { animation: none; }
}

.vv-tarjeta-skel-name { width: 60%; height: 14px; }
.vv-tarjeta-skel-dir  { width: 85%; height: 11px; margin-bottom: 0; }

/* Info / error message */
.vv-tarjeta-msg {
  margin: 0;
  padding: 16px 20px 8px;
  font-size: 13px;
  color: var(--vv-text-2);
}

/* ── Favoritos panel ──────────────────────────────────────────────── */
.vv-favoritos-content {
  padding: 0 0 28px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.vv-favoritos-header {
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--vv-border);
}

.vv-favoritos-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--vv-text);
}

.vv-favoritos-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 0;
  text-align: center;
}

.vv-favoritos-empty-icon {
  width: 48px;
  height: 48px;
  opacity: 0.8;
}

.vv-favoritos-empty-msg {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--vv-text);
  line-height: 1.4;
  max-width: 260px;
}

.vv-favoritos-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--vv-text-2);
}

/* ── Favoritos: saved-route list ──────────────────────────────────── */
.vv-fav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vv-fav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  border-top: 0.5px solid var(--vv-border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vv-fav-item:active {
  background: var(--vv-surface-2);
}

.vv-fav-info {
  flex: 1;
  min-width: 0;
}

.vv-fav-route {
  font-size: 14px;
  font-weight: 600;
  color: var(--vv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.vv-fav-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vv-fav-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--vv-text-2);
  flex-shrink: 0;
}

.vv-fav-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.vv-fav-pill {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.vv-fav-delete {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--vv-text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vv-fav-delete:hover,
.vv-fav-delete:active {
  color: #dc2626;
  background: var(--vv-surface-2);
}
