/* Interactive nature observatory for the three private stays. */
.villas-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
  color: #f8fbf7 !important;
  background: #0d473b !important;
}

.villas-section::before {
  position: absolute !important;
  z-index: -1 !important;
  inset: -24% 48% -34% -16% !important;
  display: block !important;
  content: "" !important;
  pointer-events: none;
  opacity: 0.25 !important;
  background-image: repeating-radial-gradient(
    ellipse at 42% 48%,
    transparent 0,
    transparent 42px,
    rgba(159, 215, 186, 0.46) 43px,
    transparent 44px,
    transparent 68px
  ) !important;
  transform: rotate(-8deg);
}

.villas-section::after {
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 !important;
  display: block !important;
  content: "" !important;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(6, 46, 38, 0.16), transparent 52%, rgba(6, 46, 38, 0.48)) !important;
}

.villas-section > .section-heading,
.villas-section > .stay-selector,
.villas-section > .villa-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 1500px) !important;
  max-width: 1500px !important;
  margin-inline: auto !important;
}

.villas-section > .section-heading {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr) !important;
  gap: 4rem !important;
  align-items: start !important;
  margin-bottom: 3.5rem !important;
  text-align: left !important;
}

.villas-section .section-heading .section-kicker {
  margin: 0.75rem 0 0 !important;
  color: #e5bf77 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.villas-section .section-heading h2 {
  max-width: 980px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: 3.75rem !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.stay-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 3.25rem !important;
  border-top: 1px solid rgba(222, 239, 228, 0.28);
  border-bottom: 1px solid rgba(222, 239, 228, 0.28);
}

.stay-selector-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  min-width: 0;
  min-height: 108px;
  padding: 1.4rem 1.65rem;
  border: 0;
  border-right: 1px solid rgba(222, 239, 228, 0.22);
  border-radius: 0;
  color: rgba(244, 250, 246, 0.68);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 260ms ease, background-color 260ms ease;
}

.stay-selector-button:last-child {
  border-right: 0;
}

