/*
 * Trip page (single trip): loaded only on is_singular('trip') and in the block editor.
 * Values copied from the approved design (assets/source/02-ficha-de-viaje, base.css +
 * mobile.css). Shared pieces (buttons, curves, «Ruta Nº» plate, contact band) live in
 * components.css; tokens (--overlap, --hero-trip-pb, --fs-h1-trip…) in tokens.css.
 */

/* ==========================================================================
   02.02 Hero del viaje (Block Element «Page Hero», theme/elements/trip-hero.html)
   section.hero.trip-hero > .hero__media (gb/media .photo, the featured image)
   + .hero__inner > .trip-hero__content (plate, H1 in two voices, «Consultar», excerpt).
   The legibility gradient is .hero__media::after (approved .hero__overlay) and the wave
   curve is .curve--wave.curve-bottom--to-sand::after (components.css), so the client
   cannot delete them.
   The Header Element «Superponer cabecera» puts the header over the hero: the hero is
   printed on generate_after_header, starts at top 0 and reserves the header height in
   its padding-top (calc(var(--header-h) + …)).
   ========================================================================== */
.trip-hero{
  position:relative;display:flex;align-items:flex-end;
  min-height:max(72vh,640px);
  padding:calc(var(--header-h) + var(--space-3xl)) 0 var(--hero-trip-pb);
  background:var(--color-night);color:var(--color-sand);overflow:hidden;
}
.trip-hero .hero__media{position:absolute;inset:0}
.trip-hero .hero__media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(78deg,rgba(12,21,38,.94) 0%,rgba(12,21,38,.78) 38%,rgba(12,21,38,.18) 72%,rgba(12,21,38,0) 100%),linear-gradient(0deg,rgba(12,21,38,.55) 0%,rgba(12,21,38,0) 45%)}
.trip-hero__photo{object-position:62% 46%}
.trip-hero .hero__inner{position:relative;z-index:2}
.trip-hero__content{position:relative;max-width:1120px}

/* H1: GP Typography gives h1 Fraunces 600; the size, leading and colour are the trip ones */
.trip-hero__title{font-family:var(--font-display);font-weight:600;font-size:var(--fs-h1-trip);line-height:1.06;letter-spacing:-.02em;color:var(--color-white);margin-bottom:var(--space-xl)}
.trip-hero__title-main,
.trip-hero__title .title-accent{display:block}
.trip-hero__title .title-accent{color:var(--color-ochre)}
/* Trip without second line: the accent tag resolves empty (required:false), no extra line */
.trip-hero__title .title-accent:empty{display:none}

/* «Consultar» (core/buttons): the approved .hero__actions row instead of the core 0.5em gap */
.trip-hero .hero__actions.wp-block-buttons{display:flex;align-items:center;gap:var(--space-xl);flex-wrap:wrap}
.trip-hero .hero__actions .wp-block-button{margin:0}

/* Excerpt (v4): under the button, hanging into the space beside the overlapping panel */
.trip-hero__excerpt{position:absolute;left:0;top:100%;width:100%;max-width:var(--excerpt-w);margin:var(--space-lg) 0 0;font-family:var(--font-body);font-weight:400;font-size:var(--fs-excerpt);line-height:1.55;color:var(--color-sand-light);text-wrap:pretty}

/* ==========================================================================
   02.03 Introducción y panel de datos (pattern vac-site/trip-intro, in the trip content)
   section.section.trip-intro > .container.trip-intro__grid >
     .trip-intro__text (eyebrow, p.trip-intro__lead, more paragraphs, core/list «Recorrido»)
     + aside.trip-panel#datos (synced pattern «Panel de datos del viaje», core/block: it
       renders without a wrapper).
   The panel climbs over the hero: margin-top −(intro-pt + overlap); the hero keeps
   overlap + 32px of bottom padding (--hero-trip-pb). Tablet and mobile: --overlap 0.
   ========================================================================== */
