/* =========================================================
   Nadda's Homestay — warm riverside redesign
   Palette: sand / terracotta / river-green / golden-hour amber
   ========================================================= */

:root {
  color-scheme: light dark;

  --bg: #f4ece0;
  --surface: #fbf7f0;
  --surface-2: #ede0cf;
  --ink: #2a221c;
  --muted: #6f6153;
  --line: #e2d4c1;

  --clay: #b65f39;
  --clay-strong: #9c4e2e;
  --river: #2f4a42;
  --river-deep: #223730;
  --amber: #d0913f;

  --danger: #ad3b2c;

  --shadow-sm: 0 6px 18px rgba(74, 52, 32, 0.1);
  --shadow-md: 0 20px 45px rgba(74, 52, 32, 0.16);
  --shadow-lg: 0 34px 70px rgba(48, 33, 20, 0.22);

  --radius: 18px;
  --radius-lg: 26px;

  --font-display: "Fraunces", "Noto Serif Thai", "Times New Roman", Georgia, serif;
  --font-body: "IBM Plex Sans Thai", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", "Helvetica Neue", sans-serif;

  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #201a15;
    --surface-2: #2a221b;
    --ink: #f3e9db;
    --muted: #b7a691;
    --line: #382d23;

    --clay: #e08a5a;
    --clay-strong: #ef9d6c;
    --river: #8bbaa9;
    --river-deep: #131f1a;
    --amber: #e3b06a;

    --danger: #ff9d90;

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 34px 70px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-shell {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Kicker / shared type ---------- */
.kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-strong);
}

.kicker-light {
  color: #ffe7cf;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.section-head > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--clay);
  color: #fff7f1;
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--clay-strong);
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--clay);
  color: var(--clay-strong);
}

.button-light {
  background: #fff7f1;
  color: #2a221c;
}

.button-light:hover {
  background: #ffffff;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 56px);
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
  border-bottom: 1px solid transparent;
}

.site-header[data-scrolled] {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand img {
  height: 50px;
  width: auto;
  border-radius: 0;
  filter: drop-shadow(0 3px 8px rgba(40, 25, 12, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 0.98rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  padding: 6px 0;
  transition: color 180ms ease;
}

/* Legible over the dark hero before the user scrolls */
.site-header:not([data-scrolled]) .nav-links a {
  color: #f4ece0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  min-width: 50px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.site-header:not([data-scrolled]) .language-toggle {
  color: #f4ece0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
}

.language-toggle:hover {
  border-color: var(--clay);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 220ms ease,
    opacity 200ms ease;
}

.site-header:not([data-scrolled]) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
}

.site-header:not([data-scrolled]) .nav-toggle span {
  background: #f4ece0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(60px, 9vh, 120px);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 6, 0.5) 0%, rgba(20, 12, 6, 0) 32%),
    linear-gradient(0deg, rgba(20, 12, 6, 0.82) 4%, rgba(20, 12, 6, 0.18) 46%, rgba(20, 12, 6, 0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #fdf6ee;
  max-width: 62rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  font-weight: 500;
  max-width: 20ch;
  color: #fffaf3;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: rgba(255, 247, 238, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 247, 238, 0.7);
  border-radius: 999px;
  opacity: 1;
  transition: opacity 320ms ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% 0;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 247, 238, 0.9);
  animation: scroll-bob 1.6s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* Mobile "slide guide": capsule sliding along the vertical track in .scroll-cue::before */
@keyframes scroll-slide {
  0% {
    top: 0;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 14px);
    opacity: 0.4;
  }
}

/* ---------- Welcome + highlights ---------- */
.welcome {
  padding: clamp(72px, 11vw, 130px) 0 clamp(20px, 4vw, 40px);
}

.welcome .section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.highlight {
  padding: 30px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.highlight-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 12px;
}

.highlight h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.highlight p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Rooms / feature blocks ---------- */
.rooms {
  padding: clamp(70px, 11vw, 128px) 0;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(48px, 8vw, 96px);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-reverse .feature-media {
  order: 2;
}

.feature-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature:hover .feature-media img {
  transform: scale(1.04);
}

.feature-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 34rem;
}

/* ---------- Amenities ---------- */
.amenities {
  background: var(--river);
  color: #f3ede2;
  padding: clamp(64px, 9vw, 104px) 0;
}

.amenities-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 46px);
}

.amenities-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.amenities-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: #fdf6ee;
  margin: 0;
}

