/* ==========================================================================
   Samara Rentals — design system
   --------------------------------------------------------------------------
   Direction: "Pacific Guanacaste". The photography carries all the colour;
   the interface stays quiet, warm and editorial so 1,600 real photos of the
   coast never have to compete with a UI accent.

   Type   Libre Caslon Display for display, Hanken Grotesk for UI.
   Colour Deep Pacific teal + brass on warm near-white. No flat colour panels
          anywhere — a full-bleed photo with a scrim instead.
   Rhythm 4px base. Radii stay small and deliberate (never rounded-everything).
   ========================================================================== */

/* ---------- fonts ---------- */
/* Libre Caslon Display. Caslon's warm, slightly irregular letterforms read as an
   established house rather than a tech default — deliberately not a Times/
   Tiempos-style transitional serif. Split latin / latin-ext exactly as Google
   ships it, so a page with no accents downloads only the 16 KB file. */
@font-face {
  font-family: 'Caslon';
  src: url('../fonts/caslon-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caslon';
  src: url('../fonts/caslon-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken';
  src: url('../fonts/hanken.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* Sampled from the Samara Rentals logo, not chosen: the house mark is
     #3a9bb8, the SAMARA wordmark #f2bb04, RENTALS #645f5d. The logo blue only
     reaches 3.2:1 on white, so text and buttons use a deepened variant that
     passes AA while the exact brand blue stays for marks and fills. */
  --ink:        #34302e;   /* warm near-black, same family as the wordmark */
  --ink-2:      #645f5d;   /* the RENTALS grey, exactly */
  --ink-3:      #706966;   /* tertiary / meta — 5.38:1 surface, 5.16 paper, 4.65 sand.
                              El anterior (#948e8b) daba 3.10:1: se auditaron los colores
                              de marca y se dejó fuera el gris, que es el que más texto
                              viste — etiquetas del buscador, del panel de reserva y la
                              línea que dice que no se cobra nada hasta confirmar. */
  --paper:      #fbfaf8;   /* page */
  --surface:    #ffffff;   /* cards, panels */
  --sand:       #f1eeea;   /* subtle fill */
  --line:       #e5e0da;   /* hairlines */
  --line-2:     #d2ccc4;

  --brand:        #1d6c80; /* AA-safe deep of the logo blue — 5.98:1 on white */
  --brand-bright: #3a9bb8; /* THE logo blue — marks, fills, active states */
  --brand-deep:   #175d70; /* hover */
  --brand-tint:   #e6f1f4;
  --gold:         #f2bb04; /* THE logo gold — graphic accents only, 1.77:1 */
  --gold-deep:    #8a6400; /* AA-safe gold for text — 5.38:1 */
  --gold-tint:    #fdf4d9;

  --ok:         #1c6b46;
  --warn:       #8a5a12;
  --err:        #98342b;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 33, 31, .06), 0 1px 1px rgba(23, 33, 31, .04);
  --shadow-md: 0 4px 16px rgba(23, 33, 31, .08), 0 1px 3px rgba(23, 33, 31, .05);
  --shadow-lg: 0 12px 40px rgba(23, 33, 31, .14), 0 2px 8px rgba(23, 33, 31, .06);

  --ease: cubic-bezier(.2, .6, .2, 1);
  --t-fast: 140ms var(--ease);
  --t: 220ms var(--ease);

  --wrap: 1280px;
  --gut: 24px;
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--brand); color: #fff; }

/* ---------- typography ---------- */
.display, h1, h2, h3 {
  font-family: 'Caslon', ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.14;
  color: var(--ink);
}
h1, .h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 4rem); }
h2, .h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.7rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); line-height: 1.25; }
.eyebrow {
  font-family: 'Hanken', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede { font-size: clamp(1.02rem, .97rem + .3vw, 1.2rem); color: var(--ink-2); line-height: 1.68; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.serif-i { font-family: 'Caslon', serif; font-style: italic; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(48px, 6vw, 96px); }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary[disabled] { background: var(--line-2); color: #fff; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-light { background: rgba(255, 255, 255, .94); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.link-u {
  color: var(--brand); font-weight: 500;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--brand) 35%, transparent);
  transition: box-shadow var(--t-fast);
}
.link-u:hover { box-shadow: inset 0 -2px 0 var(--brand); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
/* Un solo archivo para las dos versiones. El wordmark "RENTALS" usa currentColor,
   así que el color se decide aquí: eran dos SVG de 75 KB que se diferenciaban en un
   único atributo de relleno, y los dos se descargaban en TODAS las páginas — 57 KB
   comprimidos de duplicado puro, casi tres veces el CSS del sitio. */
.brand img { height: 46px; width: auto; color: var(--ink-2); }
.ftr-logo { height: 52px; width: auto; color: #fff; }
@media (max-width: 900px) { .brand img { height: 38px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 500;
  color: var(--ink-2); transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: border-color var(--t-fast);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 70;
}
.lang[data-open="true"] .lang-menu { display: block; }
.lang-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: .9rem; }
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current="true"] { font-weight: 600; color: var(--brand); }
.burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 18, .34) 0%, rgba(8, 20, 18, .10) 26%,
                            rgba(8, 20, 18, .46) 62%, rgba(8, 20, 18, .78) 100%),
    linear-gradient(90deg, rgba(8, 20, 18, .40) 0%, rgba(8, 20, 18, 0) 62%);
}
.hero-in { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 80px); color: #fff; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 1px 30px rgba(0, 0, 0, .25); }
.hero .lede { color: rgba(255, 255, 255, .95); max-width: 48ch; text-shadow: 0 1px 16px rgba(0, 0, 0, .38); }
.hero .eyebrow { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }

