/* Trips and prices (packages.html) and the "Departure Schedule" box on the
   trip pages (detail/*.html). Markup from scripts/build-departures.mjs.

   Same visual language as the homepage's "Find your journey" and "Booking is
   simple" sections: Poppins at regular weight for reading text, navy #0F1F63
   at weight 600 only for names, prices and links, Avenir capitals for the
   section titles, white cards with a 1px slate border and a 12px radius. */

.tc-dep {
  --dep-navy: #0f1f63;
  --dep-ink: #334155;
  --dep-muted: #64748b;
  --dep-line: #e2e8f0;
  --dep-tint: #f8fafc;
  --dep-wa: #25d366;
  --dep-wa-hover: #1da851;
  color: var(--dep-ink);
  font-weight: 400;
}

.tc-dep__wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8.5rem 1.25rem 5rem;
}

@media (min-width: 768px) {
  .tc-dep__wrap {
    padding: 9.5rem 2rem 6rem;
  }
}

.tc-dep p,
.tc-dep h1,
.tc-dep h2,
.tc-dep h3 {
  margin: 0;
}

.tc-dep b {
  font-weight: 600;
}

.tc-dep__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tc-dep [hidden] {
  display: none !important;
}

.tc-dep a:focus-visible,
.tc-dep select:focus-visible {
  outline: 2px solid var(--dep-navy);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.tc-dep__icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}

.tc-dep__tick {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: #059669;
}

.tc-dep__arrow {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.15s ease;
}

/* --- Page head ----------------------------------------------------------- */

.tc-dep__head {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.tc-dep__title {
  color: var(--dep-navy);
  font-family: avenir, Poppins, sans-serif;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.tc-dep__lead {
  margin-top: 0.75rem !important;
  color: var(--dep-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.tc-dep__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--dep-ink);
  font-size: 0.875rem;
}

.tc-dep__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tc-dep__facts .tc-dep__icon {
  color: var(--dep-navy);
}

.tc-dep__facts a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 3px;
}

.tc-dep__facts a:hover {
  color: var(--dep-navy);
  text-decoration-color: currentColor;
}

/* "Dates on request" note under the head. */
.tc-dep__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid #dbe3f4;
  border-radius: 0.75rem;
  background: #f3f6fc;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tc-dep__notice .tc-dep__icon {
  margin-top: 0.2rem;
  color: var(--dep-navy);
}

.tc-dep__notice b {
  color: var(--dep-navy);
}

/* --- Sections ------------------------------------------------------------ */

.tc-dep__section {
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .tc-dep__section {
    margin-top: 5.5rem;
  }
}

.tc-dep__sechead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.tc-dep__h2 {
  color: var(--dep-navy);
  font-family: avenir, Poppins, sans-serif;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.tc-dep__more {
  margin-top: 1.75rem !important;
  text-align: center;
}

/* --- Trip cards ---------------------------------------------------------- */

.tc-dep__trips {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-trip {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--dep-line);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 31, 99, 0.06);
  transition: box-shadow 0.2s ease;
}

.tc-trip:hover {
  box-shadow: 0 14px 32px -14px rgba(15, 31, 99, 0.3);
}

.tc-trip__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dep-line);
}

.tc-trip__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tc-trip:hover .tc-trip__media img {
  transform: scale(1.04);
}

.tc-trip__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.tc-trip__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--dep-navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tc-trip__tag {
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #e6f7f5;
  color: #0b6b5f;
  letter-spacing: 0.04em;
}

.tc-trip__name {
  color: var(--dep-navy);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.tc-trip__name a {
  color: inherit;
  text-decoration: none;
}

.tc-trip__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tc-trip__desc {
  color: var(--dep-muted);
  line-height: 1.6;
}

.tc-trip__route {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--dep-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.tc-trip__route .tc-dep__icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.15rem;
  color: #94a3b8;
}

.tc-trip__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: auto;
  color: var(--dep-navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-trip__more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tc-trip__more:hover .tc-dep__arrow {
  transform: translateX(3px);
}

/* Price and booking panel. */
.tc-trip__aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--dep-line);
  background: var(--dep-tint);
}

