/* =========================================================
   Fjordrakkar website — main styles
   Light Nordic style: bright backgrounds, navy blue as the main colour
   and Bryggen red reserved for the booking buttons.
   Mobile first: the @media queries widen towards desktop.
   ========================================================= */

/* ---------- Fonts (hosted in the theme, Latin subset: includes å, ø, æ, ñ and €) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #143B4E;          /* main colour: headings, general buttons */
  --navy-dark: #0E2C3B;
  --slate: #486271;         /* secondary text (AA contrast on white) */
  --fog: #6E8898;          /* decorative only: do not use for small text */
  --ice: #F0F6FA;           /* soft backgrounds, icon circles */
  --ice-light: #F4F8FB;     /* background of the excursions section */
  --sand: #F8F6F2;           /* warm background of the contact section */
  --surface: #FBFDFF;
  --white: #FFFFFF;
  --line: #DBE3EA;           /* card borders */
  --field-line: #7F95A3;     /* form field borders (3:1 contrast) */
  --text: #10232E;
  --moss: #4F6756;
  --bryggen: #A8322D;         /* only accent: booking buttons */
  --bryggen-dark: #8C2924;
  --ochre: #D9A21B;            /* keyboard focus */
  --warning-bg: #FDF3D7;       /* booking pause banner and card message (spec 041) */
  --warning-line: #E9D18F;
  --warning-text: #5C3D00;     /* about 9:1 on --warning-bg */

  --f-title: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --width: 80rem;
  --narrow-width: 48rem;
  --margin: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 6rem);
  --radius: 0.625rem;
  --radius-large: 1.25rem;
  --shadow: 0 2px 12px rgba(20, 59, 78, 0.04);
  --shadow-hover: 0 10px 28px -8px rgba(20, 59, 78, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* The hidden attribute always hides, even if the element has its own display */
[hidden] { display: none !important; }

a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--navy-dark); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--f-title); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }

.icon { flex-shrink: 0; }

.container { width: 100%; max-width: var(--width); margin-inline: auto; padding-inline: var(--margin); }
.container--narrow { max-width: var(--narrow-width); }

/* Booking pause banner (spec 041): top of every page while online bookings are paused; warm yellow, not Bryggen red */
.pause-banner { background: var(--warning-bg); border-bottom: 1px solid var(--warning-line); color: var(--warning-text); }
.pause-banner__text { margin-block: 0; padding-block: 0.55rem; font-size: 0.875rem; font-weight: 600; text-align: center; }

/* Small uppercase text above headings */
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.section__title {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.section__header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__header .section__title + .section__intro { margin-top: 1rem; }
.section__header--centered { text-align: center; max-width: 42rem; margin-inline: auto; }
.section__header--centered .section__intro { margin-inline: auto; }
.section__intro { margin: 0; font-size: 1.0625rem; font-weight: 300; line-height: 1.7; color: var(--slate); max-width: 34em; }
@media (min-width: 900px) {
  .section__header--double { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
  .section__header--double .section__intro { max-width: 28rem; }
}
@media (max-width: 899px) {
  .section__header--double .section__intro { margin-top: 1rem; }
}

.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 40em; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.skip-content {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-content:focus { top: 1rem; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.notice { background: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--radius); max-width: 40em; border: 1px solid var(--line); border-left: 4px solid var(--navy); margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-title);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--navy-dark); color: var(--white); }

/* Bryggen red: only for booking and paying */
.btn--book,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .single-add-to-cart-button { background: var(--bryggen); }
.btn--book:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .single-add-to-cart-button:hover { background: var(--bryggen-dark); color: var(--white); }

.btn--secondary { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--field-line); }
.btn--secondary:hover { background: var(--ice); color: var(--navy); }

.btn--small { padding: 0.65rem 1.25rem; font-size: 0.875rem; }

/* On dark photos */
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--ice); color: var(--navy); }
.btn--outline { background: rgba(255, 255, 255, 0.08); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 227, 234, 0.6);
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.brand__name { font-family: var(--f-title); font-size: 1.3125rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }

.navigation { display: flex; align-items: center; gap: 1.5rem; }
.navigation .menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.navigation a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--slate); text-decoration: none; font-family: var(--f-title); font-weight: 600; font-size: 0.9375rem;
}
.navigation a:hover { color: var(--navy); }
.navigation .current-menu-item > a { background: var(--ice); color: var(--navy); }
.cart-link { color: var(--navy) !important; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Language switcher (inc/helpers.php, with TranslatePress): globe + the other language in the header, all in the footer */
.language-nav { flex-shrink: 0; }
.language-switcher { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; font-family: var(--f-title); font-weight: 700; }
.language-switcher li { display: flex; align-items: center; }
.language-switcher a, .language-switcher__current { display: inline-flex; align-items: center; text-decoration: none; }
.language-nav--header { display: flex; align-items: center; gap: 0.3rem; color: var(--slate); }
.language-switcher--header { gap: 0.75rem; font-size: 0.875rem; }
/* 44 px touch target */
.language-switcher--header a { min-height: 2.75rem; color: var(--navy); }
.language-switcher--header a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* Currency viewer (spec 038): selector in the header and the approximate amount next to NOK prices (main.js) */
.currency-picker { display: flex; align-items: center; gap: 0.5rem; }
.currency-picker[hidden], .currency-picker--menu { display: none; }
.currency-picker__label { color: var(--slate); font-size: 0.875rem; }
.currency-picker__select { min-height: 2.75rem; max-width: 7.5rem; padding: 0 1.6rem 0 0.6rem; border: 1px solid var(--line); border-radius: 999px; background-color: var(--white); color: var(--navy); font: 700 0.8125rem/1 var(--f-title); cursor: pointer; }
/* Header: looks like the language link ("€ EUR ⌄"); the real select lies invisible on top, so the click opens the native list */
.currency-picker--header { position: relative; }
.currency-picker--header .currency-picker__select { position: absolute; inset: 0; width: 100%; max-width: none; min-height: 0; padding: 0; border: 0; opacity: 0; }
.currency-picker__face { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; color: var(--navy); font: 700 0.875rem/1 var(--f-title); white-space: nowrap; }
.currency-picker__face::after { content: ""; width: 0.35rem; height: 0.35rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-0.15rem); }
.currency-picker--header .currency-picker__select:hover + .currency-picker__face { text-decoration: underline; text-underline-offset: 0.2em; }
.currency-picker--header .currency-picker__select:focus-visible + .currency-picker__face { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.price-alt { margin-left: 0.35em; font-size: 0.8em; font-weight: 400; color: var(--slate); white-space: nowrap; }
/* Own line under the price (main.js, data-fjr-alt="line"); width 100% also breaks the line in flex rows */
.price-alt--line { display: block; width: 100%; margin: 0.15rem 0 0; font-family: var(--f-text); font-size: 0.8125rem; line-height: 1.3; }
.booking__total { flex-wrap: wrap; }
.booking__total .price-alt--line { text-align: right; }
.price-alt-note { margin-top: 1.5rem; margin-bottom: 1.5rem; font-size: 0.8125rem; color: var(--slate); }
/* Phones: in the menu, as its first line; the header one is hidden (it doesn't fit next to the name) */
.language-nav--menu { display: none; }
@media (max-width: 600px) {
  .language-nav--header { display: none; }
  .language-nav--menu { display: flex; align-items: center; gap: 0.5rem; order: -1; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--ice); color: var(--slate); }
  .language-switcher--menu { gap: 1rem; font-size: 1rem; }
  .language-switcher--menu a { min-height: 2.75rem; color: var(--navy); }
  /* Currency (spec 038): in the menu on phones, after the language */
  .currency-picker--header { display: none; }
  .currency-picker--menu:not([hidden]) { display: flex; order: -1; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--ice); }
  .currency-picker--menu .currency-picker__select { max-width: none; flex: 1; }
}
.language-switcher__current { color: var(--navy); }
.language-switcher--footer { gap: 0.25rem 1rem; flex-wrap: wrap; font-size: 0.8125rem; }
.language-switcher--footer a { color: var(--slate); }
.language-switcher--footer a:hover { color: var(--navy); text-decoration: underline; }

.menu-button { display: none; }

@media (max-width: 960px) {
  .menu-button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
    font: 700 0.9375rem var(--f-title); color: var(--navy);
  }
  .menu-button__bars, .menu-button__bars::before, .menu-button__bars::after {
    display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; border-radius: 2px;
  }
  .menu-button__bars::before, .menu-button__bars::after { content: ""; position: absolute; left: 0; }
  .menu-button__bars::before { top: -6px; }
  .menu-button__bars::after { top: 6px; }

  .navigation {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--margin) 1.25rem;
    box-shadow: 0 16px 24px -16px rgba(20, 59, 78, 0.25);
  }
  .navigation.is-open { display: flex; }
  .navigation .menu { flex-direction: column; gap: 0; }
  .navigation .menu a, .cart-link { padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--ice); }
  .navigation .current-menu-item > a { background: none; }
}

@media (max-width: 420px) {
  .header__actions { gap: 0.6rem; }
  .brand__name { font-size: 1.125rem; }
  .menu-button__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
}

/* Suggestion to change language (shown by main.js according to the browser) */
.language-hint { background: var(--ice); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--navy); }
.language-hint__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.language-hint p { margin: 0; }
.language-hint a { font-weight: 700; color: var(--navy); white-space: nowrap; }
.language-hint__close {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.75rem -0.5rem 0;
  border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--slate); cursor: pointer;
}
.language-hint__close:hover { color: var(--navy); }

/* Very narrow phones (≤ 360 px): smaller name, so that it doesn't touch "Reservar" */
@media (max-width: 360px) {
  .brand { gap: 0.4rem; }
  .brand__logo { width: 2.25rem; height: 2.25rem; }
  .brand__name { font-size: 1rem; }
}

@media (min-width: 961px) {
  .header__inner { min-height: 5rem; }
}

