:root {
  --ink: #0b0b0c;
  --glass: rgba(14, 14, 15, .58);
  --line: rgba(216, 186, 119, .45);
  --gold: #d8ba77;
  --gold-2: #f0dca8;
  --ivory: #f6f1e6;
  --text: #f4efe4;
  --muted: #b9b2a3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- HOME ---------- */
.home { height: 100%; overflow-y: auto; padding: 0 clamp(16px, 4vw, 56px) 40px;
  background: radial-gradient(1200px 600px at 50% -10%, #23201a 0%, var(--ink) 60%); }
.home__head { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 0; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__mark { font-family: var(--serif); letter-spacing: .34em; font-size: clamp(18px, 2.2vw, 24px); color: var(--gold); }
.brand__sub { margin-top: 8px; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.home__intro { max-width: 760px; margin: clamp(34px, 7vh, 84px) auto clamp(26px, 5vh, 52px); text-align: center; }
.home__intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.08; }
.home__intro p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; }
.villas { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(4, 1fr); max-width: 1480px; margin: 0 auto; }
.villa { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; text-align: left; background: #17161a; isolation: isolate; }
.villa:nth-child(1) { grid-column: span 2; aspect-ratio: auto; }
.villa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.92) brightness(.86); z-index: -2; }
.villa::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.82) 100%); }
.villa:hover img, .villa:focus-visible img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.villa__no { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--gold-2); }
.villa__body { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.villa__name { display: block; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.12; }
.villa__meta { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.villa__meta::after { content: ""; flex: 1; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(.25); transition: transform .6s; }
.villa:hover .villa__meta::after { transform: scaleX(1); }
.villa:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.home__foot { margin-top: 34px; text-align: center; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.langs { display: flex; gap: 2px; }
.langs button { min-width: 40px; height: 44px; padding: 0 8px; font-size: 12px; letter-spacing: .14em; color: var(--muted); border-bottom: 1px solid transparent; }
.langs button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- TOUR ---------- */
.tour { position: fixed; inset: 0; }
.tour__pano { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.shade--top { top: 0; height: 190px; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.44) 9%, rgba(0,0,0,.37) 18%, rgba(0,0,0,.3) 27%, rgba(0,0,0,.235) 36%, rgba(0,0,0,.175) 45%, rgba(0,0,0,.125) 54%, rgba(0,0,0,.083) 63%, rgba(0,0,0,.05) 72%, rgba(0,0,0,.026) 81%, rgba(0,0,0,.01) 90%, rgba(0,0,0,0) 100%); }
.shade--bottom { bottom: 0; height: 230px; background: linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.44) 9%, rgba(0,0,0,.37) 18%, rgba(0,0,0,.3) 27%, rgba(0,0,0,.235) 36%, rgba(0,0,0,.175) 45%, rgba(0,0,0,.125) 54%, rgba(0,0,0,.083) 63%, rgba(0,0,0,.05) 72%, rgba(0,0,0,.026) 81%, rgba(0,0,0,.01) 90%, rgba(0,0,0,0) 100%); }

.corner { position: absolute; top: calc(14px + env(safe-area-inset-top)); display: flex; gap: 6px; }
.corner--tl { left: clamp(10px, 1.6vw, 22px); }
.corner--tr { right: clamp(10px, 1.6vw, 22px); }
.sq { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px;
  background: var(--glass); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, border-color .25s, color .25s; }
