/* Production visual layer: bright, photographic, readable in every atmosphere. */
:root {
  --launch-ink: #153b36;
  --launch-muted: #3f655d;
  --launch-accent: #b85630;
  --launch-leaf: #2f6f50;
  --launch-surface: rgba(246, 250, 244, 0.9);
  --launch-surface-strong: rgba(251, 253, 249, 0.97);
  --launch-line: rgba(36, 91, 69, 0.2);
  --launch-shadow: 0 24px 60px rgba(18, 58, 48, 0.15);
}

body[data-atmosphere="sunset"] {
  --launch-ink: #392b21;
  --launch-muted: #665143;
  --launch-accent: #a94628;
  --launch-leaf: #376949;
  --launch-surface: rgba(255, 248, 236, 0.92);
  --launch-surface-strong: rgba(255, 252, 245, 0.97);
  --launch-line: rgba(123, 76, 43, 0.22);
}

body[data-atmosphere="night"] {
  --launch-ink: #eaf8f0;
  --launch-muted: #c8dfd5;
  --launch-accent: #ffd18b;
  --launch-leaf: #8ed0ac;
  --launch-surface: rgba(19, 55, 49, 0.9);
  --launch-surface-strong: rgba(18, 51, 47, 0.97);
  --launch-line: rgba(190, 235, 215, 0.26);
  --launch-shadow: 0 24px 70px rgba(3, 17, 18, 0.28);
}

html {
  scroll-padding-top: 6rem;
}

body {
  color: var(--launch-ink);
  background-color: #e8f0e5;
  background-image:
    linear-gradient(rgba(242, 248, 239, 0.78), rgba(235, 244, 232, 0.84)),
    url("./assets/background-rainbow-valley.webp");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

body[data-atmosphere="sunset"] {
  background-image:
    linear-gradient(rgba(255, 240, 219, 0.76), rgba(239, 227, 207, 0.86)),
    url("./assets/hero-sunset-pool.webp");
}

body[data-atmosphere="night"] {
  background-color: #173d3a;
  background-image:
    linear-gradient(rgba(14, 45, 43, 0.72), rgba(15, 48, 44, 0.86)),
    url("./assets/valley-night-lights.webp");
}

main,
.section-pad,
.villas-section,
.day-journey,
.house-gallery {
  color: var(--launch-ink);
}

.section-kicker,
.eyebrow,
.villa-label,
.gallery-panel-kicker,
.journey-scene-copy span,
.platform-label,
.small-copy,
.micro-copy,
.booking-note,
.availability-note {
  color: var(--launch-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body[data-atmosphere="night"] :where(.section-kicker, .eyebrow, .villa-label, .gallery-panel-kicker, .journey-scene-copy span, .platform-label, .small-copy, .micro-copy, .booking-note, .availability-note) {
  color: #d9ece3 !important;
}

:where(.section-heading, .section-heading h2, .villa-card-content h3, .gallery-panel h3, .day-journey h2, .day-journey h3, .house-gallery h2) {
  color: var(--launch-ink) !important;
  text-shadow: none !important;
}

:where(.villa-card-content p, .gallery-panel p, .day-journey p, .house-gallery p, .stay-facts, .property-meta, .platform-copy) {
  color: var(--launch-muted) !important;
}

.section-pad:not(.hero):not(.media-section) {
  position: relative;
  isolation: isolate;
}

.section-pad:not(.hero):not(.media-section)::before,
.section-pad:not(.hero):not(.media-section)::after,
.villa-card::before,
.villa-card::after,
.property-window::before,
.property-window::after,
.property-window-stage::before,
.property-window-stage::after,
.gallery-panel::before,
.gallery-panel::after,
.gallery-feature::before,
.gallery-feature::after,
.gallery-photo::before,
.gallery-photo::after {
  content: none !important;
  display: none !important;
}

/* Hero stays photographic and uncluttered. */
.hero-title,
.hero h1 {
  color: #fff !important;
  text-shadow: 0 3px 24px rgba(0, 24, 24, 0.72) !important;
}

.hero-subtitle,
.hero-location,
.hero p {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 24, 24, 0.8) !important;
}

/* Property stories: photograph and booking facts read as one composition. */
.villas-section {
  background: transparent !important;
}

.villas-section .section-heading {
  max-width: 54rem;
}

.villa-grid {
  display: grid !important;
  gap: clamp(5rem, 10vw, 9rem) !important;
}

.villa-card,
.villa-card:nth-child(even) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr) !important;
  align-items: center !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

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

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

.property-window {
  position: relative !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

.property-window-stage {
  position: relative !important;
  display: grid !important;
  aspect-ratio: 16 / 11;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: rgba(224, 236, 224, 0.38) !important;
  box-shadow: var(--launch-shadow) !important;
  perspective: 1200px;
}

.property-window-slide {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate3d(5%, 0, -80px) rotateY(-4deg) !important;
  transition: opacity 600ms ease, transform 750ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 750ms !important;
}

.property-window-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) rotateY(0) !important;
  transition-delay: 0s !important;
}