/* ---------- Cover ---------- */
/* Full-screen photo with the text on top */
.cover {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(92vh, 52rem);
  background: var(--navy);
  color: var(--white);
}
.cover__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Gradient only where the text goes, so it reads over any photo */
.cover--with-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 40, 0.88) 0%, rgba(10, 30, 40, 0.55) 45%, rgba(10, 30, 40, 0.1) 80%);
}
@media (min-width: 960px) {
  .cover--with-image::after {
    background:
      linear-gradient(to right, rgba(10, 30, 40, 0.8) 0%, rgba(10, 30, 40, 0.45) 45%, rgba(10, 30, 40, 0) 72%),
      linear-gradient(to top, rgba(10, 30, 40, 0.6) 0%, rgba(10, 30, 40, 0) 30%);
  }
}
.cover__inner { position: relative; z-index: 1; padding-block: 7rem 2rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.5rem; padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white);
}
.badge__point { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--white); }

.cover__text { max-width: 42rem; }
.cover__title {
  color: var(--white);
  font-size: clamp(2.375rem, 4.5vw + 1rem, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.cover__soft-title { display: block; font-weight: 500; color: rgba(255, 255, 255, 0.85); }

.cover__lead { margin: 0 0 2.25rem; max-width: 36em; font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); font-weight: 400; line-height: 1.65; color: rgba(255, 255, 255, 0.92); }

.cover__buttons { display: flex; flex-wrap: wrap; gap: 0.875rem; }
@media (max-width: 520px) { .cover__buttons .btn { width: 100%; } }

.trust {
  list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; flex-wrap: wrap; gap: 0.9rem 2.5rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.92);
}
.trust li { display: flex; align-items: center; gap: 0.6rem; }
.trust .icon { color: var(--white); }

/* ---------- Benefits ---------- */
.benefits { padding-block: var(--section); }
/* Each benefit is a real photo with the text on top (Customize → Cover → Benefits).
   Desktop: all four in a row. Tablet: 2 × 2. Mobile: swipeable strip, with the next one peeking. */
.benefits__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 999px) { .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .benefits__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin);
  }
  .benefits__list::-webkit-scrollbar { display: none; }
  .benefit { flex: 0 0 82%; scroll-snap-align: start; }
}

.benefit {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(24rem, 34vw, 30rem); border-radius: var(--radius-large);
  background: var(--navy); color: var(--white);
}
.benefit__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.benefit::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 20, 27, 0.92) 0%, rgba(8, 20, 27, 0.6) 40%, rgba(8, 20, 27, 0) 72%);
}
@media (hover: hover) { .benefit:hover .benefit__photo { transform: scale(1.05); } }
.benefits__list:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: var(--radius-large); }
@media (prefers-reduced-motion: reduce) { .benefit__photo { transition: none; } }
.benefit__content { padding: 1.5rem; }
.benefit__label {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
}
.benefit__label::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.benefit__title { margin: 0 0 0.5rem; font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem); color: var(--white); }
.benefit__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }

/* ---------- Excursions ---------- */
.tours { background: var(--ice-light); padding-block: var(--section); border-top: 1px solid rgba(219, 227, 234, 0.5); }
.tours__list,
.shop ul.products {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.tours__all { margin: 3rem 0 0; text-align: center; }

/* Excursions page: introduction and "Muy pronto" card (inc/woocommerce.php) */
.shop__intro { max-width: 40em; margin: -0.5rem 0 2rem; font-size: 1.125rem; font-weight: 300; line-height: 1.6; color: var(--slate); }
.tour--soon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.75rem;
  border: 1.5px dashed var(--field-line); border-radius: var(--radius-large);
  background: linear-gradient(160deg, var(--ice) 0%, var(--ice-light) 100%);
}
.tour-soon__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 0.25rem; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.tour-soon__label { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.tour-soon__title { margin: 0; font-size: 1.375rem; }
.tour-soon__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--slate); }
.tour-soon__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; margin-top: auto; padding-top: 0.75rem; }
.tour-soon__link { font-family: var(--f-title); font-weight: 700; font-size: 0.9375rem; color: var(--navy); text-underline-offset: 0.2em; }
.tour-soon__link .icon { display: inline-block; vertical-align: -0.2em; margin-left: 0.2rem; }

.tour { height: 100%; }
.tour__link, .tour--private {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large);
  overflow: hidden; box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.tour__link:hover { border-color: rgba(20, 59, 78, 0.3); box-shadow: var(--shadow-hover); color: inherit; }

.tour__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); }
.tour__image img { width: 100%; height: 100%; object-fit: cover; }
/* Badges on the photo: duration top left and type bottom right.
   In different corners they never collide, whatever their size */
.tour__badge {
  position: absolute; max-width: calc(100% - 1.5rem);
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden;
}
.tour__badge--duration { top: 0.75rem; left: 0.75rem; background: rgba(255, 255, 255, 0.95); color: var(--navy); border: 1px solid rgba(219, 227, 234, 0.6); }
.tour__badge--type { bottom: 0.75rem; right: 0.75rem; background: rgba(20, 59, 78, 0.88); color: var(--white); }
/* The card does not crop (overflow visible, from the ribbon it had until 22-11-2026): the photo rounds its own top corners */
.tour__link { position: relative; overflow: visible; }
.tour__image { border-radius: calc(var(--radius-large) - 1px) calc(var(--radius-large) - 1px) 0 0; }
/* Card tags (22-11-2026): "Ideal para cruceros" and "También en privado" in one row after the tour name that
   wraps, so they never overlap; the photo keeps the label or "Últimas plazas"/duration (top left) and the type (bottom right) */
.tour__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 0.75rem; padding: 0; }
.tour__tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.tour__tag .icon { flex: none; }

.tour__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.tour__destination { margin: 0 0 0.35rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); }
.tour__title { font-size: 1.125rem; line-height: 1.3; font-weight: 700; margin-bottom: 0.5rem; }
.tour__link:hover .tour__title { color: var(--navy-dark); }
.tour__summary { margin: 0 0 1.25rem; font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: var(--slate); }

.tour__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
}
.tour__price { margin: 0; line-height: 1.3; }
.tour__price-label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--slate); }
.tour__price strong { font-family: var(--f-title); font-size: 1.1875rem; font-weight: 700; color: var(--navy); }
.tour__price small { font-size: 0.75rem; color: var(--slate); }
.tour__arrow {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ice); color: var(--navy); transition: background-color 0.2s, color 0.2s;
}
.tour__link:hover .tour__arrow { background: var(--navy); color: var(--white); }

/* "A tu aire" card */
.tour--private {
  background: linear-gradient(135deg, var(--white) 0%, var(--ice-light) 55%, var(--ice) 100%);
  border-color: rgba(20, 59, 78, 0.2);
}
.tour__label {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  margin: 0 0 1.25rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(20, 59, 78, 0.08); color: var(--navy);
  font-size: 0.75rem; font-weight: 700;
}
.tour__points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.875rem; color: var(--slate); }
.tour__points li { display: flex; align-items: center; gap: 0.5rem; }
.tour__points .icon { color: var(--navy); }

/* ---------- Large cards (Customize → Excursions page → Excursion cards) ----------
   Square photo, 3 per row, key facts with icon and button. "Muy pronto" and "A tu aire" become
   a horizontal strip below the tours, so as not to leave one alone in a row. */
.large-cards .tours__list,
.large-cards .shop ul.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.75rem; }
.tour--large .tour__image { aspect-ratio: 1 / 1; }
.tour--large .tour__image img { transition: transform 0.4s; }
.tour--large .tour__link:hover .tour__image img { transform: scale(1.03); }
.tour__badge--label { top: 0.75rem; left: 0.75rem; background: rgba(255, 255, 255, 0.95); color: var(--navy); border: 1px solid rgba(219, 227, 234, 0.6); font-weight: 700; }
.tour--large .tour__title { font-size: 1.25rem; margin-bottom: 0.85rem; }
.tour__data { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.875rem; color: var(--slate); }
.tour__data li { display: flex; align-items: center; gap: 0.5rem; }
.tour__data .icon { flex-shrink: 0; color: var(--navy); }
.tour--large .tour__price strong { font-size: 1.375rem; }
.tour__button {
  flex-shrink: 0; padding: 0.6rem 1.1rem; border: 1px solid var(--navy); border-radius: 999px;
  font: 700 0.875rem var(--f-title); color: var(--navy); white-space: nowrap; transition: background-color 0.2s, color 0.2s;
}
.tour__link:hover .tour__button { background: var(--navy); color: var(--white); }

/* Strips spanning the full width of the grid */
.large-cards .tour-soon,
.large-cards .tours__list > .tour--private { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .large-cards .tour--soon {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1.75rem;
    grid-template-areas: "icon label actions" "icon title actions" "icon text actions";
  }
  .large-cards .tour-soon__icon { grid-area: icon; margin: 0; }
  .large-cards .tour-soon__label { grid-area: label; }
  .large-cards .tour-soon__title { grid-area: title; }
  .large-cards .tour-soon__text { grid-area: text; max-width: 42em; }
  .large-cards .tour-soon__actions { grid-area: actions; margin: 0; padding: 0; }
  .large-cards .tours__list > .tour--private { flex-direction: row; }
  .large-cards .tours__list > .tour--private .tour__image { flex: 0 0 42%; aspect-ratio: auto; min-height: 20rem; }
  .large-cards .tours__list > .tour--private .tour__body { padding: 2rem 2.25rem; justify-content: center; }
}