.sq:hover, .sq:focus-visible, .sq[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: #17140c; outline: none; }
.sq--text { font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.sq.is-off .wave { display: none; }
.book { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 3px; background: var(--gold); color: #17140c;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; transition: background .25s; }
.book:hover { background: var(--gold-2); }
.book svg { width: 18px; height: 18px; }

.langpick { position: relative; }
.langpick__list { position: absolute; top: 50px; right: 0; min-width: 150px; padding: 6px; border-radius: 3px; background: rgba(14,14,15,.9); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.langpick__list button { display: block; width: 100%; min-height: 40px; padding: 0 12px; text-align: left; font-size: 14px; border-radius: 2px; }
.langpick__list button:hover { background: rgba(255,255,255,.08); }
.langpick__list button[aria-pressed="true"] { color: var(--gold); }

/* hanging brand tab */
.tab { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 168px; padding: 14px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--ivory); color: #17140c; clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: padding .3s; }
.tab:hover { padding-top: 18px; }
.tab__mark { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; padding-left: .3em; }
.tab__sub { font-size: 9px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: #8a7444; }

/* where am I */
.where { position: absolute; left: clamp(10px, 1.6vw, 22px); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 14px; max-width: calc(100% - 40px); pointer-events: none; }
.where__badge { flex: none; width: 82px; height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--ivory); color: #17140c; border-radius: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.where__no { font-family: var(--serif); font-size: 26px; line-height: 1; }
.where__mark { font-size: 7.5px; letter-spacing: .3em; padding-left: .3em; color: #8a7444; }
.where__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-shadow: 0 1px 10px rgba(0,0,0,.7); padding-bottom: 4px; }
.where__text strong { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where__text span { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- MENUS ---------- */
.menu { position: absolute; inset: 0; z-index: 20; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.close { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: clamp(10px, 1.6vw, 22px); width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #17140c; z-index: 2; }
.close:hover { background: var(--gold-2); }

/* villas band */
.menu--villas { background: rgba(0,0,0,.35); }
.band { position: absolute; left: 0; right: 0; top: 78px; display: flex; align-items: center; background: var(--ivory); color: #17140c; padding: 18px 8px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  animation: drop .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drop { from { transform: translateY(-18px); opacity: 0; } }
.band__arrow { flex: none; width: 52px; height: 120px; display: inline-flex; align-items: center; justify-content: center; color: #8a7444; }
.band__arrow svg { width: 34px; height: 34px; stroke-width: 1.3; }
.band__arrow:hover { color: #17140c; }
.band__track { flex: 1; display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.band__track::-webkit-scrollbar { display: none; }
.vtile { flex: none; width: 200px; scroll-snap-align: start; text-align: center; }
.vtile__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter .4s; }
.vtile:hover .vtile__img, .vtile[aria-current="true"] .vtile__img { filter: none; }
.vtile[aria-current="true"] .vtile__img { outline: 3px solid var(--gold); outline-offset: -3px; }
.vtile__no { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .4em; color: #8a7444; }
.vtile__name { display: block; margin-top: 4px; font-family: var(--serif); font-size: 17px; }

/* rooms panel */
.menu--rooms { background: rgba(10,10,11,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; padding: calc(18px + env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 40px; }
.menu__title { text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); margin: 4px 60px 22px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px clamp(20px, 3vw, 44px); max-width: 1320px; margin: 0 auto; align-items: start; }
.cat__head { text-align: center; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--gold); margin: 14px 0 16px; }
.cat__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.card { width: 132px; padding: 5px 5px 0; background: #fff; color: #3b3a37; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .25s, background .25s; opacity: 0; transform: translateY(8px); animation: rise .45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-3px); }
.card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card span { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 2px; font-size: 11.5px; line-height: 1.2; text-align: center; }
.card[aria-current="true"] { background: var(--gold); color: #17140c; }

/* ---------- INFO CARD ---------- */
.info { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); animation: fade .3s both; }
.info__card { position: relative; width: min(820px, 100%); max-height: calc(100% - 20px); overflow-y: auto; background: #111113; border: 1px solid rgba(216,186,119,.3); border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: pop .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.close--card { top: 12px; left: auto; right: 12px; }
.info__media { position: relative; background: #000; aspect-ratio: 16 / 9; }
.info__media img, .info__media video, .info__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.info__media video { object-fit: contain; background: #000; }
.info__media .slide { opacity: 0; transition: opacity .6s; }
.info__media .slide.is-on { opacity: 1; }
.info__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); border: 1px solid var(--gold); color: #fff; z-index: 1; }
.info__nav:hover { background: var(--gold); color: #17140c; }
.info__nav--prev { left: 12px; } .info__nav--next { right: 12px; }
.info__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; z-index: 1; }
.info__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.info__dots i.is-on { background: var(--gold); }
.info__body { padding: 22px clamp(18px, 3vw, 32px) 28px; }
.info__kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.info__title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.info__text { margin-top: 12px; color: #d9d3c6; line-height: 1.6; font-size: 16px; }

/* ---------- edit helper ---------- */
.aim { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 15; }
.aim::before, .aim::after { content: ""; position: absolute; background: #ff4d4d; }
.aim::before { left: 16px; top: 0; width: 2px; height: 34px; } .aim::after { top: 16px; left: 0; height: 2px; width: 34px; }
.editbox { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: #fff; color: #111; border-radius: 4px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.editbox code { font-family: Consolas, monospace; font-size: 12.5px; }
.editbox button { height: 34px; padding: 0 12px; background: #111; color: #fff; border-radius: 3px; }

/* ---------- misc ---------- */
.veil { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ink); transition: opacity .9s ease; }
.veil.is-gone { opacity: 0; pointer-events: none; }
.veil__mark { font-family: var(--serif); letter-spacing: .5em; font-size: 13px; color: var(--gold); padding-left: .5em; }
.veil__name { font-family: var(--serif); font-size: clamp(26px, 5vw, 46px); text-align: center; padding: 0 20px; }
.veil__mark::after { content: ""; display: block; width: 46px; height: 1px; margin: 16px auto 0; background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scaleX(.3); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.tip { position: absolute; z-index: 50; padding: 6px 10px; background: var(--ivory); color: #17140c; font-size: 12px; border-radius: 2px; pointer-events: none; white-space: nowrap; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .villas { grid-template-columns: repeat(2, 1fr); }
  .villa:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .book span { display: none; }
  .book { padding: 0 13px; }
}
/* ---------- phone ---------- */
@media (max-width: 767px) {
  .villas { grid-template-columns: 1fr; }
  .villa, .villa:nth-child(1) { grid-column: auto; aspect-ratio: 16 / 10; }
  .tab { width: 112px; padding: 10px 0 18px; }
  .tab__mark { font-size: 11px; } .tab__sub { display: none; }
  #btnFull { display: none; }
  .corner { gap: 4px; }
  .sq { width: 42px; height: 42px; }
  .where__badge { width: 62px; height: 62px; }
  .where__no { font-size: 20px; }
  .cats { grid-template-columns: 1fr; }
  .card { width: calc(50% - 6px); max-width: 170px; }
  .band { top: 70px; padding: 12px 0; }
  .band__arrow { display: none; }
  .band__track { padding: 0 14px; }
  .vtile { width: 62vw; }
  .info { padding: 0; align-items: flex-end; }
  .info__card { width: 100%; max-height: 92%; border-radius: 10px 10px 0 0; }
  .editbox { bottom: 100px; flex-wrap: wrap; width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .card { opacity: 1; transform: none; } }

/* ---------- PERSPECTIVE MOVES (pattern studied on montecarlovirtualtour.com: the panorama layer itself is
   tilted with a CSS 3D transform while the tour keeps running inside it, so its spots keep animating) ---------- */
.tour { perspective: 300px; perspective-origin: 50% 50%; background: var(--ivory); }
.tour__pano { transform-origin: 50% 50%; transition: transform .7s cubic-bezier(.3,.7,.2,1); will-change: transform; }
.tour.is-tilt-x .tour__pano { transform: translateZ(-500px) translateY(200px) rotateX(30deg); }
.tour.is-tilt-y .tour__pano { transform: translateZ(-300px) translateX(-27%) rotateY(-20deg); }
.tour.is-tilt .tour__pano { pointer-events: none; }
.shade, .corner, .where, .tab { transition: opacity .35s; }
.tour.is-tilt .shade, .tour.is-tilt .corner, .tour.is-tilt .where, .tour.is-tilt .tab { opacity: 0; pointer-events: none; }
.catch { position: absolute; inset: 0; z-index: 15; cursor: pointer; }

/* the villas band on the light stage */
.menu--villas { background: transparent; }
.band { background: #121214; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.band__arrow { color: var(--gold); }
.band__arrow:hover { color: var(--gold-2); }
.vtile__no { color: var(--gold); }
.menu--villas .close { box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* the "+" and the villa's details */
.plus { position: absolute; right: clamp(10px, 1.6vw, 22px); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 22; width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--glass); border: 1.5px solid var(--gold); color: var(--gold-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .45s cubic-bezier(.3,.7,.2,1), background .3s, color .3s; }
.plus svg { width: 26px; height: 26px; }
.plus:hover { background: var(--gold); color: #17140c; }
.plus.is-open { transform: rotate(45deg); background: var(--gold); color: #17140c; }
.side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(480px, 33%); padding: 80px clamp(24px, 3.4vw, 54px) 90px; display: flex; flex-direction: column; justify-content: center;
  color: #17140c; animation: sidein .7s cubic-bezier(.3,.7,.2,1) both; overflow-y: auto; }
@keyframes sidein { from { opacity: 0; transform: translateX(40px); } }
.side__kick { font-size: 11px; letter-spacing: .34em; color: #8a7444; }
.side__title { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.side__text { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: #4b463c; max-height: 40vh; overflow-y: auto; }
.book--wide { margin-top: 26px; align-self: flex-start; }
.side__links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.side__links a { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid #cdbf9c; border-radius: 999px; font-size: 13px; letter-spacing: .06em; color: #3b352a; transition: background .25s, border-color .25s; }
.side__links a:hover { background: #17140c; color: var(--ivory); border-color: #17140c; }
.side__credit { margin-top: 30px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a7444; }
.side__credit a { color: #17140c; border-bottom: 1px solid currentColor; }

@media (max-width: 767px) {
  .tour.is-tilt-x .tour__pano { transform: translateZ(-500px) translateY(260px) rotateX(30deg); }
  .tour.is-tilt-y .tour__pano { transform: translateZ(-460px) translateY(-72%) rotateX(-24deg); }
  .side { top: auto; width: 100%; height: 60%; padding: 26px 22px 96px; justify-content: flex-start; animation-name: sideup; }
  @keyframes sideup { from { opacity: 0; transform: translateY(40px); } }
  .side__text { max-height: none; }
  .plus { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .tour__pano { transition: none; } }

.book--wide span { display: inline !important; }
.book--wide { padding: 0 22px !important; }

/* phones: the tools stand in a column down the right edge, so the top row keeps the menus and the brand tab */
@media (max-width: 767px) {
  .corner--tr { flex-direction: column; align-items: flex-end; gap: 6px; }
  .corner--tr .book { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .langpick__list { top: 0; right: 50px; }
}
/* headline: one sentence per line; lines balanced so no single word is left alone */
.line { display: block; }
.home__intro h1, .home__intro p, .side__title, .info__title { text-wrap: balance; }
/* villa facts and amenities (+ panel), monogram badge */
.where__mono { font-family: var(--serif); font-size: 24px; letter-spacing: .08em; line-height: 1; }
.side__facts { margin-top: 14px; font-size: 15px; letter-spacing: .04em; color: #4b463c; }
.side__sub { margin-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #8a7444; }
.side__amen { margin-top: 12px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; font-size: 14.5px; line-height: 1.3; color: #2b2720; }
.side__amen li { position: relative; padding-left: 16px; }
.side__amen li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.vtile__no { letter-spacing: .14em; text-transform: none; font-size: 11px; }
@media (max-width: 767px) { .where__mono { font-size: 18px; } .side__amen { gap: 8px 12px; font-size: 14px; } }


/* ---------- version 3: logos ---------- */
.brand img { display: block; height: 74px; width: auto; }
.where__badge { width: 76px; height: 76px; padding: 12px; }
.where__badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- version 3: photo gallery (replaces the tour's KolorBox) ---------- */
.lb { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgba(9,9,10,.97); animation: fade .3s both; }
.tour.is-lb .corner, .tour.is-lb .tab, .tour.is-lb .where, .tour.is-lb .plus, .tour.is-lb .shade { opacity: 0; pointer-events: none; }
.lb__top { flex: none; display: flex; align-items: center; gap: 16px; padding: calc(14px + env(safe-area-inset-top)) clamp(14px, 2.4vw, 30px) 10px; }
.lb__title { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); }
.lb__count { font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.lb .lb__close { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #17140c; }
.lb .lb__close:hover { background: var(--gold-2); }
.lb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px clamp(56px, 7vw, 110px); touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.lb__img.is-in { opacity: 1; transform: none; }
.lb .lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(216,186,119,.55); color: var(--gold-2); background: rgba(0,0,0,.35); transition: background .25s, color .25s; }
.lb .lb__nav:hover { background: var(--gold); color: #17140c; }
.lb__nav--prev { left: clamp(8px, 1.6vw, 24px); } .lb__nav--next { right: clamp(8px, 1.6vw, 24px); }
.lb__thumbs { flex: none; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 12px clamp(14px, 2.4vw, 30px) calc(16px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumb { flex: none; width: 92px; height: 62px; border-radius: 2px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .25s, outline-color .25s; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__thumb:hover { opacity: .85; }
.lb__thumb[aria-current="true"] { opacity: 1; outline-color: var(--gold); }

/* the Book button in the details panel keeps its full size */
.book--wide { flex: none; height: 46px; min-height: 46px; }

@media (max-width: 767px) {
  .brand img { height: 56px; }
  .where__badge { width: 58px; height: 58px; padding: 9px; }
  .lb__stage { padding: 6px 8px; }
  .lb .lb__nav { width: 44px; height: 44px; background: rgba(0,0,0,.5); }
  .lb__thumb { width: 72px; height: 48px; }
  /* the "+" on phones, after Monte Carlo's phone version: the panorama turns to the side, the details sit below */
  .tour.is-tilt-y .tour__pano { transform: translateZ(-440px) translateX(16%) translateY(-57%) rotateY(20deg); }
  .side { height: 55%; padding-top: 24px; }
}


/* ---------- version 4: soft transitions ---------- */
@keyframes fadeout { to { opacity: 0; } }
.tour { animation: fade .6s ease both; }
.tour.is-leaving { animation: fadeout .6s ease forwards; pointer-events: none; }
.menu.is-leaving, .info.is-leaving, .lb.is-leaving, .langpick__list.is-leaving { animation: fadeout .32s ease forwards; pointer-events: none; }
.info.is-leaving .info__card { animation: popout .32s ease forwards; }
@keyframes popout { to { transform: translateY(12px) scale(.98); opacity: 0; } }
.langpick__list { animation: fade .22s ease both; }
.side.is-leaving { animation: sideout .45s cubic-bezier(.4,0,.6,1) forwards; pointer-events: none; }
@keyframes sideout { to { opacity: 0; transform: translateX(40px); } }
.lb__img { position: absolute; inset: 6px clamp(56px, 7vw, 110px); width: calc(100% - 2 * clamp(56px, 7vw, 110px)); height: calc(100% - 12px);
  max-width: none; max-height: none; object-fit: contain; box-shadow: none; border-radius: 0; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  opacity: 0; transform: scale(.985); transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lb__img.is-in { opacity: 1; transform: none; }
.lb__img.is-out { opacity: 0; transform: scale(1.01); }
.lb .lb__nav { z-index: 2; }

/* ---------- version 4: full screen on phones too ---------- */
#btnFull .fs-out { display: none; }
.tour.is-full #btnFull .fs-in { display: none; }
.tour.is-full #btnFull .fs-out { display: block; }

/* ---------- version 4: on a computer the headline sits level with the logo and the languages ---------- */
@media (min-width: 1100px) {
  .home { position: relative; }
  .home__head { position: absolute; top: 0; left: clamp(16px, 4vw, 56px); right: clamp(16px, 4vw, 56px); z-index: 1; }
  .home__intro { max-width: min(760px, calc(100% - 400px)); margin-top: 32px; }
}

@media (max-width: 767px) {
  #btnFull:not([hidden]) { display: inline-flex; }
  .lb__img { inset: 6px 8px; width: calc(100% - 16px); }
  .side.is-leaving { animation-name: sidedown; }
  @keyframes sidedown { to { opacity: 0; transform: translateY(40px); } }
}
@media (prefers-reduced-motion: reduce) { .lb__img { transition: none; } }


/* =====================================================================
   version 5: quiet and white. Gold stays only in the logo and the ribbon.
   No boxes behind the tour icons, no letter-spaced gold labels, no glow.
   ===================================================================== */
:root { --paper: #ffffff; --ink2: #151515; --grey: #6e6e6e; --hair: #e3e1dc; --stage: #ecebe7; }
body { background: var(--paper); color: var(--ink2); }

/* main page */
.home { background: var(--paper); color: var(--ink2); }
.home__intro h1 { color: var(--ink2); letter-spacing: -.01em; }
.home__intro p { color: #5c5c5c; }
.langs { gap: 6px; }
.langs button { min-width: 34px; padding: 0 4px; font-size: 13px; letter-spacing: .06em; color: #9a9a9a; border-bottom: 1px solid transparent; }
.langs button:hover { color: var(--ink2); }
.langs button[aria-pressed="true"] { color: var(--ink2); border-bottom-color: var(--ink2); }
.villa, .villa:nth-child(1) { aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; color: var(--ink2); }
.villa::after { content: none; }
.villa__pic { position: relative; display: block; height: clamp(220px, 21vw, 330px); overflow: hidden; background: #efeeea; }
.villa img { z-index: 0; filter: none; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.villa:hover img, .villa:focus-visible img { transform: scale(1.035); filter: none; }
.villa__body { position: static; display: block; padding: 14px 0 6px; }
.villa__name { font-size: clamp(20px, 1.7vw, 25px); color: var(--ink2); }
.villa__meta { margin-top: 6px; display: block; font-size: 14px; letter-spacing: .01em; text-transform: none; color: var(--grey); }
.villa__meta::after { content: none; }
.villa:focus-visible { outline: 1px solid var(--ink2); outline-offset: 4px; }
.villas { row-gap: clamp(26px, 3vw, 40px); }
.home__foot { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 13px; letter-spacing: .02em; text-transform: none; color: #8c8c8c; }
.home__foot a:hover { color: var(--ink2); }

/* tour: white icons straight on the picture, like Monte Carlo */
.tour { background: var(--stage); }
.sq { background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); transition: opacity .25s; }
.sq svg { width: 24px; height: 24px; stroke-width: 1.5; }
.sq:hover, .sq:focus-visible, .sq[aria-expanded="true"] { background: none; border: 0; color: #fff; opacity: .7; outline: none; }
.sq:focus-visible { outline: 1px solid rgba(255,255,255,.8); outline-offset: -4px; opacity: 1; }
.sq--text { font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.book { height: 40px; padding: 0 18px; border-radius: 0; background: #fff; color: var(--ink2); font-size: 13px; font-weight: 500; letter-spacing: .03em; text-transform: none; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.book:hover { background: #ededed; }
.corner { gap: 4px; align-items: center; }
.langpick__list { top: 48px; padding: 6px 0; border: 0; border-radius: 0; background: #fff; color: var(--ink2); backdrop-filter: none; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.langpick__list button { border-radius: 0; padding: 0 18px; font-size: 14px; }
.langpick__list button:hover { background: #f2f1ee; }
.langpick__list button[aria-pressed="true"] { color: var(--ink2); font-weight: 600; }
.where__badge { background: #fff; border-radius: 0; }
.where__text strong { color: #fff; }
.where__text span { font-size: 14px; letter-spacing: .01em; text-transform: none; color: rgba(255,255,255,.86); }
.plus { background: none; border: 1.5px solid #fff; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.plus svg { stroke-width: 1.5; }
.plus:hover { background: #fff; color: var(--ink2); }
.plus.is-open { background: var(--ink2); border-color: var(--ink2); color: #fff; filter: none; }

/* close buttons: a plain cross */
.close { border-radius: 0; background: none; color: var(--ink2); box-shadow: none; }
.close:hover { background: none; opacity: .6; }
.menu--villas .close { box-shadow: none; }
.close--card { border-radius: 50%; background: #fff; color: var(--ink2); box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.close--card:hover { background: #fff; opacity: .85; }

/* villas band: white strip on the light stage */
.band { background: #fff; color: var(--ink2); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.band__arrow, .band__arrow:hover { color: var(--ink2); }
.band__arrow:hover { opacity: .55; }
.vtile__no { color: var(--grey); letter-spacing: .02em; font-size: 12px; }
.vtile[aria-current="true"] .vtile__img { outline: 2px solid var(--ink2); outline-offset: -2px; }

/* rooms: a light page */
.menu--rooms { background: rgba(250,250,248,.97); color: var(--ink2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu__title { color: var(--ink2); }
.cat__head { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink2); border-bottom: 1px solid var(--hair); }
.card { box-shadow: 0 1px 4px rgba(0,0,0,.12); color: #333; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.card[aria-current="true"] { background: var(--ink2); color: #fff; }

/* the "+" panel */
.side { color: var(--ink2); }
.side__kick, .side__sub { color: var(--grey); letter-spacing: .14em; }
.side__facts { color: #505050; }
.side__amen { color: #262626; }
.side__amen li::before { top: .62em; width: 8px; height: 1px; border-radius: 0; background: var(--ink2); }
.side .book--wide { background: var(--ink2); color: #fff; box-shadow: none; }
.side .book--wide:hover { background: #333; }
.side__links a { border-color: #d0d0d0; color: #2f2f2f; }
.side__links a:hover { background: var(--ink2); color: #fff; border-color: var(--ink2); }
.side__credit { color: var(--grey); letter-spacing: .04em; text-transform: none; font-size: 13px; }
.side__credit a { color: var(--ink2); }

/* card (film, photos): white, and always fits the screen */
.info { background: rgba(10,10,10,.7); padding: 20px; align-items: center; }
.info__card { width: min(880px, 100%, calc((100vh - 240px) * 16 / 9)); width: min(880px, 100%, calc((100dvh - 240px) * 16 / 9));
  max-height: calc(100% - 8px); background: #fff; color: var(--ink2); border: 0; border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.info__kicker { font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--grey); }
.info__text { color: #4a4a4a; }
.info__nav { background: #fff; border: 0; color: var(--ink2); box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.info__nav:hover { background: #fff; color: var(--ink2); opacity: .85; }
.info__dots i.is-on { background: #fff; }

/* gallery: neutral black, white controls without circles */
.lb { background: rgba(14,14,14,.98); }
.lb__count { letter-spacing: .08em; font-size: 13px; color: rgba(255,255,255,.6); }
.lb .lb__close, .lb .lb__close:hover { background: none; color: #fff; border-radius: 0; }
.lb .lb__close:hover { opacity: .65; }
.lb .lb__close svg { width: 26px; height: 26px; stroke-width: 1.5; }
.lb .lb__nav, .lb .lb__nav:hover { border: 0; background: none; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.lb .lb__nav:hover { opacity: .65; }
.lb .lb__nav svg { width: 34px; height: 34px; stroke-width: 1.2; }
.lb__thumb[aria-current="true"] { outline-color: #fff; }

/* loading veil: white, like the main page */
.veil { background: var(--paper); color: var(--ink2); }
.veil__mark { color: var(--grey); letter-spacing: .32em; }
.veil__mark::after { background: var(--ink2); width: 40px; }
.veil__name { color: var(--ink2); }

@media (max-width: 767px) {
  .villa__pic { height: 58vw; }
  .corner--tr { gap: 2px; }
  .corner--tr .book { width: 42px; height: 42px; }
  .langpick__list { top: 0; }
  /* the card stays in the middle of the screen, never in the lower part */
  .info { padding: 14px; align-items: center; }
  .info__card { width: 100%; max-height: calc(100% - 4px); border-radius: 0; }
  .side .book--wide { height: 46px; }
}
/* phone or small tablet turned sideways: only the film, as large as the screen allows, nothing to scroll */
@media (orientation: landscape) and (max-height: 560px) {
  .info { padding: 10px 60px; }
  .info__card { width: min(100%, calc((100vh - 20px) * 16 / 9)); width: min(100%, calc((100dvh - 20px) * 16 / 9)); max-height: none; overflow: hidden; }
  .info__body { display: none; }
  .info.info--film .info__card { background: #000; }
}


/* ---------- version 6: headline starts level with the languages, not above them ---------- */
@media (min-width: 1100px) {
  .home__intro { margin-top: 58px; }
}

/* ---------- version 6: every tour icon in the same outlined square ---------- */
.sq { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.8); border-radius: 2px; background: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); transition: background .25s, opacity .25s; }
.sq svg { width: 22px; height: 22px; }
.sq:hover, .sq[aria-expanded="true"] { border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.16); opacity: 1; }
.sq:focus-visible { border: 1px solid #fff; outline: none; background: rgba(255,255,255,.16); }
.corner { gap: 8px; }
.book { height: 44px; border-radius: 2px; }
@media (max-width: 767px) {
  .sq { width: 42px; height: 42px; }
  .corner--tr { gap: 6px; }
  .corner--tr .book { width: 42px; height: 42px; }
}


/* ---------- version 8: the details panel always starts at its top and scrolls ---------- */
.side { justify-content: flex-start; }
.side > :first-child { margin-top: auto; }
.side > :last-child { margin-bottom: auto; }
.side { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* ---------- version 8: phone "+": the panorama opens sideways like a window, the details stand beside it ---------- */
@media (max-width: 767px) {
  .tour.is-tilt-y .tour__pano { transform: translateZ(-300px) translateX(-86%) rotateY(-32deg); }
  .side { top: 0; bottom: 0; left: auto; right: 0; width: 76%; height: auto; padding: calc(28px + env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom)); animation-name: sidein; }
  .side.is-leaving { animation-name: sideout; }
  .side__amen { grid-template-columns: 1fr; }
}

/* ---------- version 8: phone held sideways: the details panel uses the half of the screen ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  .side { width: 52%; padding: calc(18px + env(safe-area-inset-top)) 24px 84px; }
  .side__title { font-size: 26px; }
  .side__sub { margin-top: 16px; }
  .side__links, .side__credit { margin-top: 16px; }
  .book--wide { margin-top: 16px; }
  .tour.is-tilt-y .tour__pano { transform: translateZ(-300px) translateX(-72%) rotateY(-30deg); }
}


/* ---------- version 12: headline closer to the logo on phones and tablets ---------- */
@media (max-width: 1099px) {
  .home__intro { margin-top: 18px; margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .home__intro { margin-top: 10px; margin-bottom: 26px; }
}


/* ---------- version 13: phone held sideways, "+": gentler angle, bigger panorama, close to the text ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  .tour.is-tilt-y .tour__pano { transform: translateZ(-200px) translateX(var(--tiltx, -46%)) rotateY(-16deg); }
}


/* ---------- version 14: the "+" goes away with the other icons while a menu is open ---------- */
.plus { transition: transform .45s cubic-bezier(.3,.7,.2,1), background .3s, color .3s, opacity .35s; }
.tour.is-menu .plus, .tour.is-tilt-x .plus { opacity: 0; pointer-events: none; }


/* ---------- version 15: phone upright, villas menu: a bigger panorama under the villas strip ---------- */
@media (max-width: 767px) and (orientation: portrait) {
  .tour.is-tilt-x .tour__pano { transform: translateZ(var(--tiltxz, -300px)) translateY(var(--tiltxy, 160px)) rotateX(26deg); }
}
