:root {
  --cream: #f4f0e6;
  --cream-deep: #e9e2cf;
  --ink: #23241d;
  --ink-soft: #4a4c40;
  --sage: #5f6f5c;
  --sage-deep: #3d4a3a;
  --gold: #ab8a5a;
  --line: rgba(35, 36, 29, 0.14);
  --shadow: 0 18px 40px -20px rgba(35, 36, 29, 0.35);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-lede {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Brand mark */

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: auto;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-word {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sage-deep);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--sage);
}

.btn-ghost {
  border-color: rgba(244, 240, 230, 0.6);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(244, 240, 230, 0.14);
  border-color: var(--cream);
}

.btn-nav {
  border-color: var(--line);
  color: var(--ink);
  padding: 0.6rem 1.4rem;
}

.btn-nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

/* Language */

body.lang-lo {
  font-family: 'Noto Sans Lao', 'Jost', sans-serif;
}

body.lang-lo h1,
body.lang-lo h2,
body.lang-lo h3,
body.lang-lo .brand-word,
body.lang-lo .intro-quote {
  font-family: 'Noto Serif Lao', 'Playfair Display', serif;
}

body.lang-lo .eyebrow {
  letter-spacing: 0.06em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-right: 0.5rem;
}

.lang-switch a {
  padding: 0.2rem 0.15rem;
  color: var(--ink-soft);
}

.lang-switch a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch--mobile {
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 0;
  margin-right: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(244, 240, 230, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-right: auto;
  margin-left: 2.5rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--sage-deep);
  transition: right 0.3s var(--ease);
}

.site-nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.mobile-nav.is-open {
  max-height: 22rem;
}

.mobile-nav a {
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.mobile-nav .btn {
  margin: 1rem clamp(1.25rem, 4vw, 3.5rem);
}

.mobile-nav a.btn-primary {
  color: var(--cream);
}

.mobile-nav a.btn-primary:hover {
  color: var(--cream);
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-settle 1.8s var(--ease) forwards;
}

@keyframes hero-settle {
  to { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 26, 18, 0.15) 0%, rgba(24, 26, 18, 0.35) 55%, rgba(24, 26, 18, 0.78) 100%);
}

.hero-content {
  position: relative;
  color: var(--cream);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 8vw, 6rem);
  max-width: 46rem;
  opacity: 0;
  animation: hero-rise 1s var(--ease) 0.4s forwards;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content .eyebrow {
  color: var(--cream-deep);
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(0.95rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 38ch;
  color: rgba(244, 240, 230, 0.88);
  margin-bottom: 2.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Intro */

.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 82rem;
  margin: 0 auto;
}

.intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1.3rem;
}

.intro-text p {
  color: var(--ink-soft);
  max-width: 46ch;
}

.intro-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sage-deep);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

/* Villas / gallery */

.villas {
  background: var(--cream-deep);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-head {
  max-width: 82rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1rem;
}

.gallery {
  max-width: 82rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(24, 26, 18, 0.72) 0%, rgba(24, 26, 18, 0) 100%);
}

.floorplans {
  max-width: 82rem;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.floorplan-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.floorplan-card img {
  margin-bottom: 1rem;
}

.floorplan-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.floorplan-card--wide {
  max-width: 82rem;
  margin: 1.5rem auto 0;
}

.floorplan-card--wide img {
  width: 100%;
}

/* Location */

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.location-media {
  min-height: 26rem;
}

.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
}

.location-text h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.location-text p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.location-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.location-facts li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.location-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 1px;
  background: var(--sage-deep);
}

.location--flip .location-media {
  order: 2;
}

.location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.location-meta a {
  color: var(--sage-deep);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.location-meta a:hover {
  border-color: var(--sage-deep);
}

/* Booking */

.book {
  background: var(--sage-deep);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.book .eyebrow {
  color: var(--cream-deep);
}

.book-inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.book h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1rem;
}

.book .section-lede {
  color: rgba(244, 240, 230, 0.82);
  margin: 0 auto 2.5rem;
}

.book-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field span {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--cream-deep);
}

.field input,
.field select,
.field textarea {
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  background: rgba(244, 240, 230, 0.08);
  border: 1px solid rgba(244, 240, 230, 0.32);
  border-radius: var(--radius);
  color: var(--cream);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 240, 230, 0.5);
}

.field select {
  color: var(--cream);
}

.field select option {
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(244, 240, 230, 0.14);
}

.field input:required:invalid {
  box-shadow: none;
}

.field input[type="file"] {
  padding: 0.55rem 0.9rem;
}

