/* Razuria V2 — trip page (/tour/{slug}). Mobile first; desktop from 1024px (photos + text left, booking box right).
   Uses the tokens and pieces of v2.css (.v2-sheet, .v2-faq, .v2-prose, .v2-bar, .v2-btn). */

.v2-tour { max-width: 1440px; margin: 0 auto; }
.v2-tour__crumbs { display: none; }
.v2-tour .v2-hide-desk { display: inline; }

/* ---------- Photos ---------- */
.v2-tour__media { position: relative; background: var(--line-2); }
.v2-tour__img { display: block; width: 100%; height: 290px; max-width: none; object-fit: cover; }
.v2 .v2-tour__img { height: 290px; }
.v2-tour__img--2 { display: none; }
.v2-tour__photos-btn {
  position: absolute; inset-inline-end: 12px; bottom: 12px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--radius); background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 4px rgba(6,24,36,.18);
}
.v2-tour__photos-btn:hover { background: #fff; }

/* ---------- Title block ---------- */
.v2-tour__head { padding: 22px var(--pad) 0; }
.v2-tour__title { margin-top: 8px !important; font-size: 31px; line-height: 1.15; overflow-wrap: anywhere; }
:lang(ar) .v2-tour__title { font-size: 34px; line-height: 1.3; margin-top: 4px !important; }
.v2-tour__meta { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; color: var(--muted); }
.v2-tour__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.v2-tour__meta > span + span::before { content: "·"; margin: 0 8px; color: var(--muted); }
.v2-tour__price {
  margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px;
}
.v2-tour__price .price { font-size: 24px; }
.v2-tour__price .v2-muted { font-size: 14px; }
.v2-tour__price .v2-tour__u3 { font-size: 13px; }
.v2-tour__price.is-request { flex-direction: column; align-items: stretch; gap: 4px; }
.v2-tour__price-req { font-size: 18px; font-weight: 600; }
.v2-tour__old { font-size: 15px; color: var(--muted); margin-inline-end: 4px; }
.v2-tour__lead { margin-top: 16px !important; }
:lang(ar) .v2-tour__lead { line-height: 1.8; }

/* ---------- Sections ---------- */
.v2-tour__sec { padding: 30px var(--pad) 0; }
.v2-tour__sec h2 { font-size: 26px; margin-bottom: 10px; }
.v2-tour__note { margin-top: 16px !important; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* The day (itinerary) */
.v2-day { list-style: none; margin: 0; padding: 0; }
.v2-day__step { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.v2-day__step:last-child { border-bottom: 1px solid var(--line); }
.v2-day__when { width: 92px; flex: none; padding-top: 1px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--teal); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.v2-day__body { min-width: 0; }
.v2 .v2-day__title { font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.35; }
.v2-day__text { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.v2-day__text > * + * { margin-top: 6px; }

/* Included / not included */
.v2-tour__inc { display: flex; flex-direction: column; gap: 22px; }
.v2-tour__inc > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
.v2-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.v2-list li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.v2-list .v2-icon { margin-top: 2px; }
.v2-list--yes .v2-icon { color: var(--teal); }
.v2-list--no .v2-icon { color: var(--muted); }

.v2-tour__prose { font-size: 16px; }
.v2-tour__prose h2, .v2-tour__prose h3, .v2-tour__prose h4 { font-size: 19px; margin-top: 22px; }
.v2-tour__prose h4 { font-family: var(--f-body); font-size: 16px; font-weight: 600; }

/* ---------- Booking form (sheet + desktop box) ---------- */
.v2-book { display: flex; flex-direction: column; }
.v2-field { margin-top: 14px; display: flex; flex-direction: column; }
.v2-field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.v2-field input {
  margin-top: 6px; width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-3); background: #fff; color: var(--ink);
  font: 500 16px var(--f-body); -webkit-appearance: none; appearance: none;
}
.v2-field input[type="date"] { display: flex; align-items: center; min-width: 0; }
.v2-field input::placeholder { color: var(--muted-2); opacity: 1; }
.v2-field input:focus { border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: 1px; }
.v2-steps { margin-top: 16px; }
.v2-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.v2-step:last-child { border-bottom: 1px solid var(--line); }
.v2-step__label { font-size: 16px; font-weight: 600; }
.v2-step__sub { font-size: 13px; color: var(--muted); }
.v2-step__ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.v2-step__btn {
  width: 44px; height: 44px; padding: 0; border-radius: var(--radius); border: 1px solid var(--line-3);
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.v2-step__btn:hover { background: var(--sand); }
.v2-step__btn[aria-disabled="true"] { border-color: var(--line); color: var(--muted-2); cursor: default; background: #fff; }
.v2-step__val { min-width: 24px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.v2-book__msg-l { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.v2-book__msg { margin-top: 6px !important; padding: 12px 14px; border-radius: var(--radius); background: #F3F1EC; font-size: 14px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.v2-book__total { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2-book__total > span:first-child { font-size: 14px; color: var(--muted); }
.v2-book__total .price { font-size: 22px; }
.v2-book__go { margin-top: 14px; height: 54px; }
.v2-book__note { margin-top: 12px !important; font-size: 13px; color: var(--muted); text-align: center; }

.v2-book-sheet { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.v2-book-sheet__trip { margin-top: 2px !important; font-size: 14px; color: var(--muted); }

/* Desktop box: hidden on phones */
.v2-tour__aside { display: none; }

/* ---------- Related trips ---------- */
.v2-tour__related { margin-top: 18px; }
.v2-tour__related .v2-section__head { margin-bottom: 8px; }

/* ---------- Photo viewer ---------- */
.v2-photos {
  position: fixed; inset: 0; z-index: 150; background: var(--navy-ink); color: #fff;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
.v2-photos__bar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.v2-photos__icon { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.v2-photos__count { font-size: 14px; font-weight: 500; }
.v2-photos__stage { position: relative; flex: 1; min-height: 0; display: flex; }
.v2-photos__track {
  list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.v2-photos__track::-webkit-scrollbar { display: none; }
.v2-photos__slide { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.v2 .v2-photos__slide img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.v2-photos__nav {
  position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 22px; border: 0;
  background: rgba(6,24,36,.6); color: #fff; display: flex; align-items: center; justify-content: center;
}
.v2-photos__nav:hover { background: rgba(6,24,36,.85); }
.v2-photos__nav.is-prev { inset-inline-start: 8px; }
.v2-photos__nav.is-next { inset-inline-end: 8px; }
.v2-photos__foot { padding: 12px 20px 14px; flex: none; }
.v2-photos__title { font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.v2-photos__hint { margin-top: 4px; font-size: 13px; color: var(--on-navy-2); }
.v2-photos__thumbs { flex: none; padding: 0 20px 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.v2-photos__thumbs::-webkit-scrollbar { display: none; }
.v2-photos__thumb { width: 64px; height: 48px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 2px; background: var(--navy-2); opacity: .7; overflow: hidden; }
.v2-photos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-photos__thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.v2-photos__thumb:hover { opacity: 1; }
.v2-photos__book { margin: 0 20px 24px; flex: none; }
.v2-photos :focus-visible { outline-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .v2-photos__track { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  .v2 .v2-tour__img { height: 400px; }
  .v2-tour__head, .v2-tour__sec { max-width: 720px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .v2-tour .v2-hide-desk { display: none; }
  .v2-tour__crumbs { display: flex; padding: 22px var(--pad) 0; font-size: 14px; }
  .v2-tour__crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
  .v2-tour__crumbs [aria-current] { color: var(--ink); }
  .v2-tour__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding: 16px var(--pad) 0; align-items: start; }

  .v2-tour__media { display: grid; grid-template-columns: 1fr; gap: 8px; background: none; }
  .v2-tour__media.has-2 { grid-template-columns: 2fr 1fr; }
  .v2 .v2-tour__img { height: 400px; border-radius: 2px; }
  .v2-tour__img--2 { display: block; }
  .v2-tour__photos-btn { font-size: 14px; }

  .v2-tour__head { padding: 26px 0 0; }
  .v2-tour__head .v2-eyebrow { font-size: 13px; }
  .v2-tour__title { font-size: 44px; line-height: 1.1; }
  :lang(ar) .v2-tour__title { font-size: 46px; }
  .v2-tour__meta { margin-top: 12px !important; font-size: 15px; color: var(--body); }
  .v2-tour__price { display: none; }
  .v2-tour__lead { margin-top: 18px !important; max-width: 680px; font-size: 17px; line-height: 1.65; }

  .v2-tour__sec { padding: 44px 0 0; max-width: 760px; }
  .v2-tour__sec h2 { font-size: 30px; margin-bottom: 14px; }
  .v2-day__when { width: 150px; font-size: 15px; }
  .v2-tour__inc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: none; }
  .v2-tour__inc > div + div { padding-top: 0; border-top: 0; }

  .v2-tour__aside { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .v2-aside { border: 1px solid var(--line); padding: 26px; }
  .v2-aside__price .price { font-size: 30px; }
  .v2-aside__price .v2-muted { font-size: 15px; }
  .v2-aside__req { font-size: 22px; font-weight: 600; }
  .v2-aside__sub { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
  .v2-aside .v2-field { margin-top: 18px; }
  .v2-aside .v2-field input { height: 46px; padding: 0 12px; }
  .v2-aside .v2-steps { margin-top: 14px; }
  .v2-aside .v2-step { padding: 6px 0; }
  .v2-aside .v2-step__label { font-size: 15px; }
  .v2-aside .v2-book__go { height: 52px; }

  .v2-tour__related { margin-top: 40px; padding: 28px var(--pad) 48px; }
  .v2-tour__related .v2-section__head { padding: 0; }
  .v2-tour__related .v2-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .v2-tour__related .v2-row { padding-inline: 0; border-top: 1px solid var(--line-2); }

  .v2-photos__stage { padding: 0 72px; }
  .v2-photos__nav { background: rgba(255,255,255,.14); }
  .v2-photos__nav:hover { background: rgba(255,255,255,.26); }
  .v2-photos__foot, .v2-photos__thumbs { padding-inline: 72px; }
  .v2-photos__thumbs { justify-content: center; }
  .v2-photos__foot { text-align: center; }
  .v2-photos__book { align-self: center; width: 100%; max-width: 380px; }
}
