/* The private charter page (charter.html), on top of assets/trip.css, whose
   hero, key facts, sections, cards and booking panel it shares. Markup from
   scripts/build-charter-page.mjs. */

.tc-ch__sechead {
  flex-direction: column;
  align-items: flex-start;
}

.tc-ch__lede {
  color: var(--tp-muted);
  line-height: 1.6;
}

/* --- Made for ------------------------------------------------------------ */

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

@media (min-width: 640px) {
  .tc-ch__for {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tc-ch__for li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-ch__foricon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #e6f7f5;
  color: #0b6b5f;
}

.tc-ch__foricon .tc-tp__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.tc-ch__fortitle {
  color: var(--tp-navy);
  font-weight: 600;
  line-height: 1.4;
}

.tc-ch__for li p:not(.tc-ch__fortitle) {
  margin-top: 0.2rem;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* --- Rates --------------------------------------------------------------- */

.tc-ch__rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-ch__rates li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-ch__rate {
  color: var(--tp-muted);
  font-size: 0.8125rem;
}

.tc-ch__rate b {
  color: var(--tp-navy);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.tc-ch__ratek {
  margin-top: 0.2rem !important;
  color: var(--tp-ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

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

  .tc-ch__rates li {
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* --- Calculator ---------------------------------------------------------- */

.tc-ch__calc {
  display: grid;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 14px 32px -20px rgba(15, 31, 99, 0.3);
}

@media (min-width: 640px) {
  .tc-ch__calc {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.tc-ch__calcin {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
}

.tc-ch__calctitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tp-navy);
  font-weight: 600;
}

.tc-ch__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tc-ch__label {
  color: var(--tp-ink);
  font-size: 0.9375rem;
}

.tc-ch__stepper {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}

.tc-ch__stepper button {
  width: 2.5rem;
  border: 0;
  background: var(--tp-tint);
  color: var(--tp-navy);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.tc-ch__stepper button:hover:not(:disabled) {
  background: #eef2f7;
}

.tc-ch__stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.tc-ch__stepper input {
  width: 3.25rem;
  height: 2.5rem;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: var(--tp-ink);
  font: inherit;
  font-weight: 500;
  text-align: center;
  -moz-appearance: textfield;
}

.tc-ch__stepper input::-webkit-inner-spin-button,
.tc-ch__stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tc-ch__stepper button:focus-visible,
.tc-ch__stepper input:focus-visible {
  outline: 2px solid var(--tp-navy);
  outline-offset: -2px;
}

.tc-ch__hint,
.tc-ch__small {
  color: var(--tp-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tc-ch__calcout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  border-top: 1px solid var(--tp-line);
  background: var(--tp-tint);
}

@media (min-width: 640px) {
  .tc-ch__calcout {
    border-top: 0;
    border-left: 1px solid var(--tp-line);
  }
}

.tc-ch__totalk {
  color: var(--tp-muted);
  font-size: 0.8125rem;
}

.tc-ch__total output {
  color: var(--tp-navy);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tc-ch__pp {
  margin-bottom: 0.65rem !important;
  color: var(--tp-muted);
  font-size: 0.9375rem;
}

.tc-ch__pp output {
  color: var(--tp-ink);
  font-weight: 600;
}

.tc-ch__calcout .tc-tp__wa {
  font-size: 0.9375rem;
}

/* --- Examples ------------------------------------------------------------ */

.tc-ch__examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-ch__examples li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-ch__exwho {
  color: var(--tp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.tc-ch__extotal {
  margin-top: 0.35rem !important;
  color: var(--tp-navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.tc-ch__expp {
  color: var(--tp-ink);
  font-size: 0.8125rem;
}

/* --- Route ideas --------------------------------------------------------- */

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

@media (min-width: 640px) {
  .tc-ch__routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tc-ch__routes li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem 0.75rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

.tc-ch__routename {
  color: var(--tp-navy);
  font-size: 1.0625rem;
  font-weight: 600;
}

.tc-ch__routestops {
  color: var(--tp-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

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

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

/* --- The boat ------------------------------------------------------------ */

.tc-ch__boat {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 640px) {
  .tc-ch__boat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.75rem;
  }
}

.tc-ch__boatimg {
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 3;
  background: var(--tp-line);
}

.tc-ch__boatimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-ch__boattext {
  color: var(--tp-text);
  line-height: 1.7;
}

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

.tc-ch__boatlist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--tp-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tc-ch__boatlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: 0.75rem !important;
}

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

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

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

.tc-ch__steps li {
  padding: 1.25rem;
  border: 1px solid var(--tp-line);
  border-radius: 0.75rem;
  background: #fff;
}

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

.tc-ch__steptitle {
  margin-top: 0.85rem !important;
  color: var(--tp-navy);
  font-size: 1rem;
  font-weight: 600;
}

.tc-ch__steps p {
  margin-top: 0.35rem;
  color: var(--tp-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Booking panel extras ------------------------------------------------ */

.tc-ch__extras {
  display: grid;
  gap: 0.25rem;
  margin: -0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--tp-ink);
  font-size: 0.875rem;
}

.tc-ch__calclink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--tp-navy);
  border-radius: 6px;
  color: var(--tp-navy);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tc-ch__calclink:hover {
  background: var(--tp-tint);
}

.tc-ch__calclink .tc-tp__icon {
  width: 1.05rem;
  height: 1.05rem;
}

/* The four scheduled trips side by side. */
@media (min-width: 768px) {
  .tc-tp__others > .tc-ch__others {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
