/**
 * 2T — شاشة اختيار المركبة · جاهز للانطلاق + كروت عمودية
 */

#choose.screen.on {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(25, 169, 116, 0.05) 0%, rgba(214, 161, 29, 0.02) 24%, transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  padding: 0;
}

#choose .choose-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

#choose .choose-top-actions {
  display: none;
}

/* ── الشريط العلوي ── */
#choose .top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 0;
  flex-shrink: 0;
}

#choose .top > div:first-child {
  flex: 1;
  min-width: 0;
}

#choose .top .choose-top-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  align-self: center;
}

#choose .choose-top-actions {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  flex-shrink: 0;
}

#choose .choose-top-actions .avatar,
#choose .choose-top-actions #chooseAccountBtn {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #edf1f3;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

#choose .choose-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#choose .choose-brand-type {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: Cairo, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #19a974;
  text-shadow: none;
  filter: none;
}

#choose .choose-brand-plus {
  display: block;
  font-size: 0.78em;
  font-weight: 900;
  color: #19a974;
  text-shadow: none;
  filter: none;
  line-height: 1;
  transform: translateY(-1px);
}

#choose .choose-brand-mark,
#choose .choose-brand {
  display: none;
}

#choose .top b:not(.brand-wordmark):not(.choose-brand-type),
#choose .choose-logo {
  display: block;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

#choose .top > div:first-child > span:not(.sr-only) {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #737373;
}

#choose .top > div:first-child span.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#choose .avatar,
#choose .avatar.choose-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #edf1f3;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  color: #404040;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#choose .avatar .ui-icon--fi {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}

#choose .avatar:active,
#choose .avatar.choose-account-avatar:active {
  transform: scale(0.96);
}

#choose .choose-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 28;
  min-height: calc(66px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 0;
  padding: 7px 18px max(7px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: rgba(249, 250, 251, 0.94);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 -10px 24px rgba(15, 23, 42, 0.06);
}

#choose .choose-bottom-item {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

#choose .choose-bottom-item.is-active,
#choose .choose-bottom-item:active {
  background: rgba(25, 169, 116, 0.1);
  color: #11845f;
}

#choose #chooseBottomProfile.is-active {
  background: transparent;
}

#choose .choose-bottom-item:active {
  transform: scale(0.97);
}

#choose .choose-bottom-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
}

#choose .choose-bottom-item.is-active .choose-bottom-icon {
  background: transparent;
  box-shadow: none;
}

#choose .choose-bottom-icon .ui-icon--fi {
  font-size: 22px;
  line-height: 1;
}

#choose .choose-bottom-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #10251c;
  font-size: 11px;
  font-weight: 950;
  box-shadow: none;
}

#choose .choose-bottom-avatar .ui-icon--fi {
  color: #334155;
}

#choose #chooseBottomHistoryBadge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  border: 2px solid #fff;
}

#choose #chooseBottomHistoryBadge[hidden] {
  display: none !important;
}

#choose .top .choose-captain-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(25, 169, 116, 0.10);
  background: #fafcfb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  color: #15803d;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#choose .top .choose-captain-icon .ui-icon--fi {
  font-size: 18px;
  line-height: 1;
  color: #15803d;
}

.choose-entry-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid rgba(25, 169, 116, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #15803d;
}

#choose .top .choose-captain-icon:active {
  transform: scale(0.96);
}

.choose-entry-icon .ui-icon--fi {
  font-size: 18px;
  line-height: 1;
  color: #15803d;
}

/* ── العنوان ── */
#choose .title,
#choose .choose-sheet-head,
#choose .choose-title-pro {
  margin: 20px 20px 14px;
  text-align: right;
}

#choose .title strong,
#choose .choose-sheet-head strong,
#choose .choose-title-pro strong {
  display: block;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #0f172a;
}

#choose .choose-title-accent {
  color: #19a974;
}

#choose .title strong::after {
  display: none;
}

#choose .title p,
#choose .choose-sheet-head p,
#choose .choose-title-pro p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #5c6672;
  max-width: none;
}

#choose .choose-title-pro p::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #19a974 0%, #eab308 100%);
}

/* ── بطاقات المركبات (عمودية — جنب بعض) ── */
#choose .vehicles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 14px 6px;
}

#choose .vehicle {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: unset !important;
  text-align: inherit !important;
  overflow: visible !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#choose .vehicle-card,
#choose .vehicle-card-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 272px;
  border-radius: 24px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.16s ease;
}

#choose .vehicle-card-3d::before,
#choose .vehicle-card-3d::after,
#choose .vehicle-card::before,
#choose .vehicle-card::after {
  display: none;
}

#choose .vehicle-check {
  position: absolute;
  top: 11px;
  inset-inline-start: 11px;
  z-index: 4;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#choose .vehicle-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

#choose .vehicle.is-selected .vehicle-check {
  background: #19a974;
  border-color: #19a974;
  box-shadow: 0 3px 10px rgba(25, 169, 116, 0.18);
}

#choose .vehicle.is-selected .vehicle-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

#choose .vehicle.is-selected .vehicle-card,
#choose .vehicle.is-selected .vehicle-card-3d {
  border-color: #19a974;
  box-shadow:
    0 0 0 1px rgba(25, 169, 116, 0.12),
    0 14px 30px rgba(25, 169, 116, 0.12);
}

#choose .vehicle.is-pressed .vehicle-card,
#choose .vehicle.is-pressed .vehicle-card-3d {
  border-color: #19a974;
  box-shadow:
    0 0 0 1px rgba(25, 169, 116, 0.12),
    0 14px 30px rgba(25, 169, 116, 0.12);
  transform: scale(0.982);
}