/* ---------- la home: el logo llega grande y en blanco sobre la foto ----------
   Kim quería que al entrar nadie dude de dónde llegó, y agrandar el logo dentro de
   la cinta habría engordado la cinta. Así que en la home el logo empieza al doble,
   en blanco, DEBAJO de la cinta y sobre la foto; al bajar viaja a su sitio, recupera
   su color, y de ahí en adelante todo se comporta como en el resto del sitio.

   `--hp` (home progress) va de 0 arriba a 1 pasados ~140 px, lo escribe app.js en
   cada frame, y todo aquí interpola con calc(). Se mueve SOLO con transform y opacity
   —nunca con width, top ni margin— para que el navegador no recalcule el layout en
   cada frame: en un teléfono esa diferencia es entre fluido y a saltos. */
.hdr[data-hero-brand] { --hp: 0; }

.hdr[data-hero-brand] .brand {
  position: relative;
  /* El logo sale de la cinta hacia abajo; sin esto lo cortaría su propia caja. */
  overflow: visible;
  transform-origin: left center;
  transform:
    translate(
      calc(var(--hp) * var(--brand-land-x)),
      calc((1 - var(--hp)) * var(--brand-drop)))
    scale(calc(1 + (1 - var(--hp)) * (var(--brand-scale) - 1)));
  /* `--brand-drop` lo MIDE app.js: la posición correcta es "justo encima de PLAYA
     SÁMARA", y esa línea se mueve con el idioma (el titular alemán ocupa más) y con
     el alto de la pantalla. Un número fijo acertaría en un caso y fallaría en once.
     Este valor es solo el respaldo para cuando no hay JavaScript. */
  --brand-drop: 30vh;
  --brand-scale: 2.3;
  /* Dónde aterriza en horizontal. Arriba el logo va pegado a la izquierda sobre la
     foto; al aterrizar se acerca al menú. También lo mide app.js, porque el ancho del
     menú cambia en cada idioma —"Experiences" no ocupa lo mismo que "Ferienhäuser"—
     y un desplazamiento fijo que queda bien en inglés choca con el menú en alemán. */
  --brand-land-x: 0px;
}
.hdr[data-hero-brand] .brand img { transition: none; }

/* La copia blanca vive exactamente encima de la de color y se desvanece al aterrizar.
   Blanquear con filter es lo que permite que sean el MISMO archivo — el par de SVG
   que se diferenciaban en un atributo de relleno costaba 57 KB en cada página. */
.brand-white {
  position: absolute; left: 0; top: 0; height: 100%; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 20px rgba(0, 0, 0, .5));
  pointer-events: none;
}
/* El cruce de blanco a color termina ANTES de que el logo toque la cinta: a media
   subida quedaría medio logo blanco sobre fondo blanco, o sea medio logo invisible.
   opacity recorta sola lo que se sale de 0–1, así que la rampa puede pasarse. */
.brand-white { opacity: calc((0.55 - var(--hp, 1)) / 0.55); }
.hdr[data-hero-brand] .brand > img:first-child { opacity: calc(var(--hp) / 0.55); }

/* El menú se corre a la izquierda mientras el sitio del logo está vacío, y vuelve a su
   lugar cuando el logo aterriza. */
.hdr[data-hero-brand] .nav,
.hdr[data-hero-brand] .hdr-actions {
  transform: translateX(calc((var(--hp) - 1) * var(--nav-shift)));
  --nav-shift: 78px;
}

@media (max-width: 900px) {
  /* El salto lo calcula app.js; en móvil solo cambia cuánto crece. */
  .hdr[data-hero-brand] .brand { --brand-scale: 2; }
  .hdr[data-hero-brand] .nav,
  .hdr[data-hero-brand] .hdr-actions { --nav-shift: 0px; }
}

/* Sin animación: el logo se queda donde ha estado siempre, en la cinta y en color.
   Es la misma página, sin el viaje. */
@media (prefers-reduced-motion: reduce) {
  .hdr[data-hero-brand] { --hp: 1 !important; }
  .brand-white { display: none; }
}

/* ---------- search bar ---------- */
.searchbar {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr .9fr auto;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  align-items: stretch;
}
.searchbar.is-flat { box-shadow: var(--shadow-sm); }
.sf { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: var(--r-md); position: relative; transition: background var(--t-fast); }
.sf + .sf::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.sf:hover { background: var(--sand); }
.sf:hover + .sf::before, .sf:hover::before { opacity: 0; }
/* ink-2, no ink-3: al pasar el ratón la fila se pinta de --sand, y ahí ink-3
   cae a 4.14:1. Es la etiqueta de un campo de búsqueda, leída al sol. */