/* ---------- Gallery ---------- */
.gallery { padding-block: var(--section); }
.gallery__mosaic {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(9rem, 22vw, 15rem);
}
.gallery__photo { overflow: hidden; border-radius: var(--radius); background: var(--ice); }
.gallery__photo img { width: 100%; height: 100%; object-fit: cover; }
/* The first photo, larger */
.gallery__photo:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) {
  .gallery__mosaic { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .gallery__mosaic--3 { grid-template-columns: 2fr 1fr; }
  .gallery__mosaic--3 .gallery__photo:first-child { grid-column: span 1; }
  .gallery__mosaic--4 .gallery__photo:last-child { grid-column: span 2; }
}
.gallery__more { margin: 2.5rem 0 0; text-align: center; }

/* ---------- The guide ---------- */
.about { padding-block: var(--section); }
.about__inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 820px) {
  .about__inner:has(.about__photo) { grid-template-columns: 6fr 5fr; }
}
.about__text .section__title { margin-bottom: 1.25rem; }
.about__text .prose { margin-bottom: 2rem; color: var(--slate); font-weight: 300; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-large); }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--section); border-top: 1px solid rgba(219, 227, 234, 0.5); }
.reviews__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.review figure {
  margin: 0; height: 100%; display: flex; flex-direction: column;
  padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large); box-shadow: var(--shadow);
}
.review__stars { margin: 0 0 1.25rem; color: #D99A1B; font-size: 0.9375rem; letter-spacing: 0.25em; line-height: 1; }
.review__text { margin: 0 0 1.75rem; font-size: 1rem; font-style: italic; font-weight: 300; line-height: 1.75; color: var(--navy); }
.review__text p { margin: 0; }
.review__text p::before { content: "«"; }
.review__text p::after { content: "»"; }
.review__author { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review__author strong { display: block; font-family: var(--f-title); color: var(--navy); }
.review__author small { color: var(--slate); font-size: 0.8125rem; }
.review__quotes { font-family: var(--f-title); font-size: 2.75rem; font-weight: 800; line-height: 0.6; color: #C5D2DB; transform: translateY(0.35rem); }
.reviews__note { margin: 1.5rem 0 0; text-align: center; font-size: 0.8125rem; color: var(--slate); }

/* Preview for administrators, without real reviews */
.notice--admin { max-width: none; margin-inline: auto; border-left-color: var(--ochre); background: #FFF8E6; }
.reviews--example .review figure { border-style: dashed; }
.reviews--example .review__text { color: var(--slate); }

/* ---------- Contact ---------- */
.contact { background: var(--sand); padding-block: var(--section); border-top: 1px solid rgba(219, 227, 234, 0.5); }
.contact__inner { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .contact__inner { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}
.contact__data .section__title { margin-bottom: 1.25rem; }
.contact__data .section__intro { margin-bottom: 2rem; }
.contact__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.875rem; }
.contact__card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ice); color: var(--navy); flex-shrink: 0; }
.contact__text { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; min-width: 0; }
.contact__text small { font-size: 0.75rem; color: var(--slate); }
.contact__text a { font-family: var(--f-title); font-weight: 700; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact__text a:hover { text-decoration: underline; }
.contact__whatsapp {
  flex-shrink: 0; padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid #1FA855; color: #137A3C; font-size: 0.8125rem; font-weight: 600; text-decoration: none;
}
.contact__whatsapp:hover { background: #1FA855; color: var(--white); }
.contact__schedule {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 0;
  padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.875rem; color: var(--slate);
}
.contact__schedule .icon { color: var(--navy); margin-top: 0.1rem; }
.contact__google { margin: 1rem 0 0; }
.contact__google a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; }
.contact__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 4px 24px rgba(20, 59, 78, 0.04);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form__row--double { grid-template-columns: 1fr 1fr; }
}
.form__field { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
/* Phone: prefix and number on the same line */
.form__phone { display: flex; gap: 0.5rem; }
.form__phone select { flex: 0 0 52%; min-width: 0; padding-left: 0.75rem; padding-right: 1.75rem; text-overflow: ellipsis; }
@media (min-width: 640px) {
  .form__phone select { flex-basis: 45%; }
}
.form__phone input { flex: 1 1 0; min-width: 0; }
.form__field label { font-family: var(--f-title); font-weight: 700; font-size: 0.8125rem; color: var(--navy); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce div.product form.cart .variations select {
  width: 100%; min-height: 3rem;
  font: inherit; font-size: 1rem; /* 16px: prevents automatic zoom on iPhone */
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--field-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form textarea { resize: vertical; min-height: 8rem; }
.form__checkbox { margin: 0; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.875rem; color: var(--slate); }
.form__checkbox input { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; flex-shrink: 0; accent-color: var(--navy); }
.form__send { margin: 0.25rem 0 0; }
.form__send .btn { width: 100%; }
@media (min-width: 640px) { .form__send .btn { width: auto; min-width: 14rem; } }

/* Antispam honeypot field: off-screen, without display:none so that bots see it */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form__notice--ok { background: #E3EFE6; color: #22402C; border-left: 4px solid var(--moss); }
.form__notice--error { background: #F7E4E2; color: #6E1F1B; border-left: 4px solid var(--bryggen); }

/* ---------- Closing section ---------- */
.closing {
  background: linear-gradient(to bottom, var(--ice) 0%, var(--ice-light) 50%, var(--surface) 100%);
  padding-block: var(--section); text-align: center;
  border-top: 1px solid rgba(219, 227, 234, 0.5);
}
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem;
  border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--navy); box-shadow: var(--shadow);
}
.closing__title { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); font-weight: 700; margin-bottom: 1.25rem; }
.closing__soft-title { display: block; font-weight: 500; color: var(--slate); }
.closing__text { margin: 0 0 2.25rem; max-width: 34em; font-size: 1.0625rem; font-weight: 300; color: var(--slate); }

/* With background photo */
.closing--with-image { position: relative; overflow: hidden; background: var(--navy); padding-block: clamp(6rem, 12vw, 9rem); border-top: 0; }
.closing__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing--with-image::after { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 40, 0.55); }
.closing--with-image .closing__inner { position: relative; z-index: 1; }
.closing--with-image .closing__title { color: var(--white); }
.closing--with-image .closing__soft-title,
.closing--with-image .closing__text { color: rgba(255, 255, 255, 0.9); }
.closing--with-image .closing__icon { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); color: var(--white); box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); color: var(--slate); padding-block: clamp(3rem, 6vw, 4rem) 2rem; font-size: 0.875rem; }
.footer a { color: var(--navy); }
.footer a:hover { color: var(--navy-dark); }
.footer__inner { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.footer__name { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; font-family: var(--f-title); font-size: 1.125rem; font-weight: 800; color: var(--navy); }
.footer__logo { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.footer__description { margin: 0 0 1rem; font-weight: 300; line-height: 1.6; max-width: 26rem; }
.footer__address { font-style: normal; display: grid; gap: 0.15rem; font-size: 0.8125rem; }
.footer__title { font-family: var(--f-title); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__note { display: block; margin: 0.75rem 0 0; font-size: 0.8125rem; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8125rem;
  /* Room for the floating WhatsApp button (bottom right): so it does not cover the legal links */
  padding-bottom: 5rem;
}
.footer__legal p { margin: 0; }
.footer__legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__legal-menu a { color: var(--slate); text-decoration: none; }
.footer__legal-menu a:hover { color: var(--navy); text-decoration: underline; }

.social { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; gap: 0.6rem; }
.social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--ice); color: var(--navy);
}
.social a:hover { background: var(--navy); color: var(--white); }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed; z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #1FA855; color: var(--white);
  box-shadow: 0 4px 14px rgba(20, 59, 78, 0.3);
}
.floating-whatsapp:hover { background: #178A45; color: var(--white); }

/* Several numbers: the button opens a panel to choose */
.whatsapp-menu summary { list-style: none; cursor: pointer; }
.whatsapp-menu summary::-webkit-details-marker { display: none; }
.whatsapp-menu__panel {
  position: fixed; z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
  min-width: 15rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(20, 59, 78, 0.25);
  padding: 1rem 1.125rem;
}
.whatsapp-menu__title { margin: 0 0 0.5rem; font-family: var(--f-title); font-weight: 700; color: var(--navy); }
.whatsapp-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.whatsapp-menu__panel a {
  display: block; padding: 0.7rem 0;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-top: 1px solid var(--ice);
}
.whatsapp-menu__panel a:hover { color: #137A3C; }

/* ---------- Tour detail ---------- */
.detail__header { margin-bottom: 1.75rem; }
.detail__eyebrow a { color: inherit; text-decoration: none; }
.detail__eyebrow a:hover { color: var(--navy); text-decoration: underline; }
.detail__title { font-size: clamp(2rem, 2.5vw + 1.1rem, 3.25rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1rem; }
.detail__key-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.detail__key-facts li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--ice);
  font-size: 0.875rem; font-weight: 500; color: var(--navy);
}

/* ---------- Detail gallery ---------- */
.tour-gallery { --gallery-height: clamp(20rem, 38vw, 33rem); display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tour-gallery__main { position: relative; border-radius: var(--radius-large); overflow: hidden; background: var(--ice); }
/* Photos are swiped with the finger (scroll-snap); the arrows and thumbnails move the same scroll */
.tour-gallery__slides {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; aspect-ratio: 4 / 3;
}
.tour-gallery__slides::-webkit-scrollbar { display: none; }
.tour-gallery__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
/* Caption on the photo (bottom left, without covering the counter on the right) */
.tour-gallery__legend {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.5rem 5.5rem 0.9rem 1rem;
  background: linear-gradient(to top, rgba(8, 20, 27, 0.8), rgba(8, 20, 27, 0)); color: var(--white);
  font-size: 0.875rem; font-weight: 500; line-height: 1.4; pointer-events: none;
}
@media (max-width: 600px) {
  .tour-gallery__legend { padding: 1.5rem 4rem 0.6rem 0.75rem; font-size: 0.75rem; line-height: 1.35; }
}
.tour-gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tour-gallery__zoom img { width: 100%; height: 100%; object-fit: cover; }

.tour-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--navy);
  box-shadow: 0 2px 10px rgba(16, 35, 46, 0.2); cursor: pointer;
}
.tour-gallery__arrow:hover { background: var(--white); }
.tour-gallery__arrow--previous { left: 1rem; }
.tour-gallery__arrow--previous .icon { transform: rotate(180deg); }
.tour-gallery__arrow--next { right: 1rem; }
.tour-gallery__counter {
  position: absolute; right: 1rem; bottom: 1rem; margin: 0;
  padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(16, 35, 46, 0.7); color: var(--white);
  font-size: 0.8125rem; font-weight: 600;
}

.tour-gallery__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: thin; }
.tour-gallery__thumb {
  position: relative; display: block; width: 5.5rem; aspect-ratio: 4 / 3; padding: 0;
  border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--ice); cursor: pointer;
}
.tour-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-gallery__thumb[aria-current="true"] { border-color: var(--navy); }
.tour-gallery__more { display: none; }

