/* Vamos trip page: a full-width photo with the name, a strip of facts (day, price, departures, length) that
   overlaps it like a boarding pass, the programme as a timeline beside the booking card (held in place on
   desktop), what is included, what to bring, the rules, then the other trips as a swipe row. */

/* ------------------------------------------------------------------ Hero */
.trip-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(360px, 58vh, 620px); padding-block: 96px clamp(84px, 9vw, 120px); color: var(--on-blue); overflow: hidden; }
.trip-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.trip-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 36 89 / 0.85), rgb(10 36 89 / 0.15) 65%, rgb(10 36 89 / 0.35)); }
.trip-hero__back { display: inline-flex; margin-bottom: 22px; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 12px; border-radius: 999px; background: rgb(10 36 89 / 0.45); backdrop-filter: blur(8px); color: var(--on-blue); font-weight: 600; text-decoration: none; }
.trip-hero__inner { display: grid; justify-items: start; }
.trip-hero__region { font-weight: 600; color: var(--sun); }
.trip-hero__title { max-width: 18ch; font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
[dir="rtl"] .trip-hero__title { line-height: 1.2; letter-spacing: 0; }
.trip-hero__tag { margin-top: 10px; font-size: 1.25rem; }

/* ------------------------------------------------------------------ Facts strip */
.trip__facts-wrap { position: relative; z-index: 1; margin-top: -56px; }
.trip__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start; padding: clamp(16px, 2vw, 24px); border-inline-start: 2px dashed var(--line); }
.fact:first-child { border-inline-start: 0; }
.fact > .icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--sand); color: var(--blue); }
.fact dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.fact dd { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.fact__small { font-family: var(--sans); font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 61.99rem) {
  .trip__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n + 3) { border-top: 2px dashed var(--line); }
}
@media (max-width: 47.99rem) {
  .trip__facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-inline-start: 0; }
  .fact + .fact { border-top: 2px dashed var(--line); }
}