.sf label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sf input, .sf select {
  border: 0; background: transparent; padding: 0; font-size: .95rem; font-weight: 500;
  width: 100%; min-width: 0; color: var(--ink);
}
.sf input::placeholder { color: var(--ink-3); font-weight: 400; }
/* El outline se apagaba sin reemplazo, así que tabular entre check-in y check-out
   no mostraba dónde estabas escribiendo. Que era descuido y no estética lo prueba
   el resto del archivo: las otras dos veces que se apaga, hay sustituto. */
.sf:focus-within { box-shadow: inset 0 0 0 2px var(--brand); border-radius: var(--r-md); }
.searchbar .btn { align-self: center; margin-left: 6px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md);
  background: var(--sand);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill);
}
.card h3 { font-size: 1.12rem; }
.card-meta { font-size: .89rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.card-price { font-size: .95rem; margin-top: 2px; }
.card-price b { font-weight: 700; }
.card-price .per { color: var(--ink-2); font-weight: 400; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-md); }

/* availability state, painted by JS once HFL answers */
.card[data-avail="no"] { opacity: .42; }
.card[data-avail="no"] .card-link { pointer-events: none; }

/* ---------- property page ---------- */
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 8px; border-radius: var(--r-lg); overflow: hidden; position: relative;
}
.gallery a { display: block; overflow: hidden; background: var(--sand); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 500ms var(--ease), filter var(--t-fast); }
.gallery a:first-child img { aspect-ratio: 3 / 2.42; }
.gallery a:hover img { filter: brightness(.94); }
.gallery-more {
  position: absolute; right: 16px; bottom: 16px; z-index: 4;
}
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: 56px; align-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .96rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px 24px; }
.amenity { display: flex; align-items: center; gap: 11px; font-size: .95rem; }
.amenity svg { flex: none; color: var(--brand); }
.prose p { margin-block: 0 1em; color: var(--ink-2); line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin-block: 0 1em; }
.prose li { position: relative; padding-left: 20px; margin-bottom: .45em; color: var(--ink-2); }
.prose li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }
.rule { height: 1px; background: var(--line); border: 0; margin-block: clamp(32px, 4vw, 52px); }

/* booking panel */
.book {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 24px;
}
.book-price { display: flex; align-items: baseline; gap: 7px; }
.book-price b { font-family: 'Caslon', serif; font-size: 1.85rem; font-weight: 500; }
.book-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; margin-top: 16px; }
.book-dates .sf { padding: 11px 14px; border-radius: 0; }
.book-dates .sf + .sf::before { top: 12%; height: 76%; }
.book-guests { border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.book-lines { margin-top: 18px; font-size: .93rem; }
.book-lines div { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; color: var(--ink-2); }
.book-lines .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.book-note { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: 12px; line-height: 1.5; }
.book-msg { font-size: .88rem; border-radius: var(--r-sm); padding: 11px 13px; margin-top: 14px; line-height: 1.5; }
.book-msg[data-kind="err"] { background: #fdf1ef; color: var(--err); }
.book-msg[data-kind="ok"] { background: var(--brand-tint); color: var(--brand-deep); }
.book-msg[data-kind="info"] { background: var(--sand); color: var(--ink-2); }

/* ---------- calendar ---------- */
.cal { --cell: 40px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border: 0; background: none;
  border-radius: var(--r-sm); font-size: .87rem; font-variant-numeric: tabular-nums;
  cursor: pointer; color: var(--ink); transition: background var(--t-fast), color var(--t-fast);
}
.cal-day:hover:not(:disabled) { background: var(--sand); }
.cal-day:disabled { color: var(--ink-3); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; opacity: .55; }
.cal-day[data-state="in"], .cal-day[data-state="out"] { background: var(--brand); color: #fff; font-weight: 600; }
.cal-day[data-state="between"] { background: var(--brand-tint); border-radius: 0; }
.cal-day.is-empty { visibility: hidden; }
.cal-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--ink-3); margin-top: 12px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- editorial blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.stat b { font-family: 'Caslon', serif; font-size: 2.2rem; font-weight: 500; display: block; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-2); }
.quote { font-family: 'Caslon', serif; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem); line-height: 1.42; color: var(--ink); }

