/* Punta Bergantín · Hacienda Serena & Velavento
   Every rule is scoped under .pb-root so the page can sit inside another site.
   Las fuentes se cargan desde fonts.css (incrustadas). */

html, body { margin: 0; padding: 0; background: #141a11; }

/* Smooth-scroll library (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ------------------------------------------------------------------ tokens */
.pb-root {
  --pb-display: "PB Display", "Didot", "Bodoni 72", "Times New Roman", serif;
  --pb-text: "PB Text", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --pb-ease: cubic-bezier(.65, 0, .25, 1);
  --pb-ease-out: cubic-bezier(.16, .84, .24, 1);
  --pb-gutter: clamp(20px, 4.4vw, 80px);
  --pb-max: 1680px;
  --pb-gap: clamp(16px, 2.2vw, 40px);
  --pb-space: clamp(88px, 10vw, 176px);
  --pb-header-h: 76px;

  --fs-statement: clamp(3rem, 1.15rem + 6.6vw, 9.25rem);
  --fs-title: clamp(2.5rem, 1.05rem + 4.1vw, 6rem);
  --fs-figure: clamp(2rem, 1.25rem + 2.3vw, 3.5rem);
  --fs-list: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .38vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* Hacienda Serena palette is the default: golf at dusk */
  --bg: #141a11;
  --bg-2: #1b2317;
  --fg: #efebe0;
  --fg-2: #b5b9a6;
  --accent: #d9b26e;
  --on-accent: #141a11;
  --line: rgba(239, 235, 224, .16);

  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--pb-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .7s var(--pb-ease-out), color .7s var(--pb-ease-out);
}

/* Velavento palette: daylight by the sea, Atlantic navy and sail champagne */
.pb-root[data-theme="velavento"] {
  --bg: #edf0ee;
  --bg-2: #e2e7e5;
  --fg: #0b1a3a;
  --fg-2: #4a566b;
  --accent: #7a6838;
  --on-accent: #ffffff;
  --line: rgba(11, 26, 58, .14);
}

/* Resets use :where() so they carry zero specificity and never override a component rule. */
:where(.pb-root) *, :where(.pb-root) *::before, :where(.pb-root) *::after { box-sizing: border-box; }
:where(.pb-root) :where(h1, h2, h3, p, ul, figure, figcaption, table) { margin: 0; }
:where(.pb-root) :where(img, video) { max-width: 100%; }
:where(.pb-root) :where(a) { color: inherit; }
:where(.pb-root) :where(button) { font: inherit; color: inherit; }
.pb-root [hidden] { display: none !important; }
.pb-root :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pb-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- type */
.pb-display {
  font-family: var(--pb-display);
  font-stretch: 62.5%;
  font-weight: 250;
  line-height: .94;
  letter-spacing: -.005em;
  font-kerning: normal;
}
.pb-title { font-size: var(--fs-title); text-wrap: balance; }
.pb-line { display: block; text-wrap: balance; }
.pb-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  font-weight: 350;
  color: var(--fg-2);
  max-width: 34rem;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- layout */
.pb-wrap {
  width: 100%;
  max-width: var(--pb-max);
  margin: 0 auto;
  padding: 0 var(--pb-gutter);
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pb-gap);
}
.pb-sec { padding-top: var(--pb-space); }
.pb-sec--tight { padding-top: calc(var(--pb-space) * .45); }

/* ---------------------------------------------------------------- motion */
/* Images fade in once they have loaded, instead of popping in. */
.pb-media img,
.pb-panel__poster,
.pb-show__slide img { opacity: 0; transition: opacity 1.1s var(--pb-ease-out); }
.pb-media img.is-loaded,
.pb-panel__poster.is-loaded,
.pb-show__slide img.is-loaded { opacity: 1; }

/* Blocks rise gently into place as they enter the screen. */
.pb-motion .pb-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1.1s var(--pb-ease-out) var(--d, 0ms), transform 1.4s var(--pb-ease-out) var(--d, 0ms);
}
.pb-calm .pb-reveal {
  opacity: 0;
  transition: opacity .9s ease var(--d, 0ms);
}
.pb-root .pb-reveal.is-in { opacity: 1; transform: none; }


/* Language switch: words crossfade */
.pb-root .pb-swap-out { opacity: 0 !important; transition: opacity .2s ease !important; }
.pb-root .pb-swap-in { transition: opacity .42s ease !important; }

/* Veil used when jumping between projects from far down the page */
.pb-veil {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: #0d110c;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s var(--pb-ease);
}
.pb-veil.is-on { opacity: 1; pointer-events: auto; }
.pb-calm .pb-veil { transition-duration: .22s; }

/* ------------------------------------------------------------- header */
.pb-header {
  position: fixed;
  z-index: 40;
  top: 0; left: 0; right: 0;
  height: var(--pb-header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pb-gutter);
  color: #fff;
  transition: background-color .5s var(--pb-ease-out), color .5s var(--pb-ease-out), box-shadow .5s var(--pb-ease-out), transform .7s var(--pb-ease-out);
}
.pb-header.is-solid {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 0 var(--line);
}
.pb-header.is-hidden { transform: translate3d(0, -100%, 0); }
.pb-header:focus-within { transform: none; }

.pb-header__start { justify-self: start; display: flex; align-items: center; gap: 16px; min-width: 0; }
.pb-header__end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.pb-header__photos .pb-header__sep { margin: 0 0 0 6px; }

.pb-logopair { position: relative; display: block; }
.pb-logopair img { display: block; height: 100%; width: auto; transition: opacity .45s ease, filter .45s ease; }
.pb-logopair .pb-logo-dark { position: absolute; inset: 0; opacity: 0; }
.pb-header.is-on-light .pb-logopair .pb-logo-light { opacity: 0; }
.pb-header.is-on-light .pb-logopair .pb-logo-dark { opacity: 1; }
.pb-header:not(.is-solid) .pb-logopair .pb-logo-light { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .45)); }

