/* Final editorial layer: distinct daylight modes and image-led stay chapters. */

:root {
  --wmv-page: #e9f3ee;
  --wmv-surface: rgba(249, 252, 250, 0.92);
  --wmv-surface-solid: #f8fcfa;
  --wmv-ink: #123a32;
  --wmv-muted: #4c6b62;
  --wmv-line: rgba(18, 58, 50, 0.2);
  --wmv-accent: #1d7755;
  --wmv-accent-strong: #0f5b42;
  --wmv-secondary: #13788b;
  --wmv-warm: #d0913f;
  --wmv-shadow: 0 24px 60px rgba(25, 67, 55, 0.18);
  --wmv-wallpaper: url("./assets/background-rainbow-valley.webp");
}

body[data-atmosphere="morning"],
body[data-atmosphere="light"] {
  --wmv-page: #e9f3ee;
  --wmv-surface: rgba(249, 252, 250, 0.92);
  --wmv-surface-solid: #f8fcfa;
  --wmv-ink: #123a32;
  --wmv-muted: #4c6b62;
  --wmv-line: rgba(18, 58, 50, 0.2);
  --wmv-accent: #1d7755;
  --wmv-accent-strong: #0f5b42;
  --wmv-secondary: #13788b;
  --wmv-warm: #d0913f;
  --wmv-shadow: 0 24px 60px rgba(25, 67, 55, 0.18);
  --wmv-wallpaper: url("./assets/background-rainbow-valley.webp");
}

body[data-atmosphere="sunset"] {
  --wmv-page: #f3e4d7;
  --wmv-surface: rgba(255, 248, 241, 0.93);
  --wmv-surface-solid: #fff8f1;
  --wmv-ink: #3f2d27;
  --wmv-muted: #71564d;
  --wmv-line: rgba(104, 57, 43, 0.22);
  --wmv-accent: #a84931;
  --wmv-accent-strong: #7d2f22;
  --wmv-secondary: #247884;
  --wmv-warm: #b87522;
  --wmv-shadow: 0 24px 64px rgba(107, 56, 39, 0.22);
  --wmv-wallpaper: url("./assets/hero-sunset-pool.webp");
}

body[data-atmosphere="night"] {
  --wmv-page: #12382f;
  --wmv-surface: rgba(17, 55, 48, 0.94);
  --wmv-surface-solid: #163f36;
  --wmv-ink: #f5fbf8;
  --wmv-muted: #c8ddd6;
  --wmv-line: rgba(224, 244, 236, 0.26);
  --wmv-accent: #6fd4a8;
  --wmv-accent-strong: #a7ecd0;
  --wmv-secondary: #75cfdb;
  --wmv-warm: #f1c778;
  --wmv-shadow: 0 28px 70px rgba(0, 16, 12, 0.42);
  --wmv-wallpaper: url("./assets/valley-night-lights.webp");
}

html {
  scroll-behavior: smooth;
}

body[data-atmosphere] {
  color: var(--wmv-ink) !important;
  background-color: var(--wmv-page) !important;
  background-image: var(--wmv-wallpaper) !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  transition: color 420ms ease, background-color 600ms ease, background-image 600ms ease !important;
}

body[data-atmosphere]::before {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  content: "" !important;
  pointer-events: none !important;
  background: rgba(226, 241, 233, 0.7) !important;
  opacity: 1 !important;
}

body[data-atmosphere="sunset"]::before {
  background: rgba(244, 222, 207, 0.72) !important;
}

body[data-atmosphere="night"]::before {
  background: rgba(7, 34, 29, 0.76) !important;
}

body[data-atmosphere] .ambient-page-tint {
  display: none !important;
}

body[data-atmosphere] main > section:not(.hero),
body[data-atmosphere] main > .section-pad,
body[data-atmosphere="sunset"] main > .section-pad,
body[data-atmosphere="night"] main > .section-pad {
  color: var(--wmv-ink) !important;
  background: var(--wmv-surface) !important;
  border-color: var(--wmv-line) !important;
  box-shadow: none !important;
  transition: color 420ms ease, background-color 600ms ease, border-color 420ms ease !important;
}

body[data-atmosphere] main > section:nth-of-type(even):not(.hero) {
  background: color-mix(in srgb, var(--wmv-surface-solid) 86%, transparent) !important;
}