/* steps / PM offer */
.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: 'Caslon', serif; font-size: 1.5rem; color: var(--gold-deep);
}
.step::after { content: ''; position: absolute; top: 30px; left: 0; width: 28px; height: 1px; background: var(--line-2); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .74); margin-top: clamp(56px, 7vw, 104px); }
.ftr a { color: rgba(255, 255, 255, .74); transition: color var(--t-fast); }
.ftr a:hover { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(44px, 5vw, 72px); }
.ftr .ftr-h { font-family: 'Hanken', sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.ftr li + li { margin-top: 9px; }
.ftr .brand, .ftr h4, .ftr strong { color: #fff; }
.ftr-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; font-size: .84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* jairv.dev signature — "sunrise over the bay": the mandarina rises like a little sun */
.ftr-copy { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jvd-sig { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; letter-spacing: .02em; color: rgba(255, 255, 255, .55); text-decoration: none; transition: color .2s; }
.jvd-sig:hover { color: rgba(255, 255, 255, .9); }
.jvd-sun { position: relative; width: 16px; height: 16px; overflow: hidden; display: inline-block; }
.jvd-sun svg { position: absolute; left: 0; top: 0; transform: translateY(120%); }
.jvd-glow { position: absolute; left: 50%; top: 60%; width: 34px; height: 34px; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(circle, rgba(239, 138, 42, .55), transparent 65%); pointer-events: none; }
.jvd-word { opacity: 0; }
.jvd-sig.sig-in .jvd-sun svg { animation: srRise 1.1s cubic-bezier(.34, 1.4, .5, 1) forwards; }
.jvd-sig.sig-in .jvd-word { animation: srWord .5s ease .7s forwards; }
.jvd-sig.sig-in .jvd-glow { animation: srGlow 1.3s ease .1s forwards; }
@keyframes srRise { 0% { transform: translateY(120%); } 70% { transform: translateY(-14%); } 100% { transform: translateY(0); } }
@keyframes srWord { to { opacity: 1; } }
@keyframes srGlow { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jvd-sun svg, .jvd-word { transform: none; opacity: 1; animation: none; } .jvd-glow { display: none; } }

/* ---------- utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.empty {
  text-align: center; padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface);
}
[hidden] { display: none !important; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prop-grid { grid-template-columns: 1fr; gap: 36px; }
  .book { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gut: 18px; --header-h: 64px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .searchbar { grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
  .searchbar .btn { grid-column: 1 / -1; margin: 6px 0 0; }
  .sf + .sf::before { display: none; }
  .sf { border-bottom: 1px solid var(--line); border-radius: 0; }
  .searchbar .sf:nth-last-child(2), .searchbar .sf:last-of-type { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery a:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery a:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 66vh; }
}

/* mobile sticky booking bar */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 -4px 20px rgba(23, 33, 31, .07);
}
@media (max-width: 1080px) { .book-bar { display: flex; } body.has-bookbar { padding-bottom: 84px; } }

/* ---------- print ---------- */
@media print {
  .hdr, .ftr, .book, .book-bar, .searchbar { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Team, office map, FAQ, lightbox, cookie notice
   ========================================================================== */

/* ---------- team ----------
   The portraits are honest phone shots against the office wall. Rather than
   fight that, they get a deliberate treatment: pulled back in saturation and
   sat under a thin brand-blue wash so the two read as one set and sit quietly
   beside the property photography instead of competing with it.
   The current photographs are a proper studio-lit set, so the wash is dialled
   right down — it is there to tie them to the palette, not to rescue them.
   --portrait-strength dials the whole effect; 0 returns the raw photograph. */
.team { --portrait-strength: .3; display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.person figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  filter: saturate(calc(1 - .34 * var(--portrait-strength))) contrast(calc(1 + .04 * var(--portrait-strength))) brightness(calc(1 + .02 * var(--portrait-strength)));
  transition: filter var(--t), transform 600ms var(--ease); }
.person figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29, 108, 128, 0) 42%, rgba(23, 33, 31, .30) 100%),
    linear-gradient(0deg, rgba(29, 108, 128, .16), rgba(29, 108, 128, .16));
  opacity: var(--portrait-strength);
  transition: opacity var(--t);
}
/* On hover the wash lifts — the person comes forward. */
.person:hover img { filter: saturate(.92) contrast(1.02) brightness(1.01); transform: scale(1.02); }
.person:hover figure::after { opacity: calc(.35 * var(--portrait-strength)); }
.person h3 { margin-top: 15px; font-size: 1.14rem; }
.person .role { font-family: 'Hanken', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-top: 5px; }
.person p { margin-top: 9px; color: var(--ink-2); font-size: .95rem; line-height: 1.65; }

/* ---------- office map ---------- */
.map-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map-card img { width: 100%; height: auto; display: block; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.map-foot .muted { font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: clamp(34px, 4vw, 54px); }
.faq-group > h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); margin-bottom: 6px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details[open] { background: linear-gradient(180deg, var(--brand-tint) 0%, transparent 70%); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 2px; position: relative;
  font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 10px; top: 27px; width: 10px; height: 10px;
  border-right: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand);
  transform: rotate(45deg); transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 44px 22px 2px; color: var(--ink-2); line-height: 1.72; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 17, .94);
  display: none; align-items: center; justify-content: center; }
.lb[open], .lb.is-open { display: flex; }
.lb img { max-width: min(94vw, 1600px); max-height: 86vh; width: auto; height: auto;
  object-fit: contain; border-radius: 4px; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px;
  color: rgba(255, 255, 255, .9); font-size: .9rem; font-variant-numeric: tabular-nums; }