.trip-intro{padding:var(--intro-pt) 0 var(--space-3xl)}
.trip-intro__grid{display:grid;grid-template-columns:7fr 5fr;gap:var(--space-4xl);align-items:start}
.trip-intro__text{padding-top:var(--space-xs)}
.trip-intro__lead{font-size:var(--fs-lead);line-height:1.7;color:var(--color-ink);max-width:65ch}
/* Extra paragraphs (imported trips: prices, cars, flights): body size, same measure */
.trip-intro__text > p:not(.eyebrow, .trip-intro__lead){max-width:65ch;line-height:1.7;color:var(--color-ink);margin-top:var(--space-md)}
.trip-intro__text > p a,
.trip-intro__text > p a:is(:hover,:focus,:active){color:var(--color-terracotta-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.trip-intro__text > p a:hover{color:var(--color-rust)}

/*
 * Route strip: core/list (ordered) with the block style «Recorrido» (is-style-route-strip),
 * one stop per item (approved ol.route-strip > li.route-strip__stop). The diamond and the
 * dashed connector are pseudo-elements, so the client only types the stops.
 * flex-wrap: the approved strip has 4 stops; trips with more (Kirguistán, 8) wrap onto
 * new rows instead of overflowing the column (the min-content of each stop decides).
 */
.wp-block-list.is-style-route-strip{display:flex;flex-wrap:wrap;align-items:center;row-gap:var(--space-sm);margin:var(--space-2xl) 0 0;padding:var(--space-lg) 0;list-style:none;border-top:1px dashed rgba(31,26,21,.3);border-bottom:1px dashed rgba(31,26,21,.3)}
.wp-block-list.is-style-route-strip > li{display:flex;align-items:center;flex:1;gap:var(--space-sm);margin:0;font-family:var(--font-accent);font-weight:400;font-size:var(--fs-route-strip);line-height:1.6;letter-spacing:.02em;color:var(--color-night);white-space:nowrap}
.wp-block-list.is-style-route-strip > li::before{content:"";width:10px;height:10px;flex:none;box-sizing:border-box;background:var(--color-ochre);border:2px solid var(--color-night);transform:rotate(45deg);border-radius:2px}
.wp-block-list.is-style-route-strip > li:not(:last-child)::after{content:"";flex:1;min-width:24px;height:2px;margin-inline:var(--space-sm);background:repeating-linear-gradient(90deg,var(--color-terracotta) 0 6px,transparent 6px 12px)}
.wp-block-list.is-style-route-strip > li:last-child{flex:none}

/* Data panel (white card with the mosaic ribbon) */
.trip-panel{position:relative;z-index:5;margin-top:calc(-1 * (var(--intro-pt) + var(--overlap)));background:var(--color-white);border:1px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-panel);overflow:hidden}
.trip-panel::before{content:"";display:block;height:var(--ribbon-h);background:var(--pattern-mosaic) 0 0 / auto var(--ribbon-h) repeat-x}
.trip-panel__inner{padding:var(--space-xl) var(--space-2xl) var(--space-2xl)}
.trip-panel__title{margin-bottom:var(--space-lg)}
.trip-panel__price{display:flex;flex-direction:column;gap:var(--space-2xs);padding-bottom:var(--space-lg);border-bottom:1px dashed rgba(31,26,21,.3)}
.trip-panel__price-label{font-size:var(--fs-xs);font-weight:700;line-height:1.6;letter-spacing:.14em;text-transform:uppercase;color:var(--color-ink-muted)}
.trip-panel__amount{font-family:var(--font-display);font-weight:600;font-size:var(--fs-price);line-height:1.05;letter-spacing:-.015em;color:var(--color-night)}
.trip-panel__price-note{font-size:var(--fs-small);line-height:1.6;color:var(--color-ink-muted)}
.trip-panel__list{margin:0 0 var(--space-xl)}
.trip-panel__row{display:grid;grid-template-columns:130px 1fr;gap:var(--space-md);padding:var(--space-md) 0;border-bottom:1px solid var(--color-line)}
/* dt / dd are GB elements with a GB text span inside (gb/text cannot be dt or dd) */
.trip-panel__label{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.45;color:var(--color-ink-muted);padding-top:3px}
.trip-panel__value{margin:0;font-size:var(--fs-body);font-weight:500;line-height:1.5;color:var(--color-ink)}
.trip-panel__btn{width:100%;--btn-bg:var(--color-terracotta-dark);--btn-bg-h:var(--color-rust)}
/*
 * Price and dates types (changes-2; not in the approved design, built from its pieces).
 * Price table: rows «text — price» under the amount, inside the price block, with the
 * panel's solid separators; the price in Fraunces like the amount, at body size.
 * Departures (single date / table): one date range per line; each date never breaks.
 * Which variant is shown is decided in PHP (vac-site, classes vac-when-*).
 */
.trip-panel__price-table{margin:var(--space-xs) 0 var(--space-2xs)}
.trip-panel__price-row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-md);padding:var(--space-xs) 0;border-top:1px solid var(--color-line)}
.trip-panel__price-row-label{margin:0;font-size:var(--fs-small);font-weight:500;line-height:1.45;color:var(--color-ink)}
.trip-panel__price-row-value{margin:0;flex:none;font-family:var(--font-display);font-weight:600;font-size:1.25rem;line-height:1.3;letter-spacing:-.01em;color:var(--color-night);white-space:nowrap}
.trip-panel__departures{margin:0;padding:0;list-style:none}
.trip-panel__departure + .trip-panel__departure{margin-top:var(--space-2xs);padding-top:var(--space-2xs);border-top:1px dashed var(--color-line)}
.trip-panel__dates time,
.trip-panel__departure time{white-space:nowrap}