.tc-trip__price {
  color: var(--dep-muted);
  font-size: 0.875rem;
}

.tc-trip__price b {
  margin-right: 0.15rem;
  color: var(--dep-navy);
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

.tc-trip__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.tc-trip__badge .tc-dep__tick {
  width: 0.85rem;
  height: 0.85rem;
}

.tc-trip__note,
.tc-trip__avail {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tc-trip__note {
  color: #92400e;
}

.tc-trip__avail {
  color: var(--dep-ink);
}

.tc-trip__note .tc-dep__icon,
.tc-trip__avail .tc-dep__icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
}

.tc-trip__avail .tc-dep__icon {
  color: var(--dep-navy);
}

.tc-trip__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

/* WhatsApp button: the navbar's "Chat with us", full width. .tc-dep in
   front out-ranks the site-wide .wa-cta colours. */
.tc-dep .tc-dep__wa,
.tc-dep__none .tc-dep__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: var(--dep-wa, #25d366);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.tc-dep .tc-dep__wa:hover,
.tc-dep__none .tc-dep__wa:hover {
  background-color: var(--dep-wa-hover, #1da851);
}

.tc-dep .tc-dep__wa--line {
  border: 1px solid var(--dep-navy);
  background-color: #fff;
  color: var(--dep-navy);
}

.tc-dep .tc-dep__wa--line:hover {
  background-color: var(--dep-tint);
}

.tc-dep__waicon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.tc-dep__mail {
  align-self: center;
  padding: 0.35rem;
  color: var(--dep-muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-dep__mail:hover {
  color: var(--dep-navy);
}

/* Tablet: photo beside the text, price panel underneath. */
@media (min-width: 640px) {
  .tc-trip {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .tc-trip__media {
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .tc-trip__media img {
    position: relative;
  }
}

/* Desktop: photo, text, price panel side by side. */
@media (min-width: 1024px) {
  .tc-trip {
    grid-template-columns: 16rem minmax(0, 1fr) 19rem;
  }

  .tc-trip__media {
    grid-row: auto;
  }

  .tc-trip__body {
    padding: 1.75rem 1.75rem 1.5rem;
  }

  .tc-trip__aside {
    padding: 1.75rem 1.5rem 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--dep-line);
  }
}

/* --- Included ------------------------------------------------------------ */

.tc-dep__incl {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--dep-line);
  border-radius: 0.75rem;
  background: var(--dep-tint);
}

.tc-dep__incltitle {
  color: var(--dep-navy);
  font-weight: 600;
}

.tc-dep__incllist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.tc-dep__incllist li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tc-dep__inclnot {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dep-line);
  color: var(--dep-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tc-dep__inclnot b {
  color: var(--dep-ink);
}

/* --- Private charter ----------------------------------------------------- */

.tc-dep__charter {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--dep-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-dep__charterbody {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tc-dep__charterbody > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tc-dep__chartericon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--dep-navy);
  box-shadow: 0 4px 14px -4px rgba(15, 31, 99, 0.35);
}

.tc-dep__chartericon .tc-dep__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.tc-dep__charteraside {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tc-dep__charterlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
}

.tc-dep .tc-dep__walink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  background: none;
  color: #047857;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-dep .tc-dep__walink:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tc-dep__charter .tc-trip__more {
  margin-top: 0;
}

@media (min-width: 768px) {
  .tc-dep__charter {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.5rem 1.75rem;
  }

  .tc-dep__charteraside {
    align-items: flex-end;
    text-align: right;
  }
}

/* --- Booking steps (the homepage's) -------------------------------------- */

.tc-dep__steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .tc-dep__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.tc-dep__step {
  padding: 1.5rem;
  border: 1px solid var(--dep-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-dep__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--dep-navy);
  color: #fff;
  font-weight: 600;
}

.tc-dep__steptitle {
  margin-top: 1rem !important;
  color: var(--dep-navy);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.tc-dep__step p {
  margin-top: 0.4rem;
  color: var(--dep-muted);
  line-height: 1.6;
}

/* --- Scheduled departures (when there are any) --------------------------- */

.tc-dep__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tc-dep__filters label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dep-ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.tc-dep__filters select {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--dep-ink);
  font: inherit;
  font-size: 0.9375rem;
}

.tc-dep__list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dep-line);
  border-radius: 0.75rem;
  background: #fff;
  list-style: none;
}

.tc-dep__row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) 8.5rem 9rem 13rem;
  grid-template-areas: "dates trip seats price actions" "dates len seats price actions";
  align-items: center;
  column-gap: 1.25rem;
  padding: 1rem 1.25rem;
}

.tc-dep__row + .tc-dep__row {
  border-top: 1px solid var(--dep-line);
}

.tc-dep__dates {
  grid-area: dates;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  color: var(--dep-navy);
  font-weight: 500;
}

.tc-dep__trip {
  grid-area: trip;
  align-self: end;
}

.tc-dep__trip a {
  color: var(--dep-navy);
  font-weight: 600;
  text-decoration: none;
}

.tc-dep__trip a:hover {
  text-decoration: underline;
}

.tc-dep__len {
  grid-area: len;
  align-self: start;
  color: var(--dep-muted);
  font-size: 0.8125rem;
}

.tc-dep__seats {
  grid-area: seats;
  color: #047857;
  font-size: 0.875rem;
}

.tc-dep__seats[data-level="low"] {
  color: #b45309;
  font-weight: 500;
}

.tc-dep__seats[data-level="full"] {
  color: var(--dep-muted);
}

.tc-dep__price {
  grid-area: price;
  color: var(--dep-muted);
  font-size: 0.8125rem;
}

.tc-dep__price b {
  color: var(--dep-navy);
  font-size: 1.05rem;
}

.tc-dep__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
}