@media (min-width: 1000px) {
  /* Desktop: thumbnails in a column on the left, as on the platforms */
  .tour-gallery:not(.tour-gallery--one) { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; }
  .tour-gallery__thumbs { order: -1; flex-direction: column; overflow: hidden; height: var(--gallery-height); gap: 0.6rem; }
  /* min-height: 0 so the 5 thumbnails share the height (otherwise the photos rule) */
  .tour-gallery__thumbs li { flex: 0 0 calc((var(--gallery-height) - 2.4rem) / 5); min-height: 0; }
  .tour-gallery__thumbs li:nth-child(n+6) { display: none; } /* the rest, in the viewer */
  .tour-gallery__thumb { width: 100%; height: 100%; aspect-ratio: auto; }
  .tour-gallery__thumb--more .tour-gallery__more {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(16, 35, 46, 0.55); color: var(--white); font-size: 0.8125rem; font-weight: 700;
  }
  .tour-gallery__slides { aspect-ratio: auto; height: var(--gallery-height); }
}

/* Full-screen viewer */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--white);
}
.viewer::backdrop { background: rgba(8, 20, 27, 0.94); }
.viewer[open] { display: grid; place-items: center; }
.viewer__photo { margin: 0; display: grid; justify-items: center; gap: 0.75rem; }
.viewer__image { max-width: min(92vw, 1600px); max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.viewer__legend { max-width: min(92vw, 44rem); margin-bottom: 2.5rem; text-align: center; color: rgba(255, 255, 255, 0.92); font-size: 0.9375rem; }
.viewer__photo:has(.viewer__legend:not([hidden])) .viewer__image { max-height: 76vh; }
.viewer__close, .viewer__arrow {
  position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); cursor: pointer;
}
.viewer__close:hover, .viewer__arrow:hover { background: rgba(255, 255, 255, 0.28); }
.viewer__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.viewer__arrow { top: 50%; transform: translateY(-50%); }
.viewer__arrow--previous { left: 1rem; }
.viewer__arrow--previous .icon { transform: rotate(180deg); }
.viewer__arrow--next { right: 1rem; }
.viewer__counter { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; font-weight: 600; }

/* Detail body: gallery, booking and content (in this order in the HTML).
   Mobile: one column, the booking right after the photos.
   Desktop: the booking on the right from the top (next to the gallery) and sticky when scrolling. */
.detail__body { display: grid; gap: 2.5rem; align-items: start; }
.detail__body > .tour-gallery { margin-bottom: 0; }
.detail__body > * { min-width: 0; } /* so the section menu (which does not wrap) does not widen the column on mobile */
@media (min-width: 1000px) {
  .detail__body {
    grid-template-columns: minmax(0, 1fr) 25rem;
    grid-template-areas: "gallery sidebar" "main sidebar";
    gap: 2.5rem 3rem;
  }
  .detail__body > .tour-gallery { grid-area: gallery; }
  .detail__body > .detail__main { grid-area: main; }
  .detail__sidebar { grid-area: sidebar; position: sticky; top: 6.5rem; }
  .admin-bar .detail__sidebar { top: 8.5rem; }
}

