/* ==========================================================================
   ELYRA RESIDENCES - Real Estate Template
   --------------------------------------------------------------------------
   1. Tokens          8. Residences / Search / Cards
   2. Base            9. Spotlight (Villa 07)
   3. Utilities      10. The View (Sunset / Midnight)
   4. Buttons        11. Communities
                     12. Journey
   6. Header / Menu  13. Agents, Testimonials
   7. Hero slider    14. Contact, Footer, Concierge, Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --ivory: #f6f3ee;
  --sand: #ece6dc;
  --sand-2: #e2dacd;
  --white: #ffffff;
  --ink: #15130f;
  --ink-2: #1f1c18;
  --text: #2b2721;
  --muted: #7a7166;
  --line: rgba(21, 19, 15, .12);
  --line-light: rgba(255, 255, 255, .18);

  --gold: #c39a5f;
  --gold-dark: #a9824a;
  --gold-soft: #dcbd8a;
  --gold-glow: #ffdca0;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 2px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1rem; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--white); }

/* 3. UTILITIES ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 1.4rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow--gold { color: var(--gold-soft); }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.005em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--gold-dark); }
.display--sm { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.lead { font-size: 1.15rem; line-height: 1.75; color: var(--text); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.section-head__text { max-width: 400px; color: var(--muted); margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  padding-bottom: .4rem; border-bottom: 1px solid var(--gold);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 1rem; color: var(--gold-dark); }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* 4. BUTTONS -------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 2rem; border-radius: var(--radius);
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gold-dark); }
.btn--ghost-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: .8rem 1.4rem; font-size: .68rem; }
.btn--block { width: 100%; }

/* 6. HEADER / MENU -------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 9, 7, .55), transparent);
  transition: opacity .5s;
}
.header.is-solid {
  --header-h: 70px;
  background: rgba(246, 243, 238, .9); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}

.logo { display: inline-grid; justify-items: center; line-height: 1; padding-right: 1.8rem; position: relative; }
.logo::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .25; }
.logo__word { font-family: var(--serif); font-size: 1.85rem; font-weight: 500; letter-spacing: .2em; margin-right: -.2em; }
.logo__sub { font-size: .52rem; letter-spacing: .55em; margin-right: -.55em; text-transform: uppercase; margin-top: .3rem; opacity: .8; }
.logo--light { color: var(--white); }
.logo--light::after { display: none; }

.nav { display: flex; gap: 2.1rem; }
.nav__link { position: relative; font-size: .72rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; padding: .5rem 0; opacity: .85; transition: opacity .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.header__phone { font-size: .74rem; letter-spacing: .14em; opacity: .85; transition: opacity .3s; }
.header__phone:hover { opacity: 1; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu__nav { display: grid; gap: .3rem; }
.mobile-menu__nav a {
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.2;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mobile-menu__nav a:hover { color: var(--gold-soft); }
.menu-open .mobile-menu__nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu-open .mobile-menu__nav a:nth-child(6) { transition-delay: .5s; }
.mobile-menu__foot { display: grid; gap: 1.2rem; justify-items: start; }
.mobile-menu__phone { letter-spacing: .14em; color: rgba(255, 255, 255, .7); }

/* 7. HERO SLIDER ---------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease-io), visibility 1.6s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__media { position: absolute; inset: 0; transform: scale(1.14); transition: transform 9s cubic-bezier(.2, .6, .35, 1); }
.slide.is-active .slide__media { transform: scale(1.02); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 50% 32%, rgba(10, 9, 7, .5), rgba(10, 9, 7, 0) 72%),
    linear-gradient(to bottom, rgba(10, 9, 7, .6) 0%, rgba(10, 9, 7, .32) 38%, rgba(10, 9, 7, 0) 62%, rgba(10, 9, 7, .55) 100%);
}

/* the signature glowing line */
.glow-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.glow-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.glow-line__halo { stroke: #ffb14a; stroke-width: 14; opacity: .8; filter: url(#lineGlow); stroke-dasharray: 1; stroke-dashoffset: 1; }
.glow-line__core { stroke: #fff0d0; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#lineGlowSm); }
.glow-line__spark { stroke: #ffffff; stroke-width: 7; stroke-dasharray: 0 1; opacity: 0; filter: url(#lineGlowSm); }
.slide.is-active .glow-line__halo,
.slide.is-active .glow-line__core { transition: stroke-dashoffset 2.6s var(--ease-io) .9s; stroke-dashoffset: 0; }
.slide.is-active .glow-line__spark { stroke-dasharray: .05 1.05; animation: spark 4.2s linear 3.4s infinite; }
@keyframes spark { 0% { stroke-dashoffset: .05; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

.slide__content {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--header-h) + clamp(1.5rem, 7vh, 4.5rem));
  text-align: center; padding: 0 var(--gutter); display: grid; justify-items: center;
}
.slide__content .eyebrow { justify-content: center; }
.slide__title {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: .02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 4px 34px rgba(0, 0, 0, .5); max-width: 20ch;
}
.slide__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.slide__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.slide.is-active .slide__title .w > span { transform: none; }
.slide__text {
  max-width: 460px; margin: 1.3rem auto 0; font-size: 1.05rem; font-weight: 400; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s;
}
.slide.is-active .slide__text { opacity: 1; transform: none; }
.slide .eyebrow { opacity: 0; transition: opacity 1s .3s; }
.slide.is-active .eyebrow { opacity: 1; }

.hero__arrow {
  position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; margin-top: -27px;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  color: var(--white); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .4s, border-color .4s, transform .4s var(--ease);
}
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero__arrow--prev { left: var(--gutter); }
.hero__arrow--next { right: var(--gutter); }
.hero__arrow--prev:hover { transform: translateX(-3px); }
.hero__arrow--next:hover { transform: translateX(3px); }

.hero__bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(1.2rem, 4vh, 2.4rem);
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem;
}
.hero__counter { display: flex; align-items: center; gap: .9rem; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .1em; }
.hero__current { font-size: 1.6rem; color: var(--gold-glow); }
.hero__sep { width: 46px; height: 1px; background: rgba(255, 255, 255, .45); }
.hero__total { opacity: .7; }

.hero__thumbs { display: flex; gap: .7rem; }
.thumb {
  position: relative; width: clamp(108px, 10vw, 152px); aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); opacity: .62; outline: 1px solid rgba(255, 255, 255, .25); outline-offset: -1px;
  transition: opacity .5s, transform .5s var(--ease), outline-color .5s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 60%); z-index: 1; }
