/* ==========================================================================
   SERVICE PICTURES — the "real object" shown for each service in the
   Services showcase (boarding pass, key card, passport, ride map, policy,
   itinerary, phone). Only the active one is visible.
   Colors come from theme.css. Animation: js/sections/services.js → TEMPLATE_INTROS
   ========================================================================== */

.svc__templates {
  position: relative; height: 290px;
  display: grid; place-items: center;
  perspective: 1000px;
  --tpl-shadow: 0 30px 60px -24px color-mix(in srgb, var(--navy-dark) 95%, transparent);
}
.tpl { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.tpl.is-active { opacity: 1; visibility: visible; }

/* =================================================================
   FLIGHT — boarding pass
   ================================================================= */
.bpass {
  --stub: 96px;
  display: flex; width: min(100%, 390px);
  border-radius: 18px; overflow: hidden;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--tpl-shadow);
  /* two half-circle notches where the ticket tears */
  -webkit-mask: radial-gradient(circle 10px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
[dir="rtl"] .bpass {
  -webkit-mask: radial-gradient(circle 10px at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.bpass__main  { flex: 1; min-width: 0; padding: 18px 20px; }
.bpass__top   { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bpass__logo  { width: 12px; height: 20px; fill: var(--orange); }
.bpass__brand { font-family: var(--font-logo); font-size: .72rem; font-weight: 800; letter-spacing: .14em; direction: ltr; }
.bpass__label { margin-inline-start: auto; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-light-faint); }
[dir="rtl"] .bpass__label { letter-spacing: 0; font-size: .75rem; }

.bpass__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 16px 0 14px; }
.bpass__city strong { display: block; font-family: var(--font-numbers); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.bpass__city small  { font-size: .72rem; color: var(--text-on-light-faint); }
.bpass__city--end   { text-align: end; }
.bpass__path  { width: 100%; height: 40px; overflow: visible; }
[dir="rtl"] .bpass__path { transform: scaleX(-1); }
.bpass__arc   { fill: none; stroke: color-mix(in srgb, var(--navy) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.bpass__plane { fill: var(--orange); }

.bpass__grid { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
.bpass__grid dt { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-light-faint); }
[dir="rtl"] .bpass__grid dt { letter-spacing: 0; font-size: .7rem; }
.bpass__grid dd { margin: 2px 0 0; font-family: var(--font-numbers); font-size: .86rem; font-weight: 700; }

.bpass__stub {
  width: var(--stub); flex-shrink: 0; padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--orange); color: var(--navy);
  border-inline-start: 2px dashed color-mix(in srgb, var(--navy) 35%, transparent);
}
.bpass__stub small  { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bpass__stub strong { font-family: var(--font-numbers); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.bpass__barcode {
  margin-top: 10px; width: 100%; flex: 1; min-height: 60px; transform-origin: top;
  background: repeating-linear-gradient(180deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 13px);
}

/* =================================================================
   HOTEL — room key card + booking confirmation
   ================================================================= */
.tpl--hotel { width: min(100%, 380px); height: 250px; margin-inline: auto; grid-template: 1fr / 1fr; place-items: initial; }
.keycard {
  grid-area: 1 / 1; justify-self: start; align-self: start;
  position: relative; width: 250px; aspect-ratio: 1.586; padding: 18px; border-radius: 16px;
  color: var(--cream);
  background:
    linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--cream) 14%, transparent) 50%, transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--navy) 60%, var(--navy-dark) 100%);
  box-shadow: var(--tpl-shadow), inset 0 1px 0 color-mix(in srgb, var(--cream) 20%, transparent);
  transform: rotate(-6deg);
}
.keycard__top  { display: flex; justify-content: space-between; align-items: center; }
.keycard__logo { width: 14px; height: 24px; fill: var(--orange); }
.keycard__tap  { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.keycard__chip {
  display: block; width: 36px; height: 27px; margin-top: 12px; border-radius: 6px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy) 25%, transparent);
}
.keycard__room  { position: absolute; inset-inline-start: 18px; bottom: 16px; }
.keycard__room small  { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
[dir="rtl"] .keycard__room small { letter-spacing: 0; font-size: .75rem; }
.keycard__room strong { font-family: var(--font-numbers); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.keycard__stars { position: absolute; inset-inline-end: 18px; bottom: 20px; display: flex; gap: 2px; color: var(--orange); font-size: .8rem; direction: ltr; }
.keycard__stars i { font-style: normal; display: inline-block; }

.booking {
  grid-area: 1 / 1; justify-self: end; align-self: end;
  width: 196px; padding: 14px 16px; border-radius: 14px;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--tpl-shadow);
  transform: rotate(3deg);
}
.booking__status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; }
.booking__status svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--orange); fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.booking__row b { font-family: var(--font-numbers); }
.booking__row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .76rem; border-top: 1px solid var(--line-on-light); }
.booking__row span { color: var(--text-on-light-faint); }
.booking__nights { margin-top: 8px; font-size: .72rem; font-weight: 700; color: var(--blue); }

