/**
 * 2T — لمسات عالمية: انتقالات، هيكل تحميل، ثقة
 */

.screen {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.screen:not(.on) {
  opacity: 0;
  pointer-events: none;
}

.screen.on {
  opacity: 1;
}

.screen.ride .search-skeleton {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.screen.ride .search-skeleton[aria-hidden="true"] {
  display: none;
}

.screen.ride .search-skeleton span {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 45%, #f1f5f9 90%);
  background-size: 200% 100%;
  animation: t2Shimmer 1.2s ease-in-out infinite;
}

.screen.ride .search-skeleton span:nth-child(2) { width: 72%; animation-delay: 0.1s; }
.screen.ride .search-skeleton span:nth-child(3) { width: 58%; animation-delay: 0.2s; }

@keyframes t2Shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.screen.ride .driver-hero .avatar-verified,
.screen.ride .receipt-driver::after {
  content: "موثّق";
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 2px 8px;
}

.screen.ride .receipt-driver {
  position: relative;
}

.screen.ride .receipt-driver::after {
  position: absolute;
  left: 12px;
  top: 12px;
}

.screen.ride .surge-offer b::before {
  content: "⚡ ";
}

.screen.ride .wallet-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  color: #64748b;
}

.screen.ride .wallet-balance strong {
  color: #0f172a;
  font-size: 14px;
}

.screen.ride .service-card .meta .fare-range {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 2px;
}

.screen.ride .btn-receipt-wa {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 14px;
}

.map-canvas.map-dark .leaflet-tile-pane {
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
}

.leaflet-pin-marker--pickup.leaflet-dragging .map-pin-head {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.cap-hub-request.is-expiring .cap-hub-accept {
  opacity: 0.55;
}

.cap-hub-request-timer {
  display: block;
  height: 3px;
  margin: 8px 0 0;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}

.cap-hub-request-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #19a974);
  transform-origin: right center;
  animation: capTimerDrain 15s linear forwards;
}

@keyframes capTimerDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.cap-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.dest-history-item--place .dest-history-icon {
  background: #ecfdf5 !important;
  color: #10b981 !important;
}

.dest-section-label--places {
  color: #10b981;
}
