/* ==========================================================================
   EVDÍA Luxury Private Estate — core stylesheet
   Palette: Bone · Limestone · Sand · Taupe · Charcoal (no other colours)
   ========================================================================== */

:root {
  --bone: #F4F0E9;
  --limestone: #E2D9CB;
  --sand: #C4B5A3;
  --taupe: #918477;
  --charcoal: #302D29;

  --ink: var(--charcoal);
  --ink-muted: rgba(48, 45, 41, .76);   /* ≥ 6:1 on Bone */
  --line: rgba(48, 45, 41, .16);
  --line-light: rgba(244, 240, 233, .28);

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --header-h: 104px;
  --frame: clamp(10px, 2vw, 26px);   /* inset of the thin frame line on hero images */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --z-header: 50;
  --z-menu: 60;
  --z-dialog: 80;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--sand); color: var(--charcoal); }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Language visibility */
html[data-lang="en"] .el, html[data-lang="el"] .en { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: -120px; z-index: 100; background: var(--charcoal); color: var(--bone); padding: .8rem 1.25rem; font-size: .875rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 900px; }
.container--wide { max-width: 1560px; }
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.bg-limestone { background: var(--limestone); }
.bg-charcoal { background: var(--charcoal); color: var(--bone); }
.bg-charcoal .muted { color: rgba(244, 240, 233, .76); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 1.75rem;
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .55; }
.center .eyebrow::after, .cta-band .eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .55; }
.display { font: 400 clamp(3rem, 8vw, 7rem)/1 var(--serif); letter-spacing: -.012em; margin: 0; }
.h1 { font: 400 clamp(2.5rem, 5.4vw, 4.75rem)/1.05 var(--serif); letter-spacing: -.008em; margin: 0 0 1.5rem; text-wrap: balance; }
.h2 { font: 400 clamp(2.05rem, 3.9vw, 3.4rem)/1.1 var(--serif); margin: 0 0 1.5rem; text-wrap: balance; }
.h3 { font: 400 clamp(1.5rem, 2.2vw, 1.95rem)/1.2 var(--serif); margin: 0 0 .75rem; }
.h4 { font: 500 .8125rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 .75rem; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; }
.lead { font: 300 clamp(1.15rem, 1.55vw, 1.32rem)/1.8 var(--sans); }
p { margin: 0 0 1.25rem; max-width: 66ch; }
.center p, .cta-band p { margin-inline: auto; }
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; line-height: 1.65; }
.prose h2 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--serif); margin: 3rem 0 1rem; }
.prose h3 { font: 500 .8125rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 54px; padding: 0 2.25rem;
  font: 500 .75rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--bone);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  touch-action: manipulation;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--bone); }
.btn--light { background: var(--bone); border-color: var(--bone); color: var(--charcoal); }
.btn--light:hover { background: transparent; color: var(--bone); }
.btn--outline-light { background: transparent; border-color: rgba(244, 240, 233, .7); color: var(--bone); }
.btn--outline-light:hover { background: var(--bone); color: var(--charcoal); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.center .btn-row, .cta-band .btn-row { justify-content: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .9rem; padding-block: .8rem;
  font: 500 .75rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
.link-arrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.link-arrow:hover::after { width: 3.75rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  color: var(--bone);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.header-inner {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 2.75rem;
  height: var(--header-h); padding-inline: var(--gutter);
  transition: height .5s var(--ease);
}
.site-header.is-solid, body.header-solid .site-header {
  background: rgba(244, 240, 233, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .header-inner { height: 84px; }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.2vw, 2.4rem); }
.nav-left { justify-content: flex-end; }
.nav-right-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav a, .nav .sub-trigger {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.nav > a::after, .has-sub > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav > a:hover::after, .has-sub > a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.has-sub { position: relative; display: flex; align-items: center; gap: .25rem; }
.sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 44px; }
.sub-toggle .icon { width: .85rem; height: .85rem; stroke-width: 1.5; transition: transform .3s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + .5rem); left: -1.5rem; min-width: 250px;
  list-style: none; margin: 0; padding: .75rem 0;
  background: var(--bone); color: var(--ink); box-shadow: 0 18px 50px rgba(48, 45, 41, .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.has-sub:hover .subnav, .has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a {
  display: flex; align-items: baseline; gap: .9rem; padding: .75rem 1.5rem; min-height: 44px;
  font: 400 1.15rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: background .25s;
}
.subnav a span.num { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; color: var(--ink-muted); }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--limestone); }
.subnav a::after { display: none; }

.brand { display: block; justify-self: center; line-height: 0; }
.brand-logo { position: relative; display: block; width: clamp(150px, 13vw, 200px); }
.brand-logo img { width: 100%; height: auto; }
.brand-logo .logo-light { display: block; }
.brand-logo .logo-dark { display: none; }
.site-header.is-solid .logo-light, body.header-solid .site-header .logo-light { display: none; }
.site-header.is-solid .logo-dark, body.header-solid .site-header .logo-dark { display: block; }
.wordmark { display: none; text-align: center; line-height: 1; }
html.logo-missing .brand-logo img { display: none !important; }
html.logo-missing .wordmark { display: block; }
.wm-name { display: block; font: 500 clamp(1.9rem, 2.6vw, 2.35rem)/1 var(--serif); letter-spacing: .14em; padding-left: .14em; }
.wm-sub { display: block; margin-top: .45rem; font: 400 .5rem/1 var(--serif); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; white-space: nowrap; }

.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; }
.lang-switch button { min-width: 36px; min-height: 44px; opacity: .55; transition: opacity .3s; letter-spacing: .2em; }
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch button:hover { opacity: 1; }
.lang-switch .sep { opacity: .4; }

.menu-toggle { display: none; align-items: center; gap: .8rem; min-height: 44px; font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.menu-toggle .bars { display: grid; gap: 6px; width: 26px; }
.menu-toggle .bars span { display: block; height: 1px; background: currentColor; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--charcoal); color: var(--bone);
  display: flex; flex-direction: column; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mobile-menu-close { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.mobile-nav { list-style: none; margin: 2.5rem 0 2rem; padding: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--line-light); }
.mobile-nav a { display: flex; align-items: center; min-height: 64px; font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.1 var(--serif); }
.mobile-nav .sub { list-style: none; margin: -.5rem 0 1rem; padding: 0 0 0 1.25rem; }
.mobile-nav .sub a { min-height: 44px; font-size: 1.2rem; opacity: .85; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: .5rem; font-size: .95rem; }
.mobile-menu-foot a { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1380px) {
  .nav-left, .nav-right { display: none; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); height: 84px; }
  .menu-toggle { display: inline-flex; justify-self: start; }
  .nav-right-wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .header-inner { gap: .75rem; }
  .menu-toggle .label { display: none; }
  .brand-logo { width: 132px; }
  .wm-name { font-size: 1.6rem; }
  .wm-sub { font-size: .44rem; letter-spacing: .3em; padding-left: .3em; }
  .lang-switch { gap: 0; }
  .lang-switch button { min-width: 30px; }
}

/* ==========================================================================
   Media (renders / photography) with graceful placeholder
   ========================================================================== */
.media { position: relative; overflow: hidden; background: var(--limestone); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.media.is-missing img { opacity: 0; }
.media.is-missing {
  background:
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(48, 45, 41, .05) 63px 64px),
    linear-gradient(160deg, var(--limestone), var(--sand));
}
.media.is-missing::after {
  content: attr(data-file); position: absolute; inset: auto 0 50% 0; transform: translateY(50%);
  text-align: center; font: 500 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--charcoal);
}
.vis-tag {
  position: absolute; right: .9rem; bottom: .8rem; z-index: 2;
  font: 500 .625rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone); background: rgba(48, 45, 41, .55); padding: .45rem .65rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none;
}
.media.is-missing .vis-tag { display: none; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1; }
.hover-zoom:hover img { transform: scale(1.035); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: var(--bone);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 7rem;
}
.hero > .media { position: absolute; inset: 0; z-index: -2; background: var(--taupe); }
.hero > .media img { animation: heroDrift 24s var(--ease) both; }
.hero > .media.is-missing { background: linear-gradient(160deg, var(--taupe), var(--charcoal)); }
.hero > .media.is-missing::after { color: var(--bone); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(48,45,41,.62) 0%, rgba(48,45,41,.18) 32%, rgba(48,45,41,.22) 62%, rgba(48,45,41,.7) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: var(--frame); z-index: -1;
  border: 1px solid rgba(244, 240, 233, .3); pointer-events: none;
}
.hero .eyebrow { color: var(--bone); }
.hero-sub { margin-top: 2rem; font: 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.6 var(--serif); font-style: italic; opacity: .92; }
.hero--page { min-height: 82vh; min-height: 82svh; }
.hero--page .h1 { margin-bottom: 1.25rem; }
.hero--page .lead { max-width: 46ch; margin-inline: auto; }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.8rem, 4vw, 3rem); transform: translateX(-50%);
  display: grid; justify-items: center; gap: .9rem;
  font: 500 .6875rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bone);
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--bone), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
.hero:has(+ .booking-bar) { padding-bottom: 10rem; }
.hero:has(+ .booking-bar) .scroll-cue { bottom: 5.5rem; }
@media (max-width: 860px) { .hero:has(+ .booking-bar) .scroll-cue { bottom: 2rem; } .hero:has(+ .booking-bar) { padding-bottom: 7rem; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }

.page-head { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4.5rem); }