.pb-header__adral {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .3s;
}
a.pb-header__adral:hover { opacity: .75; }
.pb-header__adral-logo { height: 15px; }
.pb-header__adral-label { font-size: .9375rem; letter-spacing: .01em; line-height: 1; }

.pb-header__logo { display: block; height: 48px; }
.pb-header__logo .pb-logopair { height: 100%; }

.pb-header__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: none;
  font-family: var(--pb-text);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .3s;
}
.pb-header__link:hover { opacity: .7; }
.pb-header__sep { width: 1px; height: 18px; margin-right: 6px; background: currentColor; opacity: .35; }
.pb-header__all:not([hidden]),
.pb-header__map:not([hidden]),
.pb-header__photos:not([hidden]) { animation: pb-fade .6s ease both; }
.pb-header__map-icon { display: inline-flex; width: 17px; height: 17px; margin-right: -2px; }
.pb-header__map-icon svg { display: block; width: 100%; height: 100%; }
.pb-split-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 13px;
  border: 1px solid currentColor;
}
.pb-split-icon::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: currentColor;
}

.pb-lang { display: flex; gap: 2px; }
.pb-lang__btn {
  position: relative;
  padding: 10px 8px;
  border: 0;
  background: none;
  font-family: var(--pb-text);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: .55;
  transition: opacity .3s;
}
.pb-lang__btn:hover { opacity: .85; }
.pb-lang__btn[aria-pressed="true"] { opacity: 1; }
.pb-lang__btn::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .5s var(--pb-ease-out);
}
.pb-lang__btn[aria-pressed="true"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------- split */
.pb-split {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: #0e120d;
}
.pb-panel {
  position: relative;
  display: block;
  flex: 0 0 50%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  outline-offset: -8px;
}
.pb-root.is-ready .pb-panel { transition: flex-basis 1.15s var(--pb-ease); }
.pb-root.is-ready.pb-calm .pb-panel { transition-duration: .6s; }
.pb-panel:focus-visible { outline: 2px solid #fff; }

/* hover / keyboard focus: the chosen side opens up a little */
.pb-split[data-focus="0"] .pb-panel[data-i="0"],
.pb-split[data-focus="1"] .pb-panel[data-i="1"] { flex-basis: 57%; }
.pb-split[data-focus="0"] .pb-panel[data-i="1"],
.pb-split[data-focus="1"] .pb-panel[data-i="0"] { flex-basis: 43%; }

/* open: the chosen side takes the whole screen */
.pb-split[data-open="0"] .pb-panel[data-i="0"],
.pb-split[data-open="1"] .pb-panel[data-i="1"] { flex-basis: 100%; }
.pb-split[data-open="0"] .pb-panel[data-i="1"],
.pb-split[data-open="1"] .pb-panel[data-i="0"] { flex-basis: 0%; }

.pb-panel__media { position: absolute; inset: 0; z-index: 0; }
.pb-root.is-ready .pb-panel__media { transition: transform 1.8s var(--pb-ease-out); }
.pb-panel__media img,
.pb-panel__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-panel__video { opacity: 0; transition: opacity 1.4s ease; }
.pb-panel__video.is-playing { opacity: 1; }
.pb-motion .pb-split[data-open=""] .pb-panel:hover .pb-panel__media { transform: scale(1.035); }

/* Photo slides on the cover (used when the video can't play) */
.pb-panel__slides { position: absolute; inset: 0; }
.pb-panel__slide { opacity: 0; transition: opacity 1.8s ease; }
.pb-panel__slide.is-active { opacity: 1; z-index: 1; }

.pb-panel__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 8, .58) 0%, rgba(6, 9, 8, 0) 24%),
    linear-gradient(0deg, rgba(6, 9, 8, .62) 0%, rgba(6, 9, 8, .22) 40%, rgba(6, 9, 8, 0) 62%);
  background-color: rgba(6, 9, 8, .08);
  transition: background-color .8s var(--pb-ease-out);
}
.pb-panel[data-theme="velavento"] .pb-panel__shade {
  background:
    linear-gradient(180deg, rgba(5, 12, 30, .5) 0%, rgba(5, 12, 30, 0) 22%),
    linear-gradient(0deg, rgba(5, 12, 30, .72) 0%, rgba(5, 12, 30, .34) 42%, rgba(5, 12, 30, 0) 68%);
  background-color: rgba(5, 12, 30, .14);
}
.pb-split[data-focus="0"] .pb-panel[data-i="1"] .pb-panel__shade,
.pb-split[data-focus="1"] .pb-panel[data-i="0"] .pb-panel__shade { background-color: rgba(6, 9, 8, .42); }

.pb-panel[data-i="1"]::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: var(--pb-header-h); bottom: 0; left: 0;
  width: 1px;
  background: rgba(255, 255, 255, .42);
  transition: opacity .5s;
}
.pb-split:not([data-open=""]) .pb-panel[data-i="1"]::before { opacity: 0; }

.pb-panel__content {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: clamp(48px, 11vh, 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  text-align: center;
  transition: opacity .55s var(--pb-ease-out), bottom 1.15s var(--pb-ease);
}
.pb-panel[aria-hidden="true"] .pb-panel__content { opacity: 0; }
.pb-root:not(.is-ready) .pb-panel__content { opacity: 0; }

.pb-panel__logo {
  display: block;
  width: clamp(210px, 21vw, 340px);
  height: auto;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .28));
  transition: width 1.15s var(--pb-ease);
}
.pb-panel__logo--velavento { width: clamp(150px, 13vw, 220px); }
.pb-panel[aria-current="page"] .pb-panel__logo { width: clamp(260px, 30vw, 470px); }
.pb-panel[aria-current="page"] .pb-panel__logo--velavento { width: clamp(180px, 19vw, 300px); }