/* ==========================================================================
   02.04 Galería horizontal (pattern vac-site/trip-gallery, in the trip content)
   section.trip-gallery > .container > figure.wp-block-gallery.is-style-trip-gallery
     > figure.wp-block-image > img (core/gallery with the block style «Galería en fila»;
   approved ul.trip-gallery__grid > li.trip-gallery__item > img.photo).
   tabindex="0" and the aria-label of the gallery come from the render_block filter of
   inc/gp-tweaks.php, loading="lazy" and the sizes of each photo too.
   Core gallery CSS (loaded before this file) is a flex row with the image widths set
   at (1,4,1) through :not(#individual-image): instead of an !important war, the gallery
   becomes a grid and each figure gets min-width:100% (min-width beats width), so the
   core widths have no effect whatever the number of photos or the «columns» setting.
   ========================================================================== */
.trip-gallery{padding:0 0 var(--space-4xl)}
figure.wp-block-gallery.has-nested-images.is-style-trip-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-md);align-items:start;margin:0;padding:0}
.wp-block-gallery.has-nested-images.is-style-trip-gallery > figure.wp-block-image{position:relative;min-width:100%;aspect-ratio:4/5;margin:0;border-radius:var(--radius);overflow:hidden;background:var(--color-night)}
/* The photo fills its 4:5 frame (approved img.photo), also with «Recortar imágenes» off */
.wp-block-gallery.has-nested-images.is-style-trip-gallery figure.wp-block-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}

/* ==========================================================================
   02.05 Itinerario (pattern vac-site/trip-itinerary, in the trip content)
   div.textile-band (components.css) + section.section.section--sand.itinerary-section >
     .container.itinerary__grid > .itinerary__head (eyebrow + h2)
       + figure.wp-block-gallery.is-style-trip-gallery-v (core/gallery «Galería vertical
         fija»; approved ul.trip-gallery-v > li.trip-gallery-v__item > img.photo)
       + ol.itinerary[start] > li.day(.day--optional) > .day__body > h3.day__heading
         (span.day__label + span.day__title) + .day__text (paragraphs).
   The numbered node of the approved span.day__node is li.day::before and the dotted
   route line the approved .day::before is li.day::after, so the client cannot delete
   them and never types the number. The number is an own counter (vac-day), not
   counter(list-item): that one only counts display:list-item elements and li.day is a
   grid. The ol's «start» attribute (0 by default in the pattern, 1 when the trip starts
   on day 1) sets where it begins, through the attribute selectors below (0–10; the
   HTML default of an ol without start is 1).
   Sticky column: no GeneratePress ancestor has overflow other than visible (checked in
   main.min.css), so position:sticky works inside the grid area that spans both rows.
   ========================================================================== */
.itinerary-section{padding-bottom:var(--space-3xl)}
.itinerary__grid{display:grid;grid-template-columns:4fr 8fr;grid-template-areas:"gal head" "gal list";column-gap:var(--space-3xl);align-items:start}
.itinerary__head{grid-area:head;margin-bottom:var(--space-2xl)}

/*
 * Fixed photo column: the photos share the height evenly (4 in the approved design, any
 * number works). No align-self:start here (the approved one has it): the core cropped
 * gallery gives every photo align-self:inherit at (1,4,1), so the photos would copy it
 * and collapse; with its fixed height the column is not stretched anyway (and the grid
 * has align-items:start), and the photos stretch to their row (align-items:stretch).
 */