.lb-btn { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: var(--r-pill); width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; transition: background var(--t-fast); }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn[disabled] { opacity: .3; cursor: not-allowed; }
.lb-prev { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .78); font-size: .85rem; text-align: center; max-width: 80vw; }
@media (max-width: 700px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb img { max-height: 72vh; }
}
/* modal grid thumbs become obviously clickable */
[data-gallery-modal] img { cursor: zoom-in; transition: opacity var(--t-fast); }
[data-gallery-modal] img:hover { opacity: .86; }

/* ---------- cookie / privacy notice ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 18px 20px; display: none;
}
.cookie.is-open { display: block; }
.cookie p { font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.cookie .row { margin-top: 14px; gap: 10px; }
@media (max-width: 560px) { .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
@media (max-width: 1080px) { body.has-bookbar .cookie { bottom: 90px; } }

/* ---------- mobile menu ----------
   Third attempt, and the lesson is in the CSS: the previous one put the photo in
   a child at `z-index:-1` inside a container that also had `opacity` and
   `overflow-y:auto`. Those three together are a known bad combination on iOS —
   the negative layer escapes behind the composited group, so the menu opened
   showing only a stretched photo and no content.

   No negative z-index here. The panel owns a solid background, the photograph is
   a plain layer above it, and the content sits above that. Fewer moving parts. */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: #101a19;                 /* the panel is opaque on its own */
  display: none;
  flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.menu.is-open { display: flex; }

.menu-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.menu-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; display: block; }
.menu-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,19,.55) 0%, rgba(12,20,19,.35) 45%, rgba(12,20,19,.8) 100%);
}

/* every real child rides above the photograph */
.menu > :not(.menu-bg) { position: relative; z-index: 1; }

.menu-x {
  align-self: flex-end; background: none; border: 0; color: rgba(255,255,255,.85);
  padding: 18px var(--gut); cursor: pointer; line-height: 0;
}
.menu-in {
  display: flex; flex-direction: column;
  padding: 8px var(--gut) 30px; margin-top: auto;
}
.menu-lead {
  display: flex; align-items: baseline; gap: 12px;
  font-family: 'Caslon', serif; font-size: clamp(2rem, 1.3rem + 3.4vw, 2.9rem);
  line-height: 1.14; color: #fff; padding-block: 12px;
}
.menu-lead em {
  font-style: normal; font-family: 'Hanken', sans-serif; font-size: .7rem;
  font-variant-numeric: tabular-nums; color: var(--gold); letter-spacing: .08em;
  transform: translateY(-.9em);
}
.menu-lead:active { opacity: .7; }

.menu-rest { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; }
.menu-rest a { font-size: .95rem; color: rgba(255,255,255,.7); padding-block: 7px; }
.menu-rest a:active { color: #fff; }

.menu-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: auto;
  padding: 18px var(--gut) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.14);
}
.menu-call { display: flex; gap: 16px; }
.menu-call a {
  color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); padding-bottom: 2px;
}
.menu-langs { display: flex; gap: 2px; }
.menu-langs a {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: rgba(255,255,255,.5); padding: 6px 8px;
}
.menu-langs a[aria-current="true"] { color: var(--gold); }

body.drawer-open { overflow: hidden; }
@media (min-width: 901px) { .menu { display: none !important; } }

/* ---------- on-site search ----------
   Jair's own tell: he would rather google "casa arboles samara rentals" than use
   the site. Filters answer "show me homes like X"; they do not answer "take me to
   the one I already know the name of", which is the commonest search of all for a
   returning guest. This matches on name, tagline and type as you type. */