.amenities-intro {
  margin: 16px 0 0;
  color: rgba(243, 237, 226, 0.82);
  font-size: 1.04rem;
}

.amenities-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.amenity-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 24px;
  border: 1px solid rgba(255, 247, 238, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 238, 0.07);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px rgba(18, 30, 26, 0.22);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease;
}

.amenity-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 247, 238, 0.3);
}

.perk-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #2a1a06;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.amenity-feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--amber) 22%, transparent);
  color: #f2c987;
}

.amenity-feature .icon svg {
  width: 24px;
  height: 24px;
}

.amenity-feature strong {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fdf6ee;
  font-family: var(--font-body);
}

.perk-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(243, 237, 226, 0.72);
  line-height: 1.5;
}

.amenity-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.amenity-tags li {
  padding: 9px 18px;
  border: 1px solid rgba(255, 247, 238, 0.28);
  border-radius: 999px;
  font-size: 0.96rem;
  background: rgba(255, 247, 238, 0.06);
}

/* ---------- Gallery ---------- */
.gallery {
  padding: clamp(72px, 11vw, 130px) 0;
  background: var(--surface-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.gallery-tall {
  grid-row: span 2;
}

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

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  background: rgba(16, 10, 5, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox[data-open] {
  opacity: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 30px);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 247, 238, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff7f1;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* ---------- Booking ---------- */
.booking-section {
  padding: clamp(72px, 11vw, 130px) 0;
}

.booking-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.booking-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.booking-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.booking-intro > p {
  margin: 16px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.booking-note {
  margin-top: 22px;
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--amber) 16%, var(--surface));
  color: var(--ink);
  font-size: 0.98rem;
}

.booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ป้องกัน input type=date ล้นคอลัมน์ (grid item ต้อง min-width: 0) */
.form-grid > label {
  min-width: 0;
  max-width: 100%;
}

/* มือถือ/แท็บเล็ตเล็ก: วันเข้า-ออก เรียงแนวตั้ง 1 คอลัมน์ ไม่ล้น */
@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  font-size: 0.96rem;
  min-width: 0;
  max-width: 100%;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  inline-size: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 13px 15px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  inline-size: 100%;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.35em;
  text-align: left;
}

input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
}

input:focus,
textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 20%, transparent);
}

textarea {
  resize: vertical;
}

::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.full-field {
  margin-top: 16px;
}

.field-error {
  min-height: 1.05rem;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 500;
}

.message-preview {
  margin-top: 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--surface-2);
}

.message-preview strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.message-preview p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  font-size: 0.96rem;
}

.copy-msg-btn {
  margin-top: 12px;
  padding: 7px 16px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.copy-msg-btn:hover {
  border-color: var(--clay);
  color: var(--clay-strong);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.copy-status {
  flex: 1 1 220px;
  min-height: 1.4rem;
  margin: 0;
  color: var(--clay-strong);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Location ---------- */
.location {
  position: relative;
  padding: clamp(90px, 15vw, 180px) 0;
  overflow: hidden;
  color: #fdf6ee;
}

.location-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.location::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 11, 6, 0.82) 0%,
    rgba(18, 11, 6, 0.55) 55%,
    rgba(18, 11, 6, 0.25) 100%
  );
}

.location-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.location-inner h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: #fffaf3;
}