figure.wp-block-gallery.has-nested-images.is-style-trip-gallery-v{grid-area:gal;position:sticky;top:var(--sticky-top);display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);align-items:stretch;gap:var(--space-md);height:calc(100vh - var(--header-h) - var(--space-2xl));min-height:560px;max-height:800px;margin:0;padding:0}
.wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image{position:relative;min-width:100%;margin:0;border-radius:var(--radius);overflow:hidden;background:var(--color-night)}
.wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image:first-of-type{border-radius:var(--radius-arch) var(--radius-arch) var(--radius) var(--radius)}
.wp-block-gallery.has-nested-images.is-style-trip-gallery-v figure.wp-block-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}

/* Days */
.itinerary{grid-area:list;position:relative;counter-reset:vac-day 0}
.itinerary[start="0"]{counter-reset:vac-day -1}
.itinerary[start="1"]{counter-reset:vac-day 0}
.itinerary[start="2"]{counter-reset:vac-day 1}
.itinerary[start="3"]{counter-reset:vac-day 2}
.itinerary[start="4"]{counter-reset:vac-day 3}
.itinerary[start="5"]{counter-reset:vac-day 4}
.itinerary[start="6"]{counter-reset:vac-day 5}
.itinerary[start="7"]{counter-reset:vac-day 6}
.itinerary[start="8"]{counter-reset:vac-day 7}
.itinerary[start="9"]{counter-reset:vac-day 8}
.itinerary[start="10"]{counter-reset:vac-day 9}
.day{position:relative;display:grid;grid-template-columns:var(--node) minmax(0,1fr);gap:var(--space-xl);padding-bottom:var(--space-xl);counter-increment:vac-day}
/* Node (approved .day__node, aria-hidden): the alternative text after «/» is empty, so it is not read */
.day::before{content:counter(vac-day);content:counter(vac-day) / "";position:relative;z-index:1;display:grid;place-items:center;width:var(--node);height:var(--node);border-radius:50%;background:var(--color-night);color:var(--color-ochre);font-family:var(--font-accent);font-weight:400;font-size:var(--fs-node);line-height:1;box-shadow:0 0 0 6px var(--color-sand)}
.day--optional::before{background:var(--color-sand);color:var(--color-terracotta-dark);border:2px dashed var(--color-terracotta)}
/* Dotted wave from this node to the next one (:last-of-type: in the editor the block appender follows the last day) */
.day:not(:last-of-type)::after{content:"";position:absolute;left:calc(var(--node) / 2 - var(--route-wave-w) / 2);top:calc(var(--node) / 2);bottom:calc(-1 * var(--node) / 2);width:var(--route-wave-w);background:var(--route-wave) center top / var(--route-wave-w) var(--route-wave-h) repeat-y}
.day__body{padding:var(--space-sm) 0 var(--space-xl);border-bottom:1px dashed rgba(31,26,21,.25)}
.day:last-of-type .day__body{border-bottom:0;padding-bottom:0}
.day__heading{margin-bottom:var(--space-md)}
.day__label{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-sm);font-family:var(--font-accent);font-weight:400;font-size:var(--fs-eyebrow);line-height:1.6;letter-spacing:var(--ls-accent);text-transform:uppercase;color:var(--color-terracotta-dark);margin-bottom:6px}
.day__optional{display:inline-flex;align-items:center;min-height:26px;padding:0 var(--space-sm);border:1.5px dashed var(--color-terracotta);border-radius:var(--radius-pill);font-size:11px;letter-spacing:.12em;color:var(--color-terracotta-dark)}
.day__title{display:block;font-family:var(--font-display);font-weight:600;font-size:var(--fs-h3);line-height:1.25;letter-spacing:-.01em;color:var(--color-night)}
.day__text p{max-width:68ch;color:var(--color-ink)}
.day__text p + p{margin-top:var(--space-md)}
.day__text a,
.day__text a:is(:hover,:focus,:active){color:var(--color-terracotta-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.day__text a:hover{color:var(--color-rust)}

/* ==========================================================================
   02.06 Incluye / No incluye (pattern vac-site/trip-includes, in the trip content)
   section.includes.curve-top--to-sand > .container.includes__grid >
     .includes-card.includes-card--yes|--no > .includes-card__head (h2.includes-card__title)
       + ul.wp-block-list.is-style-includes|is-style-excludes (core/list, block styles
         «Incluye» / «No incluye», one line per item).
   The sand curve towards the itinerary is .curve-top--to-sand::before (components.css).
   Icons are pseudo-elements, so the client only types the lines and cannot delete them:
   - head (approved span.includes-card__icon): ::before is the 48px circle and ::after the
     24px glyph, both in the first grid cell, the h2 in the second;
   - lines (approved svg.includes-list__icon, 20px, 4px under the line top): «Incluye» is a
     filled circle (::before) with a white tick (::after); «No incluye» one outlined circle
     with a dash (::before). li items are not grids (the approved li is): core/list-item has
     no span around the text, and inline tags (<em>, <a>) would become grid items; the
     icon column is the 32px left padding (20px icon + 12px gap).
   Glyphs are SVG masks painted with background-color, so they follow the Global Colors.
   ========================================================================== */
.includes{position:relative;background:var(--color-ochre-light);padding:calc(var(--curve) + var(--space-2xl)) 0 var(--space-4xl)}
.includes__grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-xl);align-items:start}
.includes-card{
  --includes-icon:48px;
  --includes-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --includes-dash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background:var(--color-sand-light);border:1px solid var(--color-line);border-radius:var(--radius-lg);padding:var(--space-2xl);
}