.pb-panel__tagline {
  font-family: var(--pb-text);
  font-size: clamp(1rem, .92rem + .34vw, 1.25rem);
  font-weight: 350;
  line-height: 1.35;
  letter-spacing: .02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.pb-panel__cta {
  position: relative;
  display: inline-block;
  padding: 6px 0 12px;
  font-family: var(--pb-text);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .45s;
}
.pb-panel__cta::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 28px; height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width .7s var(--pb-ease-out);
}
.pb-panel:hover .pb-panel__cta::after,
.pb-panel:focus-visible .pb-panel__cta::after { width: 100%; }
.pb-panel[aria-current="page"] .pb-panel__cta { opacity: 0; }

.pb-scrollcue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  width: 44px;
  height: 64px;
  margin-left: -22px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  animation: pb-fade .9s .9s both;
}
.pb-scrollcue__line {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, .28);
  position: relative;
  overflow: hidden;
}
.pb-scrollcue__line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: #fff;
  animation: pb-cue 2.6s var(--pb-ease) infinite;
}
.pb-calm .pb-scrollcue__line::after { animation: none; top: 30%; }

@keyframes pb-cue { from { top: -40%; } to { top: 100%; } }
@keyframes pb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pb-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- media */
/* Photos are always shown whole (the developer's rules: no cropping, nothing over
   them). The frame takes the photo's own shape (--ratio, set by the script from
   fotos.js) and the photo is fitted inside it, never cut, zoomed or panned. */
.pb-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  background: var(--bg-2);
}
.pb-media:has(> img.is-loaded) { background: none; }
.pb-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pb-media.is-free { aspect-ratio: auto; }
.pb-media.is-free img { position: static; height: auto; }

.pb-media.is-missing {
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 12px, transparent 12px 24px);
}
.pb-media.is-missing img { visibility: hidden; }

/* ------------------------------------------------------------ statement */
.pb-statement__title { font-size: var(--fs-statement); text-wrap: balance; }
.pb-statement__text { margin: clamp(36px, 4.5vw, 72px) 0 0 auto; }

/* ---------------------------------------------------------------- image */
.pb-image { margin-top: var(--pb-space); }
/* whole photo, as wide as the screen allows without being taller than it */
.pb-image__media { margin: 0 auto; width: min(100%, 88svh * var(--ratio, 16 / 9)); }
.pb-image--wide .pb-image__media { width: min(100% - 2 * var(--pb-gutter), var(--pb-max) - 2 * var(--pb-gutter), 88svh * var(--ratio, 16 / 9)); }

/* -------------------------------------------------------------- feature */
.pb-feature .pb-grid { align-items: center; }
.pb-feature__text { grid-column: 1 / span 5; padding-right: clamp(0px, 2.5vw, 44px); }
.pb-feature__media { grid-column: 6 / span 7; }
.pb-feature--image-left .pb-feature__media { grid-column: 1 / span 7; grid-row: 1; }
.pb-feature--image-left .pb-feature__text { grid-column: 8 / span 5; grid-row: 1; padding-right: 0; padding-left: clamp(0px, 2.5vw, 44px); }
.pb-feature .pb-lead { margin-top: clamp(24px, 2.6vw, 40px); }

.pb-list {
  list-style: none;
  margin: clamp(32px, 3.4vw, 48px) 0 0;
  padding: 0;
  columns: 2;
  column-gap: var(--pb-gap);
}
.pb-list li {
  padding: 11px 0 12px;
  border-top: 1px solid var(--line);
  break-inside: avoid;
  font-size: 1rem;
  line-height: 1.35;
}

/* ----------------------------------------------------------------- pair */
/* two whole photos at the same height: widths follow each photo's shape */
.pb-pair__row { display: flex; align-items: flex-start; gap: var(--pb-gap); }
.pb-pair__item { flex: var(--grow, 1) 1 0%; min-width: 0; }

/* ------------------------------------------------------- gallery / head */
.pb-head { align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.pb-head__title { grid-column: 1 / span 6; }
.pb-head__text { grid-column: 8 / span 5; }

.pb-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pb-gap);
}
.pb-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-cards--1 { grid-template-columns: minmax(0, 1fr); }
.pb-card { margin: 0; }
.pb-card__caption {
  display: block;
  margin-top: 18px;
  font-size: var(--fs-figure);
}

/* ------------------------------------------------------------ slideshow */
.pb-show { position: relative; outline: none; }
.pb-show:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.pb-show__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--show-ratio, 16 / 9);
  max-height: 86vh;
  touch-action: pan-y;
  user-select: none;
}
.pb-show__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s var(--pb-ease-out);
}
.pb-show__slide.is-active { opacity: 1; z-index: 1; }
.pb-show__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
}

.pb-show__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}
.pb-show__captions { display: grid; font-size: var(--fs-figure); }
.pb-show__caption {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .8s ease, transform 1s var(--pb-ease-out);
}
.pb-show__cap { white-space: nowrap; }
.pb-show__note {
  font-family: var(--pb-text);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--fg-2);
}
.pb-show__caption.is-active { opacity: 1; transform: none; transition-delay: .25s; }
.pb-calm .pb-show__caption { transform: none; }

.pb-show__nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.pb-show__dots { display: flex; gap: 8px; }
.pb-show__dot {
  position: relative;
  width: clamp(34px, 4vw, 56px);
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pb-show__dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.pb-show__fill {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
}
.pb-show__dot.is-done .pb-show__fill { transform: scaleX(1); }
.pb-show__dot.is-active .pb-show__fill { animation: pb-fill var(--interval, 5s) linear forwards; }
.pb-show.is-paused .pb-show__dot.is-active .pb-show__fill { animation-play-state: paused; }
.pb-show__btns { display: flex; gap: 8px; }
.pb-show__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .35s, background-color .35s, color .35s;
}
.pb-show__btn:hover { border-color: var(--fg); }
.pb-show__btn svg { width: 20px; height: 20px; display: block; }