.property-window-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(230, 239, 229, 0.42) !important;
  filter: saturate(1.06) contrast(1.02) !important;
}

.property-window-controls {
  position: absolute !important;
  inset: auto 0.75rem 0.75rem auto !important;
  z-index: 5;
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  width: auto !important;
  padding: 0.32rem !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 999px !important;
  background: rgba(14, 46, 42, 0.74) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(10, 33, 30, 0.22) !important;
  backdrop-filter: blur(12px);
}

.property-window-controls button {
  width: 2rem !important;
  height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
}

.property-window-controls span {
  min-width: 3.25rem;
  color: #fff !important;
  text-align: center;
  font-size: 0.78rem;
}

.property-window-thumbs {
  display: flex !important;
  gap: 0.55rem !important;
  margin-top: 0.8rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow-x: auto;
  scrollbar-width: thin;
}

.property-window-thumbs button {
  flex: 0 0 clamp(3.2rem, 7vw, 4.7rem) !important;
  aspect-ratio: 4 / 3;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 2px !important;
  background: transparent !important;
  opacity: 0.7;
  overflow: hidden;
}

.property-window-thumbs button.is-active {
  border-color: var(--launch-accent) !important;
  opacity: 1;
}

.property-window-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.villa-card-content {
  position: relative;
  max-width: 34rem;
  padding: clamp(1.4rem, 3vw, 2.6rem) 0 clamp(1.4rem, 3vw, 2.6rem) clamp(1.25rem, 3vw, 2.6rem) !important;
  border: 0 !important;
  border-left: 1px solid var(--launch-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.villa-card-content h3 {
  margin: 0.35rem 0 0.8rem !important;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  line-height: 1 !important;
}

.villa-card-content p {
  max-width: 42rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem) !important;
  line-height: 1.75 !important;
}

.stay-facts {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 1rem !important;
  margin: 1.25rem 0 !important;
  padding: 1rem 0 !important;
  border-block: 1px solid var(--launch-line) !important;
  background: transparent !important;
}

.stay-facts > * {
  color: var(--launch-ink) !important;
}

/* The day sequence floats over the landscape instead of sitting in white cards. */
.day-journey,
.house-gallery {
  background: transparent !important;
}

.day-journey .section-heading,
.house-gallery .section-heading {
  padding: clamp(1.25rem, 3vw, 2.25rem) !important;
  border-radius: 4px;
  background: var(--launch-surface) !important;
  box-shadow: 0 18px 44px rgba(20, 63, 50, 0.1);
  backdrop-filter: blur(16px);
}

.day-journey-mantra {
  color: var(--launch-leaf) !important;
  font-family: "Fraunces", serif !important;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem) !important;
  text-align: center;
}