/* Card head: icon + h2 */
.includes-card__head{display:grid;grid-template-columns:var(--includes-icon) minmax(0,1fr);align-items:center;column-gap:var(--space-md);padding-bottom:var(--space-lg);margin-bottom:var(--space-xs);border-bottom:1px solid var(--color-line)}
.includes-card__head::before,
.includes-card__head::after{content:"";grid-area:1 / 1}
/* Every child in the second column; the h2 lands in row 1 (an editor appender, if any, in row 2) */
.includes-card__head > *{grid-column:2}
.includes-card__head::before{width:var(--includes-icon);height:var(--includes-icon);box-sizing:border-box;border-radius:50%}
.includes-card__head::after{place-self:center;width:24px;height:24px;-webkit-mask:var(--includes-tick) center / 100% 100% no-repeat;mask:var(--includes-tick) center / 100% 100% no-repeat}
.includes-card--yes .includes-card__head::before{background:var(--color-turquoise-dark)}
.includes-card--yes .includes-card__head::after{background-color:var(--color-white)}
.includes-card--no .includes-card__head::before{background:transparent;border:2px solid var(--color-terracotta-dark)}
.includes-card--no .includes-card__head::after{background-color:var(--color-terracotta-dark);-webkit-mask-image:var(--includes-dash);mask-image:var(--includes-dash)}
.includes-card__title{font-family:var(--font-display);font-weight:600;font-size:2rem;line-height:1.1;letter-spacing:-.01em;color:var(--color-night)}