/* ------------------------------------------------------------ amenities */
.pb-amen .pb-grid { row-gap: 0; }
.pb-amen__intro { grid-column: 1 / span 5; grid-row: 1; }
.pb-amen__lists { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
.pb-amen__stage { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: start; }
.pb-amen .pb-lead { margin-top: clamp(20px, 2vw, 32px); }

.pb-amen__list {
  list-style: none;
  margin: clamp(36px, 4vw, 60px) 0 0;
  padding: 0;
}
.pb-amen__btn {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  font-size: var(--fs-list);
  line-height: 1.05;
  text-align: left;
  color: var(--fg-2);
  cursor: pointer;
  transition: color .45s, gap .6s var(--pb-ease-out);
}
.pb-amen__btn::before {
  content: "";
  flex: none;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .6s var(--pb-ease-out);
}
.pb-amen__btn:hover { color: var(--fg); }
.pb-amen__btn[aria-pressed="true"] { color: var(--fg); gap: 18px; }
.pb-amen__btn[aria-pressed="true"]::before { width: 44px; }

.pb-amen__stage {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
}
/* amenities without an approved photo: just their names */
.pb-amen__more { margin-top: clamp(32px, 3.4vw, 52px); }
.pb-amen__more-label { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.pb-amen__more-list { display: flex; flex-wrap: wrap; list-style: none; margin: 14px 0 0; padding: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--fg); }
.pb-amen__more-list li:not(:last-child)::after { content: "·"; margin: 0 .55em; color: var(--fg-2); }
.pb-amen__fig {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  opacity: 0;
  transition: opacity .9s var(--pb-ease-out);
}
.pb-amen__fig.is-active { opacity: 1; }

/* --------------------------------------------------------------- models */
.pb-models__grid { grid-template-rows: auto 1fr; align-items: start; }
.pb-models__head { grid-column: 1 / span 4; grid-row: 1; }
.pb-models__foot { grid-column: 1 / span 4; grid-row: 2; margin-top: clamp(28px, 3vw, 44px); }
.pb-models__list { grid-column: 6 / span 7; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; }
.pb-models__list--2 { columns: 2; column-gap: var(--pb-gap); }
.pb-models__title { font-size: clamp(2.5rem, 1.3rem + 3.2vw, 5rem); text-wrap: balance; }
.pb-models__caption { margin-top: 14px; font-size: .9375rem; letter-spacing: .02em; color: var(--fg-2); }
.pb-models__note-line { max-width: 24rem; }
.pb-models__foot .pb-actions { margin-top: clamp(24px, 2.4vw, 36px); }

.pb-models__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 20px;
  padding: 13px 0 15px;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
.pb-models__name { grid-column: 1; font-size: var(--fs-list); line-height: 1.05; white-space: nowrap; }
.pb-models__note { grid-column: 2; justify-self: end; text-align: right; font-size: .9375rem; line-height: 1.35; color: var(--fg-2); }
.pb-models__count { grid-column: 3; min-width: 6.9rem; text-align: right; white-space: nowrap; font-size: .9375rem; color: var(--fg-2); }
.pb-models__count b { color: var(--fg); font-weight: 500; font-size: 1.125rem; }
.pb-models__item--total { grid-template-columns: auto minmax(0, 1fr); border-top-color: var(--fg); }
.pb-models__item--total .pb-models__note { justify-self: start; text-align: left; }

/* ---------------------------------------------------------------- units */
.pb-units__tablewrap { margin-bottom: clamp(56px, 7vw, 112px); overflow-x: auto; }
.pb-units__table { width: 100%; border-collapse: collapse; }
.pb-units__table th,
.pb-units__table td {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.pb-units__size { width: 42%; padding-right: 24px; font-size: var(--fs-figure); white-space: nowrap; }
.pb-units__count { width: 22%; color: var(--fg-2); white-space: nowrap; padding-right: 16px; }
.pb-units__num { color: var(--fg); font-weight: 500; font-size: 1.25rem; margin-right: .3em; }
.pb-units__note { color: var(--fg-2); }
.pb-units__table tfoot th,
.pb-units__table tfoot td { border-top: 1px solid var(--fg); }

/* ---------------------------------------------------------- destination */
.pb-dest { margin-top: var(--pb-space); }
/* title above, photo whole below (no text or shade over it) */
.pb-dest__titlewrap { margin-bottom: clamp(36px, 4vw, 64px); }
.pb-dest__title { font-size: var(--fs-title); text-wrap: balance; }
.pb-dest__media { margin: 0 auto; width: min(100%, 88svh * var(--ratio, 2)); }
.pb-dest__grid { align-items: start; }
.pb-dest__intro { grid-column: 1 / span 4; }
.pb-dest__logo { display: block; width: clamp(150px, 13vw, 210px); height: auto; margin-bottom: 36px; }
.pb-dest__facts {
  grid-column: 6 / span 7;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-dest__facts li {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-list);
  line-height: 1.08;
}

/* Facts that lead to a place on the map */
.pb-dest__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.pb-dest__fact-cue {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pb-text);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg-2);
  opacity: .7;
  transform: translate3d(-4px, 0, 0);
  transition: opacity .4s, color .4s, transform .6s var(--pb-ease-out);
}
.pb-dest__fact-cue .pb-maplink__icon { width: 16px; height: 16px; }
.pb-dest__fact:hover .pb-dest__fact-cue,
.pb-dest__fact:focus-visible .pb-dest__fact-cue { opacity: 1; color: var(--fg); transform: none; }