/* ==========================================================================
   Booking bar (Lodgify-ready)
   ========================================================================== */
.booking-bar { position: relative; z-index: 3; margin-top: -3.75rem; }
.booking-bar form {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 0;
  background: var(--bone); box-shadow: 0 24px 60px rgba(48, 45, 41, .14);
}
.booking-bar .field { padding: 1.15rem 1.5rem; border-right: 1px solid var(--line); }
.booking-bar .btn { height: 100%; min-height: 84px; }
@media (max-width: 860px) {
  .booking-bar { margin-top: 0; padding-top: 1.5rem; }
  .booking-bar form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-bar .field:nth-child(2) { border-right: 0; }
  .booking-bar .field:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .booking-bar .btn { grid-column: 1 / -1; min-height: 60px; }
  .booking-bar .field:nth-child(1), .booking-bar .field:nth-child(2) { border-bottom: 0; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: .45rem; }
.field label, .field .label { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.field label .req { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem 0;
  font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
  min-width: 0; max-width: 100%;
}
.field { min-width: 0; }
.field input[type="date"] { display: block; }
.booking-bar .field input, .booking-bar .field select { border-bottom: 0; padding: .25rem 0; min-height: 40px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23302D29' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 1.5rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--charcoal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 var(--charcoal); }
.field .error { display: none; font-size: .85rem; line-height: 1.4; color: var(--charcoal); }
.field.has-error input, .field.has-error select { border-bottom: 2px solid var(--charcoal); }
.field.has-error .error { display: flex; gap: .4rem; align-items: baseline; }
.field.has-error .error::before { content: "—"; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--limestone); font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }

/* ==========================================================================
   Components
   ========================================================================== */

/* Triptych intro (image · statement · image) */
.triptych { display: grid; grid-template-columns: 1fr minmax(0, 1.35fr) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.triptych > figure.media:first-of-type { margin-top: 6rem; }
.triptych > figure.media:last-of-type { margin-top: -6rem; }
@media (max-width: 960px) {
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych > .tri-text { grid-column: 1 / -1; order: -1; }
  .triptych > figure.media:first-of-type, .triptych > figure.media:last-of-type { margin-top: 0; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2.25rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font: 400 clamp(2.4rem, 4vw, 3.5rem)/1 var(--serif); }
.stat .num sup { font-size: .45em; vertical-align: super; }
.stat .lbl { display: block; margin-top: .8rem; font: 500 .6875rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.bg-charcoal .stats, .bg-charcoal .stat { border-color: var(--line-light); }
.bg-charcoal .stat .lbl { color: rgba(244, 240, 233, .76); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* Section heading row */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); flex-wrap: wrap; }
.sec-head .h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 46ch; }

/* Residence cards */
.res-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.res-card { position: relative; display: block; color: var(--bone); }
.res-card .media { aspect-ratio: 3 / 4.2; }
.res-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(48,45,41,.35) 0%, rgba(48,45,41,0) 30%, rgba(48,45,41,0) 48%, rgba(48,45,41,.82) 100%);
}
.res-card .count { position: absolute; top: 1.5rem; left: 1.6rem; z-index: 2; font: 500 .6875rem/1 var(--sans); letter-spacing: .3em; }
.res-card .body { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.7rem; z-index: 2; }
.res-card .h3 { margin-bottom: .5rem; font-size: clamp(1.75rem, 2.4vw, 2.2rem); }
.res-card .meta { font-size: .875rem; letter-spacing: .04em; opacity: .9; }
.res-card .line { display: block; width: 2.5rem; height: 1px; margin-top: 1.25rem; background: currentColor; transition: width .6s var(--ease); }
.res-card:hover .line { width: 5rem; }
.res-card:hover img { transform: scale(1.04); }
.res-card .vis-tag { top: 1.2rem; right: 1.2rem; bottom: auto; }
@media (max-width: 900px) {
  .res-cards { grid-template-columns: 1fr; }
  .res-card .media { aspect-ratio: 4 / 4.6; }
}

/* Full-bleed feature */
.feature { position: relative; isolation: isolate; min-height: 92vh; min-height: 92svh; display: grid; align-items: end; color: var(--bone); overflow: hidden; }
.feature > .media { position: absolute; inset: 0; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(48,45,41,0) 30%, rgba(48,45,41,.78) 100%); }
.feature .container { padding-block: clamp(3rem, 8vw, 6.5rem); }
.feature .eyebrow { color: var(--bone); }
.feature p { color: rgba(244, 240, 233, .9); }

/* Split */
.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.split--reverse { grid-template-columns: .92fr 1.08fr; }
.split--reverse > .media, .split--reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media .media + .media { position: absolute; width: 46%; right: -6%; bottom: -10%; border: 10px solid var(--bone); }
.bg-limestone .split-media .media + .media { border-color: var(--limestone); }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > .media, .split--reverse > .split-media { order: 0; }
  .split-media .media + .media { position: relative; width: 60%; right: auto; bottom: auto; margin: -18% 0 0 auto; }
}

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.amenities li { display: grid; align-content: start; gap: 1.1rem; padding: 2rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 400 1.15rem/1.3 var(--serif); }
.amenities .icon { width: 1.75rem; height: 1.75rem; }
.bg-charcoal .amenities, .bg-charcoal .amenities li { border-color: var(--line-light); }
@media (max-width: 1100px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .amenities { grid-template-columns: repeat(2, 1fr); } .amenities li { padding: 1.5rem 1.1rem; font-size: 1.05rem; } }

/* Pills (in-residence features) */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pills li { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; line-height: 1.3; }
.bg-charcoal .pills li { border-color: var(--line-light); }

/* Spec list */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs > div { padding: 1.75rem 1.25rem; border-right: 1px solid var(--line); display: grid; gap: .55rem; }
.specs > div:last-child { border-right: 0; }
.specs dt { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.specs dd { margin: 0; font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.2 var(--serif); }
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:nth-child(2n) { border-right: 0; }
  .specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* Residence bars with five facts (adds guests) */
.specs--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) {
  .specs--5 { grid-template-columns: 1fr 1fr; }
  .specs--5 > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .specs--5 > div:last-child { grid-column: 1 / -1; text-align: center; justify-items: center; }
}

/* Detail list */
.detail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-list .icon { width: 1.3rem; height: 1.3rem; color: var(--taupe); }
.bg-charcoal .detail-list, .bg-charcoal .detail-list li { border-color: var(--line-light); }
.bg-charcoal .detail-list .icon { color: var(--sand); }

/* Note panel */
.note { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--limestone); border-left: 2px solid var(--charcoal); }
.bg-limestone .note { background: var(--bone); }
.note .h4 { margin-bottom: 1rem; }
.note p:last-child { margin-bottom: 0; }

/* Mosaic gallery strip */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.2vw, 1rem); }
.mosaic .media:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10.5; }
.mosaic .media:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.mosaic .media:nth-child(3) { grid-column: span 4; aspect-ratio: 4 / 3.4; }
.mosaic .media:nth-child(4) { grid-column: span 4; aspect-ratio: 4 / 3.4; }
.mosaic .media:nth-child(5) { grid-column: span 4; aspect-ratio: 4 / 3.4; }
.mosaic .media:nth-child(6) { grid-column: span 12; aspect-ratio: 21 / 8; }
@media (max-width: 760px) {
  .mosaic .media:nth-child(n) { grid-column: span 12; aspect-ratio: 3 / 2; }
}

/* Moments triptych (morning / afternoon / evening) */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.moment .media { aspect-ratio: 4 / 5; margin-bottom: 1.75rem; }
.moment .time { font: 500 .6875rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: .9rem; }
.moment:nth-child(2) { margin-top: 4rem; }
@media (max-width: 900px) { .moments { grid-template-columns: 1fr; } .moment:nth-child(2) { margin-top: 0; } }

/* Destination guide */
.places { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.place { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.place:nth-child(even) .media { order: 2; }
.place .idx { font: 400 clamp(3rem, 6vw, 5rem)/1 var(--serif); font-style: italic; color: var(--taupe); display: block; margin-bottom: 1rem; }
.place .region { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 1rem; }
.place .media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } .place:nth-child(even) .media { order: 0; } }

.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.teaser { display: block; }
.teaser .media { aspect-ratio: 4 / 5; margin-bottom: 1.5rem; }
.teaser .region { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-muted); }
.teaser .h3 { margin-top: .5rem; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } .teaser .media { aspect-ratio: 3 / 2; } }

/* Image placeholder caption for guide pages */
.photo-note { font-size: .8125rem; color: var(--ink-muted); }

/* Residence prev/next */
.res-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.res-pager a { display: grid; gap: .5rem; padding: 2.5rem var(--gutter); transition: background .4s; }
.res-pager a:hover { background: var(--limestone); }
.res-pager a + a { border-left: 1px solid var(--line); text-align: right; }
.res-pager .h4 { color: var(--ink-muted); margin: 0; }
.res-pager .h3 { margin: 0; }