.searchrow {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); padding: 0 16px; margin-bottom: 14px;
  max-width: 420px; color: var(--ink-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.searchrow:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.searchrow input {
  border: 0; background: none; padding: 12px 0; flex: 1; min-width: 0;
  font-size: .95rem; color: var(--ink);
}
.searchrow input:focus { outline: none; }
.searchrow input::-webkit-search-cancel-button { display: none; }
.searchrow button {
  border: 0; background: none; color: var(--ink-3); font-size: 1.3rem;
  line-height: 1; cursor: pointer; padding: 4px;
}
.searchrow button:hover { color: var(--ink); }

/* ---------- guest assistant ----------
   Deliberately quiet: a small labelled button, not a bouncing bubble with a
   notification dot. It answers from the site's own knowledge base, so it opens
   instantly and costs nothing to run. */
.assistant { position: fixed; right: 16px; bottom: 16px; z-index: 70; }
.as-open {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  border-radius: var(--r-pill); padding: 13px 20px; font-size: .92rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: background var(--t-fast), transform var(--t-fast);
}
.as-open:hover { background: #000; transform: translateY(-1px); }
.assistant.is-open .as-open { background: var(--brand); }

.as-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.as-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.as-head button { background: none; border: 0; color: var(--ink-3); cursor: pointer; line-height: 0; padding: 4px; }
.as-head button:hover { color: var(--ink); }

.as-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.as-msg { font-size: .93rem; line-height: 1.6; max-width: 92%; }
.as-bot { background: var(--sand); border-radius: 4px 14px 14px 14px; padding: 12px 14px; color: var(--ink); }
.as-me { background: var(--brand); color: #fff; border-radius: 14px 4px 14px 14px; padding: 10px 14px; align-self: flex-end; }

.as-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.as-chips button {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 7px 12px; font-size: .82rem; cursor: pointer; color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.as-chips button:hover { border-color: var(--brand); color: var(--brand); }

.as-cards { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.as-card {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; transition: border-color var(--t-fast);
}
.as-card:hover { border-color: var(--brand); }
.as-card strong { font-size: .9rem; }
.as-card span { font-size: .78rem; color: var(--ink-3); grid-column: 1; }
.as-card em {
  /* An item with a definite row but an auto column is placed BEFORE the
     auto-auto items, so without this the price took column 1 and pushed the
     name to the right — which is what a three-line tour name made obvious. */
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-style: normal; font-size: .82rem;
  font-weight: 700; color: var(--brand); white-space: nowrap; text-align: right;
}

/* the assistant thinking — it looks up the homes and tours in about a
   millisecond, and an answer that arrives that fast reads as a canned reply
   rather than as an answer. The pause is honest work made visible. */
.as-typing { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }
.as-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  animation: as-blink 1.1s infinite ease-in-out; display: block;
}
.as-typing i:nth-child(2) { animation-delay: .18s; }
.as-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes as-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .as-typing i { animation: none; opacity: .5; } }
.as-crit { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-3); }
.as-more { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--brand); font-weight: 600; }
.as-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.as-links a {
  font-size: .82rem; font-weight: 600; color: var(--brand);
  border: 1px solid var(--brand); border-radius: var(--r-pill); padding: 6px 12px;
  transition: background var(--t-fast), color var(--t-fast);
}
.as-links a:hover { background: var(--brand); color: #fff; }

.as-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex: none; }
.as-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; font-size: .92rem;
}
.as-form input:focus { outline: none; border-color: var(--brand); }
.as-form .btn { padding: 11px 15px; }
.as-foot { font-size: .72rem; color: var(--ink-3); padding: 0 14px 12px; line-height: 1.45; }

@media (max-width: 560px) {
  .assistant { right: 12px; bottom: 12px; }
  .as-open span { display: none; }
  .as-open { padding: 14px; border-radius: 50%; }
  .as-panel { position: fixed; inset: 12px; width: auto; height: auto; bottom: 80px; }
}
/* the property pages already own the bottom of the screen on mobile */
@media (max-width: 1080px) { body.has-bookbar .assistant { bottom: 84px; } }