/* "Ver en el mapa" */
.pb-maplink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 2.6vw, 38px);
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font-family: var(--pb-text);
  font-size: .9375rem;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  transition: border-color .4s;
}
.pb-maplink:hover,
.pb-maplink:focus-visible { border-bottom-color: var(--fg); }
.pb-maplink__icon { display: inline-flex; flex: none; width: 18px; height: 18px; }
.pb-maplink__icon svg { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ map */
.pb-map__frame,
.pb-map__stage { position: relative; }
.pb-map__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--map-ratio, 1.544);
  max-height: 84vh;
  background: #1f2b1b;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.pb-map__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pb-map__frame.can-pan .pb-map__viewport { cursor: grab; }
.pb-map__frame.is-dragging .pb-map__viewport { cursor: grabbing; }
.pb-map__canvas {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.pb-root .pb-map__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  opacity: 0;
  transition: opacity 1s var(--pb-ease-out);
  -webkit-user-drag: none;
}
.pb-root .pb-map__img.is-loaded { opacity: 1; }
.pb-map__areas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* colors of the places: gold for Hacienda Serena, sea for Velavento */
.pb-map [data-tone] { --c: #ffffff; }
.pb-map [data-tone="serena"] { --c: #e8bd66; }
.pb-map [data-tone="velavento"] { --c: #a9e0ee; }

.pb-map__area {
  fill: var(--c);
  fill-opacity: 0;
  stroke: var(--c);
  stroke-opacity: 0;
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity .45s ease, stroke-opacity .45s ease;
}
.pb-map__area.is-project { fill-opacity: .14; stroke-opacity: .9; }
.pb-map__area.is-here { fill-opacity: .24; stroke-opacity: 1; }
.pb-map__area.is-hover { fill-opacity: .32; stroke-opacity: 1; }
.pb-map__area.is-active { fill-opacity: .4; stroke-opacity: 1; stroke-width: 2; }

.pb-map__pins { position: absolute; inset: 0; pointer-events: none; }
.pb-map__pin {
  position: absolute;
  left: 0; top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #141a11;
  font-family: var(--pb-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
.pb-map__pin.is-project { background: var(--c); }
.pb-map__pin.is-out { visibility: hidden; }
.pb-map__pin-num { position: relative; z-index: 1; }
.pb-map__pin::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .35s ease, transform .5s var(--pb-ease-out);
}
.pb-map__pin.is-hover::before,
.pb-map__pin.is-active::before { opacity: 1; transform: none; }
.pb-map__pin.is-active { box-shadow: 0 4px 22px rgba(0, 0, 0, .55); }
.pb-motion .pb-map__pin.is-here::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--c);
  border-radius: 50%;
  animation: pb-map-pulse 2.6s var(--pb-ease-out) infinite;
}
@keyframes pb-map-pulse { from { transform: scale(1); opacity: .95; } to { transform: scale(2.5); opacity: 0; } }

.pb-map__tag {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 11px;
  padding: 7px 11px 8px;
  border-radius: 2px;
  background: rgba(9, 13, 9, .8);
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-6px, -50%, 0);
  transition: opacity .3s ease, transform .45s var(--pb-ease-out);
}
.pb-map__pin.tag-left .pb-map__tag { left: auto; right: 100%; margin: 0 11px 0 0; transform: translate3d(6px, -50%, 0); }
.pb-map__pin.is-hover .pb-map__tag,
.pb-map__pin.is-active .pb-map__tag { opacity: 1; transform: translate3d(0, -50%, 0); }
@media (min-width: 901px) {
  .pb-map__pin.is-project .pb-map__tag { opacity: 1; transform: translate3d(0, -50%, 0); }
}

.pb-map__tools {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-map__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #141a11;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: opacity .3s, background-color .3s;
}
.pb-map__tool:hover { background: #fff; }
.pb-map__tool:disabled { opacity: .42; cursor: default; }
.pb-map__tool svg { display: block; width: 18px; height: 18px; }
.pb-map__tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the card of the chosen place (over the map on wide screens, under it on phones) */
.pb-map__cards {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 16px;
  width: min(340px, calc(100% - 96px));
  pointer-events: none;
}
.pb-map__hint { display: none; }
.pb-map__card {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
  pointer-events: auto;
}
.pb-map__card:not([hidden]) { animation: pb-map-card .6s var(--pb-ease-out) both; }
.pb-calm .pb-map__card:not([hidden]) { animation-name: pb-fade; }
@keyframes pb-map-card { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.pb-map__card-body { position: relative; padding: 18px 22px 22px; }
.pb-map__card-num { font-size: .75rem; letter-spacing: .2em; color: var(--fg-2); }
.pb-map__card-title { margin-top: 10px; padding-right: 36px; font-size: clamp(1.9rem, 1.45rem + 1vw, 2.5rem); text-wrap: balance; }
.pb-map__card-text { margin-top: 12px; font-size: .9375rem; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.pb-map__go {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding: 4px 0 10px;
  color: var(--fg);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.pb-map__go::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: currentColor;
  transition: width .6s var(--pb-ease-out);
}
.pb-map__go:hover::after,
.pb-map__go:focus-visible::after { width: 100%; }
.pb-map__here {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent);
}
.pb-map__here::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pb-map__here--card { margin-top: 16px; }
.pb-map__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .3s;
}
.pb-map__close:hover { border-color: var(--fg); }
.pb-map__close svg { display: block; width: 18px; height: 18px; }

.pb-map__legend {
  list-style: none;
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--pb-gap);
}
.pb-map__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 14px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--fg-2);
  font-family: var(--pb-text);
  text-align: left;
  cursor: pointer;
  transition: color .35s, border-color .35s;
}
.pb-map__item:hover,
.pb-map__item:focus-visible,
.pb-map__item[aria-pressed="true"] { color: var(--fg); }
.pb-map__item[aria-pressed="true"] { border-top-color: var(--fg); }
.pb-map__item-num { flex: none; min-width: 1.8em; font-size: .75rem; letter-spacing: .14em; }
.pb-map__item-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.pb-map__item-name { font-size: 1.0625rem; line-height: 1.3; }