.thumb__label { position: absolute; z-index: 2; left: .6rem; bottom: .55rem; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.thumb__bar { position: absolute; z-index: 2; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-glow); box-shadow: 0 0 10px var(--gold-glow); }
.thumb:hover { opacity: .9; }
.thumb:hover img { transform: scale(1.08); }
.thumb.is-active { opacity: 1; transform: translateY(-6px); outline-color: var(--gold-soft); }
.thumb.is-active .thumb__bar { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .thumb.is-active .thumb__bar { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

.hero__scroll { justify-self: end; margin-right: 76px; display: flex; align-items: center; gap: .8rem; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero__scroll i { position: relative; width: 1px; height: 54px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-glow); animation: scrollCue 2.2s var(--ease-io) infinite; }
@keyframes scrollCue { to { top: 100%; } }

/* 8. ABOUT ---------------------------------------------------------------- */
.about__head { max-width: 980px; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.about__grid {
  display: grid; grid-template-columns: 5fr 1fr 6fr; grid-template-rows: auto auto;
  gap: clamp(2rem, 4vw, 3.5rem) 0;
}
.about__img { margin: 0; overflow: hidden; position: relative; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.about__img:hover img { transform: scale(1.04); }
.about__img--tall { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 4 / 5.6; }
.about__body { grid-column: 3; grid-row: 1; }
.about__body p:not(.lead) { color: var(--muted); }
.about__img--wide { grid-column: 3; grid-row: 2; aspect-ratio: 16 / 10; align-self: end; }
.about__img figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ivory); padding: .7rem 1.2rem .5rem 0;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

.stats { list-style: none; padding: 2rem 0; margin: 2rem 0 2.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; flex-wrap: wrap; align-items: baseline; }
.stats strong, .stats li > span { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--ink); }
.stats li > span { color: var(--gold); }
.stats small { flex-basis: 100%; margin-top: .5rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

/* 8b. RESIDENCES ---------------------------------------------------------- */
.search {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: stretch;
  background: var(--white); box-shadow: 0 30px 60px -40px rgba(21, 19, 15, .35); margin-bottom: 2.2rem;
}
.search__field { display: grid; gap: .2rem; padding: 1.1rem 1.5rem; border-right: 1px solid var(--line); cursor: pointer; }
.search__field span { font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }
.search__field select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 1.4rem 0 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a9824a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 14px;
}
.search__btn { border-radius: 0; padding: 0 2.4rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 2.6rem; }
.chip {
  padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  transition: background-color .35s, color .35s, border-color .35s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters__count { margin-left: auto; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.filters__count b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.4vw, 2.2rem); }
.card { background: var(--ivory); display: flex; flex-direction: column; transition: box-shadow .6s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.card:hover { box-shadow: 0 40px 60px -40px rgba(21, 19, 15, .45); }
.card.is-hidden { display: none; }
.card.is-filtered-in { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.tag {
  position: absolute; top: 1rem; left: 1rem; padding: .4rem .8rem; background: rgba(246, 243, 238, .92);
  font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.tag--new { background: var(--gold); color: var(--white); }
.tag--muted { background: rgba(21, 19, 15, .75); color: var(--white); }
.fav {
  position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(21, 19, 15, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .3s, transform .3s var(--ease);
}
.fav svg { width: 18px; height: 18px; fill: transparent; stroke: var(--white); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] { background: var(--white); }
.fav[aria-pressed="true"] svg { fill: #c0533f; stroke: #c0533f; animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

.card__body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__loc { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card__loc svg { color: var(--gold); }
.card__title { font-family: var(--serif); font-size: 1.85rem; line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
.card__specs { list-style: none; padding: 0 0 1.2rem; margin: 0 0 1.2rem; display: flex; gap: 1.3rem; border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--text); flex-wrap: wrap; }
.card__specs li { display: flex; align-items: center; gap: .45rem; }
.card__specs svg { width: 18px; height: 18px; color: var(--gold-dark); }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.card__price { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.card__link { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 0 .7rem .7rem; margin: -.7rem 0; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); transition: gap .3s var(--ease); }
.card__link:hover { gap: .75rem; }

.empty { text-align: center; padding: 3rem 1rem; display: grid; justify-items: center; gap: .4rem; }
.empty a { color: var(--gold-dark); border-bottom: 1px solid currentColor; }
.empty .btn { margin-top: 1rem; }

/* 9. SPOTLIGHT ------------------------------------------------------------ */
.spotlight { overflow: hidden; }
.spotlight__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.spotlight__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 6.2vw, 5.8rem); white-space: nowrap; line-height: .9; color: var(--white); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1.4rem; }
.spotlight__intro { font-size: 1.05rem; max-width: 420px; }
.specs { margin: 2.2rem 0 2.6rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid var(--line-light); }
.specs dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.specs dd { margin: 0; color: var(--white); text-align: right; }
.specs__status { display: flex; align-items: center; gap: .55rem; }
.specs__status i { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 0 rgba(127, 209, 139, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 139, 0); } }
.specs__price dd { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); line-height: 1.2; }
.specs__price { align-items: center; }

.viewer__tabs { display: flex; gap: 2rem; margin-bottom: 1.2rem; }
.viewer__tab { position: relative; padding: .4rem 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .5); transition: color .3s; }
.viewer__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); transform-origin: left; }
.viewer__tab.is-active { color: var(--white); }
.viewer__tab.is-active::after { transform: scaleX(1); }
.viewer__stage { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--ink-2); }
.viewer__pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.viewer__pane.is-active { opacity: 1; visibility: visible; }
.viewer__main { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.4s var(--ease); }
.viewer__main.is-swapping { opacity: 0; transform: scale(1.03); }
.viewer__pane--plan { display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 50% 40%, #26221c, var(--ink-2)); }
.plan { width: 100%; height: 100%; }
.plan__walls path { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 3; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan__glow { fill: none; stroke: var(--gold-glow); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--gold-glow)); }
.plan__labels text, .plan__note { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; fill: rgba(255, 255, 255, .55); text-anchor: middle; opacity: 0; transition: opacity .8s 1.6s; }
.plan__note { text-anchor: start; fill: var(--gold-soft); }
.plan__pool { fill: rgba(110, 200, 220, .25); stroke: rgba(150, 220, 235, .6); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.viewer__pane--plan.is-active .plan__pool { transform: none; transition: transform 1.2s var(--ease) 1.8s; }
.viewer__pane--plan.is-active .plan__walls path { transition: stroke-dashoffset 1.8s var(--ease-io); stroke-dashoffset: 0; }
.viewer__pane--plan.is-active .plan__walls path:nth-child(n+2) { transition-delay: .5s; }
.viewer__pane--plan.is-active .plan__glow { transition: stroke-dashoffset 2s var(--ease-io) .8s; stroke-dashoffset: 0; }
.viewer__pane--plan.is-active text { opacity: 1; }

.viewer__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .7rem; transition: opacity .4s; }
.viewer.is-plan .viewer__thumbs { opacity: .25; pointer-events: none; }
.vthumb { aspect-ratio: 16 / 10; overflow: hidden; opacity: .45; outline: 1px solid transparent; outline-offset: -1px; transition: opacity .4s, outline-color .4s; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb:hover { opacity: .8; }
.vthumb.is-active { opacity: 1; outline-color: var(--gold); }
.spotlight__quote { margin: 2.6rem 0 0; text-align: right; font-family: var(--serif); text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--white); letter-spacing: .02em; }