.detail__lead { font-size: 1.1875rem; font-weight: 300; line-height: 1.65; color: var(--navy); margin-bottom: 2.5rem; }
.detail__lead p { margin: 0 0 1em; }
.detail__subtitle { font-size: 1.375rem; font-weight: 700; margin-bottom: 1.25rem; }
.detail__practical, .detail__description { margin-bottom: 2.75rem; }
.detail__practical-list { margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.detail__practical-list div { padding: 1.125rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.detail__practical-list dt { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-family: var(--f-title); font-weight: 700; color: var(--navy); }
.detail__practical-list dd { margin: 0; color: var(--slate); font-size: 0.9375rem; }
.detail__description .prose { color: var(--text); }
.detail__description .prose h3 { font-size: 1.125rem; margin: 1.5em 0 0.5em; }
.detail__description .prose ol, .detail__description .prose ul { padding-left: 1.25rem; }
.detail__description .prose li { margin-bottom: 0.4em; }

.detail__includes { margin-bottom: 2.75rem; }
.detail__includes-columns { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.detail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; align-content: start; }
.detail__list li { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.detail__list .icon { margin-top: 0.15rem; }
.detail__list--yes .icon { color: var(--moss); }
.detail__list--no { color: var(--slate); }
.detail__list--no .icon { color: var(--bryggen); }

.detail__block { margin-bottom: 2.75rem; }
.detail__block .detail__subtitle { display: flex; align-items: center; gap: 0.6rem; }
.detail__block .detail__subtitle .icon { color: var(--navy); }
.detail__block .prose { color: var(--slate); font-size: 1rem; }

.detail__related { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.detail__related .section__title { margin-bottom: 2rem; }

/* ---------- Detail by sections (GetYourGuide style) ---------- */
/* Ratings on other platforms ("Valoraciones" row, next to the reviews) */
.ratings { margin-top: 1rem; }
.ratings__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ratings__list li {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.875rem; color: var(--text);
}
.ratings__star { color: #D99A1B; }
.ratings__list strong { font-family: var(--f-title); color: var(--navy); }
.ratings__detail { color: var(--slate); }
.ratings__date { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--slate); }

.reviews-gyg__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Review card */
.tour-review { padding: 1.25rem 1.375rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large); }
.tour-review__stars { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; font-size: 0.9375rem; color: var(--text); }
.stars { color: var(--navy); letter-spacing: 0.08em; }
.tour-review__author { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.tour-review__initial {
  display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  color: var(--white); font-family: var(--f-title); font-weight: 800; font-size: 1.125rem;
}
.tour-review__author p { margin: 0; display: flex; flex-direction: column; line-height: 1.35; }
.tour-review__author strong { font-family: var(--f-title); color: var(--text); }
.tour-review__author p span { font-size: 0.875rem; color: var(--slate); } /* only the date, not the initial */
.tour-review__text { font-size: 0.9375rem; line-height: 1.6; color: var(--text); }
.tour-review__text p { margin: 0 0 0.5em; }
.tour-review__text p:last-child { margin-bottom: 0; }

/* Rows: title on the left and content on the right */
/* Detail section menu: sticky right below the header (73 px on mobile, 81 px on desktop)
   while reading the content. It is inside .detail__main, so it only shows from there on. */
.detail-menu {
  position: sticky; top: 4.5rem; z-index: 20; margin: 0 0 1.5rem;
  background: rgba(250, 251, 252, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .detail-menu { top: 5rem; } }
@media (min-width: 783px) { .admin-bar .detail-menu { top: calc(5rem + 32px); } }
.detail-menu__list {
  display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.detail-menu__list::-webkit-scrollbar { display: none; }
.detail-menu__link {
  display: block; padding: 0.85rem 0.9rem; white-space: nowrap;
  font-family: var(--f-title); font-size: 0.9375rem; font-weight: 700; color: var(--slate); text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.detail-menu__link:hover { color: var(--navy); }
.detail-menu__link[aria-current="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.detail-menu__link:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.detail-menu__list li:first-child .detail-menu__link { padding-left: 0; }
/* If there are more sections when swiping (mobile): gradient on that edge + arrow (classes set by main.js) */
.detail-menu::before, .detail-menu::after {
  content: ""; position: absolute; top: 0; bottom: 1px; width: 4rem; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.detail-menu::before { left: 0; background: linear-gradient(to right, rgba(250, 251, 252, 1) 35%, rgba(250, 251, 252, 0)); }
.detail-menu::after { right: 0; background: linear-gradient(to left, rgba(250, 251, 252, 1) 35%, rgba(250, 251, 252, 0)); }
.detail-menu--more-left::before, .detail-menu--more-right::after { opacity: 1; }
.detail-menu__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy);
  box-shadow: var(--shadow); cursor: pointer;
}
.detail-menu__arrow--left { left: 0; }
.detail-menu__arrow--left .icon { transform: rotate(180deg); }
.detail-menu__arrow--right { right: 0; }
/* When jumping to a section, the title sits below the header and the menu
   (added to the html scroll-padding-top of 6rem: 9.5rem in total) */
.detail--gyg .gyg-row__title, .detail--gyg #reviews { scroll-margin-top: 3.5rem; }
.admin-bar .detail--gyg .gyg-row__title, .admin-bar .detail--gyg #reviews { scroll-margin-top: 5.5rem; }

.gyg-row { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.gyg-row__title { font-size: 1.1875rem; font-weight: 700; margin-bottom: 0.9rem; }
@media (min-width: 760px) {
  .gyg-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
  .gyg-row__title { margin: 0; }
}
.gyg-row__content .prose { font-size: 1rem; }

/* Route map: notice with a button until loading Google Maps is requested (inc/tour-fields.php) */
.tour-map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-height: 28rem; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--ice); }
.tour-map__notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; height: 100%; padding: 1.5rem; text-align: center; color: var(--slate); }
.tour-map__notice > .icon { color: var(--navy); }
.tour-map__notice p { margin: 0; max-width: 26rem; }
.tour-map__note { font-size: 0.8125rem; }
.tour-map__note a { color: var(--navy); font-weight: 600; }
.tour-map iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Custom map (fjr_route_map with fjr_custom_map()): SVG drawing before clicking and Leaflet afterwards */
.tour-map--custom { aspect-ratio: 3 / 2; max-height: 30rem; background: linear-gradient(160deg, var(--ice) 0%, var(--ice-light) 100%); }
.tour-map__view { display: block; width: 100%; height: 100%; }
.tour-map__view-bg { fill: none; stroke: var(--white); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.tour-map__view-route { fill: none; stroke: var(--navy); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.tour-map__view-stop circle { fill: var(--navy); stroke: var(--white); stroke-width: 3; }
.tour-map__view-stop text { fill: var(--white); font: 800 13px var(--f-title); text-anchor: middle; dominant-baseline: central; }
.tour-map__layer { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; pointer-events: none; }
.tour-map__layer .btn { pointer-events: auto; box-shadow: 0 6px 20px -6px rgba(16, 35, 46, 0.45); }
.tour-map__button .icon { margin-right: 0.15rem; }
.tour-map--loaded { background: var(--ice); }
.tour-map__canvas { width: 100%; height: 100%; }
/* OpenStreetMap background dimmed so the route stands out and matches the site colours */
.tour-map .leaflet-tile-pane { filter: grayscale(0.6) saturate(0.8) brightness(1.05) contrast(0.92); }
.tour-map .leaflet-container { font-family: var(--f-text); }
.tour-map__stop span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white); border: 3px solid var(--white);
  font: 800 13px var(--f-title); box-shadow: 0 2px 8px rgba(16, 35, 46, 0.35); box-sizing: border-box;
}
.tour-map__stops { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: stop; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: var(--slate); }
.tour-map__stops li { counter-increment: stop; display: inline-flex; align-items: center; gap: 0.4rem; }
.tour-map__stops li::before {
  content: counter(stop); display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 800 0.6875rem var(--f-title);
}
.tour-map__note--custom { margin: 0.75rem 0 0; color: var(--slate); }
.gyg-row__highlights { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; line-height: 1.55; }
.gyg-row__highlights li::marker { color: var(--navy); }
.gyg-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 2.75rem; }

/* Description: on mobile, two paragraphs and "Leer más" (main.js adds the class and the button) */
.read-more { display: none; }
@media (max-width: 699px) {
  .prose--truncated > :nth-child(n+3) { display: none; }
  .prose--truncated > :nth-child(2) { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
  .read-more {
    display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; padding: 0.5rem 0;
    border: 0; background: none; font: 700 0.9375rem var(--f-title); color: var(--navy); cursor: pointer;
    text-decoration: underline; text-underline-offset: 0.2em;
  }
}

/* Itinerary: timeline with one icon per stop (fjr_itinerary).
   Phosphor icons (inc/itinerary-icons.php) in coloured circles by stop type:
   nature (green), culture (sand) and transfers (blue) */
.itinerary { list-style: none; margin: 0; padding: 0; }
.itinerary__stop { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.25rem; }
.itinerary__stop:last-child { padding-bottom: 0; }
/* The line joins the icons: it goes from the centre of one to the next */
.itinerary__stop:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.625rem - 1px); top: 3.25rem; bottom: 0;
  border-left: 2px dotted var(--field-line);
}
.itinerary__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 2px solid var(--white); box-shadow: 0 2px 8px -2px rgba(20, 59, 78, 0.35);
  background: #DCE8F1; color: var(--navy);
}
.itinerary__stop--nature .itinerary__icon { background: #DCEBDD; color: #2F5A3A; }
.itinerary__stop--culture .itinerary__icon { background: #F6E7C4; color: #7A5410; }
.itinerary__text { padding-top: 0.55rem; }
.itinerary__text strong { display: block; font-family: var(--f-title); color: var(--navy); line-height: 1.35; }
.itinerary__text p { margin: 0.2rem 0 0; color: var(--slate); line-height: 1.55; }

/* Important information in parts (fjr_important_info) */
.important { display: grid; gap: 1.5rem; }
.important__part { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; }
/* Same coloured circles as the itinerary: green (difficulty, commitment), blue (what to bring), sand (notices) */
.important__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 2px solid var(--white); box-shadow: 0 2px 8px -2px rgba(20, 59, 78, 0.35);
  background: #DCE8F1; color: var(--navy);
}
.important__part--green .important__icon { background: #DCEBDD; color: #2F5A3A; }
.important__part--sand .important__icon { background: #F6E7C4; color: #7A5410; }
.important__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.75rem 0 0.4rem; font-size: 1.0625rem; }
.important .prose { color: var(--slate); }
.important__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; color: var(--slate); }
.important__list li { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.5; }
.important__list .icon { flex-shrink: 0; margin-top: 0.2rem; color: var(--moss); }
/* Difficulty level: label with three bars (1 easy, 2 medium, 3 demanding) */
.level {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.65rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 700 0.8125rem var(--f-title); color: var(--navy);
}
.level__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.8rem; }
.level__bars i { width: 4px; border-radius: 1px; background: var(--line); }
.level__bars i:nth-child(1) { height: 40%; }
.level__bars i:nth-child(2) { height: 70%; }
.level__bars i:nth-child(3) { height: 100%; }
.level__bars i.active { background: var(--navy); }

/* FAQ on the detail (fjr_tour_faq): "Detalles" blocks from /faq/, with the page style (further down) */
.faq-gyg { margin-bottom: 2.75rem; scroll-margin-top: 3.5rem; }
.admin-bar .faq-gyg { scroll-margin-top: 5.5rem; }
.tour-faq { border-top: 1px solid var(--line); }
.tour-faq__more { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--slate); }
.tour-faq__more a { color: var(--navy); font-weight: 600; }

/* Amazon-style reviews (fjr_reviews_section): summary on the left and list in one column.
   With JavaScript ("js" class): texts cut to 3 lines and only the first 4; without it, everything in full */
.reviews-am { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .reviews-am { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .reviews-am__summary { position: sticky; top: 7rem; }
  .detail--viator .reviews-am__summary { top: 10rem; } /* below the header and the sticky submenu */
}
.reviews-am__summary .reviews-gyg__media { margin-bottom: 1rem; }
.reviews-am__summary .reviews-gyg__note { margin-top: 1rem; }
.review-am { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.review-am:first-child { padding-top: 0; }
.review-am:focus { outline: none; }
.review-am__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0; }
.review-am__header .stars { color: var(--ochre); letter-spacing: 0.04em; }
.review-am__header strong { font-family: var(--f-title); color: var(--navy); line-height: 1.35; }
.review-am__meta { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--slate); }
.review-am__text { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.6; color: var(--text); }
.review-am__text p { margin: 0 0 0.5em; }
.review-am__text p:last-child { margin-bottom: 0; }
.js .review-am__text:not(.review-am__text--open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.js .review-am__text:not(.review-am__text--open) p { display: inline; } /* so paragraphs count as consecutive lines */
.review-am__read { margin-top: 0.35rem; padding: 0.25rem 0; border: 0; background: none; font: 600 0.875rem var(--f-title); color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.reviews-am__more { display: none; margin-top: 1.5rem; }
.js .reviews-am__more { display: inline-flex; }
.js .reviews-am__list:not(.reviews-am__list--all) .review-am:nth-of-type(n+5) { display: none; }

/* Form to leave a review (fjr_review_form), with the link from the email */
.leave-review { margin-bottom: 2.75rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--white); scroll-margin-top: 6rem; }
.leave-review__intro { margin: 0 0 1rem; color: var(--slate); }
.leave-review__notice { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: #F7E4E2; color: #6E1F1B; font-weight: 500; }
.leave-review__notice--ok { background: #E3F0E6; color: #24452D; }
.leave-review__form label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--navy); }
.leave-review__form textarea, .leave-review__form input[type="text"] {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--field-line); border-radius: var(--radius); font: inherit; background: var(--white);
}
.leave-review__note { font-size: 0.8125rem; color: var(--slate); }
/* Stars: radios from 5 to 1 shown in reverse; on hover or selection, the previous ones light up */
.leave-review__stars { margin: 0 0 1rem; padding: 0; border: 0; }
.leave-review__stars legend { margin-bottom: 0.35rem; padding: 0; font-weight: 600; color: var(--navy); }
.leave-review__list { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.leave-review__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.leave-review__stars label { margin: 0; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; }
.leave-review__stars input:checked ~ label,
.leave-review__stars label:hover, .leave-review__stars label:hover ~ label { color: #D9A21B; }
.leave-review__stars input:focus-visible + label { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }

/* Reviews summary */
.reviews-gyg { margin-bottom: 2.75rem; }
.reviews-gyg__summary {
  display: grid; gap: 1.5rem 2.5rem; align-items: center; margin-bottom: 1.5rem;
  padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large);
}
@media (min-width: 600px) { .reviews-gyg__summary { grid-template-columns: auto 1fr; } }
.reviews-gyg__media { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.reviews-gyg__media strong { font-family: var(--f-title); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--navy); }
.reviews-gyg__media > span:last-child { font-size: 0.875rem; color: var(--slate); }
.reviews-gyg__distribution { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.875rem; color: var(--slate); }
.reviews-gyg__distribution li { display: grid; grid-template-columns: 2.5rem 1fr 1.5rem; gap: 0.75rem; align-items: center; }
.reviews-gyg__bar { height: 0.5rem; border-radius: 999px; background: var(--ice); overflow: hidden; }
.reviews-gyg__bar span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.reviews-gyg__note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0 0; font-size: 0.8125rem; color: var(--slate); }
.reviews-gyg__note .icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--moss); }

/* ---------- Booking card ---------- */
.booking {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large);
  padding: 1.5rem; box-shadow: 0 12px 40px -16px rgba(20, 59, 78, 0.22);
}
.booking__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.booking__price-label { width: 100%; font-size: 0.8125rem; color: var(--slate); }
.booking__price strong { font-family: var(--f-title); font-size: 1.875rem; font-weight: 800; color: var(--navy); line-height: 1; }
.booking__price-unit { font-size: 0.875rem; color: var(--slate); }
/* Cruise-friendly tour note (spec 036), under the price */
.booking__cruise { display: flex; align-items: flex-start; gap: 0.5rem; margin: -0.25rem 0 1.25rem; font-size: 0.8125rem; line-height: 1.45; color: var(--navy); }
.booking__cruise .icon { flex: none; margin-top: 0.05rem; }

/* Benefits of booking on the website (fjr_booking_benefits): right below the price */
.booking__benefits { margin: -0.25rem 0 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--ice); }
.booking__benefits-title { margin: 0 0 0.45rem; font: 700 0.875rem var(--f-title); color: var(--navy); }
.booking__benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.booking__benefits li { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--text); }
.booking__benefits .icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--moss); }

.booking__step { position: relative; margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; } /* relative: anchors the hidden radios */
.booking__step-title { display: flex; align-items: center; gap: 0.5rem; padding: 0; margin-bottom: 0.75rem; font-family: var(--f-title); font-weight: 700; color: var(--navy); }
.booking__step-title span {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 0.75rem;
}
.booking__help { margin: 0; font-size: 0.875rem; color: var(--slate); }