.pb-map__frame.is-missing .pb-map__viewport {
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 12px, transparent 12px 24px);
}
.pb-map__coord {
  position: absolute;
  z-index: 6;
  padding: 6px 9px;
  border-radius: 3px;
  background: #ff46a0;
  color: #1a0010;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

@media (max-width: 900px) {
  .pb-map__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pb-map__stage { margin: 0 calc(var(--pb-gutter) * -1); }
  .pb-map__viewport { aspect-ratio: 1 / 1; max-height: 80vh; }
  .pb-map__tools { top: auto; right: auto; bottom: 10px; left: 10px; flex-direction: row; }
  .pb-map__tool { width: 38px; height: 38px; }
  .pb-map__pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 12px; }
  .pb-map__cards { position: static; width: auto; margin-top: 16px; }
  .pb-map__card { box-shadow: none; background: var(--bg-2); }
  .pb-map__hint { display: block; font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
  .pb-map__item { gap: 10px; padding: 12px 0 14px; }
  .pb-map__item-name { font-size: 1rem; }
  .pb-dest__fact-cuetext { display: none; }
}

/* ------------------------------------------------------------ sales by */
.pb-salesby {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-small);
  letter-spacing: .02em;
  color: var(--fg-2);
}
.pb-salesby__logo { display: block; height: 17px; width: auto; }
.pb-adral-link { display: inline-flex; align-items: center; transition: opacity .3s; }
.pb-adral-link:hover { opacity: .7; }