body[data-atmosphere] main > section:not(.hero) :is(
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, legend, summary,
  .section-kicker, .section-heading p, .stay-facts span, .stay-facts strong,
  .property-window-controls, .booking-note, .service-card p, .info-panel p
) {
  color: inherit !important;
}

body[data-atmosphere] main > section:not(.hero) :is(p, li, dd, .section-heading p, .villa-card-content > p) {
  color: var(--wmv-muted) !important;
}

body[data-atmosphere] main > section:not(.hero) :is(a, button) {
  text-decoration-color: currentColor;
}

body[data-atmosphere] main > section:not(.hero) :is(input, select, textarea) {
  color: var(--wmv-ink) !important;
  background: var(--wmv-surface-solid) !important;
  border-color: var(--wmv-line) !important;
}

body[data-atmosphere] .topbar,
body[data-atmosphere] .nav-panel {
  color: var(--wmv-ink) !important;
  background: color-mix(in srgb, var(--wmv-surface-solid) 91%, transparent) !important;
  border-color: var(--wmv-line) !important;
  box-shadow: 0 10px 30px rgba(15, 48, 39, 0.12) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

body[data-atmosphere] .nav-panel :is(a, button, span),
body[data-atmosphere] .topbar :is(a, button, span) {
  color: var(--wmv-ink) !important;
}

body[data-atmosphere] .atmosphere-switch {
  display: inline-grid !important;
  grid-template-columns: repeat(4, minmax(64px, 1fr)) !important;
  gap: 3px !important;
  padding: 4px !important;
  color: var(--wmv-ink) !important;
  background: var(--wmv-surface-solid) !important;
  border: 1px solid var(--wmv-line) !important;
  border-radius: 6px !important;
  box-shadow: 0 9px 26px rgba(18, 58, 50, 0.14) !important;
}

body[data-atmosphere] .atmosphere-switch button {
  min-height: 34px !important;
  padding: 6px 10px !important;
  color: var(--wmv-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body[data-atmosphere] .atmosphere-switch button[aria-pressed="true"] {
  color: #fff !important;
  background: var(--wmv-accent-strong) !important;
  box-shadow: none !important;
}

body[data-atmosphere="night"] .atmosphere-switch button[aria-pressed="true"] {
  color: #0d352c !important;
}

.villas-section,
body[data-atmosphere] main > .villas-section {
  padding-top: 104px !important;
  padding-bottom: 120px !important;
  overflow: visible !important;
}

.villas-section > .section-heading,
.villas-section > .stay-jump-nav,
.villas-section > .villa-grid {
  width: min(1440px, calc(100% - 64px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.villas-section > .section-heading {
  display: grid !important;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr) !important;
  gap: 28px 56px !important;
  align-items: end !important;
  margin-bottom: 54px !important;
}

.villas-section .section-kicker {
  align-self: start !important;
  margin: 10px 0 0 !important;
  color: var(--wmv-accent-strong) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.villas-section .section-heading h2 {
  max-width: 950px !important;
  margin: 0 !important;
  color: var(--wmv-ink) !important;
  font-size: 52px !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.villas-section .stays-intro {
  grid-column: 2 !important;
  max-width: 700px !important;
  margin: 0 !important;
  color: var(--wmv-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.villas-section .stay-selector {
  display: none !important;
}

.stay-jump-nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-bottom: 96px !important;
  border-block: 1px solid var(--wmv-line) !important;
}

body[data-atmosphere] .stay-jump-nav .stay-selector-button {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 4px 14px !important;
  align-content: center !important;
  min-height: 112px !important;
  padding: 22px 28px !important;
  color: var(--wmv-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--wmv-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background-color 220ms ease, color 220ms ease !important;
}

.stay-jump-nav .stay-selector-button:last-child {
  border-right: 0 !important;
}

body[data-atmosphere] .stay-jump-nav .stay-selector-button:hover,
body[data-atmosphere] .stay-jump-nav .stay-selector-button:focus-visible {
  color: #fff !important;
  background: var(--wmv-accent-strong) !important;
}

body[data-atmosphere="night"] .stay-jump-nav .stay-selector-button:hover,
body[data-atmosphere="night"] .stay-jump-nav .stay-selector-button:focus-visible {
  color: #0b2f27 !important;
}

.stay-jump-nav .stay-selector-number {
  grid-row: 1 / 3 !important;
  align-self: start !important;
  color: var(--wmv-accent) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.stay-jump-nav .stay-selector-button:hover .stay-selector-number,
.stay-jump-nav .stay-selector-button:focus-visible .stay-selector-number {
  color: inherit !important;
}

.stay-jump-nav .stay-selector-name {
  color: inherit !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: 23px !important;
  font-weight: 600 !important;
}

.stay-jump-nav .stay-selector-meta {
  color: inherit !important;
  font-size: 13px !important;
  opacity: 0.8 !important;
}

.villas-section .villa-grid {
  display: grid !important;
  gap: 128px !important;
  perspective: none !important;
}

.villas-section .villa-card,
.villas-section .villa-card:nth-child(even) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.46fr) minmax(350px, 0.78fr) !important;
  gap: 64px !important;
  align-items: center !important;
  padding: 0 !important;
  color: var(--wmv-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.villas-section .villa-card:nth-child(even) .property-window {
  order: 2 !important;
}

.villas-section .villa-card:nth-child(even) .villa-card-content {
  order: 1 !important;
}

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

.villas-section .property-window {
  position: relative !important;
  display: grid !important;
  gap: 16px !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

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

.villas-section .property-window-stage {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: var(--stay-photo-ratio, 16 / 10) !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: var(--wmv-shadow) !important;
  transform: none !important;
}

.villas-section .property-window-slide,
.villas-section .property-window-stage.is-stay-orbit-ready > .property-window-slide {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translate3d(22px, 0, 0) scale(0.985) !important;
  transition: opacity 600ms ease, visibility 600ms ease, transform 700ms ease !important;
}

.villas-section .property-window-slide.is-active,
.villas-section .property-window-stage.is-stay-orbit-ready > .property-window-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  z-index: 2 !important;
}

body[data-atmosphere] .villas-section .property-window-slide img,
body[data-atmosphere] .villas-section .property-window-slide.is-active img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: saturate(1.05) contrast(1.02) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.villas-section .property-window-controls {
  position: absolute !important;
  z-index: 5 !important;
  right: 18px !important;
  bottom: 92px !important;
  display: grid !important;
  grid-template-columns: 40px auto 40px !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px !important;
  color: #fff !important;
  background: rgba(11, 45, 37, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 24px rgba(0, 20, 14, 0.24) !important;
  backdrop-filter: blur(12px) !important;
}

.villas-section .property-window-controls button {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
}

.villas-section .property-window-controls button:hover,
.villas-section .property-window-controls button:focus-visible {
  color: #12382f !important;
  background: #fff !important;
}

.villas-section .property-window-controls span,
.villas-section .property-window-controls b {
  color: inherit !important;
  font-size: 12px !important;
}

.property-window-thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: calc(100% - 112px) !important;
}

.property-window-thumbs button {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  aspect-ratio: 16 / 9 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  opacity: 0.62 !important;
  cursor: pointer !important;
  transition: opacity 220ms ease, border-color 220ms ease, transform 220ms ease !important;
}

.property-window-thumbs button:hover,
.property-window-thumbs button:focus-visible,
.property-window-thumbs button.is-active,
.property-window-thumbs button[aria-selected="true"] {
  opacity: 1 !important;
  border-color: var(--wmv-accent) !important;
  transform: translateY(-2px) !important;
}

.property-window-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
}

.villas-section .villa-card-content {
  position: relative !important;
  display: grid !important;
  gap: 20px !important;
  align-content: center !important;
  padding: 38px 0 38px 42px !important;
  color: var(--wmv-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 2px solid var(--wmv-accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.villas-section .villa-card:nth-child(even) .villa-card-content {
  padding: 38px 42px 38px 0 !important;
  border-right: 2px solid var(--wmv-secondary) !important;
  border-left: 0 !important;
}

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

.villas-section .villa-card-content > span:first-child {
  color: var(--wmv-accent-strong) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.villas-section .villa-card-content h3 {
  margin: 0 !important;
  color: var(--wmv-ink) !important;
  font-size: 42px !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.villas-section .villa-card-content > p {
  max-width: 52ch !important;
  margin: 0 !important;
  color: var(--wmv-muted) !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
}

.villas-section .stay-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-block: 7px !important;
}

.villas-section .stay-facts > * {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 5px 10px !important;
  color: var(--wmv-ink) !important;
  background: color-mix(in srgb, var(--wmv-surface-solid) 72%, transparent) !important;
  border: 1px solid var(--wmv-line) !important;
  border-radius: 4px !important;
  font-size: 12px !important;
}

.villas-section .stay-facts strong {
  color: var(--wmv-accent-strong) !important;
  border-color: var(--wmv-accent) !important;
}

.villas-section .villa-card-content > a,
.villas-section .stay-gallery-trigger {
  width: fit-content !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  color: #fff !important;
  background: var(--wmv-accent-strong) !important;
  border: 1px solid var(--wmv-accent-strong) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transform: none !important;
}

body[data-atmosphere="night"] .villas-section .villa-card-content > a,
body[data-atmosphere="night"] .villas-section .stay-gallery-trigger {
  color: #0c332a !important;
}

.villas-section .villa-card-content > a:hover,
.villas-section .villa-card-content > a:focus-visible,
.villas-section .stay-gallery-trigger:hover,
.villas-section .stay-gallery-trigger:focus-visible {
  color: var(--wmv-accent-strong) !important;
  background: transparent !important;
}

.villas-section .stay-availability-note {
  display: grid !important;
  gap: 4px !important;
  padding: 14px 16px !important;
  color: var(--wmv-ink) !important;
  background: color-mix(in srgb, var(--wmv-warm) 18%, transparent) !important;
  border-left: 3px solid var(--wmv-warm) !important;
  border-radius: 0 !important;
}

body[data-atmosphere] .info-panel a,
body[data-atmosphere] footer a {
  color: var(--wmv-accent-strong) !important;
}

body[data-atmosphere="night"] footer,
body[data-atmosphere="night"] footer * {
  color: var(--wmv-ink) !important;
}

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

  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr) !important;
    gap: 42px !important;
  }

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

@media (max-width: 900px) {
  .villas-section > .section-heading,
  .villas-section > .stay-jump-nav,
  .villas-section > .villa-grid {
    width: min(100% - 36px, 760px) !important;
  }

  .villas-section > .section-heading {
    grid-template-columns: 1fr !important;
  }

  .villas-section .section-heading h2 {
    font-size: 40px !important;
  }

  .villas-section .stays-intro {
    grid-column: 1 !important;
  }

  .stay-jump-nav {
    grid-template-columns: 1fr !important;
    margin-bottom: 72px !important;
  }

  body[data-atmosphere] .stay-jump-nav .stay-selector-button {
    min-height: 88px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--wmv-line) !important;
  }

  .stay-jump-nav .stay-selector-button:last-child {
    border-bottom: 0 !important;
  }

  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .villas-section .villa-card:nth-child(even) .property-window,
  .villas-section .villa-card:nth-child(even) .villa-card-content {
    order: initial !important;
  }

  .villas-section .villa-card-content,
  .villas-section .villa-card:nth-child(even) .villa-card-content {
    padding: 28px 0 4px 28px !important;
    border-right: 0 !important;
    border-left: 2px solid var(--wmv-accent) !important;
  }
}

@media (max-width: 620px) {
  body[data-atmosphere] {
    background-attachment: scroll !important;
  }

  body[data-atmosphere] .atmosphere-switch {
    grid-template-columns: repeat(2, minmax(72px, 1fr)) !important;
  }

  .villas-section,
  body[data-atmosphere] main > .villas-section {
    padding-top: 78px !important;
    padding-bottom: 84px !important;
  }

  .villas-section > .section-heading,
  .villas-section > .stay-jump-nav,
  .villas-section > .villa-grid {
    width: calc(100% - 24px) !important;
  }

  .villas-section .section-heading h2 {
    font-size: 34px !important;
  }

  .villas-section .villa-grid {
    gap: 92px !important;
  }

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

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

  .villas-section .property-window-controls {
    right: 8px !important;
    bottom: 80px !important;
  }

  .property-window-thumbs {
    width: 100% !important;
    gap: 5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-atmosphere],
  body[data-atmosphere] *,
  .villas-section .property-window-slide {
    transition-duration: 0.01ms !important;
  }
}