/* 10. THE VIEW ------------------------------------------------------------ */
.view { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: var(--white); background: #0b1020; }
.view__media { position: absolute; inset: 0; transform: scale(1.06); transition: transform 10s cubic-bezier(.2, .6, .35, 1); }
.view.is-in .view__media { transform: scale(1); }
/* two pre-rendered photographs of the same scene, cross-faded */
.view__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.8s var(--ease-io); }
.view__img--night { opacity: 0; }
.view[data-mode="midnight"] .view__img--night { opacity: 1; }
.view__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.view::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(12, 8, 8, .66), rgba(12, 8, 8, .38) 42%, rgba(12, 8, 8, 0) 62%, rgba(8, 7, 6, .45)); }

/* pool-edge LED strip: switches on after the night image has faded in */
.fx-edge { fill: none; stroke: #e9fbff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: url(#lineGlowSm); transition: stroke-dashoffset .6s var(--ease-io), opacity .4s; }
.fx-edge--halo { stroke: #7fe9ff; stroke-width: 12; filter: url(#lineGlow); }
.view[data-mode="midnight"] .fx-edge { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-io) 1.2s, opacity .3s 1.2s; }
.view[data-mode="midnight"] .fx-edge--halo { opacity: .45; }

.view__content { position: relative; z-index: 4; padding-top: calc(var(--header-h) + clamp(1rem, 6vh, 4rem)); text-align: center; display: grid; justify-items: center; }
.view__title { font-family: var(--serif); text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: .02em; max-width: 16ch; text-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 4px 34px rgba(0, 0, 0, .5); }
.view__text { max-width: 500px; margin-top: 1.3rem; font-weight: 400; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .55); }

