:root {
    --forest: #1f2d24;
    --forest-deep: #131c17;
    --moss: #3a4a3a;
    --cream: #f4efe6;
    --sand: #e8ddc7;
    --gold: #b89968;
    --gold-soft: #d4b88a;
    --ink: #1a1a1a;
    --muted: #6b6b66;
    --line: rgba(184, 153, 104, 0.25);
    --shadow: 0 30px 60px -20px rgba(19, 28, 23, 0.35);
    --serif: 'Cormorant Garamond', 'Sarabun', serif;
    --sans: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    --thai: 'Sarabun', sans-serif;
  }
  [data-lang="th"] {
    --serif: 'Sarabun', 'Cormorant Garamond', serif;
    --sans: 'Sarabun', 'Inter', sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
  body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }

  /* TYPE */
  .eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
  }
  h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
  h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
  h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
  p { font-size: clamp(0.95rem, 1.05vw, 1.05rem); color: var(--ink); }
  [lang="th"], [data-lang="th"] body { font-family: var(--thai); }

  .container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

  /* NAV */
  .nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.4s ease;
    background: transparent;
  }
  .nav.scrolled {
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; }
  .logo {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--cream);
    transition: color 0.4s ease;
  }
  .nav.scrolled .logo { color: var(--forest); }
  .logo span { color: var(--gold); font-style: italic; }
  .nav-links { display: flex; align-items: center; gap: 36px; }
  .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--cream);
    transition: color 0.3s ease;
    position: relative;
  }
  .nav.scrolled .nav-links a { color: var(--forest); }
  /* Buttons keep their own text color when the nav turns light on scroll. */
  .nav.scrolled .nav-links a.btn-dark { color: var(--cream); }
  .nav.scrolled .nav-links a.btn:not(.btn-dark) { color: var(--forest-deep); }
  .nav-links a:hover { color: var(--gold); }
  .nav-links a.btn:hover { color: var(--forest-deep); }
  .nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); }
  .lang-toggle {
    display: flex; gap: 4px; padding: 6px 10px;
    border: 1px solid rgba(244, 239, 230, 0.4);
    border-radius: 999px;
    font-size: 0.7rem; letter-spacing: 0.1em;
    transition: border-color 0.3s ease;
  }
  .nav.scrolled .lang-toggle { border-color: var(--line); }
  .lang-toggle button {
    padding: 3px 10px;
    color: var(--cream);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    font-weight: 500;
  }
  .nav.scrolled .lang-toggle button { color: var(--forest); }
  .lang-toggle button.active { background: var(--gold); color: var(--forest-deep); }
  .nav-book { padding: 12px 22px; font-size: 0.72rem; }

  /* Hamburger (mobile only) */
  .menu-btn {
    display: none;
    width: 30px; height: 22px;
    position: relative;
    flex-shrink: 0;
  }
  .menu-btn span {
    position: absolute; left: 0; right: 0; height: 2px;
    background: var(--cream);
    transition: transform 0.35s ease, opacity 0.25s ease, background 0.4s ease;
  }
  .menu-btn span:nth-child(1) { top: 0; }
  .menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .menu-btn span:nth-child(3) { bottom: 0; }
  .nav.scrolled .menu-btn span { background: var(--forest); }
  body.menu-open .menu-btn span { background: var(--cream); }
  body.menu-open .menu-btn span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

  /* Mobile slide-down menu */
  .mobile-menu {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 90;
    background: var(--forest-deep);
    padding: 96px 32px 40px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a:not(.btn) {
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.6rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244,239,230,0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
  }
  .mobile-menu a:not(.btn):hover { color: var(--gold-soft); padding-left: 8px; }
  .mobile-menu .btn { margin-top: 24px; justify-content: center; }
  .mobile-lang { align-self: flex-start; margin-top: 22px; border-color: rgba(244,239,230,0.4); }
  .mobile-lang button { color: var(--cream); }
  .mobile-lang button.active { color: var(--forest-deep); }

  /* HERO */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: var(--cream);
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background: url('../images/image-edited.webp') center/cover no-repeat;
    transform: scale(1.05);
    animation: kenburns 18s ease-in-out infinite alternate;
  }
  @keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.15) translate(-2%, -2%); } }
  .hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(19,28,23,0.55) 0%, rgba(19,28,23,0.25) 40%, rgba(19,28,23,0.7) 100%);
    z-index: 1;
  }
  .hero-content { position: relative; z-index: 2; max-width: 760px; }
  .hero h1 {
    margin: 18px 0 24px;
    font-weight: 300;
    font-style: italic;
  }
  .hero h1 strong { font-style: normal; font-weight: 500; color: var(--gold-soft); display: block; }
  .hero p {
    font-size: 1.15rem;
    color: rgba(244, 239, 230, 0.9);
    max-width: 540px;
    margin-bottom: 40px;
    font-weight: 300;
  }
  .hero-meta {
    position: absolute; bottom: 40px; left: 32px; right: 32px;
    z-index: 2;
    display: flex; justify-content: space-between; align-items: flex-end;
    color: rgba(244, 239, 230, 0.7);
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  }
  .scroll-cue {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.7rem; letter-spacing: 0.3em;
  }
  .scroll-cue::after { content: ''; width: 1px; height: 50px; background: var(--gold-soft); }

  /* BUTTONS */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--forest-deep);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  /* Light sheen sweeps across on hover */
  .btn::after {
    content: ''; position: absolute; top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }
  .btn:hover::after { left: 140%; }
  .btn > * { position: relative; z-index: 1; }
  .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
  .btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: rgba(244, 239, 230, 0.5);
  }
  .btn-outline:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
  .btn-dark {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--cream);
  }
  .btn-dark:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
  .hero .btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

  /* SECTION HEADERS */
  section { padding: 120px 0; position: relative; }
  .section-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
  .section-head h2 { margin: 16px 0 20px; }
  .section-head p { color: var(--muted); font-size: 1.05rem; }
  .divider {
    display: flex; align-items: center; justify-content: center;
    margin: 14px 0;
  }
  .divider::before, .divider::after {
    content: ''; height: 1px; width: 40px; background: var(--gold);
  }
  .divider span { padding: 0 14px; color: var(--gold); font-size: 0.85rem; }

  /* WELCOME */
  .welcome { background: var(--cream); }
  .welcome-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
  }
  .welcome-text .eyebrow { display: block; margin-bottom: 16px; }
  .welcome-text h2 { margin-bottom: 28px; }
  .welcome-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
  .welcome-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 40px;
    padding-top: 40px; border-top: 1px solid var(--line);
  }
  .stat { }
  .stat-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--forest);
    line-height: 1; font-weight: 500;
  }
  .stat-num span { color: var(--gold); font-style: italic; font-weight: 300; }
  .stat-label {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-top: 8px;
  }
  .welcome-img {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .welcome-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .welcome-img:hover img { transform: scale(1.05); }
  .welcome-img::after {
    content: '';
    position: absolute; top: 24px; left: 24px; right: 24px; bottom: 24px;
    border: 1px solid rgba(244, 239, 230, 0.4);
    pointer-events: none;
  }

  /* VILLAS */
  .villas { background: var(--forest); color: var(--cream); }
  .villas .eyebrow { color: var(--gold-soft); }
  .villas .section-head h2 { color: var(--cream); }
  .villas .section-head p { color: rgba(244, 239, 230, 0.7); }
  .villa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .villa-card {
    background: var(--forest-deep);
    overflow: hidden;
    transition: transform 0.5s ease;
    position: relative;
  }
  .villa-card:hover { transform: translateY(-8px); }
  .villa-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
  }
  .villa-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .villa-card:hover .villa-img img { transform: scale(1.1); }
  .villa-tag {
    position: absolute; top: 20px; left: 20px;
    background: var(--gold);
    color: var(--forest-deep);
    padding: 6px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .villa-body { padding: 36px; }
  .villa-body h3 { color: var(--cream); margin-bottom: 12px; }
  .villa-body .villa-sub { color: var(--gold-soft); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
  .villa-features {
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    margin: 24px 0;
    color: rgba(244, 239, 230, 0.85);
    font-size: 0.92rem;
  }
  .villa-features span { display: inline-flex; align-items: center; gap: 8px; }
  .villa-features svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
  .villa-body p { color: rgba(244, 239, 230, 0.7); margin-bottom: 24px; line-height: 1.75; }
  .villa-price {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid rgba(184, 153, 104, 0.3);
  }
  .villa-price .from { color: rgba(244, 239, 230, 0.6); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; }
  .villa-price a { color: var(--gold-soft); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
  .villa-price a:hover { color: var(--gold); }

  /* AMENITIES */
  .amenities { background: var(--cream); }
  .amenity-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .amenity {
    background: var(--cream);
    padding: 40px 28px;
    text-align: center;
    transition: background 0.3s ease;
  }
  .amenity:hover { background: #fff; }
  .amenity svg {
    width: 36px; height: 36px;
    color: var(--gold);
    margin-bottom: 18px;
  }
  .amenity h4 {
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .amenity p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

  /* GALLERY */
  .gallery { background: var(--sand); }
  .gallery-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 50px; flex-wrap: wrap;
  }
  .gallery-tab {
    padding: 10px 22px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  .gallery-tab.active {
    color: var(--forest);
    border-color: var(--gold);
    background: rgba(255,255,255,0.5);
  }
  .gallery-tab:hover { color: var(--forest); }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
  }
  .gal-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--forest);
  }
  .gal-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0.95;
  }
  .gal-item:hover img { transform: scale(1.08); opacity: 1; }
  .gal-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(19,28,23,0.5));
    opacity: 0; transition: opacity 0.3s ease;
  }
  .gal-item:hover::after { opacity: 1; }
  .gal-item.wide { grid-column: span 2; }
  .gal-item.tall { grid-row: span 2; }
  .gal-item.big { grid-column: span 2; grid-row: span 2; }

  /* LIGHTBOX */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(19, 28, 23, 0.96);
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    padding: 40px;
  }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; }
  .lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: var(--cream);
    font-size: 1.8rem;
    background: rgba(244, 239, 230, 0.1);
    border: 1px solid rgba(244, 239, 230, 0.3);
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
  }
  .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gold); border-color: var(--gold); color: var(--forest-deep);
  }
  .lightbox-close { top: 24px; right: 24px; }
  .lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
  .lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

  /* EXPERIENCE STRIP */
  .experience {
    color: var(--cream);
    text-align: center;
    position: relative;
    padding: 140px 0;
    overflow: hidden; /* clip the over-sized parallax layer */
  }
  /* Background lives on its own layer so it scrolls normally (no per-frame
     repaint from background-attachment:fixed). It's oversized + GPU-composited
     for a subtle parallax drift without the jank. */
  .experience::after {
    content: ''; position: absolute; inset: -10% 0;
    background: url('../images/WhatsApp-Image-2025-03-17-at-19.30.03-scaled.webp') center/cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
    z-index: 0;
  }
  .experience::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(19, 28, 23, 0.7);
    z-index: 1;
  }
  .experience-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 32px; }
  .experience .eyebrow { color: var(--gold-soft); }
  .experience h2 {
    color: var(--cream);
    font-style: italic;
    font-weight: 300;
    margin: 20px 0 24px;
  }
  .experience p { color: rgba(244,239,230,0.9); font-size: 1.1rem; margin-bottom: 36px; }

  /* BOOKING / CONTACT */
  .booking { background: var(--cream); }
  .booking-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }
  .booking-info h2 { margin: 16px 0 24px; }
  .booking-info > p { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; line-height: 1.8; }
  .contact-list { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
  .contact-item { display: flex; gap: 18px; align-items: flex-start; }
  .contact-item .icon {
    width: 44px; height: 44px;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .contact-item .icon svg { width: 20px; height: 20px; }
  .contact-item h4 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 6px;
  }
  .contact-item p, .contact-item a { color: var(--forest); font-size: 1rem; }
  .contact-item a:hover { color: var(--gold); }
  .socials { display: flex; gap: 12px; }
  .socials a {
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--forest);
    transition: all 0.3s ease;
  }
  .socials a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .socials svg { width: 18px; height: 18px; }

  /* FORM */
  .booking-form {
    background: #fff;
    padding: 48px;
    box-shadow: var(--shadow);
    position: relative;
  }
  .booking-form::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0;
    height: 3px; background: var(--gold);
  }
  .booking-form h3 { margin-bottom: 8px; }
  .booking-form .form-sub { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
  .form-field { display: flex; flex-direction: column; }
  .form-field.full { grid-column: 1 / -1; }
  .form-field label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .form-field input, .form-field select, .form-field textarea {
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: var(--sans);
    font-size: 0.98rem;
    color: var(--forest);
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0; /* iOS strips rounding from date/select otherwise */
  }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-bottom-color: var(--gold);
  }
  .form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 0.6; }
  .form-field textarea { resize: vertical; min-height: 90px; }
  /* Custom select chevron in brand gold */
  .form-field select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b89968' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    cursor: pointer;
  }
  /* Tame native date/number controls so they sit on the brand baseline */
  .form-field input[type="date"] { position: relative; cursor: text; }
  .form-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: grayscale(1) opacity(0.55);
    cursor: pointer;
    transition: filter 0.3s ease;
  }
  .form-field input[type="date"]:hover::-webkit-calendar-picker-indicator { filter: none; }
  .form-field input[type="number"]::-webkit-inner-spin-button,
  .form-field input[type="number"]::-webkit-outer-spin-button { opacity: 0.4; }
  .form-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--forest);
    transition: background-color 9999s ease-out;
  }
  .form-submit { margin-top: 24px; width: 100%; justify-content: center; }
  .form-success {
    display: none;
    padding: 16px;
    background: rgba(184, 153, 104, 0.15);
    border-left: 3px solid var(--gold);
    margin-top: 18px;
    color: var(--forest);
    font-size: 0.92rem;
  }
  .form-success.show { display: block; }

  /* MAP */
  .map-wrap { margin-top: 60px; }
  .map-wrap iframe {
    width: 100%; height: 380px;
    border: none;
    filter: grayscale(20%) contrast(0.95);
  }

  /* FOOTER */
  footer {
    background: var(--forest-deep);
    color: rgba(244, 239, 230, 0.7);
    padding: 80px 0 40px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  .footer-col h5 {
    font-family: var(--sans);
    color: var(--gold-soft);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a { font-size: 0.92rem; transition: color 0.3s ease; }
  .footer-col a:hover { color: var(--gold-soft); }
  .footer-brand .logo { color: var(--cream); margin-bottom: 18px; display: inline-block; }
  .footer-brand p { font-size: 0.92rem; line-height: 1.7; color: rgba(244,239,230,0.6); }
  .footer-bottom {
    border-top: 1px solid rgba(244, 239, 230, 0.1);
    padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; color: rgba(244,239,230,0.5);
  }

  /* REVEAL ANIMS */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* RESPONSIVE */
  @media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .welcome-grid, .booking-grid, .villa-grid { grid-template-columns: 1fr; gap: 50px; }
    .amenity-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gal-item.wide, .gal-item.big { grid-column: span 2; }
    .gal-item.tall { grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    section { padding: 80px 0; }
    .booking-form { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .experience { background-attachment: scroll; padding: 100px 0; }
  }
  @media (max-width: 560px) {
    .container { padding: 0 20px; }
    .hero-meta { display: none; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gal-item.wide, .gal-item.big { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
  }

  /* LANG VISIBILITY */
  [data-en], [data-th] { display: none; }
  html[data-lang="en"] [data-en] { display: inline; }
  html[data-lang="th"] [data-th] { display: inline; }
  /* block-level elements that need a different display */
  html[data-lang="en"] h1[data-en], html[data-lang="en"] h2[data-en], html[data-lang="en"] h3[data-en], html[data-lang="en"] h4[data-en], html[data-lang="en"] h5[data-en], html[data-lang="en"] p[data-en], html[data-lang="en"] div[data-en], html[data-lang="en"] li[data-en], html[data-lang="en"] span.block[data-en] { display: block; }
  html[data-lang="th"] h1[data-th], html[data-lang="th"] h2[data-th], html[data-lang="th"] h3[data-th], html[data-lang="th"] h4[data-th], html[data-lang="th"] h5[data-th], html[data-lang="th"] p[data-th], html[data-lang="th"] div[data-th], html[data-lang="th"] li[data-th], html[data-lang="th"] span.block[data-th] { display: block; }

  /* POLISH */
  /* Offset anchor jumps so section headings clear the fixed nav */
  #welcome, #villas, #gallery, #booking { scroll-margin-top: 80px; }
  /* Brand-tinted text selection */
  ::selection { background: var(--gold); color: var(--forest-deep); }
  /* Visible focus ring for keyboard users only (mouse clicks stay clean) */
  a:focus-visible, button:focus-visible,
  input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
  }
  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; transform: scale(1.05); }
    .reveal { opacity: 1 !important; transform: none !important; }
    .btn::after { display: none; }
  }