.stay-selector-button::after {
  position: absolute;
  right: 1.65rem;
  bottom: -1px;
  left: 1.65rem;
  height: 3px;
  content: "";
  background: #f38d65;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}

.stay-selector-button:hover,
.stay-selector-button.is-active {
  color: #ffffff;
  background: rgba(224, 242, 230, 0.07);
}

.stay-selector-button.is-active::after {
  transform: scaleX(1);
}

.stay-selector-button:focus-visible {
  z-index: 2;
  outline: 2px solid #e5bf77;
  outline-offset: -4px;
}

.stay-selector-number {
  grid-row: 1 / span 2;
  color: #7fcba2;
  font-family: var(--font-sans, Arial, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.stay-selector-button.is-active .stay-selector-number {
  color: #f3a57e;
}

.stay-selector-name {
  overflow: hidden;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-selector-meta {
  overflow: hidden;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.villas-section .villa-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  perspective: none !important;
}

.villas-section .villa-card,
.villas-section .villa-card:nth-child(even) {
  display: none !important;
  grid-template-columns: minmax(0, 1.22fr) minmax(370px, 0.78fr) !important;
  grid-template-areas: "media copy" !important;
  gap: 0 !important;
  align-items: stretch !important;
  min-height: 640px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #173a31 !important;
  background: transparent !important;
  transform: none !important;
}

.villas-section .villa-card[hidden] {
  display: none !important;
}

.villas-section .villa-card.is-stay-active:not([hidden]) {
  display: grid !important;
  animation: stay-observatory-reveal 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.villas-section .villa-card::before,
.villas-section .villa-card::after {
  display: none !important;
  content: none !important;
}

.villas-section .property-window {
  grid-area: media !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 0.8rem !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: 0 26px 70px rgba(3, 24, 19, 0.28) !important;
}

.villas-section .property-window::before,
.villas-section .property-window::after {
  display: none !important;
  content: none !important;
}

.villas-section .property-window-stage {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dce9e1 !important;
}

.villas-section .property-window-slide {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dce9e1 !important;
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 760ms ease !important;
}

.villas-section .property-window-slide.is-active {
  z-index: 2 !important;
  opacity: 1 !important;
}

.villas-section .property-window-slide::before,
.villas-section .property-window-slide::after {
  display: none !important;
  content: none !important;
}

.villas-section .property-window-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: transform 8s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

.villas-section .property-window-slide.is-active img {
  transform: scale(1.018) !important;
}

.villas-section .property-window-controls {
  position: static !important;
  display: grid !important;
  grid-template-columns: 42px 1fr 42px !important;
  gap: 0.65rem !important;
  align-items: center !important;
  width: 180px !important;
  min-height: 48px !important;
  margin: 0.8rem 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #e9f4ec !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.villas-section .property-window-controls button {
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(224, 241, 230, 0.4) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: transparent !important;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease !important;
}

.villas-section .property-window-controls button:hover {
  color: #173a31 !important;
  border-color: #e5bf77 !important;
  background: #e5bf77 !important;
}

.villas-section .property-window-controls button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.villas-section .property-window-controls svg {
  width: 18px !important;
  height: 18px !important;
}

.villas-section .property-window-controls > span {
  font-size: 0.72rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.villas-section .villa-card-content {
  position: relative !important;
  grid-area: copy !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4.25rem 4.5rem !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #173a31 !important;
  background: #f3f7f1 !important;
  box-shadow: none !important;
}

.villas-section .villa-card-content::before {
  position: absolute !important;
  top: -22% !important;
  right: -44% !important;
  bottom: -30% !important;
  left: 32% !important;
  display: block !important;
  content: "" !important;
  pointer-events: none;
  opacity: 0.3 !important;
  background-image: repeating-radial-gradient(
    ellipse at center,
    transparent 0,
    transparent 34px,
    rgba(30, 103, 80, 0.22) 35px,
    transparent 36px,
    transparent 57px
  ) !important;
  transform: rotate(12deg);
}

.villas-section .villa-card-content > * {
  position: relative;
  z-index: 1;
}

.villas-section .villa-card-content > span:first-child {
  align-self: flex-start !important;
  margin: 0 0 1.4rem !important;
  padding: 0 0 0.65rem !important;
  border: 0 !important;
  border-bottom: 2px solid #f38d65 !important;
  border-radius: 0 !important;
  color: #1c6c55 !important;
  background: transparent !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.villas-section .villa-card-content h3 {
  max-width: 100% !important;
  margin: 0 0 1.4rem !important;
  color: #113d33 !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: 3.2rem !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.villas-section .villa-card-content > p {
  max-width: 48rem !important;
  margin: 0 0 1.8rem !important;
  color: #3f5d53 !important;
  font-size: 0.98rem !important;
  line-height: 1.72 !important;
  letter-spacing: 0 !important;
}

.villas-section .stay-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border-top: 1px solid rgba(23, 58, 49, 0.17) !important;
  border-bottom: 1px solid rgba(23, 58, 49, 0.17) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.villas-section .stay-facts > * {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 0.8rem !important;
  border: 0 !important;
  border-right: 1px solid rgba(23, 58, 49, 0.14) !important;
  border-radius: 0 !important;
  color: #36564b !important;
  background: transparent !important;
  font-size: 0.71rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.villas-section .stay-facts > *:first-child {
  padding-left: 0 !important;
  color: #bd5f3e !important;
}

.villas-section .stay-facts > *:last-child {
  border-right: 0 !important;
}

.villas-section .villa-card-content > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0.85rem 1.5rem !important;
  border: 1px solid #174f41 !important;
  border-radius: 3px !important;
  color: #ffffff !important;
  background: #174f41 !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease !important;
}

.villas-section .villa-card-content > a:hover,
.villas-section .villa-card-content > a:focus-visible {
  color: #173a31 !important;
  border-color: #e5bf77 !important;
  background: #e5bf77 !important;
}

@keyframes stay-observatory-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .villas-section .section-heading h2 {
    font-size: 3.15rem !important;
  }

  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr) !important;
  }

  .villas-section .villa-card-content {
    padding: 3.25rem !important;
  }

  .villas-section .villa-card-content h3 {
    font-size: 2.65rem !important;
  }
}

@media (max-width: 900px) {
  .villas-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .villas-section > .section-heading,
  .villas-section > .stay-selector,
  .villas-section > .villa-grid {
    width: min(100% - 2rem, 760px) !important;
  }

  .villas-section > .section-heading {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2.6rem !important;
  }

  .villas-section .section-heading .section-kicker {
    margin-top: 0 !important;
  }

  .villas-section .section-heading h2 {
    font-size: 2.7rem !important;
  }

  .stay-selector {
    display: flex;
    width: calc(100% - 1rem) !important;
    margin-right: 0 !important;
    margin-bottom: 2rem !important;
    margin-left: 1rem !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .stay-selector::-webkit-scrollbar {
    display: none;
  }

  .stay-selector-button {
    flex: 0 0 min(77vw, 310px);
    min-height: 94px;
    padding: 1.15rem 1.2rem;
    scroll-snap-align: start;
  }

  .stay-selector-name {
    font-size: 1.18rem;
  }

  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "media"
      "copy" !important;
    min-height: 0;
  }

  .villas-section .property-window {
    box-shadow: none !important;
  }

  .villas-section .villa-card-content {
    padding: 3rem 2.5rem !important;
  }
}

@media (max-width: 560px) {
  .villas-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .villas-section .section-heading h2 {
    font-size: 2.15rem !important;
    line-height: 1.08 !important;
  }

  .villas-section .property-window-stage {
    aspect-ratio: 3 / 2 !important;
  }

  .villas-section .property-window-controls {
    width: 154px !important;
    grid-template-columns: 38px 1fr 38px !important;
  }

  .villas-section .property-window-controls button {
    width: 38px !important;
    height: 38px !important;
  }

  .villas-section .villa-card-content {
    padding: 2.5rem 1.35rem !important;
  }

  .villas-section .villa-card-content h3 {
    font-size: 2.35rem !important;
  }

  .villas-section .villa-card-content > p {
    font-size: 0.94rem !important;
  }

  .villas-section .stay-facts > * {
    min-height: 40px !important;
    padding-inline: 0.55rem !important;
    font-size: 0.67rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .villas-section .villa-card.is-stay-active:not([hidden]) {
    animation: none !important;
  }

  .villas-section .property-window-slide,
  .villas-section .property-window-slide img,
  .stay-selector-button,
  .stay-selector-button::after {
    transition: none !important;
  }

  .villas-section .property-window-slide.is-active img {
    transform: none !important;
  }
}

/* Frameless 4D stay presentation. The photographs remain uncropped. */
.villas-section {
  color: #153c32 !important;
}

.villas-section::after {
  background: rgba(230, 241, 233, 0.14) !important;
}

.villas-section .section-heading h2 {
  color: #153c32 !important;
}

.villas-section .section-heading .section-kicker {
  color: #9a682b !important;
}

.stay-selector {
  border-color: rgba(21, 60, 50, 0.22) !important;
}

.stay-selector-button {
  color: rgba(21, 60, 50, 0.7) !important;
  border-right-color: rgba(21, 60, 50, 0.18) !important;
}

.stay-selector-button:hover,
.stay-selector-button.is-active {
  color: #153c32 !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.villas-section .villa-card,
.villas-section .villa-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr) !important;
  gap: clamp(2rem, 4vw, 5.5rem) !important;
}

.villas-section .property-window {
  position: relative !important;
  align-self: center !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.villas-section .property-window-stage {
  isolation: isolate;
  aspect-ratio: 16 / 10.5 !important;
  overflow: visible !important;
  background: transparent !important;
}

.villas-section .property-window-slide {
  overflow: visible !important;
  background: transparent !important;
}

.villas-section .property-window-slide img {
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: 0 26px 68px rgba(1, 21, 16, 0.34) !important;
}

.villas-section .property-window-stage.is-stay-orbit-ready .property-window-slide {
  visibility: hidden !important;
  opacity: 0 !important;
}

.stay-orbit-canvas {
  position: absolute;
  z-index: 5;
  top: -12%;
  left: -14%;
  display: block;
  width: 128%;
  height: 124%;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}

.stay-orbit-canvas:active {
  cursor: grabbing;
}

.stay-orbit-canvas:focus-visible {
  outline: 2px solid #e5bf77;
  outline-offset: 4px;
}

.villas-section .property-window-controls {
  position: relative !important;
  z-index: 8 !important;
  margin-top: -0.4rem !important;
}

.villas-section .villa-card-content {
  padding: clamp(1.5rem, 3vw, 3.75rem) 0 clamp(1.5rem, 3vw, 3.75rem) clamp(1.5rem, 2.7vw, 3.25rem) !important;
  overflow: visible !important;
  border-left: 1px solid rgba(21, 60, 50, 0.2) !important;
  color: #153c32 !important;
  background: transparent !important;
}

.villas-section .villa-card-content::before {
  display: none !important;
  content: none !important;
}

.villas-section .villa-card-content h3 {
  color: #153c32 !important;
}

.villas-section .villa-card-content > p {
  color: rgba(32, 71, 61, 0.88) !important;
}

.villas-section .villa-card-content > span:first-child {
  color: #1e765b !important;
}

.villas-section .stay-facts {
  border-color: rgba(21, 60, 50, 0.2) !important;
}

.villas-section .stay-facts > * {
  color: rgba(32, 71, 61, 0.82) !important;
  border-right-color: rgba(21, 60, 50, 0.18) !important;
}

.villas-section .stay-facts > *:first-child {
  color: #f5b18f !important;
}

.villas-section .villa-card-content > a {
  color: #173a31 !important;
  border-color: #e5bf77 !important;
  background: #e5bf77 !important;
}

.villas-section .villa-card-content > a:hover,
.villas-section .villa-card-content > a:focus-visible {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  .villas-section .property-window-stage {
    aspect-ratio: 16 / 11 !important;
  }

  .stay-orbit-canvas {
    top: -4%;
    left: -5%;
    width: 110%;
    height: 110%;
  }

  .villas-section .villa-card-content {
    padding: 2.4rem 0 0 !important;
    border-top: 1px solid rgba(21, 60, 50, 0.2) !important;
    border-left: 0 !important;
  }
}

@media (max-width: 560px) {
  .villas-section .property-window-stage {
    aspect-ratio: 4 / 3 !important;
  }

  .stay-orbit-canvas {
    top: 0;
    left: -3%;
    width: 106%;
    height: 100%;
  }
}
