@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: "Clovenia";
  src: url("../assets/font/Clovenia.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}


:root {
--cream: #e6d3a9;
--cream-soft: #fff5e6;
--card-cream: #fbf2df;
--white: #ffffff;
--off-white: #f7f7f5;
--muted-white: rgba(255, 255, 255, 0.76);
--button: #9F4723;
--button-hover: #b5552f;
--black: #030302;
--black-soft: #121212;
--brown-text: #9F4723;
--soft-text: #76726d;
--line: rgba(0, 0, 0, 0.1);

--container: 1710px;
--wide-container: 1710px;
--side-padding: clamp(20px, 6vw, 168px);
--header-height: clamp(78px, 9vw, 150px);
--section-space: clamp(70px, 9vw, 132px);
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
overflow-x: clip;
scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: var(--header-height);
}

body {
margin: 0;
font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: var(--black);
color: #111;
overflow-x: clip;
font-weight: 300;
}

h1, h2, h3, h4, h5, h6, strong, b, th {
font-weight: 300;
}

body.menu-open,
body.modal-open {
overflow: hidden;
}

a {
color: inherit;
text-decoration: none;
}

button,
input,
select,
textarea {
font: inherit;
}

button {
cursor: pointer;
}

img,
svg {
display: block;
max-width: 100%;
}

img {
width: 100%;
height: auto;
object-fit: cover;
}

.container {
width: min(100% - var(--side-padding) * 2, var(--container));
margin-inline: auto;
}

.wide-container {
width: min(100% - var(--side-padding) * 2, var(--wide-container));
margin-inline: auto;
}

.icon-arrow {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../assets/Arrow.svg') no-repeat center / contain;
  mask: url('../assets/Arrow.svg') no-repeat center / contain;
  vertical-align: middle;
}

.left-arrow {
  transform: rotate(180deg);
}

.btn {
min-height: clamp(46px, 4vw, 58px);
display: inline-flex;
align-items: center;
justify-content: center;
gap: clamp(14px, 1.5vw, 24px);
border: 1px solid transparent;
padding: 0 clamp(20px, 2.2vw, 32px);
font-size: clamp(14px, 1vw, 18px);
font-weight: 300;
line-height: 1;
transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
white-space: nowrap;
}

.btn:hover {
transform: translateY(-2px);
}

.btn-primary {
background: var(--button);
color: #fff;
border-color: var(--button);
}

.btn-primary:hover {
background: var(--button-hover);
border-color: var(--button-hover);
}

.btn-outline-brown {
background: transparent;
color: #3f3c38;
border-color: rgba(159, 71, 35, 0.34);
}

.btn-outline-brown:hover {
color: var(--brown-text);
border-color: var(--brown-text);
}

.btn-black {
background: #000;
color: #fff;
border-color: #000;
}

.btn-cream,
.btn-yellow {
background: var(--cream);
color: #0c0d0e;
border-color: var(--cream);
font-weight: 500;
}

.btn-cream:hover,
.btn-yellow:hover {
background: #f2e3be;
border-color: #f2e3be;
color: #000000;
}

.section-head {
max-width: 1040px;
margin-inline: auto;
text-align: center;
}

.section-head h2 {
margin: 0;
color: #111;
font-family: "Clovenia", serif;
font-size: clamp(36px, 3.8vw, 56px);
font-weight: 300;
line-height: 1;
}

.section-head h2 span {
color: var(--brown-text);
}

.section-head p {
max-width: 980px;
margin: clamp(14px, 1.5vw, 24px) auto 0;
color: #7f7f7f;
font-size: clamp(16px, 1.3vw, 23px);
font-weight: 300;
line-height: 1.45;
}

.dark-head h2 {
color: #fff;
}

.dark-head h2 span {
color: var(--cream);
}

.dark-head p {
color: rgba(255, 255, 255, 0.76);
}

.site-header {
position: fixed;
inset: 0 0 auto;
z-index: 100;
transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(16px);
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.nav {
width: min(100% - var(--side-padding) * 2, var(--wide-container));
min-height: var(--header-height);
margin-inline: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: clamp(18px, 3vw, 52px);
transition: min-height 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled .nav {
min-height: clamp(60px, 6vw, 98px);
}

.logo {
flex: 0 0 auto;
display: inline-flex;
text-decoration: none;
}

.logo img {
height: clamp(40px, 5.2vw, 80px);
width: auto;
object-fit: contain;
display: block;
transition: height 0.3s ease;
}

.site-header.is-scrolled .logo img {
height: clamp(32px, 4.2vw, 54px);
}

.nav-links {
display: none;
align-items: center;
gap: clamp(30px, 4.2vw, 62px);
margin-left: auto;
color: rgba(255, 255, 255, 0.8);
font-size: clamp(16px, 1.05vw, 22px);
font-weight: 300;
}

.nav-links a {
position: relative;
white-space: nowrap;
transition: color 0.3s ease;
padding-bottom: 6px;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
background-color: var(--cream);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover,
.nav-links a.active {
color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
transform: scaleX(1);
transform-origin: left;
}

.nav-cta {
display: none;
}

.nav-toggle {
width: 48px;
aspect-ratio: 1;
display: grid;
place-items: center;
border: 1px solid rgba(255, 255, 255, 0.32);
border-radius: 50%;
background: rgba(0, 0, 0, 0.2);
color: #fff;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
content: "";
width: 18px;
height: 1px;
display: block;
position: relative;
background: currentColor;
transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle span::before {
position: absolute;
top: -6px;
}

.nav-toggle span::after {
position: absolute;
top: 6px;
}

.nav-toggle.active span {
transform: rotate(45deg);
}

.nav-toggle.active span::before,
.nav-toggle.active span::after {
top: 0;
transform: rotate(90deg);
}

@media (max-width: 899px) {
.nav-links {
position: fixed;
top: calc(var(--header-height) - 8px);
left: var(--side-padding);
right: var(--side-padding);
display: none;
flex-direction: column;
align-items: stretch;
gap: 0;
padding: 18px;
background: rgba(0, 0, 0, 0.92);
border: 1px solid rgba(255, 255, 255, 0.14);
backdrop-filter: blur(18px);
}

.nav-links.open {
display: flex;
}

.nav-links a {
padding: 14px 10px;
}
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: url("../assets/corsia-hero.webp") center / cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }
  .hero-video-mobile {
    display: block;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  width: min(100% - var(--side-padding) * 2, var(--wide-container));
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  padding-bottom: clamp(38px, 6vw, 70px);
  position: relative;
  z-index: 2;
}

.hero-bottom {
width: 100%;
display: grid;
grid-template-columns: 1fr;
gap: clamp(24px, 4vw, 64px);
align-items: end;
}

.hero h1 {
margin: 0;
max-width: 640px;
color: var(--cream);
font-family: "Clovenia", serif;
font-size: clamp(56px, 7vw, 86px);
font-weight: 300;
line-height: 0.92;
}

.hero p {
max-width: 760px;
margin: 0;
color: var(--muted-white);
font-size: clamp(17px, 1.4vw, 28px);
font-weight: 300;
line-height: 1.48;
}

.hero-outline-btn {
width: fit-content;
min-height: clamp(48px, 3.8vw, 66px);
display: inline-flex;
align-items: center;
justify-content: center;
gap: clamp(18px, 1.5vw, 30px);
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: 4px;
padding: 0 clamp(22px, 2vw, 35px);
background: rgba(0, 0, 0, 0.12);
color: rgba(255, 255, 255, 0.84);
font-size: clamp(16px, 1.1vw, 22px);
font-weight: 300;
white-space: nowrap;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-outline-btn .icon-arrow {
transition: transform 0.3s ease;
}

.hero-outline-btn:hover {
background-color: var(--cream);
color: var(--black);
border-color: var(--cream);
transform: translateY(-2px);
}

.hero-outline-btn:hover .icon-arrow {
transform: translateX(6px);
}

.stats-section {
background: #000;
padding: clamp(42px, 7vw, 72px) 0 clamp(62px, 8vw, 108px);
}

.section-line {
width: 100%;
height: 1px;
background: rgba(255, 255, 255, 0.28);
margin-bottom: clamp(58px, 8vw, 112px);
}

.stats-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(42px, 7vw, 86px);
}

.stats-grid article {
text-align: center;
transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.stats-grid article:hover {
transform: translateY(-8px);
}

.stats-grid strong {
display: block;
color: #e3cea3;
font-family: "Montserrat", sans-serif;
font-size: clamp(64px, 11vw, 92px);
font-weight: 300;
line-height: 0.82;
white-space: nowrap;
transition: color 0.4s ease, text-shadow 0.4s ease;
}

.stats-grid article:hover strong {
color: #fff;
text-shadow: 0 0 20px rgba(227, 206, 163, 0.35);
}

.stats-grid span {
display: block;
margin-top: clamp(18px, 2vw, 26px);
color: rgba(255, 255, 255, 0.66);
font-size: clamp(19px, 1.5vw, 27px);
font-weight: 300;
line-height: 1.1;
transition: color 0.4s ease;
}

.stats-grid article:hover span {
color: rgba(255, 255, 255, 0.95);
}

.about-pin-wrapper {
  position: relative;
  background: #fff;
}

.about-section {
--about-bottom-band: clamp(74px, 9vw, 130px);
--about-bottom-bridge: clamp(42px, 5vw, 86px);
--about-card-radius: clamp(34px, 5vw, 72px);
--about-card-surface:
url("../assets/Card.webp") no-repeat center / cover;
position: relative;
min-height: clamp(760px, 72vw, 1110px);
background:
linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 35%),
url("../assets/corsia-about.webp") center / cover no-repeat;
overflow: hidden;
}

.js .about-section:not(.about-overlay-ready) .about-card {
opacity: 0;
transform: translateY(34px);
transition:
opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
transform 1s cubic-bezier(0.16, 1, 0.3, 1);
will-change: opacity, transform;
}

.js .about-section.about-overlay-ready .about-card {
opacity: 1;
transform: translateY(0);
}


.about-section::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: calc(var(--about-bottom-band) + 2px);
background: #fff;
z-index: 0;
}

.about-section .wide-container {
position: relative;
z-index: 1;
padding-top: clamp(48px, 7vw, 150px);
padding-bottom: clamp(72px, 9vw, 128px);
}

.about-card {
position: relative;
width: min(100%, 900px);
padding:
clamp(36px, 5vw, 86px)
clamp(26px, 5vw, 94px)
clamp(42px, 5vw, 80px);
background: var(--about-card-surface);
}


.about-card h2 {
max-width: 750px;
margin: 0 0 clamp(24px, 3vw, 32px);
color: #111;
font-family: "Clovenia", serif;
font-size: clamp(36px, 3.8vw, 54px);
font-weight: 300;
line-height: 1.07;
}

.about-card h2 span {
color: var(--brown-text);
}

.about-card p {
max-width: 760px;
margin: 0;
color: var(--soft-text);
font-size: clamp(16px, 1.25vw, 22px);
font-weight: 300;
line-height: 1.47;
}

.about-card p + p {
margin-top: clamp(22px, 2.4vw, 32px);
}

.about-actions {
display: flex;
flex-wrap: wrap;
gap: clamp(14px, 2vw, 32px);
margin-top: clamp(34px, 4vw, 52px);
}

.buyers-section {
background: #fff;
padding: 0 0 clamp(10px, 2vw, 18px);
}

.buyers-section .section-head {
max-width: 1280px;
}

.buyers-section .section-head h2 {
font-size: clamp(36px, 3.4vw, 50px);
font-weight: 300;
}

.buyers-section .section-head p {
max-width: 1240px;
margin-top: clamp(20px, 1.6vw, 28px);
font-size: clamp(18px, 1.45vw, 30px);
font-weight: 300;
line-height: 1.42;
}

.buyer-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(18px, 1.4vw, 24px);
margin-top: clamp(48px, 4.8vw, 64px);
}

.buyer-card {
position: relative;
overflow: visible;
min-height: clamp(272px, 16.5vw, 338px);
display: grid;
grid-template-columns: clamp(100px, 6.8vw, 138px) minmax(0, 1fr);
align-items: center;
gap: clamp(24px, 2vw, 40px);
padding:
clamp(40px, 3.4vw, 68px)
clamp(28px, 4.3vw, 86px)
clamp(40px, 3.4vw, 68px);
background: url("../assets/cardbg.png") center / 100% 100% no-repeat;
transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease, box-shadow 0.4s ease;
border-radius: 12px;
}

.buyer-card:hover {
transform: scale(1.025) translateY(-6px);
filter: brightness(1.02);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.buyer-icon {
position: relative;
z-index: 1;
width: clamp(88px, 6.8vw, 138px);
height: auto;
justify-self: center;
object-fit: contain;
transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.buyer-card:hover .buyer-icon {
transform: scale(1.08) rotate(2deg);
}

.buyer-card div:last-child {
position: relative;
z-index: 1;
}

.buyer-card h3 {
margin: 0 0 clamp(14px, 1.1vw, 20px);
color: #121212;
font-size: clamp(22px, 1.7vw, 31px);
font-weight: 300;
line-height: 1.12;
}

.buyer-card p {
max-width: 500px;
margin: 0;
color: #807b75;
font-size: clamp(17px, 1.2vw, 24px);
font-weight: 300;
line-height: 1.33;
}

.appreciation-section {
background: #fff;
padding: clamp(22px, 3vw, 38px) 0 clamp(110px, 11vw, 188px);
}

.appreciation-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(36px, 5vw, 80px);
}

.appreciation-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.appreciation-image img {
  aspect-ratio: 843 / 565;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.appreciation-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.appreciation-image:hover img {
  transform: scale(1.04);
}

.appreciation-image:hover::after {
  opacity: 1;
}

.appreciation-content {
padding-top: clamp(0px, 2vw, 46px);
}

.appreciation-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(18px, 1.5vw, 24px);
  padding: clamp(18px, 1.8vw, 28px) clamp(16px, 2vw, 24px);
  margin-inline: clamp(-24px, -2vw, -16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, padding-left 0.35s ease, border-color 0.35s ease;
  border-radius: 6px;
}

.appreciation-item:first-child {
padding-top: clamp(18px, 1.8vw, 28px);
}

.appreciation-item:hover {
background-color: rgba(159, 71, 35, 0.05);
padding-left: clamp(24px, 3vw, 36px);
border-color: transparent;
}

.appreciation-item:hover + .appreciation-item {
border-top-color: transparent;
}

.appreciation-item:last-child {
border-bottom: 1px solid var(--line);
}

.appreciation-item:last-child:hover {
border-bottom-color: transparent;
}

.metric {
  color: var(--brown-text);
  font-family: "Clovenia", "Cormorant Garamond", serif;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.35s ease, color 0.35s ease;
}

.appreciation-item:hover .metric {
  color: var(--button-hover);
  transform: scale(1.03) translateX(4px);
}

.metric-only {
  font-size: clamp(52px, 6vw, 76px);
}

.metric-title {
  color: #171717;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.25;
}

.metric-title span {
  color: var(--brown-text);
}

.appreciation-item p {
  grid-column: 1 / -1;
  max-width: 660px;
  margin: 0;
  color: #7e7e7e;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.15;
}

.amenities-showcase {
  background: #000;
  color: #fff;
  padding: clamp(78px, 5.85vw, 120px) 0 0;
  overflow: hidden;
}

.amenities-showcase .section-head {
  max-width: 1260px;
}

.amenities-showcase .section-head p {
  max-width: 900px;
}

.amenity-carousel {
  --amenity-main-width: clamp(320px, 88vw, 640px);
  --amenity-main-height: calc(var(--amenity-main-width) * 1126 / 1083);
  --amenity-side-width: clamp(280px, 19.05vw, 390px);
  --amenity-side-height: calc(var(--amenity-side-width) * 493 / 390);
  --amenity-side-top: clamp(54px, 4vw, 80px);
  position: relative;
  width: 100%;
  min-height: clamp(580px, 65vw, 850px);
  margin-top: clamp(44px, 2.75vw, 56px);
}

.amenity-visual-stage {
  position: relative;
  width: 100%;
  height: max(var(--amenity-main-height), calc(var(--amenity-side-top) + var(--amenity-side-height)));
}

.amenity-slide-img {
  position: absolute;
  object-fit: cover;
  opacity: 1;
  transition:
    left 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease-out;
  will-change: left, top, width, height, transform, filter, opacity;
}

.amenity-slot-left {
  top: var(--amenity-side-top);
  left: 0;
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(1);
  filter: brightness(0.4);
}

.amenity-slot-center {
  top: 0;
  left: 50%;
  width: var(--amenity-main-width);
  height: var(--amenity-main-height);
  z-index: 2;
  transform: translateX(-50%) scale(1);
  filter: brightness(1);
}

.amenity-slot-right {
  top: var(--amenity-side-top);
  left: calc(100% - var(--amenity-side-width));
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(1);
  filter: brightness(0.4);
}

/* Exit and Enter slots for seamless wrap-around animation */
.amenity-slot-exit-left {
  top: var(--amenity-side-top);
  left: calc(-1 * var(--amenity-side-width) - 120px);
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(0.9);
  filter: brightness(0.2) contrast(0.8);
  opacity: 0;
  pointer-events: none;
}

.amenity-slot-exit-right {
  top: var(--amenity-side-top);
  left: calc(100% + 120px);
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(0.9);
  filter: brightness(0.2) contrast(0.8);
  opacity: 0;
  pointer-events: none;
}

.amenity-slot-enter-left {
  top: var(--amenity-side-top);
  left: calc(-1 * var(--amenity-side-width) - 120px);
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(0.9);
  filter: brightness(0.2) contrast(0.8);
  opacity: 0;
  pointer-events: none;
}

.amenity-slot-enter-right {
  top: var(--amenity-side-top);
  left: calc(100% + 120px);
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  z-index: 1;
  transform: translateX(0) scale(0.9);
  filter: brightness(0.2) contrast(0.8);
  opacity: 0;
  pointer-events: none;
}

.amenity-slot-hidden {
  top: var(--amenity-side-top);
  left: 50%;
  width: var(--amenity-side-width);
  height: var(--amenity-side-height);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.92);
}

.amenity-main-card {
  width: min(92vw, 1020px);
  margin: clamp(-220px, -10.75vw, -156px) auto 0;
  position: relative;
  z-index: 3;
  text-align: center;
}

.amenity-main-card h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(14px, 1.8vw, 22px) clamp(20px, 2.5vw, 36px);
  background: transparent;
  color: #fff;
  font-family: "Clovenia", serif;
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  position: relative;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}


.amenity-main-card h3::before {
  content: '';
  position: absolute;
  inset: -10px -20px;
  background: rgba(0, 0, 0, 0.8);
  filter: blur(20px);
  -webkit-filter: blur(60px);
  z-index: -1;
  border-radius: 30px;
  pointer-events: none;
}

.amenity-main-card p {
  max-width: 650px;
  margin: clamp(94px, 6.8vw, 134px) auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(18px, 1.22vw, 25px);
  font-weight: 300;
  line-height: 1.42;
  position: relative;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}

.amenity-main-card p::before {
  content: '';
  position: absolute;
  inset: -15px -30px;
  background: rgba(0, 0, 0, 0.8);
  filter: blur(25px);
  -webkit-filter: blur(25px);
  z-index: -1;
  border-radius: 30px;
  pointer-events: none;
}

.circle-arrow {
  position: absolute;
  bottom: clamp(105px, 10vw, 175px);
  width: clamp(56px, 3.85vw, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: clamp(20px, 1.35vw, 27px);
  z-index: 3;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.circle-arrow.left {
  left: clamp(24px, 23.4vw, 480px);
}

.circle-arrow.right {
  right: clamp(24px, 23.4vw, 480px);
}

.circle-arrow:hover {
  background: #fff;
  color: #000;
  transform: scale(1.04);
}

.amenity-main-card.is-content-changing h3,
.amenity-main-card.is-content-changing p {
  opacity: 0;
  transform: translateY(16px);
}

@media (min-width: 900px) {
  .amenities-showcase .section-head h2 {
    font-size: clamp(42px, 2.8vw, 56px);
    white-space: nowrap;
  }

  .amenity-carousel {
    --amenity-main-width: clamp(500px, 30.55vw, 626px);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 899px) {
  .amenities-showcase {
    padding-bottom: clamp(64px, 12vw, 96px);
  }

  .amenity-carousel {
    min-height: auto;
    padding-bottom: clamp(100px, 20vw, 130px);
  }

  .amenity-slide-img {
    transition-duration: 0.68s;
  }

  .amenity-slot-left {
    left: calc(-1 * var(--amenity-main-width) - 32px);
    width: var(--amenity-main-width);
    height: var(--amenity-main-height);
    top: 0;
    opacity: 0.24;
  }

  .amenity-slot-right {
    left: calc(100% + 32px);
    width: var(--amenity-main-width);
    height: var(--amenity-main-height);
    top: 0;
    opacity: 0.24;
  }

  .amenity-slot-exit-left,
  .amenity-slot-enter-left {
    left: calc(-2 * var(--amenity-main-width) - 64px);
    width: var(--amenity-main-width);
    height: var(--amenity-main-height);
    top: 0;
    opacity: 0;
    filter: brightness(0.1);
    pointer-events: none;
  }

  .amenity-slot-exit-right,
  .amenity-slot-enter-right {
    left: calc(100% + 2 * var(--amenity-main-width) + 64px);
    width: var(--amenity-main-width);
    height: var(--amenity-main-height);
    top: 0;
    opacity: 0;
    filter: brightness(0.1);
    pointer-events: none;
  }

  .amenity-main-card {
    margin-top: clamp(20px, 5vw, 32px) !important;
  }

  .amenity-main-card h3 {
    width: min(100%, 680px);
    min-height: clamp(86px, 19vw, 132px);
    margin-inline: auto;
    font-size: clamp(34px, 8.5vw, 58px);
  }

  .amenity-main-card p {
    max-width: 560px;
    margin-top: clamp(48px, 9vw, 76px);
  }

  .circle-arrow {
    bottom: 0;
  }

  .circle-arrow.left {
    left: calc(50% - 86px);
  }

  .circle-arrow.right {
    right: calc(50% - 86px);
  }
}

.walkthrough-section {
background: #fff;
}

.walkthrough-bg {
min-height: clamp(620px, 55vw, 940px);
position: relative;
background: url("../assets/corsia-walkthrough.webp") center / cover no-repeat;
display: flex;
align-items: flex-end;
overflow: hidden;
}

.walkthrough-video-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

.walkthrough-overlay {
position: absolute;
inset: auto 0 0;
height: 30%;
background: rgba(230, 211, 169, 0.68);
backdrop-filter: blur(2px);
z-index: 1;
}

.walkthrough-content {
position: relative;
z-index: 2;
width: min(100% - var(--side-padding) * 2, 1500px);
margin-inline: auto;
display: grid;
grid-template-columns: 1fr;
align-items: end;
}

.video-play-wrap {
min-height: 240px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.video-play {
  width: clamp(130px, 15vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: url('../assets/play.png') no-repeat center / contain;
  position: relative;
}

.video-play::before {
  content: none;
}

.video-pill {
position: absolute;
min-height: 56px;
border: 0;
border-radius: 999px;
background: #000;
color: #fff;
padding: 0 28px;
font-size: clamp(15px, 1.1vw, 20px);
}

.walkthrough-card {
background: var(--brown-text);
color: #fff;
padding: clamp(40px, 6vw, 92px);
}

.walkthrough-card h2 {
margin: 0 0 clamp(18px, 3vw, 36px);
font-family: "Clovenia", serif;
font-size: clamp(46px, 5.2vw, 76px);
font-weight: 300;
line-height: 0.95;
}

.walkthrough-card h2 span {
color: var(--cream);
}

.walkthrough-card p {
max-width: 650px;
margin: 0;
color: rgba(255, 255, 255, 0.9);
font-size: clamp(17px, 1.35vw, 25px);
font-weight: 300;
line-height: 1.45;
}

/* ── Video Modal Popup ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-container {
  position: relative;
  width: min(90vw, 1200px);
  aspect-ratio: 16/9;
  background: #000;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.video-modal.active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  color: var(--brown-text);
}

.video-modal-content {
  width: 100%;
  height: 100%;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .video-modal-close {
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 30px;
  }
}

/* ── Desktop Floating Action Icons ── */
.desktop-floating-actions {
  position: fixed;
  bottom: 90px;
  right: 32px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.desktop-floating-actions.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-float-btn.float-top {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-top: -14px;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, max-height 0.3s ease, margin-top 0.3s ease;
}

.desktop-float-btn.float-top.visible {
  opacity: 1;
  visibility: visible;
  max-height: 50px;
  margin-top: 0;
  transform: scale(1);
  pointer-events: auto;
}

.desktop-float-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 211, 169, 0.35);
  color: var(--cream, #E6D3A9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.desktop-float-btn svg {
  transition: transform 0.25s ease;
}

.desktop-float-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--brown-text, #2A1F1B);
  border-color: var(--cream, #E6D3A9);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.desktop-float-btn:hover svg {
  transform: scale(1.1);
}

/* Tooltip on Hover */
.float-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 211, 169, 0.3);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.desktop-float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 899px) {
  .desktop-floating-actions {
    display: none !important;
  }
}

/* ── Docked Mobile Bottom Quick Links Bar ── */
.mobile-bottom-quicklinks {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 62px;
  background: rgba(13, 13, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(230, 211, 169, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.mobile-bottom-quicklinks.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-quick-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  gap: 4px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s ease, background 0.25s ease;
}

.mobile-quick-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-quick-item.m-whatsapp:active {
  color: #25D366;
}

.mobile-quick-item.m-enquire {
  flex: 1.2;
  border-right: none;
  background: var(--cream, #E6D3A9);
  color: #030302;
  flex-direction: row;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
}

.mobile-quick-item.m-enquire:active {
  background: #ffffff;
  color: #000000;
}

@media (min-width: 900px) {
  .mobile-bottom-quicklinks {
    display: none !important;
  }
}

@media (max-width: 899px) {
  footer.footer {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Enquiry Popup Modal ── */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.enquiry-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.enquiry-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.enquiry-modal-container {
  position: relative;
  width: min(92vw, 620px);
  max-height: 90vh;
  max-height: 90svh;
  background: #fff;
  z-index: 1;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.enquiry-modal.active .enquiry-modal-container {
  transform: scale(1) translateY(0);
}

.enquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: none;
  border: 0;
  color: #333;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.enquiry-modal-close:hover {
  color: var(--brown-text);
  transform: rotate(90deg);
}

.enquiry-modal-body {
  padding: clamp(28px, 4vw, 48px);
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.enquiry-modal-body h3 {
  margin: 0;
  color: #111;
  font-size: clamp(24px, 1.7vw, 32px);
}

.enquiry-modal-body > p {
  margin: 8px 0 28px;
  color: #999;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 300;
}

.enquiry-modal-body .form-grid {
  grid-template-columns: 1fr 1fr;
}

.enquiry-modal-body .form-actions {
  grid-template-columns: 1fr 1fr;
}

.enquiry-modal-body small {
  display: block;
  margin-top: 22px;
  color: #b0b0b0;
  line-height: 1.45;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 599px) {
  .enquiry-modal-container {
    width: 96vw;
    max-height: 94vh;
    max-height: 94svh;
  }

  .enquiry-modal-body {
    padding: 24px 20px;
  }

  .enquiry-modal-body .form-grid {
    grid-template-columns: 1fr;
  }

  .enquiry-modal-body .form-actions {
    grid-template-columns: 1fr;
  }

  .enquiry-modal-close {
    top: 10px;
    right: 10px;
  }
}

.villa-section {
background: linear-gradient(180deg, #fff 0%, #fff 55%, #fff6e7 100%);
padding: var(--section-space) 0;
}

.villa-tabs {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: clamp(16px, 2vw, 28px);
margin-top: clamp(36px, 4vw, 58px);
}

.villa-type {
width: min(100%, 310px);
min-height: 64px;
border: 1px solid rgba(159, 71, 35, 0.3);
border-radius: 999px;
background: transparent;
color: #111;
font-size: clamp(18px, 1.4vw, 22px);
}

.villa-type.active {
background: #dbc39a;
border-color: var(--brown-text);
}

.floor-layout {
display: grid;
grid-template-columns: 1fr;
gap: 22px;
margin-top: clamp(46px, 5vw, 70px);
}

.floor-tabs {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.floor-tab {
min-width: 116px;
min-height: 48px;
border: 0;
background: #fbf1df;
color: #111;
font-size: 18px;
position: relative;
clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 50%, calc(100% - 16px) 100%, 0% 100%);
padding-right: 16px;
}

.floor-tab.active {
background: var(--brown-text);
color: #fff;
}

.floor-plan {
border: 1px solid #d5d5d5;
background: #fff;
padding: clamp(22px, 4vw, 48px);
}

.floor-plan img {
aspect-ratio: 880 / 290;
object-fit: contain;
}

.villa-specs {
display: grid;
grid-template-columns: 1fr;
gap: clamp(32px, 5vw, 76px);
margin-top: clamp(36px, 5vw, 62px);
}

.spec-list {
display: grid;
}

.spec-list div {
display: grid;
grid-template-columns: minmax(120px, 1fr) 40px minmax(160px, 1.25fr);
gap: 10px;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.09);
font-size: clamp(19px, 1.4vw, 25px);
}

.spec-list span,
.spec-list em {
color: #8b8479;
font-style: normal;
font-weight: 300;
}

.spec-list strong {
color: #111;
font-weight: 400;
}

.villa-bottom {
display: flex;
flex-direction: column;
gap: 24px;
margin-top: clamp(34px, 5vw, 58px);
}

.villa-size {
color: #111;
font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: clamp(28px, 2.5vw, 42px);
font-weight: 400;
}

.villa-size .sqft-text {
color: var(--brown-text);
}

.villa-size strong {
color: var(--brown-text);
font-size: clamp(48px, 4.4vw, 70px);
font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-weight: 400;
line-height: 0.8;
margin-inline: 0.45em;
}

.villa-actions {
display: flex;
flex-wrap: wrap;
gap: 16px;
}

.villa-actions .btn {
font-size: clamp(18px, 1.4vw, 22px);
min-height: clamp(52px, 4.5vw, 64px);
padding: 0 clamp(24px, 2.5vw, 36px);
}

.gallery-section {
background: #fff;
padding: var(--section-space) 0 clamp(35px, 4.5vw, 66px);
overflow: clip;
}

.gallery-scroll-stage {
margin-top: clamp(48px, 6vw, 86px);
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
}

.gallery-mosaic-content {
display: grid;
grid-template-columns: 1fr;
gap: clamp(14px, 1.6vw, 24px);
}

.gallery-mosaic-item {
margin: 0;
overflow: hidden;
background: #111;
}

.gallery-mosaic-item img {
width: 100%;
height: 100%;
aspect-ratio: 16 / 10;
object-fit: cover;
}

.gallery-slider-controls {
display: none;
}

.instagram-showcase {
min-height: clamp(520px, 58vw, 900px);
position: relative;
overflow: hidden;
background: #000;
}

.instagram-showcase > img {
width: 100%;
min-height: clamp(520px, 58vw, 900px);
object-fit: cover;
object-position: center;
}

.insta-arrow {
position: absolute;
top: 50%;
width: clamp(54px, 5vw, 72px);
aspect-ratio: 1;
border: 0;
border-radius: 50%;
background: #fff;
color: #000;
font-size: 24px;
transform: translateY(-50%);
}

.insta-left {
left: clamp(24px, 7vw, 120px);
}

.insta-right {
right: clamp(24px, 7vw, 120px);
}

.instagram-cta {
position: absolute;
left: 50%;
bottom: clamp(42px, 6vw, 90px);
transform: translateX(-50%);
min-height: 52px;
display: inline-flex;
align-items: center;
gap: 18px;
background: #000;
color: #fff;
padding: 0 28px;
font-size: clamp(15px, 1.1vw, 20px);
white-space: nowrap;
}

.location-section {
background: #fff;
padding-top: clamp(35px, 4.5vw, 66px);
padding-bottom: clamp(42px, 5vw, 70px);
}

.location-head {
width: min(100% - var(--side-padding) * 2, 900px);
margin-inline: auto;
text-align: center;
padding-bottom: clamp(54px, 6vw, 80px);
}

.location-head h2 {
margin: 0;
font-family: "Clovenia", serif;
font-size: clamp(36px, 3.6vw, 56px);
font-weight: 300;
line-height: 1.05;
color: #1a1210;
transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.location-head h2 span {
color: var(--brown-text);
}

.location-head p {
margin: 22px 0 0;
color: #777;
font-size: clamp(16px, 1.25vw, 22px);
font-weight: 300;
line-height: 1.45;
transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

/* Text exit — fades out + drifts up */
.location-head h2.text-exit,
.location-head p.text-exit {
opacity: 0;
transform: translateY(-10px);
}

/* Text enter — fades in from below */
.location-head h2.text-enter,
.location-head p.text-enter {
opacity: 1;
transform: translateY(0);
}

/* Prep state — positioned below, invisible, no transition */
.location-head h2.text-ready,
.location-head p.text-ready {
opacity: 0;
transform: translateY(14px);
transition: none;
}

/* ── Map container ── */
.map-wrap {
position: relative;
--map-height: clamp(500px, 56vh, 720px);
min-height: var(--map-height);
overflow: hidden;
border-radius: 6px 6px 0 0;
}

.map-stack {
position: relative;
width: 100%;
height: var(--map-height);
min-height: var(--map-height);
}

/* Each preloaded map iframe layer */
.map-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 0;
border: 0;
filter: saturate(0.85) contrast(0.92);
opacity: 0;
transform: scale(0.92);
pointer-events: none;
z-index: 0;
transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Visible / active map */
.map-layer.map-active {
opacity: 1;
transform: scale(1);
pointer-events: auto;
z-index: 2;
}

/* Departing map — zooms out like camera pulling up */
.map-layer.map-depart {
opacity: 0;
transform: scale(1.12);
pointer-events: none;
z-index: 3;
transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bottom vignette */
.map-wrap::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
  180deg,
  rgba(255, 255, 255, 0) 50%,
  rgba(255, 255, 255, 0.35) 100%
);
pointer-events: none;
z-index: 5;
}

/* ── Feature card — cinematic reveal ── */
.map-feature {
position: absolute;
right: clamp(20px, 5.5vw, 112px);
bottom: clamp(-5px, calc(0.4vw - 5px), 3px);
width: min(320px, calc(100% - 40px));
max-height: calc(var(--map-height) - 36px);
background: var(--brown-text);
color: #fff;
z-index: 6;
overflow: hidden;
box-sizing: border-box;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(255, 255, 255, 0.06);
transform-origin: bottom right;
padding: 16px;
}

/* Default state (visible) */
.map-feature {
opacity: 1;
}

/* Exit — simple fade out */
.map-feature.card-exit > * {
opacity: 0;
transition: opacity 0.25s ease;
}

/* Enter — simple fade in */
.map-feature.card-enter > * {
opacity: 1;
transition: opacity 0.3s ease;
}

/* Prep state — invisible, ready to enter */
.map-feature.card-ready > * {
opacity: 0;
transition: none;
}

.map-feature img {
display: block;
width: 100%;
aspect-ratio: 260 / 165;
object-fit: cover;
transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.map-feature:hover img {
transform: scale(1.06);
}

.map-feature h3 {
margin: 16px 0 10px;
color: #dbc39a;
font-size: clamp(22px, 2vw, 28px);
font-weight: 700;
line-height: 1.1;
transition: opacity 0.3s ease;
}

.map-feature-distance {
margin: 0 0 12px;
color: rgba(255, 255, 255, 0.82);
font-size: 15px;
font-weight: 400;
line-height: 1.25;
transition: opacity 0.3s ease;
}

.map-feature-time {
display: inline-block;
margin: 0 0 4px;
background: #fff;
transition: opacity 0.3s ease;
color: #000;
padding: 6px 14px;
font-size: 16px;
font-weight: 600;
border-radius: 0;
}

.map-feature-directions {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
margin-left: 8px;
padding: 6px 12px;
border: 1px solid rgba(255, 255, 255, 0.42);
color: #fff;
font-size: 15px;
font-weight: 500;
line-height: 1;
transition: opacity 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.map-feature-directions:hover {
background: #fff;
color: var(--brown-text);
}

/* ── Location cards grid ── */
.location-cards {
display: grid;
grid-template-columns: 1fr;
gap: clamp(12px, 1.5vw, 20px);
padding-block: clamp(42px, 5vw, 70px);
}

.location-card {
display: flex;
align-items: center;
gap: 16px;
border: 1px solid rgba(0, 0, 0, 0.06);
background: transparent;
text-align: left;
padding: 14px 16px;
border-radius: 10px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ambient glow on hover */
.location-card:hover {
background: rgba(159, 71, 35, 0.06);
border-color: rgba(159, 71, 35, 0.18);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Active card — warm glow */
.location-card.active {
background: rgba(159, 71, 35, 0.07);
border-color: rgba(159, 71, 35, 0.3);
box-shadow: 0 6px 24px rgba(159, 71, 35, 0.1);
}



/* Ambient shimmer sweep on active card */
.location-card.active::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
  105deg,
  transparent 40%,
  rgba(159, 71, 35, 0.06) 50%,
  transparent 60%
);
animation: shimmerSweep 1.8s 0.3s ease-out forwards;
pointer-events: none;
}

@keyframes shimmerSweep {
from {
  transform: translateX(-100%);
}
to {
  transform: translateX(100%);
}
}

.location-card img {
width: 92px;
aspect-ratio: 1;
flex: 0 0 auto;
border-radius: 8px;
object-fit: cover;
transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
filter: brightness(0.95);
}

.location-card:hover img,
.location-card.active img {
transform: scale(1.05);
filter: brightness(1);
}

.location-card strong {
display: block;
color: var(--brown-text);
font-size: clamp(20px, 1.35vw, 25px);
font-weight: 500;
line-height: 1.1;
transition: color 0.4s ease;
}

.location-card.active strong {
color: var(--brown-text);
}

.location-card em {
  display: block;
  margin-top: 4px;
  color: #000000;
  font-style: normal;
  font-size: clamp(17px, 1.1vw, 21px);
  font-weight: 500;
  transition: color 0.4s ease;
}

.location-card.active em {
color: #111;
}

.comparison-section {
background: #000;
}

.comparison-bg {
min-height: clamp(820px, 76vw, 1460px);
padding: clamp(78px, 6.45vw, 132px) 0 clamp(96px, 7.2vw, 148px);
background: #000 url("../assets/corsia-comparison-bg.webp") center top / 100% auto no-repeat;
}

.comparison-section .section-head {
max-width: min(100% - var(--side-padding) * 2, 1160px);
}

.comparison-section .section-head h2 {
font-size: clamp(40px, 2.95vw, 58px);
line-height: 1.05;
}

.comparison-section .section-head p {
max-width: 1120px;
margin-top: clamp(22px, 1.6vw, 32px);
font-size: clamp(18px, 1.25vw, 26px);
line-height: 1.38;
color: rgba(255, 255, 255, 0.72);
}

.comparison-card {
width: min(100% - clamp(22px, 7.9vw, 162px) * 2, 1632px);
margin: clamp(46px, 3vw, 58px) auto 0;
background: #dfc79d;
padding: clamp(30px, 3.55vw, 72px) clamp(22px, 5vw, 102px) clamp(42px, 4vw, 82px);
}

.comparison-table {
display: grid;
grid-template-columns: 1fr;
border: 1px solid rgba(159, 71, 35, 0.2);
}

.comparison-table > div {
display: flex;
align-items: center;
min-height: clamp(90px, 6.25vw, 128px);
padding: clamp(20px, 1.4vw, 28px) clamp(24px, 2.85vw, 58px);
color: #191611;
font-size: clamp(18px, 1.28vw, 26px);
font-weight: 300;
line-height: 1.42;
border-bottom: 1px solid rgba(159, 71, 35, 0.2);
}

.comparison-table .table-head {
color: var(--brown-text);
background: rgba(255, 242, 222, 0.35);
min-height: clamp(62px, 3.65vw, 74px);
font-size: clamp(24px, 1.75vw, 36px);
font-weight: 600;
line-height: 1.05;
padding-top: clamp(18px, 1vw, 20px);
padding-bottom: clamp(18px, 1vw, 20px);
}

.nri-section {
background: #000;
color: #fff;
padding: clamp(76px, 3.85vw, 78px) 0 clamp(76px, 6vw, 118px);
overflow: clip;
}

.nri-section .container {
width: min(100% - clamp(40px, 4.7vw, 96px) * 2, 1856px);
}

.nri-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(48px, 7vw, 96px);
align-items: start;
}

.nri-copy h2 {
margin: 0 0 clamp(24px, 2.2vw, 36px);
font-family: "Clovenia", serif;
font-size: clamp(36px, 3.6vw, 56px);
font-weight: 300;
line-height: 1;
}

.nri-copy h2 span {
color: var(--cream);
}

.nri-copy p {
max-width: 540px;
margin: 0 0 22px;
color: rgba(255, 255, 255, 0.78);
font-size: clamp(18px, 1.25vw, 22px);
font-weight: 300;
line-height: 1.5;
}

.nri-copy .btn {
margin-top: 18px;
}

.nri-cards {
display: flex;
flex-direction: column;
gap: clamp(24px, 1.35vw, 28px);
perspective: 1400px;
}

.nri-column {
--nri-column-offset: 0px;
--nri-column-y: 0px;
display: flex;
flex-direction: column;
gap: clamp(24px, 1.35vw, 28px);
transform: translate3d(0, calc(var(--nri-column-offset) + var(--nri-column-y)), 0);
will-change: transform;
backface-visibility: hidden;
}

.nri-cards article {
--nri-reveal-y: 0px;
background: #121212;
border: 1px solid rgba(255, 255, 255, 0.035);
border-radius: 0;
min-height: clamp(430px, 28.45vw, 583px);
padding: clamp(46px, 3.55vw, 72px) clamp(42px, 3.5vw, 72px);
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
backface-visibility: hidden;
}

.js .nri-cards article {
--nri-reveal-y: 56px;
opacity: 0;
transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
transition-delay: var(--nri-reveal-delay, 0ms);
will-change: opacity;
}

.js .nri-cards article > * {
transform: translate3d(0, var(--nri-reveal-y), 0);
transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
transition-delay: var(--nri-reveal-delay, 0ms);
will-change: transform;
}

.js .nri-cards article.nri-card-revealed {
--nri-reveal-y: 0px;
opacity: 1;
}

.js .nri-cards article.nri-card-parallax-ready {
transition: opacity 0.25s ease;
transition-delay: 0ms;
will-change: auto;
}

.js .nri-cards article.nri-card-parallax-ready > * {
will-change: auto;
}

.nri-cards img {
display: block;
width: clamp(82px, 5.7vw, 116px);
height: clamp(82px, 5.7vw, 116px);
object-fit: contain;
margin-bottom: clamp(22px, 1.2vw, 24px);
}

.nri-cards h3 {
margin: 0 0 clamp(16px, 1vw, 20px);
color: #fff;
font-size: clamp(26px, 1.65vw, 34px);
line-height: 1.2;
font-weight: 600;
letter-spacing: 0;
}

.nri-cards p {
margin: 0;
color: rgba(255, 255, 255, 0.6);
font-size: clamp(20px, 1.22vw, 25px);
font-weight: 300;
line-height: 1.25;
}

.cumulative-section {
background: #fff;
padding: var(--section-space) 0;
}

.cumulative-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(40px, 5vw, 70px);
}

.cumulative-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.cumulative-image img {
  aspect-ratio: 525 / 735;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.cumulative-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.cumulative-image:hover img {
  transform: scale(1.04);
}

.cumulative-image:hover::after {
  opacity: 1;
}

.cumulative-copy h2 {
margin: 0 0 30px;
font-family: "Clovenia", serif;
font-size: clamp(38px, 3.6vw, 60px);
font-weight: 300;
line-height: 1;
}

.cumulative-copy h2 span {
color: var(--brown-text);
}

.cumulative-copy p {
margin: 0 0 26px;
color: #777;
font-size: clamp(16px, 1.25vw, 22px);
font-weight: 300;
line-height: 1.43;
}

.cumulative-actions {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin: 38px 0;
}

.cumulative-copy blockquote {
margin: 0;
background: var(--card-cream) url("../assets/quotebg.png") no-repeat center / 100% 100%;
padding: clamp(34px, 5vw, 64px);
position: relative;
}



.cumulative-copy blockquote p {
position: relative;
color: #111;
font-size: clamp(18px, 1.5vw, 24px);
line-height: 1.5;
}

.cumulative-copy blockquote strong {
display: block;
color: var(--brown-text);
font-size: clamp(18px, 1.4vw, 24px);
margin-top: 18px;
}

.cumulative-copy blockquote span {
color: #9a948c;
font-size: clamp(14px, 1vw, 17px);
}

.faq-section {
background: #fff;
padding-top: clamp(20px, 2vw, 38px);
padding-bottom: var(--section-space);
}

.faq-list {
margin-top: clamp(44px, 5vw, 64px);
border-top: 1px solid var(--line);
}

.faq-item {
border-bottom: 1px solid var(--line);
}

.faq-question {
width: 100%;
min-height: clamp(72px, 7vw, 96px);
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border: 0;
background: transparent;
padding: 0;
text-align: left;
color: #111;
font-size: clamp(18px, 1.35vw, 24px);
font-weight: 400;
}

.faq-question em {
color: #7d7d7d;
font-style: normal;
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
transform: rotate(-45deg);
transition: transform 0.5s ease-in-out, color 0.5s ease-in-out;
}

.faq-question em svg {
width: 100%;
height: auto;
display: block;
}

.faq-item.active .faq-question span {
color: var(--brown-text);
}

.faq-item.active .faq-question em {
color: var(--brown-text);
transform: rotate(135deg);
}

.faq-answer {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-answer p {
max-width: 950px;
margin: 0;
padding: 0 0 32px;
color: #828282;
font-size: clamp(17px, 1.25vw, 21px);
font-weight: 300;
line-height: 1.55;
}

.faq-answer a {
  color: var(--brown-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.faq-answer a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.faq-item.active .faq-answer {
max-height: 300px;
opacity: 1;
}

.enquiry-section {
background: #f3f3f3;
padding-top: var(--section-space);
}

.enquiry-grid {
display: grid;
grid-template-columns: 1fr;
gap: clamp(42px, 6vw, 80px);
padding-bottom: clamp(70px, 8vw, 110px);
}

.enquiry-copy h2 {
margin: 0 0 24px;
font-family: "Clovenia", serif;
font-size: clamp(32px, 3.2vw, 48px);
font-weight: 300;
line-height: 1.05;
}

.enquiry-copy h2 span {
color: var(--brown-text);
}

.enquiry-copy > p {
max-width: 680px;
color: #333;
font-size: clamp(16px, 1.2vw, 22px);
font-weight: 300;
line-height: 1.45;
}

.contact-stack {
display: grid;
gap: 34px;
margin: clamp(52px, 5vw, 72px) 0;
}

.contact-stack div,
.contact-stack a,
.footer-contact div,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.contact-stack a,
.footer-contact a {
  cursor: pointer;
}

.contact-stack span,
.footer-contact span {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--button);
  color: #fff;
  font-size: 25px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.contact-stack span img,
.footer-contact span img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.contact-stack p,
.footer-contact p {
  margin: 0;
  color: #8a8a8a;
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 300;
}

.contact-stack strong,
.footer-contact strong {
  display: block;
  color: #111;
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 300;
  transition: color 0.3s ease;
}

.contact-stack a:hover span,
.footer-contact a:hover span {
  transform: scale(1.06);
  background-color: #b5512b;
}

.contact-stack a:hover strong,
.footer-contact a:hover strong {
  color: var(--brown-text);
}

.brochure-card {
background: #fff;
width: min(100%, 640px);
padding: clamp(28px, 4vw, 44px);
}

.brochure-card h3 {
margin: 0 0 16px;
color: #111;
font-size: clamp(20px, 1.35vw, 25px);
}

.brochure-card p {
margin: 0 0 28px;
color: #555;
font-size: clamp(15px, 1vw, 18px);
font-weight: 300;
line-height: 1.45;
}

.enquiry-form {
background: #fff;
border: 1px solid #d5d5d5;
padding: clamp(28px, 5vw, 54px);
}

.enquiry-form h3 {
margin: 0;
color: #111;
font-size: clamp(24px, 1.7vw, 32px);
}

.enquiry-form > p {
margin: 8px 0 34px;
color: #999;
font-size: clamp(15px, 1vw, 18px);
font-weight: 300;
}

.form-grid {
display: grid;
grid-template-columns: 1fr;
gap: 22px;
}

.form-grid label,
.form-field-wrap {
display: grid;
gap: 10px;
color: #4f4f4f;
font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
width: 100%;
border: 0;
background: #f1f1f1;
min-height: 48px;
padding: 0 16px;
color: #111;
outline: none;
}

.form-grid textarea {
min-height: 90px;
padding-top: 16px;
resize: vertical;
}

.full {
grid-column: 1 / -1;
}

.form-actions {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
margin-top: 26px;
}

.enquiry-form small {
display: block;
margin-top: 22px;
color: #b0b0b0;
line-height: 1.45;
text-align: center;
}

.disclaimer {
background: #fff3df;
color: #333;
padding: clamp(34px, 4vw, 52px) 0;
font-size: clamp(14px, 1vw, 18px);
font-weight: 300;
line-height: 1.55;
}

.disclaimer a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.disclaimer a:hover {
  color: var(--brown-text);
}

.footer {
background: #000;
color: #fff;
padding: clamp(70px, 9vw, 120px) 0 34px;
}

.footer-top {
display: grid;
grid-template-columns: 1fr;
gap: 50px;
padding-bottom: clamp(48px, 6vw, 80px);
}

.footer-brand p {
max-width: 560px;
margin: 42px 0;
color: rgba(255, 255, 255, 0.8);
font-size: clamp(18px, 1.4vw, 27px);
font-weight: 300;
line-height: 1.45;
}

.socials {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.socials a {
width: 56px;
aspect-ratio: 1;
display: grid;
place-items: center;
border-radius: 50%;
background: #333;
transition: background-color 0.3s ease;
}

.socials a.social-fb:hover {
background: #1877F2;
}

.socials a.social-ig:hover {
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeB 90%);
}

.socials a.social-x:hover {
background: #000000;
}

.socials a.social-yt:hover {
background: #FF0000;
}

.socials a img {
width: 22px;
height: 22px;
object-fit: contain;
filter: invert(1);
}

.footer-links {
display: grid;
grid-template-columns: 1fr 1fr;
gap: clamp(42px, 8vw, 150px);
}

.footer-links h3,
.footer-contact h3 {
margin: 0 0 28px;
color: var(--cream);
font-size: clamp(18px, 1.4vw, 26px);
}

.footer-links a {
display: block;
margin-bottom: 28px;
color: rgba(255, 255, 255, 0.88);
font-size: clamp(18px, 1.35vw, 27px);
font-weight: 300;
transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
color: var(--cream);
transform: translateX(6px);
}

.footer-contact {
display: grid;
grid-template-columns: 1fr;
gap: 26px;
padding-block: clamp(42px, 5vw, 64px);
border-top: 1px solid rgba(230, 211, 169, 0.35);
border-bottom: 1px solid rgba(230, 211, 169, 0.35);
}

.footer-contact strong {
color: #fff;
}

.footer-bottom {
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(14px, 1vw, 18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--brown-text);
}

@media (min-width: 600px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}

.stats-grid article:nth-child(5) {
grid-column: 1 / -1;
}

.buyer-card {
grid-template-columns: clamp(104px, 6.8vw, 138px) minmax(0, 1fr);
}

.appreciation-item {
grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
}

.floor-layout {
grid-template-columns: 110px minmax(0, 1fr);
}

.floor-tabs {
flex-direction: column;
}

.form-grid {
grid-template-columns: repeat(2, 1fr);
}

.form-actions {
grid-template-columns: repeat(2, 1fr);
}

.location-cards {
grid-template-columns: repeat(2, 1fr);
}

.comparison-table {
grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
}

.comparison-table > div {
border-right: 1px solid rgba(159, 71, 35, 0.2);
}

.comparison-table > div:nth-child(2n) {
padding-left: clamp(34px, 4.8vw, 98px);
border-right: 0;
}
}

@media (min-width: 768px) {
.hero-bottom {
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.hero-outline-btn {
grid-column: 2;
}

.walkthrough-content {
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.video-play-wrap {
min-height: 300px;
transform: translateX(clamp(-120px, -8vw, -60px));
}

.video-play {
transform: translateX(clamp(-120px, -8vw, -60px));
}

.gallery-scroll-stage {
height: 390vh;
padding-bottom: 0;
}

.gallery-mosaic {
--gallery-content-scale: 1;
--gallery-counter-scale: 1;
--gallery-counter-opacity: 1;
--gallery-ref-img-scale: 1.45;
--gallery-controls-opacity: 0;
--gallery-controls-y: 18px;
position: sticky;
top: 0;
height: 100vh;
height: 100svh;
min-height: 640px;
overflow: hidden;
background: #fff;
font-size: min(clamp(7.2px, 0.72vw, 10px), clamp(5.6px, 0.65vh, 10px));
}

.gallery-mosaic-content {
position: absolute;
top: 50%;
left: 50%;
width: 129.6em;
height: 127.8em;
display: block;
transform: translate(-50%, -50%) scale(var(--gallery-content-scale));
transform-origin: center center;
will-change: transform;
}

.gallery-mosaic-item {
position: absolute;
will-change: transform, opacity;
transform: scale(var(--gallery-counter-scale));
opacity: var(--gallery-counter-opacity);
}

.gallery-mosaic-item img {
position: absolute;
inset: 0;
aspect-ratio: auto;
will-change: transform;
}

.gallery-scale-ref {
transform: scale(1);
opacity: 1;
}

.gallery-scale-ref img {
transform: scale(var(--gallery-ref-img-scale));
}

.gallery-slider-controls {
position: absolute;
inset: 0;
z-index: 4;
display: block;
opacity: var(--gallery-controls-opacity);
transform: translateY(var(--gallery-controls-y));
pointer-events: none;
will-change: opacity, transform;
}

.gallery-mosaic.gallery-slider-ready .gallery-slider-controls {
pointer-events: auto;
}

.gallery-slide-arrow {
position: absolute;
top: 50%;
width: clamp(54px, 5vw, 72px);
aspect-ratio: 1;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.92);
color: #000;
font-size: 24px;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
transform: translateY(-50%);
transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-slide-arrow:hover {
background: #fff;
transform: translateY(-50%) scale(1.04);
}

.gallery-slide-left {
left: clamp(24px, 7vw, 120px);
}

.gallery-slide-right {
right: clamp(24px, 7vw, 120px);
}

.gallery-slide-cta {
position: absolute;
left: 50%;
bottom: clamp(42px, 6vw, 90px);
min-height: 52px;
display: inline-flex;
align-items: center;
gap: 18px;
background: #000;
color: #fff;
padding: 0 28px;
font-size: clamp(15px, 1.1vw, 20px);
white-space: nowrap;
transform: translateX(-50%);
}

.g-top {
top: 0;
left: 32.9em;
width: 77em;
height: 41.2em;
}

.g-left {
top: 50.3em;
left: 0;
width: 30.9em;
height: 34.1em;
}

.g-center {
top: 43.2em;
left: 32.9em;
width: 63.8em;
height: 41.2em;
}

.g-right {
top: 50.3em;
right: 0;
width: 30.9em;
height: 34.1em;
}

.g-bottom-left {
bottom: 12.6em;
left: 6.6em;
width: 37.5em;
height: 28.8em;
}

.g-bottom-right {
bottom: 0;
left: 46.1em;
width: 63.8em;
height: 41.2em;
}

.cumulative-grid,
.enquiry-grid {
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.villa-specs {
grid-template-columns: 1fr 1fr;
}

.villa-bottom {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
}

@media (min-width: 900px) {
.nav-toggle {
display: none;
}

.nav-links,
.nav-cta {
display: flex;
}

.hero-bottom {
grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.18fr) auto;
gap: clamp(46px, 5vw, 92px);
}

.hero-outline-btn {
grid-column: auto;
justify-self: end;
}

.stats-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: clamp(24px, 4vw, 78px);
}

.stats-grid article:nth-child(5) {
grid-column: auto;
}

.stats-grid strong {
font-size: clamp(48px, 3.4vw, 66px);
}

.stats-grid span {
font-size: clamp(16px, 1.32vw, 27px);
}

.buyer-grid {
grid-template-columns: repeat(2, 1fr);
}

.appreciation-grid {
grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.94fr);
align-items: center;
}

.appreciation-content {
padding-top: 0;
}

.location-cards {
grid-template-columns: repeat(4, 1fr);
}

.nri-grid {
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
}

.nri-copy {
position: sticky;
top: clamp(104px, 5.85vw, 120px);
}

.nri-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: clamp(24px, 1.35vw, 28px);
align-items: start;
padding-bottom: clamp(250px, 19.1vw, 392px);
max-width: 780px;
margin-left: auto;
margin-right: clamp(20px, 3vw, 32px);
}

.nri-column:nth-child(2) {
--nri-column-offset: clamp(240px, 15.05vw, 308px);
}

.footer-top {
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.footer-contact {
grid-template-columns: 0.7fr repeat(3, 1fr);
align-items: center;
}

.footer-contact h3 {
margin: 0;
}

.villa-specs,
.villa-bottom {
max-width: calc(100% - 132px);
margin-left: auto;
}
}

@media (min-width: 1280px) {
.hero-inner {
padding-bottom: 58px;
}

.appreciation-grid {
gap: 80px;
}
}

@media (min-width: 1400px) and (max-width: 1599px) {
.nri-grid {
grid-template-columns: minmax(0, 594px) minmax(0, 610px);
gap: 86px;
}

.nri-copy {
top: 104px;
}

.nri-cards {
width: 610px;
max-width: none;
grid-template-columns: repeat(2, minmax(0, 295px));
gap: 20px;
margin-left: 0;
margin-right: 0;
padding-bottom: 180px;
}

.nri-column {
gap: 20px;
}

.nri-column:nth-child(2) {
--nri-column-offset: 217px;
}

.hero h1 {
max-width: 520px;
font-size: 64px;
line-height: 0.9;
}

.hero p {
max-width: 560px;
font-size: 21px;
line-height: 1.42;
}

.hero-outline-btn {
min-height: 52px;
padding-inline: 28px;
font-size: 17px;
}

.about-section {
min-height: 840px;
--about-card-surface: url("../assets/Card1440px.png") no-repeat center / 100% 100%;
}

.about-section .wide-container {
padding-top: 68px;
padding-bottom: 80px;
}

.about-card {
width: 760px;
min-height: 646px;
padding: 116px 56px 48px 130px;
}

.about-card h2 {
max-width: 450px;
margin-bottom: 18px;
font-size: 38px;
line-height: 1.03;
}

.about-card p {
max-width: 500px;
font-size: 16px;
line-height: 1.42;
}

.about-card p + p {
margin-top: 18px;
}

.about-actions {
gap: 18px;
margin-top: 28px;
}

.about-actions .btn {
min-height: 46px;
padding-inline: 24px;
font-size: 15px;
}

.buyers-section {
padding-bottom: 10px;
}

.appreciation-grid {
grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.88fr);
gap: 58px;
align-items: center;
}

.appreciation-content {
padding-top: 0;
}

.appreciation-item {
grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1fr);
gap: 16px 22px;
padding: 18px 18px;
margin-inline: -18px;
}

.metric {
font-size: 50px;
line-height: 1.02;
}

.metric-only {
font-size: 54px;
}

.metric-title {
font-size: 17px;
line-height: 1.2;
}

.appreciation-item p {
max-width: 540px;
font-size: 20px;
line-height: 1.18;
}

.nri-copy h2 {
font-size: 46px;
line-height: 0.98;
}

.nri-copy p {
max-width: 520px;
font-size: 17px;
line-height: 1.45;
}

.nri-copy p + p {
margin-top: 22px;
}

.nri-copy .btn {
min-height: 48px;
padding-inline: 28px;
font-size: 18px;
}

.nri-cards article {
min-height: 390px;
padding: 44px;
}

.nri-cards img {
width: 82px;
height: 82px;
margin-bottom: 18px;
}

.nri-cards h3 {
margin-bottom: 14px;
font-size: 22px;
line-height: 1.18;
}

.nri-cards p {
font-size: 17px;
line-height: 1.24;
}

.cumulative-image {
height: 100%;
}

.cumulative-image img {
height: 100%;
aspect-ratio: auto;
object-fit: cover;
}

.amenity-main-card p {
max-width: 480px;
}

.circle-arrow {
bottom: 220px;
}

.video-play-wrap {
transform: translate(clamp(-120px, -7vw, -60px), 33px);
}
}

@media (min-width: 1440px) {
  .about-section {
    --about-card-surface: url("../assets/Card.webp") no-repeat center / 80% 100%;
  }
  .about-section .wide-container {
    padding-top: 130px;
  }
  .about-card {
    width: 816px;
    min-height: 582px;
    padding: 84px 182px 43px 184px;
  }
  .about-card h2 {
    max-width: 405px;
    margin-bottom: 16px;
    font-size: 34px;
  }
  .about-card p {
    max-width: 450px;
    font-size: 14.5px;
  }
  .about-card p + p {
    margin-top: 16px;
  }
  .about-actions {
    gap: 16px;
    margin-top: 25px;
  }
  .about-actions .btn {
    min-height: 41px;
    padding-inline: 22px;
    font-size: 13.5px;
  }
}

@media (min-width: 1600px) {
.hero,
.hero-inner {
min-height: 1000px;
}

.about-section {
min-height: 1110px;
}

.about-section .wide-container {
padding-top: 280px;
}

  .about-card {
    width: 980px;
    min-height: 698px;
    padding: 105px 218px 52px 221px;
  }
  .about-card h2 {
    max-width: 486px;
    margin-bottom: 19px;
    font-size: 41px;
  }
  .about-card p {
    max-width: 540px;
    font-size: 17.5px;
  }
  .about-card p + p {
    margin-top: 19px;
  }
  .about-actions {
    gap: 19px;
    margin-top: 30px;
  }
  .about-actions .btn {
    min-height: 49px;
    padding-inline: 26px;
    font-size: 16px;
  }
}

@media (max-width: 680px) {
.btn,
.hero-outline-btn {
width: 100%;
}

.map-wrap {
--map-height: clamp(360px, 62vh, 520px);
}

.about-actions,
.villa-actions,
.cumulative-actions {
flex-direction: column;
}

.buyer-card {
grid-template-columns: 1fr;
text-align: center;
justify-items: center;
}

.buyer-card p {
max-width: 100%;
}

.metric,
.metric-only {
white-space: normal;
}

.spec-list div {
grid-template-columns: 1fr;
gap: 4px;
}

.spec-list em {
display: none;
}

.map-feature {
display: none !important;
}

.instagram-cta {
width: calc(100% - 40px);
justify-content: center;
white-space: normal;
text-align: center;
}

.footer-links {
grid-template-columns: 1fr;
}
}

/* Custom Select Dropdowns */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.custom-select-trigger {
  width: 100%;
  min-height: 48px;
  background: #f1f1f1;
  border: 1px solid transparent;
  padding: 0 16px;
  color: #111;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  font-weight: 300;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.custom-select-trigger:focus {
  border-color: var(--button);
}

.custom-select-trigger::after {
  content: "";
  width: 12px;
  height: 8px;
  background-color: #666;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  transition: transform 0.3s ease;
}

.custom-select-container.open .custom-select-trigger::after {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-container.open .custom-select-options {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.custom-select-options ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.custom-select-options li {
  padding: 10px 16px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  font-weight: 300;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-select-options li:hover {
  background-color: var(--card-cream);
  color: var(--brown-text);
}

.custom-select-options li.selected {
  background-color: var(--button);
  color: #fff;
}

/* ── Lenis & Reveal Animations ── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* Scroll reveal states */
.js .section-head,
.js .stats-grid,
.js .about-card,
.js .about-images,
.js .buyers-grid,
.js .appreciation-grid,
.js .amenity-visual-stage,
.js .floor-layout,
.js .villa-specs,
.js .villa-bottom,
.js .gallery-scroll-stage,
.js .map-wrap,
.js .location-cards,
.js .comparison-card,
.js .nri-grid,
.js .cumulative-grid,
.js .faq-accordion,
.js .enquiry-grid {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js .section-head.revealed,
.js .stats-grid.revealed,
.js .about-card.revealed,
.js .about-images.revealed,
.js .buyers-grid.revealed,
.js .appreciation-grid.revealed,
.js .amenity-visual-stage.revealed,
.js .floor-layout.revealed,
.js .villa-specs.revealed,
.js .villa-bottom.revealed,
.js .gallery-scroll-stage.revealed,
.js .map-wrap.revealed,
.js .location-cards.revealed,
.js .comparison-card.revealed,
.js .nri-grid.revealed,
.js .cumulative-grid.revealed,
.js .faq-accordion.revealed,
.js .enquiry-grid.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .nri-cards article,
  .nri-cards article {
    --nri-reveal-y: 0px;
    opacity: 1;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .js .nri-cards article > *,
  .nri-cards article > * {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* ── Mobile Carousels & Indicators ── */
@media (max-width: 899px) {
  .buyer-grid,
  .nri-cards {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 20px !important;
    padding-bottom: 12px !important;
    margin-left: calc(-1 * var(--side-padding)) !important;
    margin-right: calc(-1 * var(--side-padding)) !important;
    padding-left: var(--side-padding) !important;
    padding-right: var(--side-padding) !important;
    will-change: scroll-position;
  }

  .buyer-grid::-webkit-scrollbar,
  .nri-cards::-webkit-scrollbar {
    display: none !important;
  }

  .buyer-grid article,
  .nri-cards article {
    scroll-snap-align: center !important;
    margin: 0 !important;
    height: auto !important;
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  .stats-grid article {
    margin: 0 !important;
    height: auto !important;
    flex: none !important;
    scroll-snap-align: none !important;
    border: 1px solid rgba(227, 206, 163, 0.24) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
    padding: clamp(16px, 4vw, 24px) clamp(12px, 3vw, 18px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .stats-grid strong {
    font-size: clamp(32px, 8vw, 44px) !important;
    line-height: 1 !important;
  }

  .stats-grid span {
    font-size: clamp(12px, 3vw, 14px) !important;
    margin-top: 8px !important;
    line-height: 1.2 !important;
  }

  /* Specific rendering order on mobile */
  .stats-grid article:nth-child(1) {
    order: 1 !important;
  }
  .stats-grid article:nth-child(3) {
    order: 2 !important;
  }
  .stats-grid article:nth-child(4) {
    order: 3 !important;
  }
  .stats-grid article:nth-child(5) {
    order: 4 !important;
  }
  .stats-grid article:nth-child(2) {
    order: 5 !important;
    grid-column: 1 / -1 !important;
  }

  .buyer-grid article {
    flex: 0 0 86% !important;
  }

  .nri-cards article {
    flex: 0 0 86% !important;
    aspect-ratio: 1 / 1 !important;
    min-height: auto !important;
    padding: clamp(20px, 5vw, 32px) !important;
    justify-content: center !important;
    --nri-reveal-y: 0px !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .nri-cards article > * {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .nri-cards img {
    width: clamp(48px, 12vw, 64px) !important;
    height: clamp(48px, 12vw, 64px) !important;
    margin-bottom: clamp(12px, 3vw, 18px) !important;
  }

  .nri-cards h3 {
    font-size: clamp(18px, 4.5vw, 22px) !important;
    margin-bottom: clamp(8px, 2vw, 12px) !important;
  }

  .nri-cards p {
    font-size: clamp(13px, 3.2vw, 15px) !important;
    line-height: 1.35 !important;
  }

  .nri-column {
    --nri-column-offset: 0px !important;
    --nri-column-y: 0px !important;
    display: contents !important;
    transform: none !important;
    will-change: auto !important;
  }

  .nri-column:nth-child(2) {
    --nri-column-offset: 0px !important;
    transform: none !important;
  }

  .nri-cards {
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 12px !important;
  }

  .comparison-bg {
    padding-bottom: clamp(32px, 5vw, 48px) !important;
  }

  .nri-section {
    padding-top: clamp(32px, 5vw, 48px) !important;
  }

  /* Disable mobile hover states to prevent tap locks */
  .stats-grid article:hover {
    transform: none !important;
  }
  .stats-grid article:hover strong {
    color: #e3cea3 !important;
    text-shadow: none !important;
  }
  .stats-grid article:hover span {
    color: rgba(255, 255, 255, 0.66) !important;
  }

  .buyer-card:hover {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
  .buyer-card:hover .buyer-icon {
    transform: none !important;
  }
}

.slider-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .slider-dots-wrapper {
    display: none !important;
  }
}

.slider-dots-wrapper .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.buyers-section .slider-dots-wrapper .dot,
.gallery-section .slider-dots-wrapper .dot {
  background: rgba(0, 0, 0, 0.32);
}

.slider-dots-wrapper .dot.active {
  background: var(--cream);
  transform: scale(1.2);
}

.buyers-section .slider-dots-wrapper .dot.active,
.gallery-section .slider-dots-wrapper .dot.active {
  background: var(--brown-text);
  transform: scale(1.2);
}

/* ── Mobile Comparison Table Scroll ── */
@media (max-width: 599px) {
  .amenity-main-card p {
    margin-top: 18px !important;
  }

  .floor-tabs {
    justify-content: center !important;
  }

  .comparison-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 24px 16px !important;
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-radius: 8px;
  }
  
  .comparison-table {
    grid-template-columns: 150px 280px !important;
    min-width: 430px !important;
  }

  .comparison-table > div {
    border-right: 1px solid rgba(159, 71, 35, 0.2) !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
    min-height: auto !important;
  }

  .comparison-table > div:nth-child(2n) {
    border-right: 0 !important;
    padding-left: 14px !important;
  }

  .comparison-table .table-head {
    font-size: 17px !important;
    min-height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

}

/* ── Mobile Gallery Carousel ── */
@media (max-width: 767px) {
  .gallery-mosaic-content {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 16px !important;
    padding-bottom: 12px !important;
    margin-left: calc(-1 * var(--side-padding)) !important;
    margin-right: calc(-1 * var(--side-padding)) !important;
    padding-left: var(--side-padding) !important;
    padding-right: var(--side-padding) !important;
    will-change: scroll-position;
  }

  .gallery-mosaic-content::-webkit-scrollbar {
    display: none !important;
  }

  .gallery-mosaic-item {
    flex: 0 0 86% !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
  }
}

/* ── Footer Accordions on Mobile ── */
@media (max-width: 767px) {
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .footer-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .footer-accordion-toggle {
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
  }

  .footer-accordion-toggle .accordion-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 6px;
  }

  .footer-accordion-item.active .footer-accordion-toggle .accordion-arrow {
    transform: rotate(-135deg);
  }

  .footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-top: 0 !important;
  }

  .footer-accordion-item.active .footer-accordion-content {
    max-height: 250px;
    opacity: 1;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }

  .footer-accordion-content a {
    margin-bottom: 0 !important;
    font-size: 16px !important;
  }

}

@media (min-width: 768px) {
  .footer-accordion-toggle .accordion-arrow {
    display: none !important;
  }
  .footer-accordion-content {
    max-height: none !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .gallery-mosaic-item.g-extra {
    display: none !important;
  }
}

/* ── Premium Preloader ── */
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100svh !important;
}

.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0e0d; /* Brand luxury dark background */
  z-index: 99999;
  display: grid;
  place-items: center;
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-logo-wrap {
  animation: logoFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: scale(0.92);
}

.preloader-logo {
  height: clamp(48px, 6vw, 72px);
  width: auto;
  object-fit: contain;
  filter: brightness(1);
}

.preloader-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(227, 206, 163, 0.18); /* Light cream transparent */
  border-top-color: #e3cea3; /* Brand cream accent */
  border-radius: 50%;
  animation: preloaderSpin 0.95s linear infinite;
}

/* Preloader Keyframes */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Page loaded state */
.site-preloader.loaded {
  transform: translateY(-100%);
  opacity: 0.9;
  pointer-events: none;
}

/* ── Scroll to Top Button ── */
/* ── Mobile Scroll to Top Button ── */
.scroll-to-top-mobile {
  position: fixed;
  bottom: 76px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 211, 169, 0.35);
  color: var(--cream, #E6D3A9);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.scroll-to-top-mobile.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .scroll-to-top-mobile {
    display: none !important;
  }
}

/* ── Brochure Modal ── */
.brochure-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.brochure-modal.open {
  opacity: 1;
  visibility: visible;
}

.brochure-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brochure-modal-container {
  position: relative;
  background: #0f0e0d;
  border: 1px solid rgba(227, 206, 163, 0.24);
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brochure-modal.open .brochure-modal-container {
  transform: scale(1) translateY(0);
}

.brochure-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

.brochure-modal-close:hover {
  color: #e3cea3;
}

.brochure-modal-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  color: #e3cea3;
  margin-bottom: 8px;
  font-weight: 300;
  text-align: center;
}

.brochure-modal-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
}

.brochure-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brochure-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brochure-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color 0.3s, background-color 0.3s;
}

.brochure-form input:focus {
  outline: none;
  border-color: #e3cea3;
  background: rgba(255, 255, 255, 0.05);
}

.brochure-form button.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  height: 48px;
}

body.modal-open {
  overflow: hidden !important;
}

/* ── Floor Plan Viewer Modal ── */
.floor-plan {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 8px;
}

.floor-plan::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 14, 13, 0.08);
  transition: background-color 0.3s;
  pointer-events: none;
}

.floor-plan:hover::after {
  background: rgba(15, 14, 13, 0.0);
}

.floorplan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floorplan-modal.open {
  opacity: 1;
  visibility: visible;
}

.floorplan-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.floorplan-modal-container {
  position: relative;
  background: #0f0e0d;
  border: 1px solid rgba(227, 206, 163, 0.2);
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.floorplan-modal.open .floorplan-modal-container {
  transform: scale(1);
}

.floorplan-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(227, 206, 163, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floorplan-modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #e3cea3;
  margin: 0;
}

.floorplan-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.3s;
}

.floorplan-modal-close:hover {
  color: #e3cea3;
}

.floorplan-viewer-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #141312;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.floorplan-viewer-viewport:active {
  cursor: grabbing;
}

.floorplan-viewer-image {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.floorplan-controls {
  padding: 16px 24px;
  border-top: 1px solid rgba(227, 206, 163, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0c0b0a;
}

.floorplan-controls .control-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 206, 163, 0.2);
  color: #e3cea3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.floorplan-controls .control-btn:hover {
  background: #e3cea3;
  color: #0c0b0a;
  border-color: #e3cea3;
}

.floorplan-controls .control-btn:active {
  transform: scale(0.95);
}

.floorplan-controls .text-btn {
  width: auto;
  border-radius: 22px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .floorplan-modal-container {
    height: 75vh;
  }
  .floorplan-controls .control-btn {
    width: 40px;
    height: 40px;
  }
  .floorplan-controls .text-btn {
    width: auto !important;
    height: 40px !important;
    border-radius: 20px !important;
    padding: 0 16px !important;
  }
}

/* ── Mobile Villa Section Layout Reordering ── */
@media (max-width: 767px) {
  .villa-section > .container {
    display: flex !important;
    flex-direction: column !important;
  }

  .villa-section > .container > .section-head {
    order: 1 !important;
  }
  .villa-section > .container > .villa-tabs {
    order: 2 !important;
  }
  .villa-section > .container > .floor-layout {
    order: 3 !important;
  }
  
  .villa-bottom {
    display: contents !important;
  }

  .villa-size {
    order: 4 !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .villa-specs {
    order: 5 !important;
    margin-top: 0 !important;
  }

  .villa-actions {
    order: 6 !important;
    margin-top: 24px !important;
  }
}

/* ── Thank You Modal ── */
.thank-you-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.thank-you-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.thank-you-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.thank-you-modal-container {
  position: relative;
  width: min(90vw, 480px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  overflow: hidden;
  padding: 40px 30px;
  text-align: center;
}

.thank-you-modal.active .thank-you-modal-container {
  transform: scale(1) translateY(0);
}

.thank-you-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  color: #333;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.thank-you-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.thank-you-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  background: rgba(159, 71, 35, 0.1);
  color: var(--brown-text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.thank-you-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thank-you-modal h3 {
  font-family: "Clovenia", serif;
  font-size: 32px;
  color: #111;
  margin: 0 0 12px;
  font-weight: 300;
}

.thank-you-modal p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 28px;
  font-weight: 300;
}

.thank-you-modal .btn {
  min-width: 140px;
}

/* ── iPad Air 820px Viewport Specific Fixes ── */
@media (min-width: 768px) and (max-width: 899px) {
  /* 1. Stats Section Grid Layout Fix */
  .stats-grid article:nth-child(5) {
    grid-column: auto !important;
  }

  /* 2. About Card Responsive Glassmorphic Layout Fix */
  .about-card {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* 3. Cumulative Image Vertical Stretch Fix */
  .cumulative-image {
    align-self: start !important;
    height: auto !important;
  }

  .cumulative-image img {
    height: auto !important;
    aspect-ratio: 525 / 735 !important;
  }

  /* 4. Hero Title Alignment Fix for iPad Portrait */
  .hero h1 {
    grid-row: 1 / span 2;
  }
}

/* ── iPad Air 1180px Landscape Viewport Specific Fixes ── */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* 1. Hero Bottom Column Width and Cut-off Fix */
  .hero-bottom {
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.2fr) auto !important;
    gap: clamp(24px, 3vw, 48px) !important;
  }

  /* 2. About Card Glassmorphism & Centering Alignment Fix */
  .about-section {
    min-height: 720px !important;
  }

  .about-section .wide-container {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .about-section::after {
    height: 60px !important;
  }

  .about-card {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 620px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* 3. Location Cards Grid Column Overflow Fix */
  .location-card span {
    flex: 1 !important;
    min-width: 0 !important;
  }

  /* 4. Cumulative Image Vertical Stretch Fix */
  .cumulative-image {
    align-self: start !important;
    height: auto !important;
  }

  .cumulative-image img {
    height: auto !important;
    aspect-ratio: 525 / 735 !important;
  }

  /* 5. Hero Title Font Size Reduction for iPad Landscape */
  .hero h1 {
    font-size: 56px !important;
  }
}

/* ── Mobile Walkthrough Button Style when moved inside card ── */
@media (max-width: 767px) {
  .walkthrough-card .video-pill {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 24px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: fit-content !important;
    z-index: 2 !important;
  }
}

/* ── Mobile Gallery Fullscreen Slideshow Modal ── */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-modal-container {
  position: relative;
  background: #0f0e0d;
  border: 1px solid rgba(227, 206, 163, 0.2);
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  height: 75vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.gallery-modal.open .gallery-modal-container {
  transform: scale(1);
}

.gallery-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(227, 206, 163, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #e3cea3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

.gallery-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.3s;
}

.gallery-modal-close:hover {
  color: #e3cea3;
}

.gallery-modal-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #141312;
  display: grid;
  place-items: center;
  touch-action: none;
}

.gallery-modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s ease;
}

.gallery-modal-controls {
  padding: 16px 24px;
  border-top: 1px solid rgba(227, 206, 163, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c0b0a;
}

.gallery-modal-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 206, 163, 0.2);
  color: #e3cea3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.gallery-modal-btn:active {
  transform: scale(0.95);
}

.gallery-modal-counter {
  color: #e3cea3;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .gallery-mosaic-item {
    cursor: pointer;
  }

  .enquiry-copy > p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .contact-stack {
    gap: 22px !important;
    margin: 32px 0 !important;
  }

  .contact-stack div,
  .contact-stack a,
  .footer-contact div,
  .footer-contact a {
    gap: 12px !important;
  }

  .contact-stack span,
  .footer-contact span {
    width: 42px !important;
    height: 42px !important;
  }

  .contact-stack span img,
  .footer-contact span img {
    max-width: 18px !important;
    max-height: 18px !important;
  }

  .contact-stack p,
  .footer-contact p {
    font-size: 12px !important;
  }

  .contact-stack strong,
  .footer-contact strong {
    font-size: 15px !important;
    font-weight: 500 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .brochure-card p {
    font-size: 13px !important;
  }

  .footer-bottom {
    font-size: 12px !important;
  }

  .villa-size {
    font-size: 20px !important;
  }

  .villa-size strong {
    font-size: 36px !important;
  }

  .stats-grid strong {
    font-size: 52px !important;
  }
}

/* ── Corsia Private Access Exit-Intent Popup ── */
.corsia-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}

.corsia-exit-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease, visibility 0s linear 0s;
}

.corsia-exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 2, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.corsia-exit-popup__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  width: min(100%, 1000px);
  height: min(720px, calc(100svh - 40px));
  max-height: 90vh;
  max-height: 90svh;
  overflow: hidden;
  color: #111;
  background: var(--card-cream);
  border: 1px solid rgba(227, 206, 163, 0.24);
  border-radius: 12px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 250ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.corsia-exit-popup.is-open .corsia-exit-popup__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.corsia-exit-popup__dialog:focus {
  outline: none;
}

.corsia-exit-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(3, 3, 2, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.corsia-exit-popup__close:hover {
  color: #fff;
  background: var(--button);
  border-color: var(--button);
}

.corsia-exit-popup__visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--black-soft);
}

.corsia-exit-popup__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 2, 0.06) 30%, rgba(3, 3, 2, 0.84) 100%);
  pointer-events: none;
}

.corsia-exit-popup__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.corsia-exit-popup__image-note {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 3vw, 36px);
  bottom: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 5px;
  margin: 0;
  color: #fff;
}

.corsia-exit-popup__image-note strong {
  color: var(--cream);
  font-family: "Clovenia", serif;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 300;
  line-height: 1;
}

.corsia-exit-popup__image-note span {
  color: var(--muted-white);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corsia-exit-popup__panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(30px, 3.4vw, 44px) clamp(28px, 3.7vw, 48px);
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 71, 35, 0.35) transparent;
}

.corsia-exit-popup__form-state,
.corsia-exit-popup__success {
  width: 100%;
}

.corsia-exit-popup__eyebrow {
  margin: 0 0 10px;
  color: var(--brown-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.corsia-exit-popup__panel h2 {
  max-width: 540px;
  margin: 0;
  color: #111;
  font-family: "Clovenia", serif;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.02;
  text-wrap: balance;
}

.corsia-exit-popup__description {
  margin: 14px 0 0;
  color: #5d5953;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.corsia-exit-popup__benefits {
  display: grid;
  gap: 8px;
  margin: 17px 0 19px;
  padding: 14px 0;
  color: #3f3c38;
  border-top: 1px solid rgba(159, 71, 35, 0.18);
  border-bottom: 1px solid rgba(159, 71, 35, 0.18);
  list-style: none;
  font-size: 13px;
  font-weight: 300;
}

.corsia-exit-popup__benefits li {
  position: relative;
  padding-left: 21px;
  line-height: 1.35;
}

.corsia-exit-popup__benefits li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 6px;
  height: 10px;
  border-right: 1px solid var(--brown-text);
  border-bottom: 1px solid var(--brown-text);
  transform: rotate(45deg);
}

.corsia-exit-popup__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.corsia-exit-popup__field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: #4f4f4f;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.corsia-exit-popup__field > span {
  display: flex;
  justify-content: space-between;
  min-height: 14px;
}

.corsia-exit-popup__field em {
  color: #918b82;
  font-size: 10px;
  font-style: normal;
  font-weight: 300;
}

.corsia-exit-popup__field input,
.corsia-exit-popup__field select {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  color: #111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  font-weight: 300;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.corsia-exit-popup__field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%232A1F1B" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 36px;
}

.corsia-exit-popup__field select option {
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
}

/* Custom Select Container & Trigger for Exit Popup */
.corsia-exit-popup__field .custom-select-container {
  position: relative;
  width: 100%;
}

.corsia-exit-popup__field .custom-select-trigger {
  width: 100%;
  min-height: 45px;
  padding: 0 36px 0 13px;
  color: #111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.corsia-exit-popup__field .custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 7px;
  background-color: var(--brown-text, #2A1F1B);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="black" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="black" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  transition: transform 0.3s ease;
}

.corsia-exit-popup__field .custom-select-container.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.corsia-exit-popup__field .custom-select-trigger:focus,
.corsia-exit-popup__field .custom-select-container.open .custom-select-trigger {
  background: #fff;
  border-color: var(--brown-text, #2A1F1B);
  box-shadow: 0 0 0 3px rgba(159, 71, 35, 0.12);
}

.corsia-exit-popup__field .custom-select-trigger.is-placeholder {
  color: #918d87;
}

.corsia-exit-popup__field .custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(42, 31, 27, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  z-index: 105;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.corsia-exit-popup__field .custom-select-container.open .custom-select-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.corsia-exit-popup__field .custom-select-options ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.corsia-exit-popup__field .custom-select-options li {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 300;
  color: #222222;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.corsia-exit-popup__field .custom-select-options li:hover {
  background-color: rgba(230, 211, 169, 0.35);
  color: var(--brown-text, #2A1F1B);
}

.corsia-exit-popup__field .custom-select-options li.selected {
  background-color: var(--brown-text, #2A1F1B);
  color: #ffffff;
  font-weight: 400;
}

.corsia-exit-popup__field .custom-select-options li.disabled {
  color: #b0aaa2;
  cursor: default;
  pointer-events: none;
  font-style: italic;
}

.corsia-exit-popup__field input::placeholder {
  color: #918d87;
}

.corsia-exit-popup__field input:focus,
.corsia-exit-popup__field select:focus {
  background: #fff;
  border-color: var(--brown-text);
  box-shadow: 0 0 0 3px rgba(159, 71, 35, 0.12);
}

.corsia-exit-popup__field input[aria-invalid="true"],
.corsia-exit-popup__field select[aria-invalid="true"] {
  border-color: #9f4723;
}

.corsia-exit-popup__field-error {
  display: none;
  color: #8b3218;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.corsia-exit-popup__field-error:not(:empty) {
  display: block;
}

.corsia-exit-popup__actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.corsia-exit-popup__submit {
  width: 100%;
  min-height: 50px;
}

.corsia-exit-popup__submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.corsia-exit-popup__continue {
  justify-self: center;
  padding: 4px 8px;
  color: #68635d;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(104, 99, 93, 0.45);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  transition: color 200ms ease, border-color 200ms ease;
}

.corsia-exit-popup__continue:hover {
  color: var(--brown-text);
  border-color: var(--brown-text);
}

.corsia-exit-popup__trust {
  margin: 11px 0 0;
  color: #77716a;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
}

.corsia-exit-popup__success {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #5d5953;
}

.corsia-exit-popup__success[hidden] {
  display: none;
}

.corsia-exit-popup__success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--brown-text);
  background: rgba(159, 71, 35, 0.1);
  border: 1px solid rgba(159, 71, 35, 0.22);
  border-radius: 50%;
}

.corsia-exit-popup__success-icon svg {
  width: 28px;
  height: 28px;
}

.corsia-exit-popup__success > p:not(.corsia-exit-popup__eyebrow) {
  max-width: 480px;
  margin: 18px 0 28px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.corsia-exit-popup__success .btn {
  min-width: 250px;
}

.corsia-exit-popup :where(button, input, select):focus-visible {
  outline: 2px solid var(--brown-text);
  outline-offset: 3px;
}

@media (max-width: 899px) and (min-width: 800px) {
  .corsia-exit-popup__dialog {
    grid-template-columns: minmax(270px, 0.72fr) minmax(470px, 1.28fr);
  }

  .corsia-exit-popup__panel {
    padding-inline: 28px;
  }
}

@media (max-width: 799px) {
  .corsia-exit-popup {
    padding: 8px;
  }

  .corsia-exit-popup__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 124px minmax(0, 1fr);
    width: min(100%, 620px);
    height: calc(100svh - 16px);
    max-height: none;
    border-radius: 10px;
  }

  .corsia-exit-popup__visual::after {
    background: linear-gradient(180deg, rgba(3, 3, 2, 0.02), rgba(3, 3, 2, 0.64));
  }

  .corsia-exit-popup__image {
    object-position: center 54%;
  }

  .corsia-exit-popup__image-note {
    left: 18px;
    bottom: 14px;
    gap: 2px;
  }

  .corsia-exit-popup__image-note strong {
    font-size: 23px;
  }

  .corsia-exit-popup__image-note span {
    font-size: 10px;
  }

  .corsia-exit-popup__panel {
    padding: 22px 20px 28px;
  }

  .corsia-exit-popup__panel h2 {
    padding-right: 0;
    font-size: clamp(29px, 8vw, 36px);
  }

  .corsia-exit-popup__description {
    margin-top: 10px;
    font-size: 13px;
  }

  .corsia-exit-popup__benefits {
    gap: 6px;
    margin: 13px 0 15px;
    padding: 11px 0;
    font-size: 12px;
  }

  .corsia-exit-popup__form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .corsia-exit-popup__field input,
  .corsia-exit-popup__field select {
    min-height: 48px;
    font-size: 16px;
  }

  .corsia-exit-popup__success {
    align-items: center;
    min-height: 100%;
    padding: 12px 0;
    text-align: center;
  }

  .corsia-exit-popup__success > p:not(.corsia-exit-popup__eyebrow) {
    font-size: 15px;
  }
}

@media (max-height: 620px) and (min-width: 800px) {
  .corsia-exit-popup__dialog {
    height: calc(100svh - 24px);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corsia-exit-popup,
  .corsia-exit-popup__dialog,
  .corsia-exit-popup__close,
  .corsia-exit-popup__field input,
  .corsia-exit-popup__field select,
  .corsia-exit-popup__continue {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .corsia-exit-popup__dialog,
  .corsia-exit-popup.is-open .corsia-exit-popup__dialog {
    transform: none;
  }
}

/* ── Dedicated Thank You Page Styles ── */
.thank-you-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0c0d0e;
  color: #e5e5e5;
}

.thank-you-main {
  flex: 1 0 auto;
  padding-top: 100px;
}

.thank-you-section {
  padding: 60px 0 90px;
  position: relative;
}

.thank-you-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 82, 39, 0.15) 0%, rgba(12, 13, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.thank-you-card {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(18, 19, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 56px 44px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.thank-you-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(184, 82, 39, 0.12);
  border: 1px solid rgba(184, 82, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(184, 82, 39, 0.2);
}

.thank-you-svg {
  width: 44px;
  height: 44px;
  stroke: #b85227;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thank-you-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.thank-you-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-check 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke-circle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes stroke-check {
  100% {
    stroke-dashoffset: 0;
  }
}

.thank-you-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #b85227;
  margin-bottom: 12px;
}

.thank-you-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.thank-you-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 660px;
  margin: 0 auto 36px;
}

.thank-you-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.thank-you-steps-grid .step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thank-you-steps-grid .step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 82, 39, 0.3);
}

.thank-you-steps-grid .step-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #b85227;
  margin-bottom: 8px;
}

.thank-you-steps-grid h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.thank-you-steps-grid p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.thank-you-actions .btn {
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .thank-you-main {
    padding-top: 80px;
  }

  .thank-you-card {
    padding: 36px 22px;
    border-radius: 16px;
  }

  .thank-you-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thank-you-actions {
    flex-direction: column;
    width: 100%;
  }

  .thank-you-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

