/* Trip pages inherit the shared Horizonte typography, spacing and controls. */
.trip-document { scroll-padding-top: 5.25rem; }
.trip-preview { margin: 0; padding: .65rem var(--gutter); background: var(--ink); color: var(--paper); font-size: .8125rem; line-height: 1.5; text-align: center; }
.trip-hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 3.5vw; padding: 3rem var(--gutter); }
.trip-hero-copy { min-width: 0; }
.trip-countries { margin-bottom: 1.75rem; border-left: 2px solid var(--acid); padding-left: 1rem; }
.trip-countries > p { font-size: .75rem; line-height: 1.5; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .65rem; }
.trip-countries ul { display: flex; flex-direction: column; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.trip-countries li { display: flex; align-items: center; gap: .65rem; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.trip-countries li span { display: inline-flex; justify-content: center; width: 1.8rem; font-size: 1.5rem; line-height: 1.2; }
.trip-hero h1 { font-size: clamp(3.4rem, 5.4vw, 5.25rem); line-height: 1.05; font-weight: 400; margin-bottom: 1.5rem; }
.trip-hero h1 em { display: block; color: var(--ink); }
.trip-intro { font-size: 1.1875rem; line-height: 1.5; max-width: 28rem; margin-bottom: 1rem; }
.trip-hero-copy > p:last-child { color: var(--muted); font-size: 1rem; max-width: 49ch; margin: 0; }
.trip-hero-photo { margin: 0; min-width: 0; }
.trip-hero-image { width: 100%; height: auto; aspect-ratio: 1.06; object-fit: cover; object-position: 100% center; border-radius: var(--radius); }
.trip-hero-photo figcaption { padding: .85rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

.trip-facts { display: grid; grid-template-columns: 1.5fr .65fr 1fr 1fr; margin: 0 var(--gutter); padding: 1.75rem 0; border-block: 1px solid var(--line); }
.trip-facts > div { min-width: 0; padding-inline: 1.5rem; border-right: 1px solid var(--line); }
.trip-facts > div:first-child { padding-left: 0; }
.trip-facts > div:last-child { padding-right: 0; border: 0; }
.trip-facts dt, .trip-departure-details dt { font-size: .75rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.trip-facts dd { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 500; }
.trip-facts .trip-difficulty { font-size: .9375rem; font-weight: 600; }
.trip-join { margin: 2rem var(--gutter); padding: 1.5rem 1.75rem; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--acid); border-radius: var(--radius); scroll-margin-top: 1rem; }
.trip-departure-title { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.4; margin-bottom: 1.25rem; }
.trip-departure-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
.trip-departure-details { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr; gap: 1.5rem; margin: 0; }
.trip-departure-details dd { margin: 0; font-size: 1rem; line-height: 1.6; font-weight: 500; }
.trip-dates time { white-space: nowrap; }
.trip-contact-phone { display: inline-block; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; }
.trip-signup { text-align: center; }
.trip-signup .button { white-space: nowrap; }
.trip-signup-note { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); margin: .65rem 0 0; }
.trip-signup-light { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #238653; box-shadow: 0 0 0 3px #23865318; }
.trip-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem var(--gutter); background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 4px 12px #123E4905; }
.trip-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 6px; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.trip-nav a:hover { background: var(--soft); }
.trip-nav a[aria-current="location"] { background: var(--ink); color: var(--paper); }
.trip-section { padding: var(--section-space) var(--gutter); scroll-margin-top: 0; }
.trip-section-heading { max-width: 62rem; margin-bottom: 2.5rem; }
.trip-section h2 { font-weight: 500; }
.trip-section h3 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 1.1rem; }
.trip-story { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 3.5rem; }
.trip-story p { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); margin: 0; }
.trip-story p:first-child { grid-column: 1 / -1; max-width: 90ch; font-size: 1.2rem; line-height: 1.7; color: var(--ink); }

/* Clear, paired prices and restrained lists on the brand's dark surface. */
#precio { background: var(--ink); color: var(--paper); }
#precio h2 em { color: var(--acid); }
#precio .section-label { color: #C4D5D7; }
.trip-prices { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 1.75rem 0 2rem; border-block: 1px solid #527780; }
.trip-prices > div { padding: 0 2rem; border-right: 1px solid #527780; }
.trip-prices > div:first-child { padding-left: 0; }
.trip-prices > div:last-child { padding-right: 0; border: 0; }
.trip-prices dt { font-size: .9375rem; line-height: 1.5; color: #D0DFE1; margin-bottom: .75rem; }
.trip-prices dd { font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; margin: 0; }
.trip-prices dd span { font-size: .55em; letter-spacing: 0; }
.trip-price-note { margin: 1rem 0 0; color: #D0DFE1; font-size: .9375rem; line-height: 1.6; }
.trip-price-details, .trip-fund { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; margin-top: 2.5rem; }
.trip-list { padding: 0; margin: 0; list-style: none; }
.trip-list li { position: relative; padding: .85rem 0 .85rem 1.25rem; font-size: 1rem; line-height: 1.65; border-bottom: 1px solid #ffffff20; color: #E5EFF0; }
.trip-list li::before { content: ''; position: absolute; left: 0; top: 1.5rem; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.trip-fund { padding-top: 2.5rem; border-top: 1px solid #527780; }
.trip-fund h4 { font-size: 1.125rem; line-height: 1.5; margin-bottom: .6rem; }
.trip-fund p { font-size: 1rem; color: #D0DFE1; }
.trip-fund p:last-child { margin-bottom: 0; }

#recorrido { background: var(--soft); border-block: 1px solid var(--line); }
.trip-outline { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ADC4C8; }
.trip-outline > li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid #ADC4C8; }
.trip-outline-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #AFC6CA; border-radius: 50%; font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.trip-outline h3 { font-size: 1.375rem; margin-bottom: .6rem; }
.trip-outline p { max-width: 82ch; margin: 0; color: var(--muted); font-size: 1rem; }
.trip-map-section { border-bottom: 1px solid var(--line); }
.trip-map { margin: 0; }
.trip-map-image { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.trip-map img { width: 100%; height: auto; display: block; }
.trip-map figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .5rem; font-size: .8125rem; color: var(--muted); }
.trip-map figcaption a { text-decoration: underline; text-underline-offset: 4px; }
.trip-map-expand { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border: 0; background: none; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.trip-map-dialog { width: min(1120px, calc(100vw - 3rem)); max-width: none; max-height: calc(100dvh - 3rem); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 20px 90px #00141a55; }
.trip-map-dialog[open] { display: flex; flex-direction: column; }
.trip-map-dialog::backdrop { background: #071E27bb; }
.trip-page:has(.trip-map-dialog[open]) { overflow: hidden; }
.trip-map-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.trip-map-dialog-header h2 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.4; }
.trip-map-dialog-header form { margin: 0; }
.trip-map-close { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; border: 1px solid var(--ink); border-radius: 6px; padding: .6rem .9rem; background: var(--ink); color: var(--paper); font-size: .875rem; cursor: pointer; white-space: nowrap; }
.trip-map-close span { font-size: 1.5rem; line-height: 1; }
.trip-map-close:hover { background: #235968; }
.trip-map-dialog-body { overflow: auto; overscroll-behavior: contain; min-height: 0; }
.trip-map-dialog-body img { display: block; width: 100%; min-width: 720px; height: auto; max-height: calc(100dvh - 9rem); object-fit: contain; }
.trip-tale-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 3.5rem; }
.trip-tale-copy p { font-size: 1rem; line-height: 1.8; color: var(--muted); margin-bottom: 1.25rem; }
.trip-tale-copy .trip-tale-lead { grid-column: 1 / -1; max-width: 95ch; color: var(--ink); font-size: 1.125rem; margin: 0; }
.trip-tale-column p:last-child { margin: 0; }
.trip-credit { flex-basis: 100%; font-size: .75rem; line-height: 1.6; margin: 0; }
.trip-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .trip-hero { gap: 2.5rem; }
  .trip-facts > div { padding-inline: 1rem; }
  .trip-departure-row { grid-template-columns: 1fr; }
  .trip-signup { justify-self: start; display: flex; align-items: center; gap: 1rem; text-align: left; }
  .trip-signup-note { margin: 0; }
  .trip-price-details, .trip-fund { gap: 3rem; }
}
@media (max-width: 850px) {
  .trip-hero { grid-template-columns: 1fr; padding-block: 2.5rem; gap: 2rem; }
  .trip-hero h1 { font-size: clamp(3.3rem, 8vw, 4.5rem); }
  .trip-hero h1 em { display: inline; }
  .trip-hero-copy > p:last-child { max-width: 65ch; }
  .trip-hero-image { aspect-ratio: 4 / 3; }
  .trip-facts { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .trip-facts > div { padding: 0; border: 0; }
  .trip-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; padding-inline: var(--gutter); }
  .trip-nav a { padding-inline: .85rem; }
  .trip-story, .trip-tale-copy { column-gap: 2rem; }
}
@media (max-width: 650px) {
  .trip-preview { font-size: .75rem; }
  .trip-hero h1 { font-size: clamp(3.1rem, 10.5vw, 4rem); }
  .trip-intro { font-size: 1.125rem; }
  .trip-facts > div:first-child { grid-column: 1 / -1; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .trip-facts > div:last-child { grid-column: 1 / -1; }
  .trip-join { padding: 1.5rem; }
  .trip-departure-details { grid-template-columns: 1fr; gap: 1.25rem; }
  .trip-departure-details dt { margin-bottom: .3rem; }
  .trip-signup { display: block; justify-self: stretch; }
  .trip-signup .button { width: 100%; padding-inline: 1rem; }
  .trip-signup-note { margin-top: .6rem; text-align: center; }
  .trip-section-heading { margin-bottom: 2rem; }
  .trip-story, .trip-price-details, .trip-fund, .trip-tale-copy { grid-template-columns: 1fr; gap: 1.5rem; }
  .trip-story p, .trip-story p:first-child { font-size: 1rem; }
  .trip-prices { gap: 1.5rem; }
  .trip-prices > div { padding: 0; border: 0; }
  .trip-prices dt { font-size: .8125rem; }
  .trip-prices dd { font-size: clamp(2rem, 7.5vw, 2.75rem); white-space: nowrap; }
  .trip-fund { gap: 2rem; }
  .trip-outline > li { grid-template-columns: 2rem 1fr; gap: 1rem; padding-block: 1.5rem; }
  .trip-outline-number { width: 30px; height: 30px; }
  .trip-outline h3 { font-size: 1.2rem; }
  .trip-map-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .trip-map-dialog-header { padding: .75rem; gap: .75rem; }
  .trip-map-dialog-header h2 { font-size: 1rem; }
  .trip-map-close { padding: .6rem .7rem; gap: .5rem; }
  .trip-tale-copy .trip-tale-lead { font-size: 1rem; }
  .trip-credit { overflow-wrap: anywhere; }
}
