.trip-page {
  --trip-dark: #3b2218;
  --trip-paper: #f6f1e8;
  --trip-sand: #e7dac5;
  --trip-gold: #efae3e;
  --trip-rust: #a63d20;
  width: 100%;
  padding: 0 0 4rem;
  background: #fffdf9;
  color: var(--trip-dark);
}
.trip-page h1, .trip-page h2, .trip-page h3 {
  font-family: Georgia, serif;
  line-height: 1.22;
}
.trip-page h1 { font-size: 34px; }
.trip-page h2 { font-size: 26px; }
.trip-page h3 { font-size: 21px; }
.trip-wrap { width: min(100% - 3rem, 1380px); margin-inline: auto; }
.trip-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 38vw, 565px);
  padding: 3rem 1.2rem;
  color: white;
  background: var(--trip-dark);
  text-align: center;
}
.trip-hero-photo, .trip-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.trip-hero-photo { object-fit: cover; z-index: -2; }
.trip-hero::before { content: ""; z-index: -1; background: linear-gradient(#25171140, #23150ec7); }
.trip-hero-copy { max-width: 850px; }
.trip-hero h1 { text-transform: uppercase; letter-spacing: .045em; text-shadow: 0 2px 12px #1b100c; }
.trip-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.trip-categories a { padding: .35rem .85rem; border-radius: 2rem; color: var(--trip-dark); background: var(--trip-sand); font-size: .78rem; font-weight: 750; text-decoration: none; }
.trip-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.35rem; color: #28170e; background: var(--trip-gold); text-decoration: none; font-size: .9rem; font-weight: 800; }
.trip-button:hover { color: #28170e; background: #ffc966; }
.trip-nav { position: sticky; top: 0; z-index: 4; background: var(--trip-paper); border-bottom: 1px solid #c3ae94; }
.trip-nav .trip-wrap { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-block: .55rem; overflow-x: auto; }
.trip-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: .25rem .8rem; color: var(--trip-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.trip-nav a:hover, .trip-nav a:focus-visible { background: var(--trip-sand); }
.trip-nav a:last-child { border: 1px solid currentColor; border-radius: 2rem; }
.trip-crumb { margin-top: 1.35rem; font-size: .82rem; color: #664e40; }
.trip-crumb a, .trip-route a { color: var(--trip-rust); }
.trip-section, .trip-quote { scroll-margin-top: 86px; }
.trip-section { margin-block: clamp(2rem, 5vw, 4.5rem); }
.trip-overview { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, .92fr); align-items: start; gap: clamp(1.2rem, 5vw, 5.5rem); }
.trip-overview h2, .trip-facts h2 { margin-top: 0; }
.trip-copy { max-width: none; white-space: normal; overflow-wrap: anywhere; }
.trip-copy p, .trip-day p { margin-block: .8rem; }
.trip-copy ul, .trip-day ul { padding-left: 1.3rem; }
.trip-facts { padding: clamp(1.1rem, 3vw, 2.6rem); background: var(--trip-sand); border-top: 4px solid var(--trip-gold); overflow-wrap: anywhere; }
.trip-facts section { border-top: 1px solid #bcaa92; margin-top: 1.5rem; }
.trip-facts li::marker { color: var(--trip-rust); }
.trip-route { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; align-items: start; margin-bottom: 2rem; }
.trip-route ol { margin: 0; padding: 1.1rem 1.1rem 1.1rem 2.55rem; background: var(--trip-paper); }
.trip-route ol:only-child { grid-column: 1 / -1; }
.trip-route li { padding: .25rem 0; }
.trip-route iframe, #trip-itinerary > iframe { min-height: 320px; }
.trip-timeline { border-left: 2px dashed #cdb796; margin-top: 1.5rem; padding-left: clamp(.75rem, 3vw, 2.25rem); }
.trip-day { position: relative; padding: clamp(1rem, 4vw, 2.6rem); margin-bottom: 1.6rem; background: var(--trip-paper); overflow-wrap: anywhere; scroll-margin-top: 86px; }
.trip-day h3 { margin: .15rem 0 .75rem; }
.trip-day .trip-day-label { margin: 0; color: var(--trip-rust); font-weight: 850; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; }
.trip-practical details { border-block-start: 1px solid #cdb796; padding: .85rem .4rem; }
.trip-practical details:last-child { border-block-end: 1px solid #cdb796; }
.trip-practical summary { cursor: pointer; font-weight: 750; }
.trip-quote { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: clamp(1.4rem, 5vw, 3rem); background: var(--trip-dark); color: white; }
.trip-quote h2, .trip-quote p { margin: 0; }
.trip-quote p { margin-top: .45rem; }
.trip-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.trip-contact a:not(.trip-button) { color: white; }
@media (max-width: 780px) {
  .trip-wrap { width: calc(100% - 2rem); }
  .trip-overview, .trip-route { grid-template-columns: minmax(0, 1fr); }
  .trip-nav .trip-wrap { justify-content: flex-start; }
}

/* Safari overview */
.trip-page .trip-overview {
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
}
.trip-overview-heading {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #d8c8b2;
}
.trip-overview-heading h2 { margin: 0; }
.trip-overview-heading a { color: var(--trip-rust); font-weight: 700; font-size: .88rem; }
.trip-introduction { min-width: 0; }
.trip-introduction > :first-child { margin-top: 0; }
.trip-introduction > p:first-of-type { font-size: 1.08rem; line-height: 1.75; }
.trip-introduction > p { max-width: 75ch; }
.trip-introduction h3 { margin-block: 1.4rem .55rem; }
.trip-page .trip-facts {
  padding: 0;
  background: var(--trip-paper);
  border: 1px solid #d8c8b2;
  border-top: 4px solid var(--trip-gold);
}
.trip-overview-booking, .trip-page .trip-facts > section { padding: clamp(1rem, 2.5vw, 1.65rem); }
.trip-overview-booking h3, .trip-page .trip-facts h3 { margin: 0 0 .55rem; }
.trip-overview-booking p { margin: 0 0 1rem; }
.trip-page .trip-facts > section { margin: 0; border-top: 1px solid #d8c8b2; }
.trip-facts ul { padding-left: 1.25rem; margin: .65rem 0 0; }
.trip-facts li + li { margin-top: .35rem; }
.trip-facts .trip-package-included li::marker { color: #386044; }
@media (max-width: 780px) {
  .trip-page .trip-overview { grid-template-columns: minmax(0, 1fr); }
}
/* Single safari page refinements */
.trip-page .trip-wrap { width: min(calc(100% - 3rem), 1380px); }
.trip-page h1 { text-wrap: balance; }
.trip-hero-copy { padding-inline: min(2vw, 1rem); }
.trip-hero h1 { margin-bottom: 1.1rem; }
.trip-button { border-radius: .2rem; }
.trip-nav a { border-radius: .2rem; }
.trip-crumb { gap: .45rem .7rem; }
.trip-overview-heading { padding-bottom: 1rem; }
.trip-overview-heading h2 { border-inline-start: 3px solid var(--trip-gold); padding-inline-start: .75rem; }
.trip-introduction { line-height: 1.75; }
.trip-introduction :where(ul, ol), .trip-day :where(ul, ol) { padding-inline-start: 1.3rem; }
.trip-introduction li + li, .trip-day li + li { margin-top: .4rem; }
.trip-overview-booking { background: var(--trip-sand); }
.trip-facts .trip-button { width: 100%; }
.trip-facts, .trip-route ol, .trip-route iframe, .trip-day, .trip-quote { border-radius: .3rem; }
.trip-timeline { border-color: #c3ad90; }
.trip-day { border: 1px solid #e1d4c1; background: #faf6ef; }
.trip-day::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  inset-inline-start: calc(-1 * clamp(.75rem, 3vw, 2.25rem) - 7px);
  width: 12px;
  height: 12px;
  border: 2px solid #a63d20;
  border-radius: 50%;
  background: #fffdf9;
}
.trip-day h3 { max-width: 56ch; }
.trip-day p { max-width: 82ch; }
.trip-practical summary { padding-block: .25rem; }
.trip-quote { border-top: 3px solid var(--trip-gold); }
@media (max-width: 780px) {
  .trip-page .trip-wrap { width: calc(100% - 2rem); }
  .trip-route iframe, #trip-itinerary > iframe { min-height: 260px; }
  .trip-contact { width: 100%; }
}
@media (max-width: 400px) {
  .trip-nav a { padding-inline: .55rem; }
  .trip-contact .trip-button { width: 100%; }
}

/* Overview and package details */
.trip-page .trip-overview { grid-template-columns: minmax(0,1.5fr) minmax(310px,1fr); align-items: start; }
.trip-overview-heading { padding: .8rem 0 1.15rem; }
.trip-introduction {
  padding: clamp(1.15rem, 3vw, 2.35rem);
  background: #fffefa;
  border: 1px solid #e1d4c1;
  border-radius: .35rem;
}
.trip-introduction > ul { padding-inline-start: 1.25rem; }
.trip-introduction > ul > li::marker { color: var(--trip-rust); }
.trip-page .trip-facts { background: #fffefa; }
.trip-overview-booking { background: var(--trip-dark); color: white; }
.trip-terms > section { margin: 0; border-top: 1px solid #e1d4c1; padding: clamp(1rem,2.5vw,1.65rem); }
.trip-terms > section h3::before {
  display: inline-grid; place-items: center; margin-inline-end: .5rem;
  width: 1.55rem; height: 1.55rem; border-radius: 50%; font: 700 .92rem system-ui;
}
.trip-package-included h3::before { content: "+" / ""; background: #e2ebdd; color: #36563c; }
.trip-package-excluded h3::before { content: "−" / ""; background: #f3e3d9; color: #843d27; }
.trip-terms-pending { color: #674f41; margin-bottom: 0; }
@media (max-width: 780px) {
  .trip-page .trip-overview { grid-template-columns: minmax(0,1fr); }
}