.mode-toggle {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(1.8rem, 6vh, 3.5rem); transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1fr; width: max-content; padding: 4px; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(10, 9, 7, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mode-toggle button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.7rem; min-width: 150px; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; transition: color .5s; }
.mode-toggle button svg { width: 16px; height: 16px; }
.mode-toggle__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--gold); transition: transform .7s var(--ease), background-color .7s; }
.view[data-mode="midnight"] .mode-toggle__pill { transform: translateX(100%); background: #2a3a66; }

/* 11. COMMUNITIES --------------------------------------------------------- */
.comms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.comm { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; color: var(--white); display: block; }
.comm:nth-child(2) { transform: translateY(3rem); }
.comm:nth-child(2).is-in { transform: translateY(3rem); }
.comm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.comm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 7, .8), rgba(10, 9, 7, .05) 55%); transition: background-color .6s; }
.comm:hover img { transform: scale(1.07); }
.comm__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 2.4vw, 2.2rem); }
.comm__num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-glow); }
.comm h3 { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.1; margin: .2rem 0 .6rem; }
.comm p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: rgba(255, 255, 255, .82); transition: max-height .7s var(--ease), opacity .7s, margin .7s; }
.comm:hover p, .comm:focus-visible p { max-height: 5rem; opacity: 1; margin-bottom: 1rem; }
.comm__meta { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; position: relative; }
.comm__meta::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--gold-glow); box-shadow: 0 0 8px var(--gold-glow); transition: width .9s var(--ease); }
.comm:hover .comm__meta::before { width: 100%; }
.comm__meta svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.comm:hover .comm__meta svg { transform: translate(3px, -3px); }