/* Radio buttons that look like buttons: the real input stays hidden but accessible */
.booking__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.booking__time {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--white);
  color: var(--navy); cursor: pointer; text-align: center; line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s;
}
.booking__time:hover { border-color: var(--navy); background: var(--ice); }
.booking__radio:checked + .booking__time { background: var(--navy); border-color: var(--navy); color: var(--white); }
.booking__radio:checked + .booking__time .booking__few { color: #FFD9A0; }
.booking__radio:focus-visible + label { outline: 3px solid var(--ochre); outline-offset: 2px; }
.booking__radio:disabled + label { cursor: not-allowed; opacity: 0.45; background: var(--ice-light); border-style: dashed; }

/* Date calendar (step 1): Monday to Sunday, days with a departure are buttons */
.calendar__month + .calendar__month { margin-top: 1.25rem; } /* without JavaScript all are shown */
.calendar__header { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.calendar__title { flex: 1; margin: 0; text-align: center; font-family: var(--f-title); font-weight: 700; color: var(--navy); }
.calendar__arrow {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer;
}
.calendar__arrow:first-child .icon { transform: rotate(180deg); }
.calendar__arrow:hover:not(:disabled) { border-color: var(--navy); background: var(--ice); }
.calendar__arrow:disabled { opacity: 0.35; cursor: default; }
.calendar__week, .calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.calendar__week { margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--slate); text-align: center; }
.calendar__cell { position: relative; display: grid; place-items: center; height: 2.5rem; font-size: 0.875rem; }
/* Days without a departure: lighter than those with one (circle and bold), but readable (4.65:1 contrast) */
.calendar__cell--no { color: #647784; }
.calendar__day {
  display: grid; place-items: center; width: 2.5rem; max-width: 100%; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--navy); background: var(--ice); color: var(--navy);
  font-family: var(--f-title); font-weight: 800; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.calendar__day:hover { background: var(--line); }
.booking__radio:checked + .calendar__day { background: var(--navy); color: var(--white); }
/* Full: struck through, without the general disabled radio style */
.booking__radio:disabled + .calendar__day { opacity: 1; border: 1px dashed var(--field-line); background: none; color: var(--slate); text-decoration: line-through; font-weight: 600; }
.calendar__legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--slate); }
.calendar__legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.calendar__sample { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid var(--navy); background: var(--ice); }
.calendar__sample--full { border: 1px dashed var(--field-line); background: none; }
/* With JavaScript, one month at a time */
.calendar--js .calendar__month { display: none; }
.calendar--js .calendar__month--active { display: block; margin-top: 0; }

/* Only the days with a departure (alternative to the calendar): buttons with weekday, number and month */
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: 0.5rem; }
.dates [hidden] { display: none; }
.dates__month { grid-column: 1 / -1; margin: 0.5rem 0 0; font-family: var(--f-title); font-size: 0.8125rem; font-weight: 700; color: var(--slate); }
.dates__month:first-child { margin-top: 0; }
.dates__cell { position: relative; } /* anchors the hidden radio */
.dates__day {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.5rem 0.25rem;
  border: 1px solid var(--navy); border-radius: var(--radius); background: var(--ice); color: var(--navy);
  line-height: 1.15; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.dates__day small { font-size: 0.75rem; font-weight: 600; }
.dates__day strong { font-family: var(--f-title); font-size: 1.25rem; font-weight: 800; }
.dates__day:hover { background: var(--line); }
.booking__radio:checked + .dates__day { background: var(--navy); color: var(--white); }
/* Full: struck through, without the general disabled radio style */
.booking__radio:disabled + .dates__day { opacity: 1; border: 1px dashed var(--field-line); background: none; color: var(--slate); }
.booking__radio:disabled + .dates__day strong { text-decoration: line-through; font-weight: 600; }
.dates__more {
  grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; padding: 0.35rem 0; border: 0; background: none;
  font: 700 0.875rem var(--f-title); color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}

.booking__times + .booking__times { margin-top: 1rem; }
.booking__date-times { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--slate); }
.booking__times-list { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.booking__time { padding: 0.6rem 0.5rem; }
.booking__time strong { font-family: var(--f-title); font-size: 1rem; }
.booking__time small { font-size: 0.6875rem; margin-top: 0.15rem; }
.booking__language { font-size: 0.75rem; font-weight: 600; }
/* Tours in several languages: filter above the dates (shown by main.js) and the customer's language */
.booking__radio:disabled + .dates__day--filtered strong { text-decoration: none; }
.booking__choice { display: grid; gap: 0.4rem; margin: 1rem 0 0; }
.booking__choice label { font-family: var(--f-title); font-weight: 700; font-size: 0.8125rem; color: var(--navy); }
.booking__choice select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.95rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.booking__choice select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.booking__few { color: var(--bryggen); font-weight: 600; }
/* Before main.js arrives ("js" class on <html>, set in the header): the same look as with it,
   so that all times, all months or the full description are not briefly shown */
.js .booking__times { display: none; }
.js .booking__form:not(.booking__form--js) .booking__choice { display: none; } /* main.js shows it only for times with several languages */
.js .booking__form:not(.booking__form--js) [data-no-date] { display: block !important; } /* !important: beats [hidden] */
.js .booking__form:not(.booking__form--js) .booking__people button { display: block !important; }
.js .calendar:not(.calendar--js) .calendar__month + .calendar__month { display: none; }
@media (max-width: 699px) {
  .js [data-read-more]:not([data-read-ready]) > :nth-child(n+3) { display: none; }
}
/* With JavaScript only the times of the selected date are shown */
.booking__form--js .booking__times { display: none; }
.booking__form--js .booking__times--active { display: block; margin-top: 0; }
.booking__form--js .booking__date-times { display: none; }

.booking__people { display: inline-flex; align-items: stretch; border: 1px solid var(--field-line); border-radius: 999px; overflow: hidden; }
.booking__people input {
  width: 3.5rem; border: 0; text-align: center; font: 700 1.0625rem var(--f-title); color: var(--navy);
  background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.booking__people input::-webkit-outer-spin-button, .booking__people input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.booking__people button {
  width: 2.75rem; height: 2.75rem; border: 0; background: var(--ice); color: var(--navy);
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
}
.booking__people button:hover:not(:disabled) { background: var(--line); }
.booking__people button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Prices by age: a row per traveller type (name, ages · price | counter) */
.booking__travellers { display: grid; gap: 0.75rem; }
.booking__traveller { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.booking__traveller .booking__people { flex-shrink: 0; }
.booking__traveller-type { display: grid; gap: 0.1rem; min-width: 0; margin: 0; }
.booking__traveller-type label { font-family: var(--f-title); font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.booking__traveller-type small { font-size: 0.8125rem; color: var(--slate); }
.booking__traveller-type [data-ticket-price] { font-weight: 600; color: var(--text); }
.booking__travellers-help { margin: 0; font-size: 0.8125rem; color: var(--slate); }

/* Child seats: age, height and seat of each child and infant (rows created by main.js; without it, a free text) */
.booking__kids { display: grid; gap: 0.6rem; }
.booking__kids-rows { display: grid; gap: 0.6rem; }
.booking__kids-rows:empty { display: none; }
.booking__kid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0.6rem 0.75rem 0.75rem; border: 1px solid var(--line); border-radius: 0.6rem; }
.booking__kid-name { padding: 0 0.25rem; font-family: var(--f-title); font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.booking__kid-field { display: grid; gap: 0.2rem; font-size: 0.8125rem; color: var(--slate); }
.booking__kid-field input, .booking__kid-field select { width: 100%; min-height: 2.5rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 0.45rem; font: inherit; font-size: 0.9375rem; color: var(--text); background: var(--white); }
.booking__kids-note { display: grid; gap: 0.3rem; margin: 0; font-size: 0.8125rem; color: var(--slate); }
.booking__kids-note textarea { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 0.45rem; font: inherit; }
.js .booking__kids-note { display: none; }

.booking__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.booking__total span { font-weight: 600; color: var(--slate); }
.booking__total strong { font-family: var(--f-title); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
/* .booking__contact: the contact link while bookings are paused (spec 041); not .booking__button, whose text main.js rewrites */
.booking__button, .booking__contact { width: 100%; padding-block: 1.05rem; font-size: 1rem; }
.booking__error { margin: 0 0 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: #F7E4E2; color: #6E1F1B; font-size: 0.875rem; font-weight: 500; }
.booking__cancellation { display: flex; gap: 0.5rem; align-items: flex-start; justify-content: center; margin: 0.85rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--moss); text-align: left; }
.booking__cancellation .icon { margin-top: 0.1rem; }
.booking__secure { margin: 0.75rem 0 0; font-size: 0.8125rem; text-align: center; color: var(--slate); }
/* The currency line goes first (main.js shows it); the secure line then sits close under it */
.booking__secure--after .icon { margin-right: 0.3rem; vertical-align: -0.15em; }
.booking__currency:not([hidden]) + .booking__secure--after { margin-top: 0.25rem; }
.booking__empty { margin: 0 0 1.25rem; color: var(--slate); }
/* Booking pause (spec 041): the message instead of the "Reservar" button, and its contact link under it */
.booking__paused { margin: 1rem 0 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--warning-bg); color: var(--warning-text); font-size: 0.875rem; font-weight: 600; }

.booking__data { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; font-size: 0.875rem; color: var(--slate); }
.booking__data li { display: flex; gap: 0.75rem; align-items: flex-start; }
.booking__data .icon { color: var(--navy); margin-top: 0.1rem; }
.booking__data strong { display: block; color: var(--navy); font-family: var(--f-title); }
.booking__map { display: inline-block; margin-top: 0.25rem; font-weight: 600; color: var(--navy); text-underline-offset: 0.2em; }
.booking__questions { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--slate); text-align: center; }
.booking__private { margin: 1rem 0 0; font-size: 0.875rem; font-weight: 600; text-align: center; }
.booking__private a { color: var(--navy); }

/* "¿Lo quieres en privado?" block of the tour page (spec 026, template-parts/private-request.php) */
.private-request { margin-block: 1.75rem; padding: 1.5rem 1.25rem; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-large); scroll-margin-top: 7rem; }
.private-request__title { margin: 0 0 0.35rem; font-size: 1.375rem; }
.private-request__lead { margin: 0 0 0.5rem; color: var(--slate); }
.private-request__lead strong { font-size: 1.25rem; color: var(--navy); }
.private-request__text { margin: 0 0 1.25rem; color: var(--slate); }
.private-request__form { gap: 1rem; }
.private-request .form__notice { margin-bottom: 1.25rem; }
@media (min-width: 48em) {
  .private-request { padding: 2rem; }
}

/* Sticky booking bar on mobile */
.booking-bar { display: none; }
@media (max-width: 999px) {
  .booking-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(20, 59, 78, 0.25);
    transition: transform 0.25s;
  }
  .booking-bar--hidden { transform: translateY(110%); }
  .booking-bar__price { margin: 0; line-height: 1.2; }
  .booking-bar__price > span { display: block; font-size: 0.75rem; color: var(--slate); } /* only the direct child: the price contains inner spans */
  .booking-bar__price strong { font-family: var(--f-title); font-size: 1.25rem; color: var(--navy); }
  .booking-bar__price small { color: var(--slate); }
  .booking-bar__price > .booking-bar__next { margin-top: 0.15rem; font-weight: 600; color: var(--navy); }
  /* The WhatsApp button moves up so as not to cover the bar; and the footer leaves room */
  .with-booking-bar .floating-whatsapp { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  .with-booking-bar .whatsapp-menu__panel { bottom: calc(9.5rem + env(safe-area-inset-bottom)); }
  .with-booking-bar .footer { padding-bottom: 6rem; }
}

/* ---------- Viator-style detail (template-parts/detail-viator.php) ---------- */
/* Rating below the title */
.detail .detail__rating { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: -0.25rem; color: var(--navy); text-decoration: none; font-size: 0.9375rem; }
.detail__rating .stars { color: var(--ochre); letter-spacing: 0.05em; }
.detail__rating span { color: var(--slate); text-decoration: underline; text-underline-offset: 0.2em; }
.detail__rating:hover span { color: var(--navy); }

/* Full-width section submenu. Without JavaScript it stays in place; with it ("js" class) it becomes sticky
   below the header and main.js shows it once the gallery has been scrolled past */
.detail-bar { margin-bottom: 1.5rem; }
.detail-bar .detail-menu { position: relative; top: auto; margin: 0; }
.js .detail-bar {
  position: fixed; left: 0; right: 0; top: 4.5rem; z-index: 45; margin: 0;
  background: rgba(250, 251, 252, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(20, 59, 78, 0.35);
  transform: translateY(-110%); visibility: hidden; transition: transform 0.25s, visibility 0.25s;
}
.js .detail-bar .detail-menu { background: none; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .detail-bar--visible { transform: none; visibility: visible; }
@media (min-width: 900px) { .js .detail-bar { top: 5rem; } }
@media (min-width: 783px) { .js .admin-bar .detail-bar { top: calc(5rem + 32px); } }
@media (prefers-reduced-motion: reduce) { .js .detail-bar { transition: none; } }
/* The sticky booking card sits below the bar */
@media (min-width: 1000px) {
  .detail--viator .detail__sidebar { top: 9rem; }
  .admin-bar .detail--viator .detail__sidebar { top: calc(9rem + 32px); }
}

/* Key facts with icons, at the start of the content */
.key-facts {
  list-style: none; margin: 0 0 1.5rem; padding: 1.25rem 0; display: grid; gap: 0.85rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  border-block: 1px solid var(--line); color: var(--text); font-size: 0.9375rem;
}
.key-facts li { display: flex; align-items: center; gap: 0.6rem; }
.key-facts .icon { flex-shrink: 0; color: var(--navy); }
.key-facts .key-facts__item--wide { grid-column: 1 / -1; align-items: flex-start; } /* languages + note (spec 030): the whole row */

/* Note under the tour's languages (spec 030): native disclosure, closed, small */
.language-note { margin-top: 0.15rem; font-size: 0.8125rem; line-height: 1.5; }
.language-note__title {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; cursor: pointer; list-style: none;
  color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em;
}
.language-note__title::-webkit-details-marker { display: none; }
.language-note__title::after { content: ""; width: 0.4rem; height: 0.4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-0.1rem); transition: transform 0.2s; }
.language-note[open] .language-note__title::after { transform: rotate(-135deg) translateY(-0.1rem); }
.language-note__text { margin: 0 0 0.25rem; color: var(--slate); font-weight: 400; }
@media (min-width: 760px) { .language-note__title { min-height: 2rem; } }
@media (prefers-reduced-motion: reduce) { .language-note__title::after { transition: none; } }
.detail--viator .detail__main > .booking__benefits { margin: 0 0 2rem; }
.meeting a { margin-left: 0.25rem; color: var(--navy); font-weight: 600; }

/* Compact booking card: Date | Travellers and the time below, in a single box */
.booking--compact .booking__price { margin-bottom: 1rem; padding-bottom: 1rem; }
.booking--compact .booking__step { margin: 0; }
.booking--compact .booking__step-title { margin-bottom: 0.4rem; font-size: 0.8125rem; font-weight: 700; color: var(--slate); }
.booking__fields { position: relative; display: grid; margin-bottom: 1rem; border: 1px solid var(--field-line); border-radius: var(--radius); }
.js .booking__fields { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.booking__field { min-width: 0; padding: 0.7rem 0.9rem; }
.js .booking__field--people { border-left: 1px solid var(--line); }
/* With prices by age or a "Solo adultos" notice the travellers need the whole width: date, travellers and time, one below the other */
.js .booking__fields--travellers { grid-template-columns: minmax(0, 1fr); }
.js .booking__fields--travellers .booking__field--people { border-left: 0; border-top: 1px solid var(--line); }
/* There the time goes in the middle (booking.php puts it before the travellers) and the calendar opens right below the date */
.booking__fields--travellers .booking__field--time { border-radius: 0; }
.js .booking__fields--travellers .booking__field--date { position: relative; }
.booking__field--time { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--ice-light); }
.booking--compact .booking__people button { width: 2rem; height: 2.25rem; font-size: 1.125rem; }
.booking--compact .booking__people input { width: 2.25rem; font-size: 1rem; }
/* "Fecha" button: only with JavaScript (without it, the calendar is visible) */
.booking__selector { display: none; }
.js .booking__selector {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem; width: 100%;
  padding: 0; border: 0; background: none; font: inherit; text-align: left; color: var(--navy); cursor: pointer;
}
.booking__selector-label { grid-column: 1; font-size: 0.8125rem; font-weight: 700; color: var(--slate); }
.booking__selector strong { grid-column: 1; font-family: var(--f-title); font-size: 1rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking__selector .icon { grid-column: 2; grid-row: 1 / span 2; }
.booking__selector:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; border-radius: 4px; }
/* Floating calendar window, below the box */
.js .booking--compact .booking__popover {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 0.5rem); z-index: 30;
  padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-large);
  box-shadow: 0 18px 40px -12px rgba(16, 35, 46, 0.35);
}
.js .booking--compact .booking__popover:not(.booking__popover--open) { display: none; }
.js .booking--compact .booking__popover .booking__step-title { font-size: 0.9375rem; color: var(--navy); }

/* ---------- Pages ---------- */
/* .container.page and not .page: WordPress also puts the "page" class on the <body> of every page (the body took this padding) */
.container.page, .shop { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section); }
.page__title, .woocommerce-products-header__title, .page-title, .product-title {
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.025em;
}
.page__shop { max-width: 64rem; }