/* Lines */
.wp-block-list:is(.is-style-includes,.is-style-excludes){
  --includes-li-pt:var(--space-md);
  --includes-li-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.7L14.2 7.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --includes-li-no:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 10h7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  margin:0;padding:0;list-style:none;
}
.wp-block-list:is(.is-style-includes,.is-style-excludes) > li{position:relative;margin:0;padding:var(--includes-li-pt) 0 var(--includes-li-pt) calc(20px + var(--space-sm));border-bottom:1px dashed rgba(31,26,21,.2)}
.wp-block-list:is(.is-style-includes,.is-style-excludes) > li:last-child{border-bottom:0;padding-bottom:0}
.wp-block-list:is(.is-style-includes,.is-style-excludes) > li::before,
.wp-block-list.is-style-includes > li::after{content:"";position:absolute;left:0;top:calc(var(--includes-li-pt) + 4px);width:20px;height:20px;pointer-events:none}
.wp-block-list.is-style-includes > li::before{left:1px;top:calc(var(--includes-li-pt) + 5px);width:18px;height:18px;border-radius:50%;background:var(--color-turquoise-dark)}
.wp-block-list.is-style-includes > li::after{background-color:var(--color-white);-webkit-mask:var(--includes-li-tick) 0 0 / 100% 100% no-repeat;mask:var(--includes-li-tick) 0 0 / 100% 100% no-repeat}
.wp-block-list.is-style-excludes > li::before{background-color:var(--color-terracotta-dark);-webkit-mask:var(--includes-li-no) 0 0 / 100% 100% no-repeat;mask:var(--includes-li-no) 0 0 / 100% 100% no-repeat}
.wp-block-list:is(.is-style-includes,.is-style-excludes) a,
.wp-block-list:is(.is-style-includes,.is-style-excludes) a:is(:hover,:focus,:active){color:var(--color-terracotta-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.wp-block-list:is(.is-style-includes,.is-style-excludes) a:hover{color:var(--color-rust)}

/* ==========================================================================
   Barra fija «Consultar» (mobile only): Hook Element «Barra Consultar móvil»
   (theme/elements/trip-cta-bar.html, generate_after_main_content, priority 20).
   Hidden by default (approved: [hidden]); trip.js adds .is-ready and toggles [hidden]
   after the hero and before the trip close, so without JS it never covers the page.
   The approved design only fixes its 48px button; the rest follows the panel tokens.
   ========================================================================== */
.trip-cta-bar{display:none}

/* ==========================================================================
   02.07 / 02.08 Close of the page down to the footer.
   <main> holds article > «Incluye / No incluye», then the Hook Elements «Cierre de la
   ficha» (section.contact-band) and the hidden mobile bar. GeneratePress gives every child
   of <main> 20px of margin-bottom («.site-main > *», 0,1,0; only :last-child is 0, and
   that is the bar), which left sand strips between «Incluye» and the close curve and
   between the close band and the footer textile band. The approved page has none.
   ========================================================================== */
.single-trip .site-main > *{margin-bottom:0}

/* ==========================================================================
   Tablet and mobile
   ========================================================================== */
@media (max-width:1100px) and (min-width:768px){
  /* No overlap with the panel (--overlap 0): standard bottom padding, excerpt in the flow */
  .trip-hero{padding-bottom:calc(var(--curve) + var(--space-3xl))}
  .trip-hero__excerpt{position:static}
  .trip-intro__grid{grid-template-columns:1fr;gap:var(--space-2xl)}
  .trip-panel{margin-top:0;max-width:620px}
  figure.wp-block-gallery.has-nested-images.is-style-trip-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* Itinerary: one column, the photos become a row of 3:4 frames above the days (no sticky) */
  .itinerary__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "gal" "list"}
  figure.wp-block-gallery.has-nested-images.is-style-trip-gallery-v{position:static;height:auto;min-height:0;max-height:none;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;align-items:start;margin-bottom:var(--space-2xl)}
  .wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image{aspect-ratio:3/4}
  .wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image:first-of-type{border-radius:var(--radius)}
}

@media (max-width:899px){
  .trip-hero__excerpt{display:none}
}

@media (max-width:767px){
  .trip-hero{min-height:65vh;padding:calc(var(--header-h) + var(--space-3xl)) 0 calc(var(--curve) + var(--space-xl))}
  .trip-hero__photo{object-position:72% 45%}
  .trip-hero .hero__media::after{background:linear-gradient(0deg,rgba(12,21,38,.96) 0%,rgba(12,21,38,.85) 45%,rgba(12,21,38,.3) 75%,rgba(12,21,38,.5) 100%)}
  .trip-hero__title{line-height:1.08;margin-bottom:var(--space-lg)}
  .trip-hero .hero__actions.wp-block-buttons{flex-direction:column;align-items:stretch;gap:var(--space-xs)}
  .trip-hero .hero__actions .wp-block-button{width:100%;--btn-h:52px}
  .trip-hero .hero__actions .wp-block-button > .wp-block-button__link{width:100%}

  /* Intro + panel: stacked, no overlap */
  .trip-intro{padding:var(--space-2xl) 0}
  .trip-intro__grid{grid-template-columns:1fr;gap:var(--space-xl)}
  .trip-intro__text{padding-top:0}
  .trip-intro__lead{line-height:1.65}
  .wp-block-list.is-style-route-strip{row-gap:var(--space-sm);margin-top:var(--space-xl);padding:var(--space-md) 0}
  .wp-block-list.is-style-route-strip > li{flex:none;gap:var(--space-xs)}
  .wp-block-list.is-style-route-strip > li::before{width:8px;height:8px}
  .wp-block-list.is-style-route-strip > li:not(:last-child)::after{flex:none;width:22px;min-width:0;margin-inline:var(--space-xs)}
  .trip-panel{margin-top:0;box-shadow:var(--shadow-card)}
  .trip-panel__inner{padding:var(--space-lg)}
  .trip-panel__title{margin-bottom:var(--space-md)}
  .trip-panel__row{grid-template-columns:112px 1fr;gap:var(--space-sm);padding:14px 0}
  .trip-panel__value{font-size:var(--fs-small)}
  .trip-panel__price-row-value{font-size:1.125rem}
  .trip-panel__list{margin-bottom:var(--space-lg)}
  .trip-panel__btn{--btn-h:52px}

  /* Photo row: horizontal carousel, 80 % per photo, snap, terracotta scrollbar, bleeding to the screen edges */
  .trip-gallery{padding:0 0 var(--space-3xl)}
  figure.wp-block-gallery.has-nested-images.is-style-trip-gallery{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;gap:var(--space-sm);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);margin-inline:calc(-1 * var(--gutter));padding:0 var(--gutter) var(--space-sm);scrollbar-width:thin;scrollbar-color:var(--color-terracotta) var(--color-ochre-light)}
  .wp-block-gallery.has-nested-images.is-style-trip-gallery > figure.wp-block-image{scroll-snap-align:start}

  /* Itinerary: the fixed column becomes a carousel (85 %, 4:3, snap) above the days */
  .itinerary-section{padding:var(--space-2xl) 0}
  .itinerary__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "gal" "list"}
  .itinerary__head{margin-bottom:var(--space-lg)}
  figure.wp-block-gallery.has-nested-images.is-style-trip-gallery-v{position:static;height:auto;min-height:0;max-height:none;grid-template-columns:none;grid-auto-rows:auto;align-items:start;grid-auto-flow:column;grid-auto-columns:85%;gap:var(--space-sm);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);margin:0 calc(-1 * var(--gutter)) var(--space-xl);padding:0 var(--gutter) var(--space-sm);scrollbar-width:thin;scrollbar-color:var(--color-terracotta) var(--color-ochre-light)}
  .wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image{aspect-ratio:4/3;scroll-snap-align:start}
  .wp-block-gallery.has-nested-images.is-style-trip-gallery-v > figure.wp-block-image:first-of-type{border-radius:var(--radius)}
  .day{gap:var(--space-md);padding-bottom:var(--space-lg)}
  .day::before{box-shadow:0 0 0 5px var(--color-sand)}
  .day__body{padding:6px 0 var(--space-lg)}
  .day__heading{margin-bottom:var(--space-sm)}
  .day__label{gap:var(--space-xs);margin-bottom:4px}
  .day__text p{font-size:1rem;line-height:1.65}

  /* Incluye / No incluye: stacked cards */
  .includes{padding:calc(var(--curve) + var(--space-xl)) 0 var(--space-3xl)}
  .includes__grid{grid-template-columns:minmax(0,1fr);gap:var(--space-md)}
  .includes-card{--includes-icon:44px;padding:var(--space-lg)}
  .includes-card__head{padding-bottom:var(--space-md)}
  .includes-card__title{font-size:1.625rem}
  .wp-block-list:is(.is-style-includes,.is-style-excludes){--includes-li-pt:14px}
  .wp-block-list:is(.is-style-includes,.is-style-excludes) > li{font-size:1rem;line-height:1.55}

  /* Fixed «Consultar» bar */
  html:has(.trip-cta-bar){scroll-padding-bottom:72px}
  .trip-cta-bar.is-ready:not([hidden]){
    position:fixed;left:0;right:0;bottom:0;z-index:30;
    display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);
    padding:var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
    background:var(--color-night-deep);color:var(--color-sand);
    border-top:1px solid var(--color-line-light);box-shadow:0 -8px 24px rgba(12,21,38,.18);
    animation:vac-cta-bar-in .2s ease-out;
  }
  .trip-cta-bar__price{font-size:var(--fs-small);line-height:1.3;color:rgba(244,236,221,.82)}
  .trip-cta-bar__price strong{font-family:var(--font-display);font-weight:600;font-size:1.25rem;letter-spacing:-.01em;color:var(--color-white)}
  .trip-cta-bar__btn{flex:none;--btn-h:48px;--btn-pad:0 var(--space-lg)}
  /* The open mobile menu (GP adds html.mobile-menu-open) is never covered by the bar */
  html.mobile-menu-open .trip-cta-bar{display:none!important}
}

@keyframes vac-cta-bar-in{from{transform:translateY(100%)}to{transform:none}}