/* Map */
.map { position: relative; aspect-ratio: 4 / 3; background: var(--limestone); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.95); }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 2rem; text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(48,45,41,.12) 0 3px, transparent 4px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(48,45,41,.06) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(48,45,41,.06) 47px 48px),
    linear-gradient(160deg, var(--limestone), var(--sand));
}
.map-consent .icon { width: 2rem; height: 2rem; }
.map-consent p { margin: 0; max-width: 34ch; font-size: .9rem; }
.coords { font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; color: var(--ink-muted); }

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; padding: .75rem 0; font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.3 var(--serif); overflow-wrap: anywhere; }
.contact-list .icon { color: var(--taupe); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 76px; padding: 1rem 0; cursor: pointer; font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.75rem; max-width: 70ch; }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.gallery-filters button { min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--line); border-radius: 999px; font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.gallery-filters button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--bone); }
.gallery-grid { columns: 3 320px; column-gap: 1rem; }
.gallery-item { display: block; width: 100%; margin: 0 0 1rem; break-inside: avoid; text-align: left; cursor: zoom-in; }
.gallery-item .media { aspect-ratio: auto; }
.gallery-item .media img { height: auto; }
.gallery-item .cap { display: block; padding: .7rem 0 .2rem; font-size: .85rem; color: var(--ink-muted); }
.gallery-item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: var(--z-dialog); width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--charcoal); color: var(--bone); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(48, 45, 41, .9); }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); gap: 1rem; }
.lb-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 48px; min-height: 48px; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.lb-count { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; }

/* Reserve layout */
.reserve-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.reserve-aside { position: sticky; top: 110px; }
.reserve-aside .media { aspect-ratio: 4 / 3; margin-bottom: 2rem; }
@media (max-width: 960px) { .reserve-layout { grid-template-columns: 1fr; } .reserve-aside { position: static; } }
#lodgify-widget:empty { display: none; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 18ch; margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--bone); padding: clamp(4.5rem, 9vw, 7rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-light); }
.footer-brand .brand-logo { width: 220px; }
.footer-brand .brand-logo .logo-light { display: block; }
.footer-brand .brand-logo .logo-dark { display: none; }
.footer-brand .statement { margin-top: 1.75rem; font: 400 1.35rem/1.4 var(--serif); font-style: italic; }
.footer-col h2 { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; margin: 0 0 1.25rem; color: rgba(244, 240, 233, .7); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: .95rem; overflow-wrap: anywhere; transition: opacity .3s; }
.footer-col a:hover { opacity: .7; }
.footer-col address { font-style: normal; font-size: .95rem; line-height: 1.7; margin-bottom: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.75rem; font-size: .8125rem; color: rgba(244, 240, 233, .72); }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: .12s; }
html.js .reveal-d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Stronger scrim for busy hero imagery (e.g. Crete from space) */
.hero--dim::before {
  background:
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(48,45,41,.55), rgba(48,45,41,0) 100%),
    linear-gradient(180deg, rgba(48,45,41,.62) 0%, rgba(48,45,41,.3) 35%, rgba(48,45,41,.3) 65%, rgba(48,45,41,.7) 100%);
}

/* Social media */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.social-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 44px; transition: opacity .3s; }
.social-link:hover { opacity: .7; }
.social-link .icon { width: 1.25rem; height: 1.25rem; }
.footer-col .social-links { display: grid; gap: .1rem; }
.footer-col .social-link { min-height: 36px; font-size: .95rem; }
.footer-col h2.follow { margin-top: 2rem; }
.mobile-menu-foot .social-links { gap: .5rem; margin-top: .5rem; }
.mobile-menu-foot .social-link { justify-content: center; }

/* Charcoal reserve band directly above the (charcoal) footer:
   equal space above and below the content, then a hairline divider instead of a double gap */
main > .cta-band.bg-charcoal:last-child { padding-block: clamp(4.5rem, 9vw, 7rem); }
main:has(> .cta-band.bg-charcoal:last-child) + .site-footer { padding-top: 0; }
main:has(> .cta-band.bg-charcoal:last-child) + .site-footer .footer-top {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}
.cta-band .eyebrow { display: flex; justify-content: center; }

/* Overlapping image pairs: the small image covers the large one's bottom-right corner,
   so the large image carries its visualisation label in the top-left corner instead. */
.split-media > .media:first-child .vis-tag { top: .9rem; left: .9rem; right: auto; bottom: auto; }
.vis-tag { white-space: nowrap; }
@media (max-width: 560px) { .vis-tag { font-size: .5625rem; letter-spacing: .14em; padding: .4rem .55rem; } }
@media (max-width: 560px) {
  .split-media .media + .media { width: 80%; margin-top: -14%; }
  .split-media .media + .media .vis-tag { right: .6rem; bottom: .6rem; }
}

/* Figure / spec strips: one equal gap above and below instead of stacked section padding */
.stats-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section:not(.bg-limestone):not(.bg-charcoal):has(+ .stats-band) { padding-bottom: 0; }
.stats-band + .section:not(.bg-limestone):not(.bg-charcoal) { padding-top: 0; }
.section:has(+ .stats-band) .container > :nth-last-child(-n+2) { margin-bottom: 0; }
.specs { margin: 0; }

/* Experience hero: a light, crisp shadow on the lettering only */
.hero--shadow .display, .hero--shadow .h1, .hero--shadow .lead, .hero--shadow .eyebrow {
  text-shadow: 0 1px 2px rgba(48, 45, 41, .55), 0 2px 8px rgba(48, 45, 41, .25);
}

/* Home: booking bar fully visible on first load (tablet & desktop) */
@media (min-width: 861px) {
  :root { --bar-h: 100px; --bar-gap: clamp(1.5rem, 4vh, 2.75rem); }
  .booking-bar { margin-top: calc(-1 * (var(--bar-h) + var(--bar-gap))); }
  .hero:has(+ .booking-bar) { padding-bottom: calc(var(--bar-h) + var(--bar-gap) + 6.5rem); }
  .hero:has(+ .booking-bar) .scroll-cue { bottom: calc(var(--bar-h) + var(--bar-gap) + 1.5rem); }
}
@media (min-width: 861px) and (max-height: 780px) {
  .hero:has(+ .booking-bar) { padding-top: calc(var(--header-h) + .5rem); padding-bottom: calc(var(--bar-h) + var(--bar-gap) + 5rem); }
  .hero:has(+ .booking-bar) .display { font-size: clamp(2.75rem, 11vh, 6rem); }
  .hero:has(+ .booking-bar) .eyebrow { margin-bottom: 1.1rem; }
  .hero:has(+ .booking-bar) .hero-sub { margin-top: 1.1rem; }
  .hero:has(+ .booking-bar) .scroll-cue::after { height: 36px; }
}

/* Six-item grid: always full, symmetrical rows (3 × 2, or 2 × 3 on phones) */
.amenities--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .amenities--3 { grid-template-columns: repeat(2, 1fr); } }

/* Secondary line inside an amenity tile (e.g. parking + EV charging) */
.amenities .sub { display: block; margin-top: .4rem; font: 400 .8125rem/1.45 var(--sans); color: var(--ink-muted); }

/* Header over a hero image: drop the whole bar (logo + menu) by the frame inset,
   so the logo's accent clears the thin frame line. Solid header is unchanged. */
body:not(.header-solid) .site-header:not(.is-solid) .header-inner {
  height: calc(var(--header-h) + var(--frame));
  padding-top: var(--frame);
}
@media (max-width: 1380px) {
  body:not(.header-solid) .site-header:not(.is-solid) .header-inner { height: calc(84px + var(--frame)); }
}
.hero { padding-top: calc(var(--header-h) + var(--frame) + 2rem); }

/* Reserve: the primary action in the navigation, outlined */
.nav a.nav-cta {
  padding: 0 1.4rem;
  border: 1px solid currentColor;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav a.nav-cta::after { display: none; }
.site-header:not(.is-solid) .nav a.nav-cta:hover,
body:not(.header-solid) .site-header:not(.is-solid) .nav a.nav-cta[aria-current="page"] { background: var(--bone); border-color: var(--bone); color: var(--charcoal); }
.site-header.is-solid .nav a.nav-cta:hover, body.header-solid .site-header .nav a.nav-cta:hover,
.site-header.is-solid .nav a.nav-cta[aria-current="page"], body.header-solid .site-header .nav a.nav-cta[aria-current="page"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--bone); }

/* Phones: visualisation labels sit bottom-left, slightly smaller, and wrap instead of being cut off */
@media (max-width: 560px) {
  .media > .vis-tag {
    left: .5rem; right: auto; bottom: .5rem; top: auto;
    max-width: calc(100% - 1rem);
    white-space: normal; line-height: 1.35;
    font-size: .5rem; letter-spacing: .12em; padding: .35rem .5rem;
  }
  /* exceptions that keep their own corner */
  .split-media > .media:first-child > .vis-tag { top: .5rem; bottom: auto; }
  .res-card .media > .vis-tag { top: 1.2rem; bottom: auto; left: auto; right: 1.2rem; }
}