#choose .vehicle.is-pressed .vehicle-check {
  background: #19a974;
  border-color: #19a974;
  box-shadow: 0 3px 10px rgba(25, 169, 116, 0.18);
}

#choose .vehicle.is-pressed .vehicle-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

#choose .vehicle.is-pressed .vehicle-stage,
#choose .vehicle.is-pressed .vehicle-visual {
  background: linear-gradient(180deg, #eef9f2 0%, #ffffff 68%);
}

#choose .vehicle.is-pressed .vehicle-stage-glow {
  background: radial-gradient(ellipse, rgba(25, 169, 116, 0.14) 0%, transparent 72%);
}

#choose .vehicle::before,
#choose .vehicle::after {
  display: none !important;
}

#choose .vehicle-stage,
#choose .vehicle-visual {
  position: relative;
  flex-shrink: 0;
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 6px 6px;
  background: linear-gradient(180deg, #f6f8f9 0%, #ffffff 100%);
  overflow: hidden;
  border-inline-start: none;
  width: auto;
  min-height: 0;
}

#choose .vehicle-stage-glow {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 82%;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100, 116, 139, 0.10) 0%, transparent 72%);
  pointer-events: none;
}

#choose .vehicle.is-selected .vehicle-stage,
#choose .vehicle.is-selected .vehicle-visual {
  background: linear-gradient(180deg, #eef9f2 0%, #ffffff 68%);
}

#choose .vehicle.is-selected .vehicle-stage-glow {
  background: radial-gradient(ellipse, rgba(25, 169, 116, 0.14) 0%, transparent 72%);
}

#choose .vehicle-stage::after,
#choose .vehicle-visual::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.14) 0%, transparent 75%);
}

#choose .vehicle img {
  position: relative;
  z-index: 1;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 108px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.10));
  mix-blend-mode: normal;
}

#choose .vehicle[data-v="tuk"] img {
  max-height: 124px;
  transform: scale(1.05);
  transform-origin: center bottom;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.12));
}

#choose .vehicle[data-v="tuk"] .vehicle-stage-glow {
  width: 88%;
  height: 50px;
  bottom: 12px;
}

#choose .vehicle-body,
#choose .vehicle > span:not(.vehicle-go) {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 15px 14px 16px;
  text-align: center;
  background: #fff;
  order: unset;
  gap: 0;
  justify-content: flex-start;
}

#choose .vehicle-body b,
#choose .vehicle b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
}

#choose .vehicle-body small,
#choose .vehicle small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

#choose .vehicle-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

#choose .vehicle-specs-dot {
  color: #cbd5e1;
  font-weight: 400;
}

#choose .vehicle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef2f4;
}

#choose .vehicle-near,
#choose .vehicle-price {
  font-size: 13px;
  font-weight: 700;
  color: #19a974;
  line-height: 1;
  letter-spacing: 0;
}

#choose .vehicle.is-selected .vehicle-near,
#choose .vehicle.is-selected .vehicle-price {
  color: #19a974;
}

#choose .vehicle-price small {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #19a974;
}

#choose .vehicle-eta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #eef2f4;
}

#choose .vehicle-eta i {
  width: 12px;
  height: 12px;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

#choose .vehicle-eta i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 2px;
  width: 1.5px;
  height: 4px;
  background: #94a3b8;
  transform: translateX(-50%);
}

#choose .vehicle-eta i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 1.5px;
  background: #94a3b8;
  transform-origin: left center;
  transform: rotate(45deg);
}

#choose .vehicle-go,
#choose .vehicle-tag,
.choose-hint,
#choose .choose-map-pane,
#choose .choose-sheet,
#choose .choose-sheet-handle,
#choose .choose-sheet-scroll {
  display: none !important;
}

#choose .vehicle.is-pressed {
  transform: none;
}

#choose .captain-zone {
  margin: 0;
  padding: 4px 14px 10px;
  display: grid;
  gap: 12px;
}

#choose .captain-zone .captain-entry-below-btn,
#choose .captain-zone .captain-entry-card,
#choose .captain-zone .captain-choose-status {
  width: 100%;
  margin: 0;
}

#choose .captain-entry-icon {
  order: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #ecfdf5;
  color: #0f8f61;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

#choose .captain-entry-copy {
  display: grid;
  gap: 2px;
  text-align: right;
  min-width: 0;
}

#choose .captain-entry-copy strong {
  font-size: 14px;
  font-weight: 900;
}

#choose .captain-entry-copy small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

#choose .choose-foot {
  margin: 0;
  padding: 14px 20px max(12px, env(safe-area-inset-bottom, 12px));
  text-align: center;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #eef2f4;
  user-select: none;
  pointer-events: none;
}

#choose .choose-foot small {
  display: block;
  font-family: "IBM Plex Sans Arabic", Cairo, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #94a3b8;
  opacity: 0.92;
}


@media (max-width: 460px) {
  #choose .title strong,
  #choose .choose-sheet-head strong {
    font-size: 26px;
  }

  #choose .vehicles {
    gap: 10px;
    padding: 4px 14px 0;
  }

  #choose .vehicle-card,
  #choose .vehicle-card-3d {
    min-height: 260px;
  }

  #choose .vehicle-stage,
  #choose .vehicle-visual {
    height: 106px;
  }

  #choose .vehicle img {
    max-height: 84px;
  }

  #choose .vehicle[data-v="tuk"] img {
    max-height: 96px;
    transform: scale(1.04);
  }

  #choose .vehicle-body b,
  #choose .vehicle b {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #choose .vehicle,
  #choose .vehicle-card-3d,
  #choose .vehicle-card,
  #choose .vehicle-visual,
  #choose .vehicle-check,
  #choose .vehicle img {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