/* -------------------------------------------------------------- contact */
.pb-contact {
  margin-top: var(--pb-space);
  padding-bottom: var(--pb-space);
  background: var(--bg-2);
}
.pb-root[data-theme="velavento"] .pb-contact {
  --fg: #eef0ec;
  --fg-2: #aeb6c6;
  --accent: #d4c89e;
  --on-accent: #0b1a3a;
  --line: rgba(238, 240, 236, .2);
  background: #0b1a3a;
  color: var(--fg);
}
.pb-contact__title { font-size: var(--fs-statement); text-wrap: balance; }
.pb-contact__text { margin-top: clamp(28px, 3vw, 44px); }
.pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: var(--pb-text);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color .35s, border-color .35s, color .35s;
}
.pb-btn:hover { border-color: var(--fg); }
.pb-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pb-btn--primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pb-root[data-theme="velavento"] .pb-contact .pb-btn--primary:hover { color: #0b1a3a; }
.pb-contact__by { margin-top: 52px; }

/* ----------------------------------------------------------------- next */
.pb-next {
  position: relative;
  display: block;
  height: clamp(380px, 62vh, 620px);
  margin-top: var(--pb-space);
  overflow: hidden;
  background: #141a11;          /* Hacienda Serena */
  color: #fff;
  text-decoration: none;
  transition: background-color .6s var(--pb-ease-out);
}
.pb-next[data-theme="velavento"] { background: #0b1a3a; }   /* Velavento */
.pb-next:hover { background: #1b2317; }
.pb-next[data-theme="velavento"]:hover { background: #10224a; }
.pb-contact + .pb-next { margin-top: 0; }
.pb-next__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
}
.pb-next__label { font-size: .9375rem; letter-spacing: .04em; opacity: .85; }
.pb-next__logo { display: block; width: clamp(210px, 24vw, 360px); height: auto; }
.pb-next__logo.pb-panel__logo--velavento { width: clamp(150px, 15vw, 240px); }
.pb-next:hover .pb-panel__cta::after,
.pb-next:focus-visible .pb-panel__cta::after { width: 100%; }

/* --------------------------------------------------------------- footer */
.pb-footer {
  padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 4vw, 56px);
  background: var(--bg);
  color: var(--fg-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.pb-footer__brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
}
.pb-footer__pb { display: block; height: 64px; width: auto; }
.pb-footer__right { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.pb-footer__partners { display: block; height: 60px; width: auto; }
.pb-footer__vsep { width: 1px; height: 40px; background: var(--line); }
.pb-footer__by .pb-salesby__logo { height: 20px; }
.pb-footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pb-footer__legal { max-width: 46rem; }
.pb-footer__copy { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.pb-footer__sep { width: 1px; height: 12px; background: var(--line); }
.pb-footer a { text-decoration: none; transition: color .3s; }
.pb-footer a:hover { color: var(--fg); }

/* --------------------------------------------- photos that open full screen */
.pb-media.is-zoomable,
.pb-zoom { cursor: zoom-in; }
.pb-zoom {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
/* keyboard focus: a ring around the photo, outside it, never over it */
.pb-root .pb-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@supports selector(:has(a)) {
  .pb-root .pb-zoom:focus-visible { outline: none; }
  .pb-root .pb-media:has(> .pb-zoom:focus-visible),
  .pb-root .pb-show__stage:has(> .pb-zoom:focus-visible),
  .pb-root .pb-amen__stage:has(> .pb-zoom:focus-visible) { overflow: visible; outline: 2px solid var(--accent); outline-offset: 4px; }
}

/* ------------------------------------------------------------- carousel */
.pb-car { position: relative; }
.pb-car__track {
  --car-pad: max(var(--pb-gutter), calc((100% - var(--pb-max)) / 2 + var(--pb-gutter)));
  display: flex;
  gap: var(--pb-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--car-pad);
  padding: 0 var(--car-pad) 6px;
  scrollbar-width: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.pb-car__track::-webkit-scrollbar { display: none; }
/* fingers: one photo per swipe. Mouse and trackpad scroll freely and the script
   settles the row on the nearest photo when they stop. */
@media (hover: none), (pointer: coarse) {
  .pb-car__track { scroll-snap-type: x mandatory; }
}
.pb-root .pb-car__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-root .pb-car__track.is-dragging { scroll-snap-type: none; }
.pb-car__track.is-dragging .pb-zoom { cursor: grabbing; }
.pb-car { --car-h: clamp(240px, 30vw, 520px); }
/* every photo at the same height and whole: its width follows its shape (--r) */
.pb-car__item {
  flex: 0 0 auto;
  width: min(var(--car-h) * var(--r, 1.5), 100vw - 2 * var(--pb-gutter));
  margin: 0;
  scroll-snap-align: start;
}
.pb-car__caption {
  display: block;
  margin-top: 16px;
  font-family: var(--pb-display);
  font-stretch: 62.5%;
  font-weight: 250;
  font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.375rem);
  line-height: 1;
  letter-spacing: -.005em;
}
.pb-car__bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(22px, 2.4vw, 34px);
}
.pb-car__rail {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.pb-car__thumb {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  background: var(--fg);
}
.pb-car.is-static .pb-car__bar { display: none; }
.pb-root .pb-show__btn:disabled { opacity: .32; cursor: default; border-color: var(--line); }

/* ------------------------------------------------------ photo gallery */
/* justified rows: every photo whole, all photos of a row at the same height */
.pb-photos__grid {
  --row-h: clamp(170px, 16vw, 290px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* a short last row sits in the middle */
  align-items: flex-start;
  gap: clamp(6px, .65vw, 12px);
}
.pb-photos__tile {
  flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--row-h));
  max-width: calc(var(--r, 1.5) * var(--row-h) * 1.5);
  min-width: 0;
}
.pb-root.is-ready .pb-photos__tile img { transition: opacity 1.1s var(--pb-ease-out); }
/* no hover effect on the photo itself (the rules: no filters); the magnifier pointer says it opens */
.pb-photos__actions { margin-top: clamp(28px, 3vw, 44px); }
.pb-photos__all { gap: 12px; cursor: pointer; }
.pb-photos__all-icon { display: inline-flex; width: 20px; height: 20px; }
.pb-photos__all-icon svg { display: block; width: 100%; height: 100%; }

/* ----------------------------------------------- photo viewer ("popup") */
html.pb-lb-open,
html.pb-lb-open body { overflow: hidden; }
.pb-lb {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0b0e0b;
  color: #f3f1ea;
  opacity: 0;
  transition: opacity .42s var(--pb-ease-out);
  overscroll-behavior: contain;
  touch-action: none;
  outline: none;
}
.pb-root[data-theme="velavento"] .pb-lb { background: #07112a; }
.pb-lb.is-open { opacity: 1; }
.pb-calm .pb-lb { transition-duration: .16s; }
.pb-lb__top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(16px, 2.4vw, 32px);
}
.pb-lb__count {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
  opacity: .75;
}
.pb-lb__close,
.pb-lb__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.pb-lb__close:hover,
.pb-lb__nav:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.pb-lb__close svg,
.pb-lb__nav svg { display: block; width: 20px; height: 20px; }
.pb-root .pb-lb :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pb-lb__nav { position: absolute; z-index: 3; top: calc(50% - 24px); }
.pb-lb__nav--prev { left: clamp(12px, 2vw, 32px); }
.pb-lb__nav--next { right: clamp(12px, 2vw, 32px); }
.pb-lb__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 clamp(72px, 7vw, 116px);   /* the arrows sit beside the photo, never on it */
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
}
.pb-lb__img {
  grid-area: 1 / 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.pb-lb__img.is-shown { opacity: 1; }
.pb-lb__img:not(.is-shown) { pointer-events: none; }   /* the faded-out layer never sits over the photo */
.pb-lb__img:not([src]) { display: none; }
.pb-lb__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 2.4vw, 32px) 20px;
}
.pb-lb__cap { max-width: 54rem; min-height: 1.4em; text-align: center; }
.pb-lb__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 14px; }
.pb-lb__cap-main { font-size: clamp(1.5rem, 1.2rem + .8vw, 2.125rem); }
.pb-lb__cap-note { font-size: .875rem; letter-spacing: .04em; opacity: .72; }
.pb-lb__text { margin-top: 6px; font-size: .875rem; line-height: 1.5; opacity: .7; text-wrap: pretty; }
.pb-lb__thumbs {
  display: flex;
  gap: 6px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
}
.pb-lb__thumbs::-webkit-scrollbar { display: none; }
.pb-lb__thumb {
  position: relative;
  flex: none;
  width: 74px;
  height: 50px;
  padding: 0;
  border: 0;
  background: #000;
  opacity: .42;
  cursor: pointer;
  transition: opacity .3s;
}
.pb-lb__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-lb__thumb:hover { opacity: .8; }
.pb-lb__thumb.is-active { opacity: 1; box-shadow: 0 0 0 1px #fff; }

/* ------------------------------------------------------------ edit mode */
.pb-root.is-editing [data-edit] { outline: 1px dashed rgba(255, 70, 160, .95); outline-offset: -1px; }
.pb-root.is-editing [data-edit]::after {
  content: attr(data-edit);
  position: absolute;
  z-index: 6;
  left: 8px; top: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(10, 10, 10, .84);
  color: #fff;
  font: 500 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  text-transform: none;
  word-break: break-all;
  pointer-events: none;
}
.pb-root.is-editing .pb-panel__media[data-edit]::after { top: auto; bottom: 8px; }
.pb-placeholder { border: 1px dashed currentColor !important; background: transparent !important; color: inherit !important; opacity: .55; font: 500 12px/1.3 ui-monospace, Menlo, Consolas, monospace !important; }
.pb-editbar {
  position: fixed;
  z-index: 80;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 48px 14px 18px;
  border-radius: 4px;
  background: #ff46a0;
  color: #1a0010;
  font: 400 14px/1.45 var(--pb-text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.pb-editbar__close {
  position: absolute;
  top: 6px; right: 8px;
  width: 32px; height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pb-header__map-label,
  .pb-header__photos-label { display: none; }
  .pb-dest__intro { grid-column: 1 / span 5; }
  .pb-dest__facts { grid-column: 7 / span 6; }
}

@media (max-width: 900px) {
  .pb-feature__text,
  .pb-feature__media,
  .pb-feature--image-left .pb-feature__text,
  .pb-feature--image-left .pb-feature__media { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .pb-feature__media,
  .pb-feature--image-left .pb-feature__media { order: 2; margin-top: 44px; }
  .pb-feature--image-left .pb-feature__text { order: 1; }

  .pb-head__title, .pb-head__text { grid-column: 1 / -1; }
  .pb-head__text { margin-top: 24px; }

  .pb-amen__intro, .pb-amen__lists, .pb-amen__stage { grid-column: 1 / -1; grid-row: auto; }
  .pb-amen__stage { margin-top: 40px; }
  .pb-amen__list { margin-top: 28px; }

  .pb-dest__intro, .pb-dest__facts { grid-column: 1 / -1; }
  .pb-dest__facts { margin-top: 48px; }

  .pb-show__bar { flex-wrap: wrap; }

  .pb-models__head, .pb-models__foot, .pb-models__list { grid-column: 1 / -1; grid-row: auto; }
  .pb-models__list { margin-top: 36px; }
  .pb-models__foot { margin-top: 36px; }
}

/* Vertical split: phones and portrait tablets */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .pb-split { flex-direction: column; }
  .pb-panel[data-i="1"]::before { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 1px; }
  .pb-panel__content { bottom: clamp(26px, 5vh, 56px); gap: 12px; }
  .pb-panel__logo { width: clamp(170px, 44vw, 290px); }
  .pb-panel__logo--velavento { width: clamp(118px, 28vw, 190px); }
  .pb-panel[aria-current="page"] .pb-panel__logo { width: clamp(220px, 62vw, 380px); }
  .pb-panel[aria-current="page"] .pb-panel__logo--velavento { width: clamp(150px, 40vw, 250px); }
  .pb-panel[aria-current="page"] .pb-panel__content { bottom: clamp(96px, 16vh, 160px); }
}

@media (max-width: 760px) {
  .pb-root { --pb-header-h: 60px; }
  .pb-header { gap: 8px; }
  .pb-header__start { gap: 8px; }
  .pb-header__end { gap: 8px; }
  .pb-header__link { gap: 8px; }
  .pb-header__photos .pb-header__sep { margin-left: 2px; }
  .pb-header__logo { height: 34px; }
  .pb-header__adral-logo { height: 12px; }
  .pb-header__adral-label,
  .pb-header__projects { display: none; }
  .pb-header__link { font-size: .875rem; }
  .pb-header__all-label { display: none; }
  .pb-header__map-label { display: none; }
  .pb-header__sep { margin-right: 2px; }
  .pb-lang__btn { padding: 10px 6px; }

  .pb-statement__text { margin-left: 0; }

  .pb-list { columns: 1; }

  .pb-cards,
  .pb-cards--2,
  .pb-cards--3 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pb-gutter) * -1);
    padding: 0 var(--pb-gutter) 8px;
    scroll-padding: 0 var(--pb-gutter);
    scrollbar-width: none;
  }
  .pb-cards::-webkit-scrollbar { display: none; }
  .pb-card { scroll-snap-align: start; }

  .pb-show__stage { margin: 0 calc(var(--pb-gutter) * -1); width: auto; }
  .pb-show__btn { width: 42px; height: 42px; }
  .pb-show__dots { display: none; }

  .pb-pair__row { flex-direction: column; }
  .pb-pair__item { flex: none; width: 100%; }

  .pb-units__size { width: auto; }
  .pb-units__table th, .pb-units__table td { padding: 14px 0 15px; }
  .pb-units__note { display: block; }
  .pb-units__table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; border-top: 1px solid var(--line); }
  .pb-units__table th, .pb-units__table td { border-top: 0; }
  .pb-units__table .pb-units__note { grid-column: 1 / -1; padding-top: 0; }
  .pb-units__table tfoot tr { border-top: 1px solid var(--fg); }
  .pb-units__table tfoot th,
  .pb-units__table tfoot td { border-top: 0; }
  .pb-units__table tfoot .pb-units__note { grid-column: 2; padding-top: 14px; }

  .pb-models__item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .pb-models__count { grid-column: 2; grid-row: 1; min-width: 0; }
  .pb-models__note { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
  .pb-models__item--total .pb-models__note { grid-row: 2; }

  .pb-next { height: clamp(320px, 56vh, 520px); }
  .pb-footer__pb { height: 56px; }
  .pb-footer__right { gap: 20px; }
  .pb-footer__vsep { display: none; }
  .pb-footer__copy { white-space: normal; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .pb-car { --car-h: 50vw; }
  .pb-car__caption { margin-top: 12px; }

  .pb-photos__grid { --row-h: 23vw; }
  .pb-photos__tile:nth-child(n+7) { display: none; }

  .pb-lb__top { height: 60px; }
  .pb-lb__stage { margin: 0; }
  .pb-lb__nav,
  .pb-lb__thumbs { display: none; }
  .pb-lb__foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .pb-header__start { gap: 12px; }
}
@media (max-width: 400px) {
  .pb-header__adral-logo { height: 11px; }
  .pb-header__start { gap: 7px; }
}
/* narrow phones: no room for the map shortcut in the top bar */
@media (max-width: 380px) {
  .pb-header__map { display: none !important; }
}