/* =================================================================
   VISA — passport page with an "approved" stamp
   ================================================================= */
.passport {
  position: relative; width: min(100%, 340px); padding: 16px 18px; border-radius: 14px;
  color: var(--navy);
  background:
    repeating-radial-gradient(circle at 85% 15%, transparent 0 7px, color-mix(in srgb, var(--blue) 6%, transparent) 7px 8px),
    linear-gradient(160deg, var(--cream), var(--blue-pale));
  box-shadow: var(--tpl-shadow);
}
.passport__head { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-light-faint); }
[dir="rtl"] .passport__head { letter-spacing: 0; font-size: .78rem; }
.passport__body  { display: flex; gap: 14px; margin-top: 12px; }
.passport__photo { width: 70px; height: 86px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--blue-pale); border: 1px solid var(--line-on-light); }
.passport__photo svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 1.4; }
.passport__lines { flex: 1; display: grid; gap: 10px; align-content: center; }
.passport__lines i { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--navy) 12%, transparent); }
.passport__lines i:nth-child(1) { width: 80%; } .passport__lines i:nth-child(2) { width: 60%; }
.passport__lines i:nth-child(3) { width: 70%; } .passport__lines i:nth-child(4) { width: 45%; }
.passport__mrz {
  margin-top: 14px; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden;
  font-family: var(--font-numbers); font-size: .62rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5;
  color: color-mix(in srgb, var(--navy) 65%, transparent);
}
/* The stamp (blue ink, double ring) */
.stamp {
  position: absolute; inset-inline-end: 14px; top: 46px;
  padding: 8px 14px; border-radius: 10px;
  display: grid; place-items: center; align-content: center; gap: 3px; text-align: center;
  color: var(--blue);
  border: 3px solid var(--blue);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--cream) 60%, transparent), inset 0 0 0 7px var(--blue);
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  transform: rotate(-14deg);
  opacity: .92;
}
.stamp__top, .stamp__bottom { font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.stamp__main { font-family: var(--font-headings); font-size: 1.05rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding: 3px 4px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.stamp__bottom { direction: ltr; }
[dir="rtl"] .stamp__top, [dir="rtl"] .stamp__main { letter-spacing: 0; }

/* =================================================================
   TRANSFER — ride map
   ================================================================= */
.ride {
  width: min(100%, 370px); border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--navy) 70%, var(--blue));
  border: 1px solid var(--service-card-border);
  box-shadow: var(--tpl-shadow);
}
.ride__map { position: relative; height: 160px; background: color-mix(in srgb, var(--navy-dark) 80%, var(--navy)); }
.ride__svg { width: 100%; height: 100%; display: block; }
[dir="rtl"] .ride__svg { transform: scaleX(-1); }
.ride__street { fill: none; stroke: color-mix(in srgb, var(--cream) 7%, transparent); stroke-width: 7; stroke-linecap: round; }
.ride__route  { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.ride__pin-a  { fill: var(--cream); stroke: color-mix(in srgb, var(--cream) 30%, transparent); stroke-width: 8; }
.ride__pin-b circle { fill: var(--orange); }
.ride__pin-b use    { fill: var(--navy); }
.ride__car rect     { fill: var(--cream); }
.ride__car .ride__car-glass { fill: var(--navy); }
.ride__tag {
  position: absolute; padding: 4px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700;
  background: color-mix(in srgb, var(--navy-dark) 85%, transparent); color: var(--cream);
  border: 1px solid var(--service-card-border);
}
.ride__tag--a { inset-inline-start: 10px; bottom: 10px; }
.ride__tag--b { inset-inline-end: 10px; top: 10px; }
.ride__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--cream); }
.ride__avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--orange); }
.ride__avatar svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; }
.ride__info { display: grid; min-width: 0; }
.ride__info b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride__info small { font-family: var(--font-numbers); font-size: .64rem; color: var(--text-on-dark-faint); direction: ltr; text-align: start; }
.ride__eta { font-family: var(--font-numbers); margin-inline-start: auto; flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: .74rem; font-weight: 800; }