/* 12. JOURNEY ------------------------------------------------------------- */
.steps { position: relative; margin-top: 1rem; }
/* runs from the centre of the first dot to the centre of the last (4 columns, 2rem gaps) */
.steps__line { position: absolute; left: 8.5px; top: 7px; width: calc(75% + 1.5rem); height: 4px; overflow: visible; }
.steps__track { stroke: var(--sand-2); stroke-width: 1.5; fill: none; }
.steps__progress { stroke: var(--gold); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s linear; filter: drop-shadow(0 0 5px var(--gold-glow)); }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { position: relative; padding-top: 2.6rem; }
.step__dot { position: absolute; z-index: 1; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--gold); background: var(--sand); transition: background-color .5s, box-shadow .5s; }
.step__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease); }
.step.is-lit .step__dot { box-shadow: 0 0 0 6px rgba(195, 154, 95, .15), 0 0 16px var(--gold-glow); }
.step.is-lit .step__dot::after { transform: scale(1); }
.steps.is-drawn .steps__progress { stroke-dashoffset: 0; }
.step__num { font-family: var(--serif); font-size: 1rem; color: var(--gold-dark); letter-spacing: .1em; }
.step h3 { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin: .2rem 0 .7rem; }
.step p { color: var(--muted); margin: 0; max-width: 270px; }

/* 13. AGENTS -------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.agent__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 1.2rem; background: var(--sand); }
.agent__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.agent:hover .agent__photo img { filter: grayscale(0); transform: scale(1.04); }
.agent__links { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .5rem; }
.agent__links a { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ivory); color: var(--ink); border-radius: 50%; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s, color .3s; }
.agent__links a:nth-child(2) { transition-delay: .06s; }
.agent__links a:hover { background: var(--gold); color: var(--white); }
.agent:hover .agent__links a, .agent:focus-within .agent__links a { opacity: 1; transform: none; }
.agent__links svg { width: 18px; height: 18px; }
.agent h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }
.agent > p { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 0; }

/* 13b. TESTIMONIALS ------------------------------------------------------- */
.quotes__inner { max-width: 980px; text-align: center; position: relative; }
.quotes__mark { display: block; font-family: var(--serif); font-size: 8rem; line-height: .6; height: 3.4rem; color: var(--gold); }
.quotes__track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease), visibility .9s; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0 0 2.4rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; color: var(--white); }
.quote figcaption { display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.quote figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.quote figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--white); }
.quotes__dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2.6rem; }
.quotes__dots button { width: 36px; height: 36px; position: relative; }
.quotes__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .3); transition: background-color .4s, height .4s; }
.quotes__dots button.is-active::after { background: var(--gold); height: 2px; }