.tc-dep__list:not(.tc-dep__list--compact) .tc-dep__actions > * {
  flex: 1;
}

.tc-dep__empty {
  padding: 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  color: var(--dep-muted);
  text-align: center;
}

@media (max-width: 899px) {
  .tc-dep__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "dates dates" "trip seats" "len price" "actions actions";
    row-gap: 0.3rem;
  }

  .tc-dep__seats,
  .tc-dep__price {
    text-align: right;
  }

  .tc-dep__actions {
    margin-top: 0.5rem;
  }

  .tc-dep__actions > * {
    flex: 1;
  }
}

@media (max-width: 639px) {
  .tc-dep__filters {
    grid-template-columns: 1fr;
  }
}

/* --- Trip pages: the "Departure Schedule" box ---------------------------- */

.tc-dep__list--compact {
  max-height: 22rem;
  overflow-y: auto;
}

.tc-dep__list--compact .tc-dep__row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "dates actions" "seats actions";
  row-gap: 0.2rem;
  padding: 0.85rem 1rem;
}

.tc-dep__list--compact .tc-dep__actions {
  margin: 0;
}

.tc-dep__none {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}

.tc-dep__none p {
  margin: 0;
}

.tc-dep__nonetitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f1f63;
  font-size: 1rem;
  font-weight: 600;
}

.tc-dep__none .tc-dep__wa {
  margin-top: 0.35rem;
}

/* The schedule box lives outside .tc-dep on the trip pages. */
.tc-dep__list--compact,
.tc-dep__none {
  --dep-navy: #0f1f63;
  --dep-ink: #334155;
  --dep-muted: #64748b;
  --dep-line: #e2e8f0;
  --dep-tint: #f8fafc;
  --dep-wa: #25d366;
  --dep-wa-hover: #1da851;
}

.tc-dep__list--compact .tc-dep__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background-color: var(--dep-wa);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.tc-dep__list--compact .tc-dep__wa:hover {
  background-color: var(--dep-wa-hover);
}

.tc-dep__list--compact .tc-dep__dates {
  color: var(--dep-navy);
  font-weight: 500;
}

.tc-dep__list--compact .tc-dep__waicon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .tc-trip,
  .tc-trip__media img,
  .tc-dep__arrow {
    transition: none;
  }

  .tc-trip:hover .tc-trip__media img {
    transform: none;
  }
}