/* Date fields: wrapper + iOS-only placeholder that mirrors the desktop "dd/mm/yyyy" hint */
.date-wrap { position: relative; display: block; }
.date-ph { display: none; }
html.ios .date-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font: 400 1.05rem/1.4 var(--sans); color: var(--ink); pointer-events: none;
}
html.ios .date-ph .icon { width: 1.15rem; height: 1.15rem; stroke-width: 1.5; }
html.ios .date-wrap.has-value .date-ph { display: none; }
html.ios .date-wrap:not(.has-value) input[type="date"] { color: transparent; }
html.ios input[type="date"] { text-align: left; }
html.ios input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* Hero images: keep the visualisation label inside the thin frame, equally spaced from both lines */
.hero > .media > .vis-tag {
  right: calc(var(--frame) + .75rem); bottom: calc(var(--frame) + .75rem); left: auto; top: auto;
}
@media (max-width: 560px) {
  .hero > .media > .vis-tag {
    left: calc(var(--frame) + .5rem); bottom: calc(var(--frame) + .5rem); right: auto;
    max-width: calc(100% - 2 * var(--frame) - 1rem);
  }
}
@media (min-width: 861px) {
  /* Home: booking bar covers the hero's bottom edge — lift the label just above it, still aligned to the frame's right line */
  .hero:has(+ .booking-bar) > .media > .vis-tag { bottom: calc(var(--bar-h) + var(--bar-gap) + .75rem); }
}

/* Footer on phones: centred brand, two link columns side by side, centred contact & socials */
@media (max-width: 760px) {
  .site-footer { padding: 3.5rem 0 1.75rem; text-align: center; }
  .footer-top {
    grid-template-columns: 1fr 1fr; gap: 2.5rem 1.25rem;
    padding-bottom: 2.5rem;
  }
  .footer-brand, .footer-col:nth-last-child(2) { grid-column: 1 / -1; }
  .footer-brand .brand-logo { width: 190px; margin-inline: auto; }
  .footer-brand > a { display: block !important; }
  .footer-brand .statement { margin-top: 1rem; font-size: 1.2rem; }
  .footer-col h2 { margin-bottom: .75rem; }
  .footer-col ul { justify-items: center; }
  .footer-col a { min-height: 32px; font-size: .9rem; }
  .footer-col address { font-size: .9rem; }
  .footer-col .social-links { display: flex; justify-content: center; gap: .25rem 1.5rem; }
  .footer-col h2.follow { margin-top: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: center; gap: .6rem; padding-top: 1.5rem; font-size: .75rem; }
}

/* Footer: expandable "The Residences" */
.foot-sub-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 36px;
  font-size: .95rem; color: inherit; transition: opacity .3s;
}
@media (hover: hover) { .foot-sub-toggle:hover { opacity: .7; } }
.foot-sub-toggle .icon { width: .85rem; height: .85rem; stroke-width: 1.5; opacity: .8; transition: transform .4s var(--ease); }
.foot-sub.is-open .foot-sub-toggle .icon { transform: rotate(180deg); }
.foot-sub-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.foot-sub.is-open .foot-sub-panel { grid-template-rows: 1fr; }
.foot-sub-panel > ul { overflow: hidden; min-height: 0; list-style: none; margin: 0; padding: 0 0 0 .9rem; display: grid; gap: 0; border-left: 1px solid var(--line-light); }
.foot-sub.is-open .foot-sub-panel > ul { margin: .25rem 0 .4rem; }
.foot-sub-panel a { min-height: 32px; font-size: .875rem; opacity: .82; }
.footer-col a:not(.social-link) .icon { width: .8rem; height: .8rem; margin-left: .35rem; stroke-width: 1.5; }
@media (max-width: 760px) {
  .foot-sub-toggle { font-size: .9rem; min-height: 32px; }
  .foot-sub-panel > ul { padding: 0; border-left: 0; justify-items: center; }
  .foot-sub.is-open .foot-sub-panel > ul { margin: .1rem auto .35rem; padding: .35rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); width: 70%; }
  .foot-sub-panel a { font-size: .85rem; }
}

/* Footer: email & telephone marked with fine line icons */
.footer-col a.contact-link { gap: .6rem; }
.footer-col a.contact-link .icon { width: 1rem; height: 1rem; margin: 0; stroke-width: 1.3; color: var(--sand); flex: none; }

/* Line break used only on phones (e.g. footer construction note) */
.m-br { display: none; }
@media (max-width: 760px) { .m-br { display: inline; } .footer-bottom p { line-height: 1.7; } }

/* Phones: when the label must wrap (narrow image), shrink its box to the text — no empty background on the right */
@media (max-width: 560px) {
  .media { container-type: inline-size; }
  @container (max-width: 250px) {
    .vis-tag { width: min-content; }
  }
}

/* Phone menu: collapsible "The Residences" */
.m-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px;
  font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.1 var(--serif); color: inherit; text-align: left;
}
.m-sub-toggle .icon { width: 1.1rem; height: 1.1rem; stroke-width: 1.25; opacity: .8; transition: transform .4s var(--ease); }
.m-sub.is-open .m-sub-toggle .icon { transform: rotate(180deg); }
.m-sub-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.m-sub.is-open .m-sub-panel { grid-template-rows: 1fr; }
.m-sub-panel > .sub { overflow: hidden; min-height: 0; margin: 0 !important; }
.m-sub.is-open .m-sub-panel > .sub { padding-bottom: .9rem; }
/* Phone menu: chevron sits right after "The Residences" (full row stays tappable) */
.m-sub-toggle { justify-content: flex-start; gap: .7rem; }
.m-sub-toggle .icon { width: 1.25rem; height: 1.25rem; stroke-width: 1.4; opacity: .9; margin-top: .2em; }

/* Phone menu: Reserve as an outlined button (mirrors the outlined RESERVE on desktop) */
.mobile-nav > li.m-cta-item { border-bottom: 0; margin-top: 2rem; }
.mobile-nav a.m-cta {
  justify-content: center; min-height: 58px;
  border: 1px solid var(--bone);
  font: 500 .8125rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; padding-left: .32em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.mobile-nav a.m-cta:active, .mobile-nav a.m-cta[aria-current="page"] { background: var(--bone); color: var(--charcoal); }
@media (hover: hover) { .mobile-nav a.m-cta:hover { background: var(--bone); color: var(--charcoal); } }
/* Phone menu Reserve: solid cream with charcoal text (inverts when pressed) */
.mobile-nav a.m-cta { background: var(--bone); color: var(--charcoal); }
.mobile-nav a.m-cta:active { background: transparent; color: var(--bone); }
@media (hover: hover) { .mobile-nav a.m-cta:hover { background: transparent; color: var(--bone); } }
.mobile-nav a.m-cta[aria-current="page"] { background: var(--bone); color: var(--charcoal); }
@media (max-width: 560px) {
  /* small overlapping image: drop the old right anchor so the label box hugs its text */
  .split-media .media + .media > .vis-tag { right: auto; }
}

/* Accessible-by-design note — equal space above and below at every width (no stacked section padding above) */
.section:has(+ .section--tight .note) { padding-bottom: 0; }
@media (max-width: 560px) {
  /* large image of an overlapping pair: label equally inset from top and left */
  .split-media > .media:first-child > .vis-tag { top: .5rem; left: .5rem; }
}
@media (max-width: 560px) {
  .split-media .media + .media > .vis-tag { bottom: .5rem; left: .5rem; }
}

/* German (DE): English elements are reused and rewritten by script, Greek hidden */
html[data-lang="de"] .el { display: none !important; }
html.i18n-pending body { visibility: hidden; }
/* Three-way language switch: keep it compact on phones */
@media (max-width: 560px) {
  .brand-logo { width: 122px; }
  .lang-switch { letter-spacing: .12em; }
  .lang-switch button { min-width: 26px; letter-spacing: .12em; }
  .lang-switch .sep { margin: 0 .05rem; }
}

/* Compact three-way language switch on desktop */
.lang-switch button { min-width: 28px; letter-spacing: .14em; }
.lang-switch .sep { margin: 0 .1rem; }
/* German menu labels run longer: slightly tighter tracking and spacing in the top bar */
html[data-lang="de"] .nav a, html[data-lang="de"] .nav .sub-trigger { letter-spacing: .16em; }
html[data-lang="de"] .nav { gap: clamp(1.1rem, 1.7vw, 2rem); }

/* Header language selector: current code + chevron, opens a small list */
.lang-select { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .25rem;
  font: 500 .75rem/1 var(--sans); letter-spacing: .22em;
}
.lang-current .icon { width: .8rem; height: .8rem; stroke-width: 1.5; transition: transform .3s var(--ease); }
.lang-select.is-open .lang-current .icon { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .4rem); min-width: 170px; z-index: 5;
  list-style: none; margin: 0; padding: .4rem 0;
  background: var(--bone); color: var(--ink); box-shadow: 0 18px 50px rgba(48, 45, 41, .16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang-select.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 44px; padding: 0 1.2rem;
  text-align: left; font: 400 .95rem/1.2 var(--sans); color: inherit; transition: background .2s;
}
.lang-menu button .code { min-width: 1.6rem; font: 500 .7rem/1 var(--sans); letter-spacing: .2em; color: var(--ink-muted); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--limestone); }
.lang-menu button[aria-pressed="true"] { font-weight: 500; }
.lang-menu button[aria-pressed="true"] .code { color: var(--ink); }