/* 14. CONTACT ------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__info .lead { color: var(--muted); font-size: 1.05rem; margin-top: 1.4rem; }
.contact__list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.5rem; }
.contact__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; color: var(--gold-dark); margin-top: .2rem; }
.contact__list span { display: grid; color: var(--text); }
.contact__list b { font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact__list a:hover { color: var(--gold-dark); }

.booking { position: relative; background: var(--white); padding: clamp(1.6rem, 4vw, 3.2rem); box-shadow: 0 40px 80px -50px rgba(21, 19, 15, .4); display: grid; gap: 1.5rem; overflow: hidden; }
.booking::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold-glow), var(--gold), transparent); }
.booking__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; align-content: start; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); padding: 0; }
.field em { font-style: normal; color: var(--muted); letter-spacing: .1em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .55rem 0;
  font-size: 1rem; color: var(--ink); outline: none; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer; padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a9824a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center / 14px;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: #b2aa9f; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.has-error input { border-color: #c0533f; }
.field--chips legend { margin-bottom: .55rem; }
.time-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.time-chips label { cursor: pointer; }
.time-chips label { position: relative; }
.time-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.time-chips span { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--line); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.time-chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.time-chips input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.booking .btn--block { margin-top: .4rem; padding: 1.25rem; }
.booking__note { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.booking__success {
  position: absolute; inset: 0; background: var(--white); display: grid; place-content: center; justify-items: center; text-align: center; gap: .6rem;
  padding: 2rem; animation: fadeIn .7s var(--ease) both;
}
.booking__success[hidden] { display: none; }
.booking__success h3 { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); }
.booking__success p { max-width: 380px; color: var(--muted); }
.booking__check { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); margin-bottom: .6rem; box-shadow: 0 0 30px -6px var(--gold-glow); }
.booking__check svg { width: 30px; height: 30px; }
@keyframes fadeIn { from { opacity: 0; } }

/* 14b. FOOTER ------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.footer__brand .logo { margin-bottom: 1.4rem; }
.footer__brand p { max-width: 260px; }
.footer h4 { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.3rem; }
.footer__col { display: grid; align-content: start; gap: .2rem; }
.footer__col a, .footer__col span { padding: .35rem 0; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--white); }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; transition: background-color .3s, border-color .3s, color .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.socials svg { width: 17px; height: 17px; }
.news-input { display: flex; border-bottom: 1px solid var(--line-light); margin-top: 1rem; transition: border-color .3s; }
.news-input:focus-within { border-color: var(--gold); }
.news-input input { flex: 1; min-width: 0; background: transparent; border: 0; padding: .8rem 0; color: var(--white); outline: none; }
.news-input input::placeholder { color: rgba(255, 255, 255, .4); }
.news-input button { width: 44px; display: grid; place-items: center; color: var(--gold-soft); transition: transform .3s var(--ease); }
.news-input button:hover { transform: translateX(4px); }
.news-input svg { width: 20px; height: 20px; }
.news-msg { display: block; min-height: 1.4em; margin-top: .6rem; color: var(--gold-soft); }
.footer__word {
  font-family: var(--serif); font-weight: 300; text-align: center; line-height: .8; letter-spacing: .12em;
  font-size: clamp(5rem, 22vw, 20rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  user-select: none; margin: 1rem 0 2rem; background: linear-gradient(90deg, transparent, rgba(255, 220, 160, .14), transparent);
  -webkit-background-clip: text; background-clip: text; background-size: 200% 100%; animation: shimmer 9s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); font-size: .8rem; }

/* 14c. CONCIERGE ---------------------------------------------------------- */
.concierge { position: fixed; right: max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-right)); bottom: max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-bottom)); z-index: 80; display: grid; justify-items: end; gap: .8rem; }
.concierge__btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(195, 154, 95, .8);
  transition: transform .4s var(--ease), background-color .3s;
}
.concierge__btn:hover { transform: scale(1.07); background: var(--gold-dark); }
.concierge__btn svg { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
.concierge__close { opacity: 0; transform: rotate(-90deg); }
.concierge.is-open .concierge__open { opacity: 0; transform: rotate(90deg); }
.concierge.is-open .concierge__close { opacity: 1; transform: none; }
.concierge__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2.6s var(--ease) infinite; }
.concierge.is-open .concierge__btn::before { animation: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.concierge__panel {
  width: min(300px, calc(100vw - 2rem)); background: var(--ivory); color: var(--text); padding: 1.5rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
  display: grid; gap: .3rem; animation: panelIn .45s var(--ease) both; transform-origin: bottom right;
}
.concierge__panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.concierge__title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0; }
.concierge__text { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.concierge__panel a:not(.concierge__book) { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .9rem; transition: color .3s; }
.concierge__panel a:not(.concierge__book):hover { color: var(--gold-dark); }
.concierge__panel svg { width: 18px; height: 18px; color: var(--gold-dark); }
.concierge__book { margin-top: .6rem; text-align: center; padding: .9rem; background: var(--ink); color: var(--white); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; transition: background-color .3s; }
.concierge__book:hover { background: var(--gold-dark); }

/* 15. RESPONSIVE ---------------------------------------------------------- */
/* hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .header__phone { display: none; }
  .nav { gap: 1.5rem; }
  .search { grid-template-columns: repeat(2, 1fr); }
  .search__field:nth-child(2) { border-right: 0; }
  .search__field:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .search__btn { grid-column: 1 / -1; padding: 1.15rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* tablet */
@media (max-width: 1024px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .logo::after { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .spotlight__grid, .contact__grid { grid-template-columns: 1fr; }
  .spotlight__quote { text-align: left; }

  .about__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about__img--tall { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; }
  .about__body { grid-column: 2; grid-row: 1; }
  .about__img--wide { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 21 / 9; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .steps__line { display: none; }
  .steps__list { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
  .step p { max-width: none; }
  .step__dot::after { transform: scale(1); }

  .comm p { max-height: 6rem; opacity: 1; margin-bottom: 1rem; }
}

@media (max-width: 900px) {
  .comms { grid-template-columns: 1fr; gap: 1.2rem; }
  .comm, .comm:nth-child(2), .comm:nth-child(2).is-in { aspect-ratio: 16 / 10; transform: none; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .section-head--center { align-items: center; }
}

/* phones */
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .section { padding: 4.5rem 0; }
  .display { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .lead { font-size: 1.05rem; }

  .hero { min-height: 560px; }
  .hero__arrow { display: none; }
  .hero__bottom { grid-template-columns: 1fr auto; padding-right: calc(var(--gutter) + 64px); }
  .hero__thumbs { grid-column: 1 / -1; grid-row: 1; justify-content: center; gap: .45rem; }
  .thumb { width: 21vw; max-width: 96px; }
  .thumb.is-active { transform: translateY(-4px); }
  .thumb__label { display: none; }
  .hero__scroll { display: none; }
  .hero__counter { grid-row: 2; }
  .slide__content { top: calc(var(--header-h) + 2.5rem); }
  .slide__title { font-size: clamp(2rem, 9.4vw, 2.8rem); }
  .slide__text { font-size: .98rem; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__img--tall, .about__body, .about__img--wide { grid-column: 1; grid-row: auto; }
  .about__img--tall { aspect-ratio: 4 / 4.2; }
  .about__img--wide { aspect-ratio: 16 / 10; }
  .stats { gap: 1.4rem 1rem; }

  .search { grid-template-columns: 1fr; }
  .search__field { border-right: 0; border-bottom: 1px solid var(--line); padding: .9rem 1.2rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; padding: .7rem 1.2rem; }
  .filters__count { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card__body { padding: 1.3rem 1.3rem 1.4rem; }
  .card__title { font-size: 1.65rem; }

  .spotlight__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .viewer__tabs { gap: 1.4rem; }
  .viewer__stage { aspect-ratio: 4 / 3; }
  .viewer__pane--plan { padding: .6rem; }
  .viewer__thumbs { gap: .4rem; }

  .view { min-height: 600px; }
  .view__content { padding-top: calc(var(--header-h) + 2rem); }
  .view__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .mode-toggle { bottom: 1.6rem; }
  .mode-toggle button { min-width: 0; padding: .85rem 1.15rem; }

  .comm, .comm:nth-child(2), .comm:nth-child(2).is-in { aspect-ratio: 4 / 3.8; }

  .steps__list { grid-template-columns: 1fr; gap: 2.4rem; border-left: 1px solid var(--sand-2); padding-left: 2rem; margin-left: 8px; }
  .step { padding-top: 0; }
  .step__dot { left: calc(-2rem - 9px); top: .3rem; }
  .step h3 { font-size: 1.7rem; }

  .team { gap: 1.6rem 1rem; }
  .agent h3 { font-size: 1.25rem; }
  .agent > p { font-size: .64rem; letter-spacing: .14em; }

  .quotes__mark { font-size: 6rem; height: 2.6rem; }
  .quote figcaption { flex-direction: column; text-align: center; gap: .7rem; }

  .booking { padding: 1.5rem 1.2rem; }
  .booking__row { grid-template-columns: 1fr; }
  .booking__success h3 { font-size: 2.1rem; }

  .footer__top { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__bottom { flex-direction: column; }
  .footer__word { margin: .5rem 0 1.5rem; }

  .concierge__btn { width: 50px; height: 50px; }
}

/* small phones */
@media (max-width: 400px) {
  .stats strong, .stats li > span { font-size: 2rem; }
  .specs dt { letter-spacing: .14em; }
  .specs dd { font-size: .95rem; }
  .card__specs { gap: .9rem; font-size: .8rem; }
  .mode-toggle button { padding: .8rem .9rem; letter-spacing: .16em; }
  .time-chips span { padding: .55rem .7rem; }
  .agent__links a { width: 34px; height: 34px; }
}

/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 420px; }
  .hero__thumbs, .hero__scroll { display: none; }
  .slide__content { top: calc(var(--header-h) + .5rem); }
  .slide__title { font-size: clamp(1.8rem, 6vh + 1rem, 2.6rem); }
  .slide__text { margin-top: .6rem; }
  .view { min-height: 480px; }
  .view__content { padding-top: calc(var(--header-h) + .5rem); }
  .view__text { display: none; }
  .mobile-menu { padding-top: calc(var(--header-h) + .5rem); overflow-y: auto; }
  .mobile-menu__nav a { font-size: 1.8rem; }
}

/* touch devices: reveal anything that would otherwise need hover */
@media (hover: none) {
  .comm p { max-height: 6rem; opacity: 1; margin-bottom: 1rem; }
  .comm .comm__meta::before { width: 100%; }
  .agent__links a { opacity: 1; transform: none; }
  .agent__photo img { filter: grayscale(.2); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .slide__media, .slide.is-active .slide__media { transform: none; }
  .glow-line__spark { display: none; }
}

/* comfortable tap areas for inline links */
.contact__list a, .footer__bottom a { display: inline-block; padding: .45rem 0; }
.link-arrow { padding-top: .5rem; }

/* WATERMARK ---------------------------------------------------------------- */
/* small "Property of Elyra One" badge, bottom-left */
.watermark {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
  background: rgba(13, 32, 38, .72); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  font-family: var(--sans); font-size: .7rem; font-weight: 400; line-height: 1; color: rgba(255, 255, 255, .72);
  pointer-events: none; user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.watermark__c {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); font-size: .62rem; color: #fff;
}
.watermark b { font-weight: 600; font-size: .8rem; color: #fff; letter-spacing: .01em; }
.credit { display: inline-block; margin-top: .35rem; font-size: .72rem; letter-spacing: .08em; color: rgba(255, 255, 255, .4); }

/* the footer sits on a higher layer, so it slides over the badge and hides it */
.footer { position: relative; z-index: 11; }

/* keep bottom-left UI clear of the badge */
.hero__bottom { bottom: calc(clamp(1.2rem, 4vh, 2.4rem) + 34px); }
@media (max-width: 760px) {
  .watermark { left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); font-size: .64rem; padding: .34rem .7rem .34rem .38rem; }
  .watermark b { font-size: .72rem; }
  .watermark__c { width: 15px; height: 15px; font-size: .56rem; }
  .hero__bottom { bottom: calc(1.2rem + 30px); }
  .mode-toggle { bottom: calc(1.6rem + 34px); }
}