/* Editor blocks inside text pages (e.g. Sobre nosotros) */
.container.page .prose h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); margin: 2em 0 0.6em; }
.container.page .prose h3 { margin: 1.5em 0 0.5em; }
.container.page .prose > :first-child { margin-top: 0; }
.container.page .prose ul, .container.page .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.container.page .prose li { margin-bottom: 0.5em; }
.container.page .prose figure { margin: 1.75rem 0; }
.container.page .prose figure img { border-radius: var(--radius-large); }
/* Image aligned to one side (Align right/left in the editor): the text wraps around it */
.container.page .prose .alignright, .container.page .prose .alignleft { width: 42%; max-width: 18rem; margin-top: 0.4rem; margin-bottom: 1rem; }
.container.page .prose .alignright { float: right; margin-left: clamp(1rem, 3vw, 2rem); margin-right: 0; }
.container.page .prose .alignleft { float: left; margin-right: clamp(1rem, 3vw, 2rem); margin-left: 0; }
.container.page .prose h2 { clear: both; }
.container.page .prose::after { content: ""; display: table; clear: both; }
/* On wide screens the right image leaves the text column and takes the side
   gap: the negative margin cancels its width, so the text does not narrow */
@media (min-width: 1180px) {
  .container.page .prose .alignright { width: 22rem; max-width: none; margin: 0 -25rem 1rem 3rem; }
  .container.page .prose h2 { clear: left; }
}
.container.page .prose figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate); }
/* Editor accordions ("Detalles" block): FAQ */
.container.page .prose .faq-intro { font-size: 1.125rem; font-weight: 300; color: var(--slate); }
.container.page .prose .wp-block-details, .tour-faq .wp-block-details { margin: 0; border-bottom: 1px solid var(--line); }
.container.page .prose h2 + .wp-block-details { border-top: 1px solid var(--line); }
.container.page .prose .wp-block-details summary, .tour-faq .wp-block-details summary {
  position: relative; display: block; padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; list-style: none;
  font-family: var(--f-title); font-weight: 700; font-size: 1.0625rem; color: var(--navy);
}
.container.page .prose .wp-block-details summary::-webkit-details-marker, .tour-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.container.page .prose .wp-block-details summary::after, .tour-faq .wp-block-details summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s;
}
.container.page .prose .wp-block-details[open] summary::after, .tour-faq .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.container.page .prose .wp-block-details summary:hover, .tour-faq .wp-block-details summary:hover { color: var(--navy-dark); }
.container.page .prose .wp-block-details summary:focus-visible, .tour-faq .wp-block-details summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.container.page .prose .wp-block-details > :not(summary), .tour-faq .wp-block-details > :not(summary) { margin: 0 0 1rem; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .container.page .prose .wp-block-details summary::after, .tour-faq .wp-block-details summary::after { transition: none; } }