/* ------------------------------------------------------------------ Body: programme beside the booking card */
.trip__body { padding-top: clamp(40px, 5vw, 64px); }
.trip__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.trip__intro { max-width: 58ch; font-size: 1.1875rem; }
.trip__h2 { margin-top: 36px; font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; }
.timeline { position: relative; display: grid; gap: 14px; margin-top: 20px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 9px; border-inline-start: 3px dashed color-mix(in srgb, var(--blue) 35%, transparent); }
.timeline__item { position: relative; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgb(11 31 69 / 0.06); }
.timeline__dot { position: absolute; top: 20px; inset-inline-start: -34px; width: 21px; height: 21px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--paper); }
.trip__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.trip__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.trip__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.trip__list { padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.trip__list--rules { background: var(--sand); }
.trip__h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.trip__h3 .icon { color: var(--blue); }
.trip__list ul { display: grid; gap: 6px; margin-top: 12px; padding-inline-start: 1.1em; list-style: disc; }
.trip__list li::marker { color: var(--blue); }
@media (max-width: 61.99rem) {
  .trip__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Booking card */
.book { position: sticky; top: calc(var(--header-h) + 20px); }
.book__card { padding: clamp(20px, 2.6vw, 32px); border-radius: 28px; background: var(--night); color: var(--on-blue); box-shadow: var(--shadow); }
.book__title { font-family: var(--display); font-weight: 800; font-size: 1.875rem; line-height: 1.1; color: var(--sun); }
.book__lede { margin-top: 8px; color: rgb(246 248 252 / 0.85); font-size: 0.9375rem; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field__label, .count__label { font-size: 0.9375rem; font-weight: 600; }
.field__opt { font-weight: 400; opacity: 0.8; }
.input { width: 100%; min-height: 50px; padding: 10px 16px; border: 2px solid transparent; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 1rem; }
.input::placeholder { color: #556283; }
.input:focus-visible { border-color: var(--sun); outline: 3px solid var(--sun); outline-offset: 1px; }
.textarea { min-height: 76px; resize: vertical; }
.field.is-invalid .input { border-color: #ff9b8f; }
.field__error { color: #ffc2ba; font-size: 0.875rem; font-weight: 500; }
.book :focus-visible { outline-color: var(--sun); }
/* The departure point: a styled dropdown (house rule: every dropdown matches the site). */
.select-wrap { position: relative; }
.select { appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap__caret { position: absolute; inset-inline-end: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
.select__button { display: none; }
@supports (appearance: base-select) {
  .select, .select::picker(select) { appearance: base-select; }
  .select { display: flex; align-items: stretch; padding: 0; }
  .select-wrap__caret { display: none; }
  .select__button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 16px; border: 0; background: transparent; font: inherit; color: inherit; text-align: start; pointer-events: none; }
  .select::picker-icon { display: none; }
  .select selectedcontent { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .select:has(.select__placeholder:checked) selectedcontent { color: #556283; }
  .select__caret { width: 18px; height: 18px; margin-inline-start: auto; transition: rotate 0.2s var(--ease); }
  .select:open .select__caret { rotate: 180deg; }
  .select::picker(select) { margin-block: 6px; padding: 6px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px rgb(10 36 89 / 0.35); opacity: 0; transform: translateY(-6px); transition: opacity 0.18s ease-out, transform 0.22s var(--ease), display 0.22s allow-discrete, overlay 0.22s allow-discrete; }
  .select:open::picker(select) { opacity: 1; transform: none; }
  @starting-style { .select:open::picker(select) { opacity: 0; transform: translateY(-6px); } }
  .select option { display: flex; align-items: center; min-height: 46px; padding: 8px 16px; border-radius: 999px; font-weight: 500; cursor: pointer; }
  .select option + option { margin-top: 2px; }
  .select option:hover, .select option:focus-visible { background: var(--sand); outline: none; }
  .select option:checked { background: var(--blue); color: var(--on-blue); font-weight: 600; }
  .select option::checkmark { order: 2; margin-inline-start: auto; }
  .select option.select__placeholder { display: none; }
}
/* People: two steppers (adults, children) with each price. */
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.count { display: grid; gap: 6px; }
.count__price { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--sun); }
.count__ctrl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface); }
.count__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); transition: transform 0.15s var(--ease); }
.count__btn:active { transform: scale(0.92); }
.count__btn:disabled { opacity: 0.4; cursor: default; }
.count__input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.count__input::-webkit-inner-spin-button, .count__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgb(246 248 252 / 0.08); }
.total__value { font-family: var(--display); font-weight: 800; font-size: 1.75rem; color: var(--sun); }
.form__submit { width: 100%; }
.form__privacy, .form__note { font-size: 0.8125rem; color: rgb(246 248 252 / 0.8); }
.form__done { display: grid; justify-items: start; gap: 10px; margin-top: 16px; }
.form__done:focus { outline: none; }
.form__done-icon { width: 52px; height: 52px; color: var(--sun); }
.form__done-title { font-family: var(--display); font-weight: 800; font-size: 1.75rem; }
.form__done .btn--line { color: var(--on-blue); }
@media (max-width: 61.99rem) {
  .book { position: static; }
}

/* ------------------------------------------------------------------ Other trips (swipe row) */
.others { padding-top: 0; }
.others__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; margin-top: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.others__row::-webkit-scrollbar { display: none; }
.others__row > li { scroll-snap-align: start; }
.other { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 300px; overflow: hidden; border-radius: var(--r-card); padding: 18px; color: var(--on-blue); text-decoration: none; }
.other__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.other::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 36 89 / 0.85), rgb(10 36 89 / 0) 60%); }
.other:hover .other__img { transform: scale(1.05); }
.other__name { font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; }
.other__price { justify-self: start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 0.875rem; }
@media (max-width: 47.99rem) {
  .others__row { grid-auto-columns: 70%; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
}