.journey-rail,
.day-journey-grid,
.journey-scenes {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.light-story,
.light-story-stage,
.light-story-slides {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.light-story-stage {
  position: relative !important;
  aspect-ratio: 16 / 9;
  overflow: hidden !important;
}

.light-story-slide {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.light-story-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: saturate(1.06) contrast(1.02) !important;
}

.light-story-slide figcaption {
  position: absolute !important;
  inset: auto 0 0 !important;
  margin: 0 !important;
  padding: clamp(1rem, 2.5vw, 1.7rem) !important;
  background: linear-gradient(transparent, rgba(8, 35, 31, 0.82)) !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.light-story-slide figcaption :where(h3, p, span) {
  color: #fff !important;
}

.light-story-nav {
  margin-top: 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.journey-scene,
.day-scene {
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: var(--launch-shadow) !important;
}

.journey-scene img,
.day-scene img {
  width: 100% !important;
  height: auto !important;
  max-height: 78vh;
  object-fit: contain !important;
  background: transparent !important;
}

.journey-scene-copy {
  margin: 0 !important;
  padding: 1rem 1.2rem !important;
  background: var(--launch-surface-strong) !important;
  color: var(--launch-ink) !important;
}

/* Complete galleries stay separated by property and preserve every image. */
.gallery-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
  justify-content: center;
  margin: 2rem 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.gallery-tab {
  padding: 0.75rem 1.1rem !important;
  border: 1px solid var(--launch-line) !important;
  border-radius: 999px !important;
  background: var(--launch-surface) !important;
  color: var(--launch-ink) !important;
  box-shadow: none !important;
}

.gallery-tab.is-active {
  border-color: var(--launch-leaf) !important;
  background: var(--launch-leaf) !important;
  color: #fff !important;
}

.gallery-panels,
.gallery-panel,
.gallery-panel.is-active,
.gallery-panel-inner,
.gallery-grid,
.gallery-orbit,
.gallery-orbit-stage {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gallery-panel[hidden] {
  display: none !important;
}

.gallery-feature,
.gallery-photo,
.gallery-orbit-card {
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: var(--launch-shadow) !important;
  overflow: hidden !important;
}

.gallery-feature img,
.gallery-photo img,
.gallery-orbit-card img,
.gallery-panel img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: saturate(1.06) contrast(1.015) !important;
}

.gallery-feature figcaption,
.gallery-photo figcaption,
.gallery-orbit-card figcaption {
  background: var(--launch-surface-strong) !important;
  color: var(--launch-ink) !important;
}

.gallery-panel > header,
.gallery-panel-header {
  margin-bottom: 1.5rem !important;
  padding: 1.25rem 0 !important;
  border-block: 1px solid var(--launch-line) !important;
  background: transparent !important;
}

/* Keep the booking path obvious and singular. */
.booking-hub,
.booking-section,
.platform-section,
.reviews-section,
.contact-section {
  color: var(--launch-ink) !important;
}

.booking-hub :where(.booking-card, .platform-card, .review-card),
.booking-section :where(.booking-card, .platform-card),
.reviews-section .review-card,
.contact-section .contact-card {
  border: 1px solid var(--launch-line) !important;
  background: var(--launch-surface) !important;
  color: var(--launch-ink) !important;
  box-shadow: 0 16px 40px rgba(20, 63, 50, 0.1) !important;
  backdrop-filter: blur(16px);
}

.atmosphere-switch {
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(14, 51, 45, 0.78) !important;
  box-shadow: 0 12px 28px rgba(7, 32, 28, .22) !important;
  backdrop-filter: blur(14px);
}

.atmosphere-switch button {
  color: #fff !important;
  opacity: 0.82;
}

.atmosphere-switch button[aria-pressed="true"] {
  background: #f3fbf4 !important;
  color: #16463a !important;
  opacity: 1;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .villa-card,
  .villa-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.4rem !important;
  }

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

  .villa-card-content {
    max-width: none;
    padding: 1.25rem 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--launch-line) !important;
  }
}

@media (max-width: 600px) {
  .property-window-stage {
    aspect-ratio: 4 / 3;
  }

  .property-window-controls {
    inset: auto 0.5rem 0.5rem auto !important;
  }

  .day-journey .section-heading,
  .house-gallery .section-heading {
    padding: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-window-slide,
  .property-window-slide.is-active {
    transition: none !important;
    transform: none !important;
  }
}