/* Russian (RU): same overlay approach as German */
html[data-lang="ru"] .el { display: none !important; }
html[data-lang="ru"] .nav a, html[data-lang="ru"] .nav .sub-trigger { letter-spacing: .14em; }
html[data-lang="ru"] .nav { gap: clamp(1.1rem, 1.7vw, 2rem); }

/* Discover Crete slider (home): arrows on desktop, swipe on touch */
.carousel { position: relative; --gap: clamp(1rem, 2.5vw, 2rem); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
  padding-block: 2.5rem; margin-block: -2.5rem;   /* room for the turned cards so their near edge is never clipped */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .teaser { min-width: 0; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.carousel-track:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 6px; }
.carousel-nav { display: flex; align-items: center; gap: .75rem; margin-top: clamp(2rem, 4vw, 3rem); }
.carousel-btn {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--charcoal); border: 1px solid rgba(48, 45, 41, .35); cursor: pointer;
  transition: opacity .4s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.carousel-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--bone); }
.carousel-btn:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 3px; }
.carousel-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--charcoal); border-color: rgba(48, 45, 41, .35); }
.carousel-progress { position: relative; flex: 1; height: 1px; margin-right: 1.25rem; background: var(--line); overflow: hidden; }
.carousel-progress > span { position: absolute; inset: 0 auto 0 0; width: var(--bar, 27%); background: var(--charcoal); transform: translateX(var(--bar-x, 0)); }
@media (max-width: 860px) {
  /* bleed to the screen edge so the next card peeks in */
  .carousel-track { grid-auto-columns: 80%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .carousel .teaser .media { aspect-ratio: 4 / 5; }
  .carousel-btn { display: none; }
  .carousel-progress { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

/* Lightbox: a sliding strip of photos driven by touch (Photos-style) */
.lightbox::backdrop { background: transparent; }
.lb-stage { position: relative; padding: 0; overflow: hidden; touch-action: none; }
.lb-track { position: absolute; inset: 0; will-change: transform; }
.lb-slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.lb-slide img { transform-origin: 50% 50%; }
.lb-stage { cursor: zoom-in; }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-panning { cursor: grabbing; }
/* Lightbox on tablets/desktop: fit the whole photo inside the frame (phones untouched) */
@media (min-width: 761px) {
  .lb-slide { grid-template-rows: minmax(0, 100%); grid-template-columns: minmax(0, 100%); padding-block: 1rem; }
  .lb-slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
}

/* Cursor (desktop only, added by site.js): fine ring + dot in the palette; Bone over dark areas, Taupe over light */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="date"]),
html.has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); --c: var(--taupe); }
.cursor.is-visible { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor.is-dark { --c: var(--bone); }
.cursor-ring, .cursor-dot, .cursor-splash { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-ring > span {
  display: block; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid var(--c); background: transparent;
  transition: transform .55s var(--ease), background-color .45s var(--ease), border-color .35s var(--ease), -webkit-backdrop-filter .45s var(--ease), backdrop-filter .45s var(--ease);
}
.cursor.is-hover .cursor-ring > span {
  transform: scale(1.7); background: rgba(145, 132, 119, .05);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.cursor.is-dark.is-hover .cursor-ring > span { background: rgba(244, 240, 233, .06); }
.cursor.is-down .cursor-ring > span { transform: scale(.82); transition-duration: .2s; }
.cursor.is-hover.is-down .cursor-ring > span { transform: scale(1.5); }
.cursor-dot > span { display: block; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--c); transition: background-color .35s var(--ease), transform .45s var(--ease); }
.cursor.is-hover .cursor-dot > span { transform: scale(.8); }
.cursor-splash { display: block; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--c); }

/* Reading progress hairline (added by site.js): Sand into Taupe with a faint warm glow */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: calc(var(--z-header) + 1); pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.scroll-progress.is-active { opacity: 1; }
.scroll-progress > span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(196, 181, 163, .35), var(--sand) 35%, var(--taupe));
  box-shadow: 0 0 8px rgba(196, 181, 163, .55);
  will-change: transform;
}
body.menu-open .scroll-progress { opacity: 0; }
/* Desktop: the slider row runs to the screen edges (cards drift off-screen as in a gallery wall),
   while the first card still lines up with the heading */
@media (min-width: 861px) {
  section:has(> .container > .carousel) { overflow-x: clip; }
  .carousel-track { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc(50vw - 50%); grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 2 * var(--gap)) / 3); }
}

/* Mobile menu: calmer scale (links ~20% smaller, tighter rows) */
.mobile-nav { margin: 2rem 0 1.75rem; }
.mobile-nav a { min-height: 54px; font-size: clamp(1.35rem, 5vw, 1.75rem); }
.mobile-nav .sub a { min-height: 42px; font-size: 1.05rem; }
.m-sub-toggle .icon { width: 1.05rem; height: 1.05rem; margin-top: .15em; }
.mobile-nav > li.m-cta-item { margin-top: 1.75rem; }
.mobile-nav a.m-cta { min-height: 52px; font-size: .75rem; }
.m-sub-toggle { min-height: 54px; font-size: clamp(1.35rem, 5vw, 1.75rem); gap: .6rem; }

/* Home residences (desktop with a mouse): the card under the pointer gently comes forward, the others soften into a blur */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  html.js .res-cards .res-card.is-in, html:not(.js) .res-cards .res-card {
    transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease), box-shadow .8s var(--ease);
    transition-delay: 0s; will-change: transform, filter;
  }
  html.js .res-cards .res-card.is-in:hover, html:not(.js) .res-cards .res-card:hover {
    transform: scale(1.035); z-index: 2; box-shadow: 0 34px 60px -34px rgba(48, 45, 41, .55);
  }
  html.js .res-cards:has(.res-card:hover) .res-card.is-in:not(:hover),
  html:not(.js) .res-cards:has(.res-card:hover) .res-card:not(:hover) {
    filter: blur(3px) saturate(.92); opacity: .82; transform: scale(.985);
  }
}