.field-hint {
  color: rgba(244, 240, 230, 0.55);
  font-size: 0.78rem;
}

/* Standalone "check availability" section */

.availability-section {
  background: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.availability-section .availability--light {
  max-width: 40rem;
  margin: 0 auto;
}

/* Availability calendar (public booking form) */

.availability {
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid rgba(244, 240, 230, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.4rem;
}

.availability-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.availability-title {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--cream-deep);
}

.availability-legend {
  display: flex;
  gap: 1rem;
}

.availability-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(244, 240, 230, 0.75);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot--booked {
  background: #c9765a;
}

.dot--available {
  background: transparent;
  border: 1px solid rgba(244, 240, 230, 0.5);
}

.availability-hint {
  font-size: 0.8rem;
  color: rgba(244, 240, 230, 0.6);
  margin-bottom: 0.9rem;
}

.availability-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.availability-nav button {
  background: none;
  border: 1px solid rgba(244, 240, 230, 0.3);
  color: var(--cream);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.availability-nav button:hover {
  background: rgba(244, 240, 230, 0.12);
}

.availability-month {
  font-size: 0.92rem;
  color: var(--cream);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.availability-grid .cal-dow {
  font-size: 0.7rem;
  text-align: center;
  color: rgba(244, 240, 230, 0.45);
  padding-bottom: 0.3rem;
}

.availability-grid .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 50%;
  color: rgba(244, 240, 230, 0.85);
}

.availability-grid .cal-day.is-empty {
  visibility: hidden;
}

.availability-grid .cal-day.is-booked {
  background: rgba(201, 118, 90, 0.85);
  color: var(--cream);
}

.availability-grid .cal-day.is-past {
  color: rgba(244, 240, 230, 0.25);
}

/* Light variant — used in the standalone availability section, which sits
   on the cream background rather than the dark sage of the booking form. */

.availability--light {
  background: var(--cream-deep);
  border: 1px solid var(--line);
}

.availability--light .availability-title {
  color: var(--ink);
  font-weight: 600;
}

.availability--light .availability-legend-item,
.availability--light .availability-hint {
  color: var(--ink-soft);
}

.availability--light .dot--available {
  border-color: var(--ink-soft);
}

.availability--light .availability-nav button {
  border-color: var(--line);
  color: var(--ink);
}

.availability--light .availability-nav button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.availability--light .availability-month {
  color: var(--ink);
}

.availability--light .availability-grid .cal-dow {
  color: var(--ink-soft);
  opacity: 0.7;
}

.availability--light .availability-grid .cal-day {
  color: var(--ink);
}

.availability--light .availability-grid .cal-day.is-past {
  color: var(--line);
}

.availability--light .availability-grid .cal-day.is-booked {
  color: var(--cream);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* Payment page (after a reservation is submitted) */

.payment-qr-single {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 26rem;
  margin: 0 auto 2rem;
}

.payment-qr-single img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.payment-bank-details {
  max-width: 34rem;
  margin: 0 auto 2rem;
  text-align: left;
  color: rgba(244, 240, 230, 0.85);
}

.payment-bank-details summary {
  cursor: pointer;
  font-size: 0.92rem;
  text-align: center;
  color: var(--cream);
  text-decoration: underline;
  margin-bottom: 1rem;
}

.payment-bank-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.payment-bank-card {
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid rgba(244, 240, 230, 0.2);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.payment-bank-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.payment-bank-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.2rem 0;
}

.payment-bank-currency {
  color: rgba(244, 240, 230, 0.6);
}

.payment-bank-number {
  font-family: monospace;
  letter-spacing: 0.02em;
}

.payment-whatsapp-note {
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  color: rgba(244, 240, 230, 0.85);
  font-size: 0.95rem;
}

.payment-slip-form {
  max-width: 26rem;
  margin: 0 auto 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Map embed */

.map-section {
  background: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem) 0;
}

.map-embed {
  max-width: 82rem;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px) {
  .map-embed {
    aspect-ratio: 4 / 5;
  }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 240, 230, 0.14);
}

.footer-cols h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.footer-cols p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-cols a:hover {
  color: var(--cream);
}

.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(244, 240, 230, 0.5);
}

/* Responsive */

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

  .btn-nav {
    display: none;
  }

  .site-header .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .gallery-item--wide {
    grid-column: span 2;
  }

  .floorplans {
    grid-template-columns: 1fr;
  }

  .location {
    grid-template-columns: 1fr;
  }

  .location-media {
    min-height: 20rem;
  }

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

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