/* =================================================================
   INSURANCE — policy card
   ================================================================= */
.policy {
  width: min(100%, 350px); padding: 20px; border-radius: 18px; color: var(--cream);
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 55%, var(--navy)), var(--navy-dark));
  border: 1px solid var(--service-card-border);
  box-shadow: var(--tpl-shadow);
}
.policy__head   { display: flex; align-items: center; gap: 14px; }
.policy__shield { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: var(--orange); }
.policy__shield svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.policy__check { stroke-width: 2.4; stroke-dasharray: 12; }
.policy__name  { display: block; font-family: var(--font-logo); font-size: 1.05rem; font-weight: 700; direction: ltr; text-align: start; }
.policy__pill  { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-light); }
.policy__pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: policy-blink 1.6s ease-in-out infinite; }
@keyframes policy-blink { 50% { opacity: .2; } }
.policy__rows { margin-top: 18px; display: grid; gap: 12px; }
.policy__rows li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: .78rem; color: var(--text-on-dark-soft); }
.policy__bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--cream) 10%, transparent); overflow: hidden; }
.policy__bar i { display: block; height: 100%; width: var(--fill); border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); transform-origin: left center; }
[dir="rtl"] .policy__bar i { transform-origin: right center; background: linear-gradient(-90deg, var(--orange), var(--orange-light)); }

/* =================================================================
   TOURS — day itinerary
   ================================================================= */
.itinerary {
  width: min(100%, 340px); padding: 18px 20px; border-radius: 18px;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--tpl-shadow);
}
.itinerary__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line-on-light); }
.itinerary__head b { font-family: var(--font-headings); font-size: 1.1rem; }
.itinerary__head span { padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--orange); color: var(--navy); direction: ltr; }
.itinerary__list { position: relative; margin: 8px 0 0; padding: 0; list-style: none; }
.itinerary__list::before { /* the timeline line */
  content: ""; position: absolute; inset-inline-start: 64px; top: 20px; bottom: 20px; width: 2px;
  background: color-mix(in srgb, var(--navy) 12%, transparent); transform-origin: top;
}
.itinerary__list li { position: relative; display: grid; grid-template-columns: 48px 14px 1fr; align-items: center; gap: 10px; padding: 10px 0; }
.itinerary__list time { font-family: var(--font-numbers); font-size: .74rem; font-weight: 800; color: var(--blue); direction: ltr; }
.itinerary__list i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 3px solid var(--orange); }
.itinerary__list span { font-size: .88rem; font-weight: 600; }

/* =================================================================
   eSIM — phone with signal and data
   ================================================================= */
.phone {
  position: relative; width: 168px; height: 272px; padding: 14px;
  display: grid; justify-items: center; align-content: start;
  border-radius: 32px; color: var(--cream);
  background: linear-gradient(170deg, var(--navy), var(--navy-dark));
  border: 2px solid color-mix(in srgb, var(--cream) 22%, transparent);
  box-shadow: var(--tpl-shadow), inset 0 0 0 5px color-mix(in srgb, var(--navy-dark) 90%, transparent);
}
.phone__notch  { position: absolute; top: 10px; left: 50%; width: 56px; height: 14px; margin-left: -28px; border-radius: 10px; background: var(--navy-dark); }
.phone__status { font-family: var(--font-numbers); width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 0; font-size: .66rem; font-weight: 700; direction: ltr; }
.phone__bars   { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.phone__bars i { width: 3px; border-radius: 1px; background: var(--cream); transform-origin: bottom; }
.phone__bars i:nth-child(1) { height: 4px; } .phone__bars i:nth-child(2) { height: 6px; }
.phone__bars i:nth-child(3) { height: 8px; } .phone__bars i:nth-child(4) { height: 10px; }
.phone__ring { position: relative; width: 112px; height: 112px; margin-top: 22px; }
.phone__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.phone__ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.phone__ring-bg   { stroke: color-mix(in srgb, var(--cream) 10%, transparent); }
.phone__ring-fill { stroke: var(--orange); stroke-dasharray: 314; stroke-dashoffset: 78; }
.phone__data { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.phone__data b { font-family: var(--font-numbers); font-size: 1.2rem; direction: ltr; }
.phone__data small { font-size: .66rem; color: var(--text-on-dark-faint); }
.phone__pill { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-light); }
.phone__pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