/* Cursor as the EVDÍA monogram E (replaces the ring): Charcoal over light areas, Bone over dark; dots keep their splash */
.cursor { --c: var(--charcoal); --splash: var(--taupe); }
.cursor.is-dark { --c: var(--bone); --splash: var(--bone); }
.cursor-dot { display: none; }
.cursor-e > span {
  width: 26px; height: 29px; margin: -14.5px 0 0 -13px; border: 0; border-radius: 0;
  background: var(--c);
  -webkit-mask: url("../images/cursor-e.png") center / contain no-repeat; mask: url("../images/cursor-e.png") center / contain no-repeat;
  transition: transform .45s var(--ease), background-color .35s var(--ease), opacity .35s var(--ease);
}
.cursor.is-hover .cursor-e > span { transform: scale(1.35); background: var(--c); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cursor:not(.is-dark).is-hover .cursor-e > span { background: var(--taupe); }
.cursor.is-down .cursor-e > span { transform: scale(.82); transition-duration: .18s; }
.cursor.is-hover.is-down .cursor-e > span { transform: scale(1.15); }
.cursor-splash { background: var(--splash); }
.cursor.is-dark.is-hover .cursor-e > span { background: var(--bone); }
/* A fine circle around the E (same colour, hairline) */
.cursor-e > span { width: 22px; height: 25px; margin: -12.5px 0 0 -11px; }
.cursor-e::before {
  content: ""; position: absolute; left: 0; top: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 1px solid var(--c); border-radius: 50%; opacity: .85;
  transition: transform .55s var(--ease), border-color .35s var(--ease), opacity .35s var(--ease);
}
.cursor.is-hover .cursor-e::before { transform: scale(1.35); opacity: 1; }
.cursor:not(.is-dark).is-hover .cursor-e::before { border-color: var(--taupe); }
.cursor.is-hover .cursor-e > span { transform: scale(1.12); }
.cursor.is-down .cursor-e::before { transform: scale(.85); transition-duration: .2s; }
.cursor.is-hover.is-down .cursor-e::before { transform: scale(1.18); }
.cursor.is-hover.is-down .cursor-e > span { transform: scale(1); }
/* The circle draws itself: a fine line traces from the top round to full, softly fades, and begins again */
.cursor-e::before { content: none; }
.cursor-orbit {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; overflow: visible;
  transform: rotate(-90deg); transition: transform .55s var(--ease);
}
.cursor-orbit circle { fill: none; stroke: var(--c); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .35s var(--ease); }
.cursor-orbit .orbit-track { opacity: .22; }
.cursor-orbit .orbit-draw { stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; animation: orbitDraw 2.8s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes orbitDraw {
  0%   { stroke-dashoffset: 100; opacity: 1; }
  78%  { stroke-dashoffset: 0;   opacity: 1; }
  92%  { stroke-dashoffset: 0;   opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}
.cursor.is-hover .cursor-orbit { transform: rotate(-90deg) scale(1.35); }
.cursor:not(.is-dark).is-hover .cursor-orbit circle { stroke: var(--taupe); }
.cursor.is-down .cursor-orbit { transform: rotate(-90deg) scale(.85); transition-duration: .2s; }
.cursor.is-hover.is-down .cursor-orbit { transform: rotate(-90deg) scale(1.18); }
.cursor-orbit { max-width: none; max-height: none; display: block; }
/* The line chases its tail: it travels round the E while stretching and gathering, never closing the circle */
.cursor-orbit .orbit-draw {
  stroke-dasharray: 1 150; stroke-dashoffset: 0; opacity: 1;
  transform-box: view-box; transform-origin: 50% 50%;
  animation: orbitSpin 2.4s linear infinite, orbitChase 1.8s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitChase {
  0%   { stroke-dasharray: 1 150;  stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 72 150; stroke-dashoffset: -14; }
  100% { stroke-dasharray: 72 150; stroke-dashoffset: -98; }
}
/* Calmer chase: the line glides round at an even pace (always forward, seamless loop)
   while its length breathes slowly in and out; the head never reaches the tail */
.cursor-orbit .orbit-draw {
  transform: none; stroke-dasharray: 20 80; stroke-dashoffset: 0;
  animation: orbitGlide 7s linear infinite, orbitBreathe 4.5s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
@keyframes orbitGlide { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes orbitBreathe { from { stroke-dasharray: 20 80; } to { stroke-dasharray: 55 45; } }
/* Orbit line drawn by script in six soft layers: strongest at the head, fading towards the tail */
.cursor-orbit .orbit-draw { animation: none; opacity: .3; stroke-linecap: butt; }
.cursor-orbit .orbit-track { opacity: .14; }
/* Orbit line as a true gradient along the circle: transparent at the tail, full tone at the head */
.cursor-arc {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: conic-gradient(from var(--a0, 0deg), transparent 0deg, var(--c) var(--len, 90deg), transparent calc(var(--len, 90deg) + .5deg));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.35px), #000 calc(100% - .65px), transparent calc(100% - .25px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.35px), #000 calc(100% - .65px), transparent calc(100% - .25px));
  transition: transform .55s var(--ease);
}
.cursor.is-hover .cursor-arc { transform: scale(1.35); }
.cursor:not(.is-dark).is-hover .cursor-arc { --c: var(--taupe); }
.cursor.is-down .cursor-arc { transform: scale(.85); transition-duration: .2s; }
.cursor.is-hover.is-down .cursor-arc { transform: scale(1.18); }
/* A slow, soft sheen of light passes diagonally through the E, then rests before the next pass */
.cursor { --ec: var(--charcoal); --es: var(--taupe); }
.cursor.is-dark { --ec: var(--bone); --es: var(--sand); }
.cursor:not(.is-dark).is-hover { --ec: var(--taupe); --es: var(--sand); }
.cursor .cursor-e > span,
.cursor.is-hover .cursor-e > span,
.cursor:not(.is-dark).is-hover .cursor-e > span,
.cursor.is-dark.is-hover .cursor-e > span {
  background: linear-gradient(115deg, var(--ec) 0%, var(--ec) 38%, var(--es) 50%, var(--ec) 62%, var(--ec) 100%);
  background-size: 320% 100%;
  animation: eSheen 7.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes eSheen {
  0%   { background-position: 100% 0; }
  60%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}
/* Residence "A closer look" photos open in the photo viewer */
[data-lb-item] { cursor: zoom-in; }
[data-lb-item]:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 4px; }

/* Residence "A closer look" (desktop with a mouse): the photo under the pointer gently comes forward,
   staying within the gap so its neighbours remain fully visible */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .mosaic [data-lb-item] {
    position: relative; transform: translateZ(0);
    transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  }
  .mosaic [data-lb-item]:hover {
    transform: scale(1.02); z-index: 2;
    box-shadow: 0 26px 50px -30px rgba(48, 45, 41, .5);
  }
  .mosaic [data-lb-item]:hover img { transform: scale(1.03); }
}

/* Residence photo pair: one fine frame around the group, with a line that glides round chasing its tail
   (true gradient from transparent tail to Taupe head) over a barely-there full outline */
.orbit-frame {
  --g: clamp(14px, 1.6vw, 22px);
  position: absolute; z-index: 0; pointer-events: none;
  top: calc(-1 * var(--g)); left: calc(-1 * var(--g));
  right: calc(-6% - var(--g)); bottom: calc(-10% - var(--g));
  padding: 1px;
  background:
    conic-gradient(from var(--a0, 0deg), transparent 0deg, var(--taupe) var(--len, 120deg), transparent calc(var(--len, 120deg) + .4deg)),
    linear-gradient(rgba(145, 132, 119, .16), rgba(145, 132, 119, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.split-media[data-orbit-frame] > .media { z-index: 1; }
@media (max-width: 900px) { .orbit-frame { right: calc(-1 * var(--g)); bottom: calc(-1 * var(--g)); --g: 12px; } }
/* Photo viewer opening: transparent until the photo starts its flight from the page */
.lightbox.is-opening { background: transparent; }
.lightbox.is-opening .lb-top, .lightbox.is-opening .lb-bottom, .lightbox.is-opening .lb-slide img { opacity: 0; }
.lb-slide img { will-change: transform, clip-path; }

/* Residence pages: the Reserve band sits a little tighter (about a fifth less space above and below) */
.cta-band--snug { padding-block: clamp(4.25rem, 9vw, 7.5rem); }

/* Residence number written in by hand: the pen traces each digit's outline, then the ink fills */
.hw { position: relative; display: inline-block; }
.hw-txt { opacity: 0; }
.hw-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hw svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hw svg text {
  font: inherit; letter-spacing: inherit;
  fill: currentColor; fill-opacity: 0;
  stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--L, 400) var(--L, 400); stroke-dashoffset: var(--L, 400);
}
.hw.is-writing svg text {
  animation: hwDraw 1.7s cubic-bezier(.45, .05, .35, 1) var(--d, 0s) forwards,
             hwInk 1s ease calc(var(--d, 0s) + 1.15s) forwards;
}
.hw.is-done svg text { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
@keyframes hwDraw { to { stroke-dashoffset: 0; } }
@keyframes hwInk { to { fill-opacity: 1; stroke-opacity: 0; } }
.hw svg { -webkit-user-select: none; user-select: none; }

/* "A closer look" hover frame (desktop): fine gliding line around the photo under the pointer */
.mosaic[data-gallery] { position: relative; }
.orbit-frame--hover {
  right: auto; bottom: auto; z-index: 3; opacity: 0;
  transition: opacity .6s var(--ease);
}
.orbit-frame--hover.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  /* very subtle lift */
  .mosaic [data-lb-item]:hover { box-shadow: 0 16px 34px -26px rgba(48, 45, 41, .22); }
}
@media (max-width: 860px) { .orbit-frame--hover { display: none; } }

/* Photo viewer buttons: balanced padding so the focus frame sits evenly around icon and label */
.lb-btn { padding: .75rem 1.1rem; }
.lb-btn .en, .lb-btn .el { margin-right: -.22em; }            /* cancel the trailing letter-space so both sides match */
.lightbox .lb-btn:focus-visible { outline: 1px solid rgba(244, 240, 233, .6); outline-offset: 0; }

/* Menu underline: a slower, softer glide */
.nav > a::after, .has-sub > a::after { transition: transform 1.2s cubic-bezier(.4, 0, .15, 1); }

/* Language menu, iPhone-style: grows from the button with a gentle spring, frosted, items cascade in; closes quickly */
.lang-menu {
  transform-origin: top right;
  background: rgba(244, 240, 233, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; visibility: hidden; transform: scale(.86) translateY(-6px); filter: blur(3px);
  transition: opacity .18s ease-in, transform .2s ease-in, filter .2s ease-in, visibility 0s linear .2s;   /* closing: quick */
}
.lang-select.is-open .lang-menu {
  opacity: 1; visibility: visible; transform: none; filter: blur(0);
  transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s,
              transform .6s cubic-bezier(.32, .72, 0, 1);                                               /* opening: soft */
}
@supports (transition-timing-function: linear(0, 1)) {
  .lang-select.is-open .lang-menu {
    transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s,
                transform .62s linear(0, .12 5%, .36 10%, .62 16%, .82 22%, .95 29%, 1.02 37%, 1.035 45%, 1.03 53%, 1.015 63%, 1.004 75%, 1);
  }
}
.lang-menu li { opacity: 0; transform: translateY(-4px); transition: opacity .12s ease-in, transform .12s ease-in; }
.lang-select.is-open .lang-menu li { opacity: 1; transform: none; transition: opacity .3s ease-out, transform .45s cubic-bezier(.32, .72, 0, 1); }
.lang-select.is-open .lang-menu li:nth-child(1) { transition-delay: .06s; }
.lang-select.is-open .lang-menu li:nth-child(2) { transition-delay: .1s; }
.lang-select.is-open .lang-menu li:nth-child(3) { transition-delay: .14s; }
.lang-select.is-open .lang-menu li:nth-child(4) { transition-delay: .18s; }
.lang-current:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lang-menu, .lang-select.is-open .lang-menu, .lang-menu li { transition: opacity .15s linear !important; transform: none !important; filter: none !important; } }

/* ---------- EVDÍA calendar (desktop): replaces the browser's own date picker ---------- */
html.cal-on input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
html.cal-on .date-wrap input[type="date"] { padding-right: 2.6rem; }
.cal-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); opacity: .75;
  transition: opacity .3s var(--ease);
}
.cal-btn:hover, .date-wrap.cal-open .cal-btn { opacity: 1; }
.cal-btn .icon { width: 1.15rem; height: 1.15rem; stroke-width: 1.25; }
.cal {
  position: absolute; left: 0; top: calc(100% + .7rem); z-index: 60; width: 312px;
  padding: 1.15rem 1.1rem 1rem; color: var(--ink); text-align: left;
  background: rgba(244, 240, 233, .92);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(48, 45, 41, .08); box-shadow: 0 26px 60px rgba(48, 45, 41, .18);
  transform-origin: top left;
  opacity: 0; visibility: hidden; transform: scale(.86) translateY(-6px); filter: blur(3px);
  transition: opacity .18s ease-in, transform .2s ease-in, filter .2s ease-in, visibility 0s linear .2s;
}
.cal.is-open {
  opacity: 1; visibility: visible; transform: none; filter: blur(0);
  transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s, transform .6s cubic-bezier(.32, .72, 0, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .cal.is-open {
    transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s,
                transform .62s linear(0, .12 5%, .36 10%, .62 16%, .82 22%, .95 29%, 1.02 37%, 1.035 45%, 1.03 53%, 1.015 63%, 1.004 75%, 1);
  }
}
.cal > * { opacity: 0; transform: translateY(-4px); transition: opacity .12s ease-in, transform .12s ease-in; }
.cal.is-open > * { opacity: 1; transform: none; transition: opacity .3s ease-out, transform .45s cubic-bezier(.32, .72, 0, 1); }
.cal.is-open > :nth-child(1) { transition-delay: .06s; }
.cal.is-open > :nth-child(2) { transition-delay: .1s; }
.cal.is-open > :nth-child(3) { transition-delay: .14s; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .2rem; }
.cal-title { margin: 0; font: 400 1.35rem/1.1 var(--serif); }
.cal-title span { color: var(--ink-muted); }
.cal-nav { display: flex; gap: .35rem; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(48, 45, 41, .22); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cal-nav button:hover:not(:disabled) { background: var(--charcoal); border-color: var(--charcoal); color: var(--bone); }
.cal-nav button:disabled { opacity: .3; }
.cal-nav .icon { width: .95rem; height: .95rem; stroke-width: 1.25; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin: 1rem 0 .35rem; }
.cal-week span { text-align: center; font: 500 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-day {
  height: 38px; display: grid; place-items: center; font: 400 .9rem/1 var(--sans); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cal-day:hover:not(:disabled):not(.is-selected) { background: rgba(196, 181, 163, .45); }
.cal-day:disabled { color: rgba(48, 45, 41, .24); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px rgba(145, 132, 119, .6); }
.cal-day.in-range { background: rgba(196, 181, 163, .3); }
.cal-day.is-end { background: rgba(196, 181, 163, .65); }
.cal-day.is-selected { background: var(--charcoal); color: var(--bone); }
.cal-day:focus-visible { outline: 1px solid var(--charcoal); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .cal, .cal.is-open, .cal > * { transition: opacity .15s linear !important; transform: none !important; filter: none !important; } }
.cal-day.is-end:disabled { color: var(--ink); }
/* Calendar opening upwards when there is not enough room below */
.cal.cal--up { top: auto; bottom: calc(100% + .7rem); transform-origin: bottom left; transform: scale(.86) translateY(6px); }
.cal.cal--up.is-open { transform: none; }
.cal.cal--up > * { transform: translateY(4px); }
.cal.cal--up.is-open > * { transform: none; }

/* ---------- EVDÍA dropdown panel (desktop): matches the calendar ---------- */
.pick-wrap { position: relative; display: block; }
.pick {
  position: absolute; left: 0; top: calc(100% + .7rem); z-index: 60; min-width: 100%; width: max-content; max-width: 340px;
  padding: .9rem; color: var(--ink); text-align: left;
  background: rgba(244, 240, 233, .92);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(48, 45, 41, .08); box-shadow: 0 26px 60px rgba(48, 45, 41, .18);
  transform-origin: top left;
  opacity: 0; visibility: hidden; transform: scale(.86) translateY(-6px); filter: blur(3px);
  transition: opacity .18s ease-in, transform .2s ease-in, filter .2s ease-in, visibility 0s linear .2s;
}
.pick.is-open {
  opacity: 1; visibility: visible; transform: none; filter: blur(0);
  transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s, transform .6s cubic-bezier(.32, .72, 0, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .pick.is-open {
    transition: opacity .28s ease-out, filter .35s ease-out, visibility 0s,
                transform .62s linear(0, .12 5%, .36 10%, .62 16%, .82 22%, .95 29%, 1.02 37%, 1.035 45%, 1.03 53%, 1.015 63%, 1.004 75%, 1);
  }
}
.pick.pick--up { top: auto; bottom: calc(100% + .7rem); transform-origin: bottom left; transform: scale(.86) translateY(6px); }
.pick.pick--up.is-open { transform: none; }
.pick-items { display: grid; gap: 2px; opacity: 0; transform: translateY(-4px); transition: opacity .12s ease-in, transform .12s ease-in; }
.pick.is-open .pick-items { opacity: 1; transform: none; transition: opacity .3s ease-out .08s, transform .45s cubic-bezier(.32, .72, 0, 1) .08s; }
.pick--grid { width: 236px; }
.pick--grid .pick-items { grid-template-columns: repeat(4, 1fr); }
.pick-opt {
  min-height: 44px; padding: 0 1rem; display: flex; align-items: center; justify-content: flex-start;
  font: 400 .95rem/1.2 var(--sans); color: var(--ink); text-align: left; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pick--grid .pick-opt { justify-content: center; padding: 0; min-height: 46px; }
.pick-opt:hover:not(:disabled):not(.is-selected) { background: rgba(196, 181, 163, .45); }
.pick-opt.is-selected { background: var(--charcoal); color: var(--bone); }
.pick-opt:disabled { color: rgba(48, 45, 41, .3); }
.pick-opt:focus-visible { outline: 1px solid var(--charcoal); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .pick, .pick.is-open, .pick-items { transition: opacity .15s linear !important; transform: none !important; filter: none !important; } }
/* Guests: a vertical list, one number per row */
.pick--num { width: auto; min-width: 100%; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pick--num .pick-opt { min-height: 40px; padding: 0 1.1rem; }

/* Hero images: a slow, even zoom-out (no rush at the start) */
.hero > .media img { animation: heroDrift 16s cubic-bezier(.2, .4, .3, 1) both; }

/* Phone menu, iPhone-style: grows from the menu button with a gentle spring, contents cascade in; closes quickly */
.mobile-menu {
  transform-origin: 2.4rem 2.4rem;
  opacity: 0; visibility: hidden; transform: scale(.9); filter: blur(4px);
  transition: opacity .2s ease-in, transform .24s ease-in, filter .22s ease-in, visibility 0s linear .24s;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: none; filter: blur(0);
  transition: opacity .3s ease-out, filter .4s ease-out, visibility 0s, transform .65s cubic-bezier(.32, .72, 0, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .mobile-menu.is-open {
    transition: opacity .3s ease-out, filter .4s ease-out, visibility 0s,
                transform .66s linear(0, .12 5%, .36 10%, .62 16%, .82 22%, .95 29%, 1.02 37%, 1.035 45%, 1.03 53%, 1.015 63%, 1.004 75%, 1);
  }
}
.mobile-menu-top, .mobile-nav > li, .mobile-menu-foot {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .14s ease-in, transform .14s ease-in;
}
.mobile-menu.is-open .mobile-menu-top, .mobile-menu.is-open .mobile-nav > li, .mobile-menu.is-open .mobile-menu-foot {
  opacity: 1; transform: none;
  transition: opacity .35s ease-out, transform .5s cubic-bezier(.32, .72, 0, 1);
}
.mobile-menu.is-open .mobile-menu-top { transition-delay: .05s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(1) { transition-delay: .09s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(2) { transition-delay: .125s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(3) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(4) { transition-delay: .195s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(5) { transition-delay: .23s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(6) { transition-delay: .265s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(7) { transition-delay: .3s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(8) { transition-delay: .335s; }
.mobile-menu.is-open .mobile-menu-foot { transition-delay: .37s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.is-open, .mobile-menu-top, .mobile-nav > li, .mobile-menu-foot { transition: opacity .2s linear !important; transform: none !important; filter: none !important; }
}

/* Home intro photos on phones: tapped photo lifts and enlarges in place; the page softly blurs behind */
.tap-veil {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(48, 45, 41, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color .5s ease, -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease;
}
.tap-veil.is-on { background: rgba(48, 45, 41, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tap-lift {
  position: fixed !important; z-index: 86; margin: 0 !important; aspect-ratio: auto !important;
  transform-origin: 0 0; transform: translate3d(0, 0, 0) scale(1);
  transition: transform .46s cubic-bezier(.32, .72, 0, 1), box-shadow .5s ease;
  box-shadow: 0 0 0 rgba(48, 45, 41, 0);
}
.tap-lift.is-up { box-shadow: 0 30px 60px -20px rgba(48, 45, 41, .45); transition: transform .62s cubic-bezier(.32, .72, 0, 1), box-shadow .5s ease; }
@supports (transition-timing-function: linear(0, 1)) {
  .tap-lift.is-up { transition: transform .66s linear(0, .12 5%, .36 10%, .62 16%, .82 22%, .95 29%, 1.02 37%, 1.035 45%, 1.03 53%, 1.015 63%, 1.004 75%, 1), box-shadow .5s ease; }
}
body.tap-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tap-lift, .tap-lift.is-up, .tap-veil { transition: none !important; } }
/* Home intro photos: the gliding frame appears on hover (desktop) */
.triptych { position: relative; }
.triptych > figure.media { position: relative; }
/* Home intro photos (desktop): a gentle 3% lift on hover */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  html.js .triptych > figure.media.is-in, html:not(.js) .triptych > figure.media {
    transition: transform .8s var(--ease), box-shadow .8s var(--ease), opacity 1.1s var(--ease);
    transition-delay: 0s;
  }
  .triptych > figure.media:hover { transform: scale(1.03); z-index: 2; box-shadow: 0 16px 34px -26px rgba(48, 45, 41, .22); }
  .triptych > figure.media:hover img { transform: scale(1.03); }
}
/* Home intro photos: slower, more delicate lift */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  html.js .triptych > figure.media.is-in, html:not(.js) .triptych > figure.media {
    transition: transform 1.4s cubic-bezier(.33, 0, .2, 1), box-shadow 1.4s cubic-bezier(.33, 0, .2, 1), opacity 1.1s var(--ease);
  }
  .triptych > figure.media img { transition: transform 1.8s cubic-bezier(.33, 0, .2, 1); }
  .triptych .orbit-frame--hover { transition: opacity 1.1s cubic-bezier(.33, 0, .2, 1); }
}

/* Reservation page photo: the same gliding frame, evenly around a single image */
.orbit-solo { position: relative; }
.orbit-solo > .media { position: relative; z-index: 1; }
.orbit-solo > .orbit-frame { --g: clamp(12px, 1.2vw, 18px); right: calc(-1 * var(--g)); bottom: calc(-1 * var(--g)); }
@media (max-width: 900px) { .orbit-solo > .orbit-frame { --g: 10px; } }
/* Reservation page: more breathing room between the framed photo and "Reserving with EVDÍA" */
.orbit-solo > .media { margin-bottom: 0; }
.orbit-solo { margin-bottom: 3.75rem; }

/* Home residence cards on phones: scroll-linked focus, line and gentle swell */
html.res-scroll-fx .res-cards .res-card { will-change: transform; transform-origin: 50% 50%; }
html.res-scroll-fx .res-cards .res-card .body { will-change: filter, opacity; }
html.res-scroll-fx .res-cards .res-card .line { width: 0; transition: none; }
html.res-scroll-fx .res-cards .res-card.reveal { transition: opacity 1.1s var(--ease); }

/* ---------- Home residence cards: swipeable photos ---------- */
.rc-gallery .rc-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
}
.rc-gallery .rc-track::-webkit-scrollbar { display: none; }
.rc-gallery .rc-track > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; -webkit-user-drag: none; user-select: none; }
.rc-gallery .rc-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.rc-dots { position: absolute; z-index: 3; top: 1.55rem; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.rc-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(244, 240, 233, .45); transition: background-color .4s var(--ease), transform .4s var(--ease); }
.rc-dots i.is-on { background: var(--bone); transform: scale(1.25); }
.rc-arrow {
  position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bone);
  background: rgba(48, 45, 41, .28); border: 1px solid rgba(244, 240, 233, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); cursor: pointer;
}
.rc-arrow .icon { width: 1rem; height: 1rem; stroke-width: 1.25; }
.rc-prev { left: 1rem; } .rc-next { right: 1rem; }
.rc-arrow:hover { background: var(--bone); color: var(--charcoal); }
@media (hover: hover) and (pointer: fine) {
  .res-card:hover .rc-arrow { opacity: 1; }
  .rc-gallery.at-start .rc-prev, .rc-gallery.at-end .rc-next { opacity: 0 !important; pointer-events: none; }
}
@media (hover: none), (pointer: coarse) { .rc-arrow { display: none; } }
/* dots sit bottom-right, level with the card's fine line */
.rc-dots { top: auto; left: auto; right: 1.6rem; bottom: 1.7rem; transform: none; }

/* Footer tagline: each letter written by a pen in real time (stroke traced along the letter, clipped to its shape) */
.footer-brand .statement { position: relative; }
.statement.pen-ready .en, .statement.pen-ready .el { color: transparent; }
.statement.pen-done .en, .statement.pen-done .el { color: inherit; }
.statement svg.pen { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.statement.pen-done svg.pen { display: none; }
.pen-ch {
  fill: none; stroke: currentColor; stroke-width: var(--sw, 6px); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--L, 130) var(--L, 130); stroke-dashoffset: var(--L, 130);
}
.statement.pen-play .pen-ch { animation: penWrite .5s cubic-bezier(.45, .1, .55, .9) var(--d, 0s) forwards; }
@keyframes penWrite { to { stroke-dashoffset: 0; } }

/* Footer tagline on Safari / iPhone: each real letter uncovered left to right by the pen, one after another (no fading) */
.statement .pw-w { white-space: nowrap; }
.statement .pw { display: inline-block; }
.statement.pw-ready .pw {
  -webkit-clip-path: inset(-.4em calc(100% + .3em) -.4em -.3em); clip-path: inset(-.4em calc(100% + .3em) -.4em -.3em);
}
.statement.pw-play .pw {
  -webkit-clip-path: inset(-.4em -.4em -.4em -.3em); clip-path: inset(-.4em -.4em -.4em -.3em);
  transition: -webkit-clip-path .34s cubic-bezier(.5, .05, .4, 1) calc(var(--i) * .12s + .15s), clip-path .34s cubic-bezier(.5, .05, .4, 1) calc(var(--i) * .12s + .15s);
}
.statement.pw-done .pw { -webkit-clip-path: none; clip-path: none; transition: none; }

/* Home pool feature (phones): visualisation label sits symmetrically in the top-right corner */
@media (max-width: 860px) {
  .feature > .media > .vis-tag { top: 1rem; right: 1rem; bottom: auto; left: auto; width: auto; }
}

/* EU / ESPA co-funding label — vertical, left edge of the home hero */
.hero { position: relative; }
.espa-label { position: absolute; left: calc(var(--frame, 1.25rem) + .75rem); bottom: calc(var(--frame, 1.25rem) + .75rem); z-index: 3; width: auto; height: clamp(11rem, 34vh, 19rem); max-width: none; background: #fff; padding: .3rem; border-radius: 2px; opacity: .96; box-shadow: 0 .4rem 1.4rem rgba(48,45,41,.16); pointer-events: none; }
@media (max-width: 860px) { .espa-label { height: 9.5rem; left: calc(var(--frame, 10px) + .6rem); bottom: 5.5rem; } }
/* Narrower desktop windows: lift the co-funding label above the booking bar so both stay visible */
@media (min-width: 861px) and (max-width: 1480px) {
  .espa-label { bottom: calc(var(--bar-h) + var(--bar-gap) + 1.25rem); height: clamp(9rem, 28vh, 16rem); }
}

/* Footer: link columns centred on top, the EVDÍA mark large and centred beneath them */
@media (min-width: 761px) {
  .footer-top { grid-template-columns: repeat(3, auto); justify-content: center; column-gap: clamp(3rem, 8vw, 8rem); row-gap: clamp(3.5rem, 7vw, 6rem); }
  .footer-brand { grid-column: 1 / -1; grid-row: 2; text-align: center; padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-light); }
  .footer-brand > a { display: block !important; }
  .footer-brand .brand-logo { width: min(36rem, 64%); margin-inline: auto; }
  .footer-brand .statement { display: table; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
}
@media (max-width: 960px) and (min-width: 761px) { .footer-top { grid-template-columns: repeat(3, auto); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-brand { grid-row: auto; padding-top: .5rem; } .footer-brand .brand-logo { width: min(15rem, 72%); } .footer-brand .statement { display: table; margin: 1rem auto 0; } }

/* Navigation with Contact: compact spacing on laptops (1381–1719px), growing with the window; full, airy spacing from 1720px */
@media (min-width: 1381px) and (max-width: 1719px) {
  .header-inner { gap: 1.25rem; }
  .nav-right-wrap { gap: 1rem; }
  .nav a, .nav .sub-trigger { letter-spacing: .15em; }
  html[data-lang="de"] .nav a { letter-spacing: .12em; }
  html[data-lang] .nav { gap: 2.4rem; }
}
@media (min-width: 1720px) {
  html[data-lang] .nav { gap: 2.4rem; }
}

/* Estate "Arrival" photo: same gliding fine frame; no extra bottom margin here */
.orbit-solo--arrival { margin-bottom: 0; }
@media (max-width: 860px) { .orbit-solo--arrival { margin-bottom: 14px; } }