.container.page .prose .wp-block-buttons, .sections .wp-block-buttons { margin: 1.5rem 0; gap: 0.75rem; }
.container.page .prose .wp-block-button__link, .sections .wp-block-button__link {
  font-family: var(--f-title); font-size: 0.9375rem; font-weight: 700; line-height: 1.2;
  padding: 0.95rem 1.75rem; border-radius: 999px;
  background: var(--navy); color: var(--white); text-decoration: none;
}
.container.page .prose .wp-block-button__link:hover, .sections .wp-block-button__link:hover { background: var(--navy-dark); color: var(--white); }
.container.page .prose .is-style-outline .wp-block-button__link, .sections .is-style-outline .wp-block-button__link { background: var(--white); color: var(--navy); border: 0; box-shadow: inset 0 0 0 1px var(--field-line); }
.container.page .prose .is-style-outline .wp-block-button__link:hover, .sections .is-style-outline .wp-block-button__link:hover { background: var(--ice); }

/* ---------- Pages with sections (page-sections.php template, e.g. Sobre nosotros) ----------
   Each top-level editor block is a section. It is chosen with "Clase CSS adicional":
   section-history (text + photo; --inverted: photo on the left), data-list (figures),
   section-quote (highlighted quote), section-text (narrow text), section-mosaic (3 photos),
   section-values (title + list with icons: values-list), section-band (background photo
   with text on top: the block image is the background) and section-closing (closing section). */
.sections__cover { position: relative; overflow: hidden; background: var(--ice); padding-block: clamp(4rem, 9vw, 7rem); }
.sections__cover--with-image { display: grid; align-items: end; min-height: clamp(24rem, 55vh, 34rem); background: var(--navy); }
.sections__cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sections__cover--with-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 30, 40, 0.75), rgba(10, 30, 40, 0.15) 70%); }
.sections__cover-inner { position: relative; z-index: 1; }
.sections__title { margin: 0; font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); font-weight: 800; letter-spacing: -0.03em; }
.sections__lead { max-width: 40em; margin: 1rem 0 0; font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); font-weight: 300; line-height: 1.6; color: var(--slate); }
.sections__cover--with-image .sections__title { color: var(--white); }
.sections__cover--with-image .sections__lead { color: rgba(255, 255, 255, 0.92); }

/* Each section takes the site width (like .container) with its space above and below */
.sections__content { padding-bottom: var(--section); }
.sections__content > * { width: 100%; max-width: var(--width); margin: 0 auto; padding: calc(var(--section) / 2) var(--margin); box-sizing: border-box; }
.sections__content > :first-child { padding-top: var(--section); }
/* In a classic theme, WordPress wraps the inside of each group in .wp-block-group__inner-container:
   with display: contents its blocks are laid out as if they were direct children of the group */
.sections__content .wp-block-group__inner-container { display: contents; }
.sections__content p { line-height: 1.7; }
.sections__content h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); font-weight: 800; margin-bottom: 0.75em; }
.sections__content figure { margin: 0; }
.sections__content figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-large); }
.sections__content figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--slate); text-align: center; }
.section-eyebrow { margin: 0 0 0.6rem; font-family: var(--f-title); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }

/* Text + photo */
.section-history .wp-block-columns { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin: 0; }
.section-history .wp-block-column { min-width: 0; margin: 0; }
@media (min-width: 900px) {
  .section-history .wp-block-columns { grid-template-columns: 7fr 5fr; }
  .section-history--inverted .wp-block-columns { grid-template-columns: 6fr 6fr; }
}
.section-history .wp-block-column > p:last-child { margin-bottom: 0; }

/* Figures */
.sections__content > .data-list { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 700px) { .sections__content > .data-list { grid-template-columns: repeat(3, 1fr); } }
.data-list li { margin: 0; padding: 1.5rem; border-radius: var(--radius-large); background: var(--ice); color: var(--slate); font-size: 0.9375rem; }
.data-list strong { display: block; margin-bottom: 0.25rem; font-family: var(--f-title); font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem); font-weight: 800; line-height: 1.1; color: var(--navy); }

/* Highlighted quote */
.sections__content > .section-quote { max-width: var(--narrow-width); text-align: center; }
.section-quote__sentence { margin: 0 0 1rem; font-family: var(--f-title); font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
.section-quote__sentence::before { content: "“"; display: block; height: 0.6em; font-size: 2.5em; line-height: 1; color: var(--field-line); }
.section-quote p:not(.section-quote__sentence) { margin: 0; font-size: 1.125rem; font-weight: 300; color: var(--slate); }

/* Narrow text */
.sections__content > .section-text { max-width: var(--narrow-width); }

/* 3-photo mosaic */
.sections__content > .section-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.5vw, 1rem); }
.section-mosaic img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }

/* Values with icons (drawn with CSS: assigned in order, 1st compass, 2nd location, 3rd group, 4th nature) */
.section-values h2 { text-align: center; }
.values-list { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .values-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values-list { grid-template-columns: repeat(4, 1fr); } }
.values-list li { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--white); color: var(--slate); font-size: 0.9375rem; line-height: 1.6; box-shadow: var(--shadow); }
.values-list li::before {
  content: ""; display: block; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--ice) no-repeat center / 1.5rem;
}
.values-list li:nth-child(4n+1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5 5-2Z'/%3E%3C/svg%3E"); }
.values-list li:nth-child(4n+2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.5-6.5-11a6.5 6.5 0 0 1 13 0c0 5.5-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.values-list li:nth-child(4n+3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16 14.2c2.8.4 5 2.8 5 5.8'/%3E%3C/svg%3E"); }
.values-list li:nth-child(4n+4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 20 6-11 4 7 2.5-4L21 20H3Z'/%3E%3Ccircle cx='17' cy='6' r='2'/%3E%3C/svg%3E"); }
.values-list strong { display: block; margin-bottom: 0.35rem; font-family: var(--f-title); font-size: 1.0625rem; color: var(--navy); }

/* Full-width band with background photo */
.sections__content > .section-band {
  position: relative; max-width: none; overflow: hidden; margin-block: calc(var(--section) / 2);
  padding: clamp(5rem, 12vw, 9rem) max(var(--margin), calc((100% - var(--width)) / 2 + var(--margin)));
  background: var(--navy);
}
.section-band .wp-block-image { position: absolute; inset: 0; }
.section-band .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.section-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 30, 40, 0.78), rgba(10, 30, 40, 0.25)); }
.section-band :is(h2, p) { position: relative; z-index: 1; max-width: 34rem; }
.section-band h2 { color: var(--white); }
.section-band p { margin: 0; font-size: 1.125rem; color: rgba(255, 255, 255, 0.92); }

/* Closing section */
.sections__content > .section-closing { text-align: center; }
.section-closing p { margin: 0 auto; max-width: 34em; font-size: 1.125rem; color: var(--slate); }
.section-closing .wp-block-buttons { justify-content: center; }

/* ---------- Destinations and types ---------- */
.destination__image { margin-bottom: 2rem; border-radius: var(--radius-large); overflow: hidden; aspect-ratio: 21 / 9; background: var(--ice); }
.destination__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .destination__image { aspect-ratio: 4 / 3; } }

.destinations { margin: 2.5rem 0; }
.tours .destinations { text-align: center; }
.destinations__title { margin: 0 0 0.75rem; font-family: var(--f-title); font-weight: 700; color: var(--navy); }
.destinations__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tours .destinations__list { justify-content: center; }
.destinations__list a {
  display: inline-block; padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--navy); font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
.destinations__list a:hover { border-color: var(--navy); background: var(--ice); }
.destinations__list span { color: var(--slate); font-size: 0.875em; }

/* ---------- WooCommerce: listings ---------- */
.woocommerce .woocommerce-breadcrumb { font-size: 0.8125rem; color: var(--slate); margin-bottom: 1.5rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--slate); }
.term-description, .page-description { font-size: 1.0625rem; font-weight: 300; line-height: 1.7; color: var(--slate); max-width: 40em; margin-bottom: 2.5rem; }
/* Destinations and experience types: the description at the whole width of the page when the Customizer says so
   (Página de excursiones, on by default; client, 22-11-2026) */
.wide-term-description .term-description { max-width: none; }

/* Overrides WooCommerce's floated-column layout: we use a grid */
.shop ul.products { list-style: none; margin: 0; padding: 0; }
.shop ul.products::before, .shop ul.products::after { display: none; }
body.woocommerce .shop ul.products[class*="columns-"] li.product,
body.woocommerce .shop ul.products li.product { width: auto; float: none; margin: 0; padding: 0; clear: none; }
body.woocommerce .shop ul.products li.product .tour__image img { margin: 0; height: 100%; box-shadow: none; }

/* ---------- WooCommerce: checkout page (blocks) ---------- */
/* The pay button is a purchase button: Bryggen red, like "Reservar" */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  background: var(--bryggen) !important; color: var(--white) !important;
  border: 0 !important; border-radius: 999px !important; min-height: 3.25rem;
  font-family: var(--f-title); font-weight: 700; font-size: 1rem;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { background: var(--bryggen-dark) !important; }

/* ---------- WooCommerce: general ---------- */
.woocommerce .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--navy); font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--navy); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--navy); }

/* Notices on the tour page ("esta salida ya no admite reservas"…): WooCommerce's CSS is only loaded on
   the cart, checkout and account pages (inc/woocommerce.php), so they are styled here like .form__notice */
.woocommerce-notices-wrapper:empty { display: none; }
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 0; border-radius: var(--radius); font-weight: 500;
  background: var(--ice); color: var(--text); border-left: 4px solid var(--navy);
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-error { background: #F7E4E2; color: #6E1F1B; border-left-color: var(--bryggen); }
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before { content: none; }
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a { color: inherit; font-weight: 600; }
/* Inside the booking card (where a refused booking lands, spec 017): tighter, and the error border in the
   dark text red, not Bryggen red (only for book/pay buttons). Same prefix as above to win its specificity */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .booking :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) { margin: 0 0 1rem; padding: .75rem 1rem; font-size: .9375rem; }
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .booking .woocommerce-error { border-left-color: #6E1F1B; }
.booking .woocommerce-error li + li { margin-top: .375rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