/* the assistant's date prompt — the step that turns a browse into a booking */
.as-dates { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.as-dates p { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; }
.as-dates-row { display: flex; gap: 6px; flex-wrap: wrap; }
.as-dates-row input {
  flex: 1 1 108px; min-width: 0; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 8px 10px; font-size: .82rem; background: var(--surface);
}
.as-dates-row button {
  flex: 1 1 100%; background: var(--brand); color: #fff; border: 0;
  border-radius: var(--r-sm); padding: 10px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.as-dates-row button:hover { background: var(--brand-deep); }

/* ---------- tours ----------
   (Restored: an earlier CSS splice cut by index and took this block with it.
   The build stayed green because nothing checked that the classes the templates
   use actually exist — the audit now does.) */
.tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.tour {
  scroll-margin-top: 96px;
  display: flex; flex-direction: column; gap: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.tour:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tour-media { aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease); }
.tour:hover .tour-media img { transform: scale(1.035); }
.tour-body { display: flex; flex-direction: column; gap: 11px; padding: 0 22px 22px; flex: 1; }
.tour-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.tour-head h3 { font-size: 1.12rem; line-height: 1.25; }
.tour-price { white-space: nowrap; text-align: right; }
.tour-price b { font-family: 'Caslon', serif; font-size: 1.3rem; font-weight: 400; }
.tour-price span { display: block; font-size: .7rem; color: var(--ink-3); letter-spacing: .04em; }
.tour-blurb { color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: .82rem; color: var(--ink-3); }
.tour-meta li { position: relative; }
.tour-meta li + li::before { content: '·'; position: absolute; left: -9px; }
.tour-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-tags li {
  font-size: .73rem; font-weight: 600; background: var(--brand-tint); color: var(--brand);
  border-radius: var(--r-pill); padding: 4px 10px;
}
.tour-more summary {
  list-style: none; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--brand); padding: 4px 0;
}
.tour-more summary::-webkit-details-marker { display: none; }
.tour-more summary::after { content: ' →'; }
.tour-more[open] summary::after { content: ' ↑'; }
.tour-more p { margin-top: 9px; font-size: .91rem; line-height: 1.66; color: var(--ink-2); }
.tour-cta { margin-top: auto; }
.tour[hidden] { display: none; }

/* ---------- content + sidebar ----------
   (Also restored after the same splice. This is the rule that stops the FAQ and
   contact pages keeping a 320px sidebar on a phone and squeezing the questions
   into a column one word wide.) */
.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.side-layout > aside { position: sticky; top: calc(var(--header-h) + 24px); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 900px) {
  .side-layout { grid-template-columns: 1fr; gap: 36px; }
  .side-layout > aside { position: static; }
  .field-pair { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- upsells on a property page ---------- */
.upsells { display: grid; gap: 14px; }
.upsell {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 16px; transition: border-color var(--t-fast);
}
.upsell:hover { border-color: var(--line-2); }
.upsell-i {
  width: 96px; height: 72px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); border-radius: var(--r-sm);
}
.upsell-img { display: block; border-radius: var(--r-sm); overflow: hidden; }
.upsell-img img { width: 96px; height: 72px; object-fit: cover; display: block; }
.upsell h3 { font-size: 1.02rem; font-family: 'Hanken', sans-serif; font-weight: 700; }
.upsell p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin-top: 5px; }
.upsell-meta { color: var(--ink) !important; font-size: .88rem !important; }
.upsell-meta b { font-weight: 700; }
.upsell .link-u { display: inline-block; margin-top: 8px; font-size: .89rem; }
@media (max-width: 560px) { .upsell { grid-template-columns: 1fr; } .upsell-i, .upsell-img img { width: 100%; } }

/* ---------- demo checkout ----------
   The whole funnel is walkable before the engine is connected, so the stamp is
   not decoration: it is what keeps a complete-looking flow honest. It appears on
   every step and it is the first thing on each screen. */
.demo-flow {
  margin-top: 16px; border: 1px solid var(--brand); border-radius: var(--r-md);
  background: var(--brand-tint); padding: 16px;
}
.demo-tag {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: 12px;
}
.demo-flow h4 { font-family: 'Hanken', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.demo-flow input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: .92rem; margin-bottom: 8px; background: var(--surface);
}
.demo-flow input[readonly] { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.demo-row { display: flex; gap: 8px; }
.demo-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.demo-total b { font-family: 'Caslon', serif; font-size: 1.4rem; }
.demo-note { font-size: .78rem; color: var(--ink-2); line-height: 1.5; margin: 10px 0 12px; }
.demo-ok { text-align: center; padding: 8px 0 4px; }
.demo-ok h4 { color: var(--ok); }
.demo-ref {
  font-family: 'Caslon', serif; font-size: 1.6rem; letter-spacing: .04em;
  margin: 6px 0 10px; color: var(--ink);
}
.demo-ok p { font-size: .9rem; color: var(--ink-2); }

/* ---------- leaving the site ---------- */
.leaving {
  position: fixed; inset: 0; z-index: 96; display: grid; place-items: center;
  background: rgba(12, 20, 19, .72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 200ms var(--ease); padding: 24px;
}
.leaving.is-open { opacity: 1; }
.leaving-box {
  background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px 26px;
  max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
  transform: translateY(8px); transition: transform 260ms var(--ease);
}
.leaving.is-open .leaving-box { transform: none; }
.leaving-mark { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.leaving-mark img { height: 34px; width: auto; }
.leaving-mark strong { font-size: .95rem; color: var(--ink); }
.leaving-arrow { color: var(--brand); display: grid; place-items: center; }
.leaving-arrow svg { animation: lv-slide 1.1s var(--ease) infinite; }
@keyframes lv-slide { 0%,100% { transform: translateX(-3px); opacity: .5; } 50% { transform: translateX(3px); opacity: 1; } }
.leaving h3 { font-size: 1.24rem; }
.leaving p { color: var(--ink-2); font-size: .93rem; line-height: 1.6; margin-top: 10px; }
.leaving-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 22px; }
.leaving-bar i { display: block; height: 100%; width: 0; background: var(--brand); animation: lv-fill 2.1s linear forwards; }
.leaving[data-kind="external"] .leaving-bar i { background: var(--gold-deep); animation-duration: 2.6s; }
.leaving[data-kind="external"] .leaving-arrow { color: var(--gold-deep); }
@keyframes lv-fill { to { width: 100%; } }
.leaving button {
  margin-top: 16px; background: none; border: 0; color: var(--ink-3);
  font-size: .87rem; cursor: pointer; text-decoration: underline; padding: 6px;
}
.leaving button:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .leaving-arrow svg { animation: none; }
  .leaving-bar i { animation-duration: 2.1s; }
}

/* gateway choice — never a card form (that is PCI scope) */
.demo-choose { font-size: .82rem; color: var(--ink-2); margin-bottom: 8px; }
.demo-gws { display: flex; flex-direction: column; gap: 7px; }
.demo-gw {
  display: flex; align-items: baseline; justify-content: center; gap: 7px;
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 12px; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.demo-gw span { font-size: .82rem; color: var(--ink-3); }
.demo-gw b { font-size: .98rem; color: var(--ink); }
.demo-gw:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-tint); }
.demo-gw:disabled { opacity: .45; cursor: default; }
.demo-gw.is-busy { border-color: var(--brand); background: var(--brand-tint); opacity: 1; }

/* progressive reveal on the rentals grid */
.card.is-beyond { display: none; }

/* ---------- experiences hub ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.exp-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 28px 24px 24px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.exp-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exp-i {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--brand-tint); color: var(--brand); border-radius: var(--r-md);
}
.exp-card h3 { font-size: 1.2rem; }
.exp-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.exp-meta {
  font-family: 'Hanken', sans-serif; font-size: .74rem !important; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep) !important;
}
.exp-card .btn { margin-top: auto; }

/* ---------- shuttle routes ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.route {
  display: flex; align-items: center; gap: 8px; font-size: .9rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); padding: 11px 14px;
}
.route em { font-style: normal; color: var(--brand); }
.route span:last-child { color: var(--ink-2); }

/* the interstitial's partner logo + explicit continue */
.leaving-logo { height: 58px; width: auto; object-fit: contain; }
.leaving-go { margin-top: 22px; }

/* ---------- shuttle fare finder ----------
   Guanashuttle's own network, priced. The point of the panel is that the guest
   sees a number before they leave the site — a page that says "ask us for a
   quote" is a page that sells nothing at eleven at night. */
.fare {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: clamp(16px, 2.4vw, 24px);
}
.fare-fields { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 14px; }
.fare-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fare-field label {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.fare-field select, .fare-field input {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 12px; width: 100%;
}
.fare-field select:focus-visible, .fare-field input:focus-visible {
  outline: 2px solid var(--brand-bright); outline-offset: 1px;
}
.fare-out { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.fare-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.fare-leg-big { font-family: 'Caslon', Georgia, serif; font-size: 1.3rem; line-height: 1.25; }
.fare-leg-big em { font-style: normal; color: var(--brand); padding: 0 8px; }
.fare-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.fare-line { font-size: .9rem; color: var(--ink-2); display: flex; gap: 10px; justify-content: space-between; max-width: 42ch; }
.fare-line b { color: var(--ink); font-weight: 600; }
.fare-amount { text-align: right; }
.fare-amount b { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.fare-amount span { display: block; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.fare-ctas { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.fare-ctas .btn { flex: 1 1 190px; }
.fare-empty { color: var(--ink-2); }

.fare-table { border-top: 1px solid var(--line); }
.fare-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 9px 2px; font-size: .92rem;
}
.fare-leg { color: var(--ink); min-width: 0; }
.fare-leg em { font-style: normal; color: var(--brand); padding: 0 8px; }
.fare-price { color: var(--ink); font-weight: 600; white-space: nowrap; }

@media (max-width: 720px) {
  .fare-fields { grid-template-columns: 1fr; }
  .fare-field-pax { max-width: 160px; }
  .fare-result { grid-template-columns: 1fr; }
  .fare-amount { text-align: left; }
  .fare-amount b { font-size: 1.7rem; }
}

/* ---------- consent ---------- */
.cookie-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cookie-btns .btn { flex: 1 1 auto; }
.cookie-link {
  background: none; border: 0; color: var(--ink-2); font-size: .85rem;
  text-decoration: underline; cursor: pointer; padding: 8px 4px;
}
.cookie-link:hover { color: var(--ink); }
.cookie-more { display: inline-block; margin-top: 10px; font-size: .8rem; color: var(--ink-3); text-decoration: underline; }

.cpanel {
  position: fixed; inset: 0; z-index: 97; display: grid; place-items: center;
  background: rgba(12, 20, 19, .6); padding: 20px;
}
.cpanel-box {
  background: var(--surface); border-radius: var(--r-lg); max-width: 520px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg);
}
.cpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cpanel-head h3 { font-size: 1.25rem; }
.cpanel-head button { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 4px; line-height: 0; }
.cpanel-intro { color: var(--ink-2); font-size: .92rem; line-height: 1.6; margin-top: 8px; }
.cpanel-cat {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.cpanel-cat input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cpanel-cat input:disabled { opacity: .55; cursor: not-allowed; }
.cpanel-cat strong { display: block; font-size: .95rem; }
.cpanel-cat em { display: block; font-style: normal; font-size: .87rem; color: var(--ink-2); line-height: 1.55; margin-top: 3px; }
.cpanel-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cpanel-btns .btn { flex: 1 1 140px; }
.cpanel-note { font-size: .8rem; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* routes are links now, so they need to look tappable */
a.route { transition: border-color var(--t-fast), background var(--t-fast); }
a.route:hover { border-color: var(--brand); background: var(--brand-tint); }

/* A tour we have no photograph for keeps the card's shape instead of collapsing
   next to its neighbours — the name becomes the image. */
.tour-media.is-blank {
  display: grid; place-items: center; padding: 20px; text-align: center;
  background: linear-gradient(160deg, var(--brand-tint), var(--sand));
}
.tour-media.is-blank span {
  font-family: 'Caslon', serif; font-size: 1.28rem; line-height: 1.2; color: var(--brand);
}

/* partner attribution on the experiences cards */
.exp-by { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.exp-by img { height: 46px; width: auto; object-fit: contain; }
.exp-by span { font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