.location-inner p {
  margin: 16px 0 28px;
  font-size: 1.08rem;
  color: rgba(255, 247, 238, 0.9);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--river-deep);
  color: #e6ddcf;
  padding: clamp(40px, 6vw, 64px) 0;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  /* leaves room so the fixed Messenger button (bottom-right) never overlaps
     the right-aligned contact links on narrower, non-maximized desktop windows */
  padding-right: 210px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fdf6ee;
}

.footer-brand p {
  margin: 6px 0 0;
  color: rgba(230, 221, 207, 0.75);
}

.footer-contact {
  display: grid;
  gap: 18px;
  justify-items: end;
  max-width: 31rem;
  color: rgba(230, 221, 207, 0.84);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
  font-weight: 500;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.footer-contact-link:hover {
  color: var(--clay-strong);
  text-decoration: underline;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.footer-contact-group {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.footer-contact-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 221, 207, 0.55);
}

.footer-phone-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-phone-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid rgba(255, 247, 238, 0.26);
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.06);
  color: #fdf6ee;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.footer-phone-chip:hover {
  background: rgba(255, 247, 238, 0.14);
  border-color: var(--clay);
  color: var(--clay);
}

.footer-map {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(230, 221, 207, 0.84);
  transition: color 180ms ease;
}

.footer-map:hover {
  color: var(--clay);
}

/* ---------- Messenger floating button ---------- */
.messenger-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #0084ff;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px rgba(0, 96, 190, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.messenger-fab[hidden] {
  display: none;
}

.messenger-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 96, 190, 0.5);
}

.messenger-fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 560px) {
  .messenger-fab {
    padding: 13px;
  }
  .messenger-fab span {
    display: none;
  }
}

/* ---------- New-version toast ---------- */
.update-toast {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.update-toast[hidden] {
  display: none;
}

.update-toast-reload {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--clay);
  color: #fff7f1;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease;
}

.update-toast-reload:hover {
  background: var(--clay-strong);
}

.update-toast-dismiss {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.update-toast-dismiss:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .update-toast:not([hidden]) {
    animation: toast-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .update-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 12px 12px 16px;
  }
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(18px, 6vw, 40px) 22px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 220ms ease;
  }

  .nav-links[data-open] {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* keep menu text dark even over hero once opened */
  .site-header:not([data-scrolled]) .nav-links a {
    color: var(--ink);
    text-shadow: none;
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav-links a::after {
    display: none;
  }

  .feature,
  .booking-shell {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-media {
    order: 0;
  }

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

  .booking-intro {
    position: static;
  }

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

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

  .gallery-tall {
    grid-row: span 1;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .footer-contact {
    justify-items: start;
    width: 100%;
    padding-top: 22px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 247, 238, 0.14);
  }

  .footer-contact-group {
    justify-items: start;
  }

  .footer-phone-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(1160px, calc(100% - 32px));
  }

  .hero {
    align-items: flex-end;
  }

  .hero-actions,
  .booking-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-card {
    padding: 18px;
    overflow: hidden;
  }

  label {
    font-size: 0.94rem;
  }

  input,
  textarea {
    min-height: 52px;
    padding: 11px 13px;
    font-size: 16px;
  }

  input[type="date"] {
    min-height: 52px;
    padding-inline: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .amenities-shell {
    align-items: stretch;
  }

  /* Replace the desktop "mouse wheel" hint with a vertical slide guide on the
     right edge, clear of the stacked CTA buttons and the Messenger bubble. */
  .scroll-cue {
    left: auto;
    right: 18px;
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
    width: 32px;
    height: 64px;
    border: none;
    border-radius: 0;
  }

  .scroll-cue::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% 0;
    width: 2px;
    height: 100%;
    border-radius: 2px;
    background: rgba(255, 247, 238, 0.35);
  }

  .scroll-cue span {
    left: 50%;
    top: 0;
    translate: -50% 0;
    width: 4px;
    height: 14px;
    border-radius: 999px;
    animation: scroll-slide 1.8s ease-in-out infinite alternate;
  }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    top: 50%;
    translate: -50% -50%;
    animation: none;
    opacity: 0.8;
  }
}
