/* =========================================================
   Goodly Pool Villa — Premium Luxury Pool Villa Pattaya
   Palette: White · Brown · Cream  |  Font: Kanit
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --white: #ffffff;
  --cream: #f7f1e8;
  --cream-2: #efe6d6;
  --sand: #e8dcc6;
  --beige: #d9c7a8;
  --tan: #b89b71;
  --brown: #8a6d45;
  --brown-deep: #5e4a2e;
  --espresso: #2e2419;
  --gold: #bd9b67;

  --bg: #faf7f1;
  --bg-soft: #f3ece0;
  --surface: #ffffff;

  --text: #2c2419;
  --text-soft: #5c5345;
  --text-muted: #8a8073;
  --line: #e6ddcd;

  /* Type */
  --font: 'Kanit', system-ui, -apple-system, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 4px 14px rgba(46, 36, 25, 0.06);
  --sh: 0 14px 40px rgba(46, 36, 25, 0.10);
  --sh-lg: 0 30px 70px rgba(46, 36, 25, 0.16);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--espresso); color: #f4ede1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--tan);
}
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--tan);
}

.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 18px 0 16px;
  font-weight: 500;
}
.section-title em { font-style: normal; color: var(--brown); }

.lead { font-size: 1.05rem; color: var(--text-soft); }

.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--espresso);
  color: #f6efe2;
  box-shadow: var(--sh-sm);
}
.btn--primary:hover {
  background: var(--brown-deep);
  transform: translateY(-3px);
  box-shadow: var(--sh);
}

.btn--gold {
  background: linear-gradient(135deg, var(--tan), var(--brown));
  color: #fff;
  box-shadow: 0 12px 26px rgba(138, 109, 69, 0.32);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(138, 109, 69, 0.4); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--sh-sm); }

.btn--light { background: #fff; color: var(--espresso); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--sh); }

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--brown);
  transition: gap 0.3s var(--ease);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover { gap: 12px; }
.text-link:hover svg { transform: translateX(3px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 0;
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__logo { transform: translateY(-1px); }
.brand__logo img { height: 44px; width: auto; display: block; }
.header-logo-img { width: 100px !important; height: 100px !important; display: block; object-fit: contain; }
.brand__logo--lg { border-radius: 18px; padding: 12px 18px; }
.brand__logo--lg img { height: 70px; }
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tan), var(--brown-deep));
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand__text { line-height: 1.1; }
.brand__name { font-weight: 600; font-size: 1.12rem; letter-spacing: 0.01em; }
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1.5px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--brown); }
.nav a.is-active { color: var(--brown); font-weight: 500; }
.nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  position: relative;
  display: flex;
  align-items: center;
}

.header-phone-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: inherit;
}

.header-phone-btn svg {
  width: 20px;
  height: 20px;
  color: var(--brown);
  transition: transform 0.2s;
}

.header-phone-btn:hover svg {
  transform: scale(1.1);
}

.header-phone-dropdown {
  position: absolute;
  top: 100%;
  right: -50px;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.header-phone.has-dropdown:hover .header-phone-dropdown,
.header-phone.has-dropdown:focus-within .header-phone-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-phone-dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-weight: 400;
}

.header-phone-dropdown a:hover {
  background: var(--cream);
  color: var(--brown);
}

/* transparent over hero */
.site-header.is-top { background: transparent; }
.site-header.is-top .brand__name,
.site-header.is-top .nav a,
.site-header.is-top .header-phone { color: #fff; }
.site-header.is-top .brand__sub { color: rgba(255, 255, 255, 0.7); }
.site-header.is-top .header-phone-btn svg { color: #fff; }
.site-header.is-top .nav a:hover,
.site-header.is-top .nav a.is-active { color: #fff; }
.site-header.is-top .nav a.is-active::after { background: #fff; }

/* scrolled */
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--sh-sm);
}

/* ── Hamburger Button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s;
}
.nav-toggle:hover { background: rgba(255,255,255,.25); }
.site-header.is-scrolled .nav-toggle {
  background: rgba(46,36,25,.08);
  border-color: rgba(46,36,25,.15);
}
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.site-header.is-scrolled .hamburger span { background: var(--espresso); }
.nav-toggle.is-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .hamburger span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
.mobile-drawer.is-open { pointer-events: all; visibility: visible; }
.mobile-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,14,8,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s;
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 85vw); height: 100%;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f0e8dc;
}
.mobile-drawer__brand {
  flex: 1; text-align: center;
  font-size: 1rem; font-weight: 600;
  color: #92754D; letter-spacing: 0.02em;
}
.mobile-drawer__logo { width: 80px; height: 80px; object-fit: contain; }
.mobile-drawer__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f4f0eb; color: #5c5345;
  font-size: 1rem; display: grid; place-items: center;
  cursor: pointer; border: none;
  transition: background .2s;
}
.mobile-drawer__close:hover { background: #e8dcc6; }
.mobile-drawer__links {
  flex: 1; padding: 12px 0; list-style: none;
}
.mobile-drawer__links li a {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 24px;
  font-size: 1.05rem; font-weight: 400; color: #92754D;
  text-decoration: none;
  border-bottom: 1px solid #f7f1e8;
  transition: background .2s, color .2s, padding .2s;
}
.mobile-drawer__links li a:hover {
  background: #faf6f0; color: #6b5235; padding-left: 30px;
}
.mobile-drawer__foot {
  padding: 20px 22px 36px;
  border-top: 1px solid #f0e8dc;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-drawer__phone {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 500; color: var(--text);
  text-decoration: none;
}
.mobile-drawer__phone svg { width: 18px; height: 18px; color: var(--brown); }
.mobile-drawer__line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #06C755; color: #fff;
  border-radius: 12px; padding: 12px;
  font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: background .2s;
}
.mobile-drawer__line:hover { background: #05b84d; }

/* ── Hide/show helpers ── */
.hide-mobile { display: inline-flex; }


/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 9, 0.45) 0%,
    rgba(20, 15, 9, 0.15) 40%,
    rgba(20, 15, 9, 0.75) 100%
  );
}
.hero__inner { width: 100%; padding-bottom: clamp(40px, 6vw, 70px); }

.hero__eyebrow {
  color: #f0e4cf;
  margin-bottom: 22px;
}
.hero__eyebrow::before { background: rgba(255, 255, 255, 0.6); }

.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 100%;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--cream-2); }

.hero__desc {
  margin: 24px 0 34px;
  max-width: 52ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Search / booking widget */
.hero-search {
  margin-top: clamp(38px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 8px;
  box-shadow: var(--sh-lg);
  color: var(--text);
  max-width: 980px;
}
.hero-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border-radius: var(--r);
  transition: background 0.25s var(--ease);
}
.hero-field + .hero-field { border-left: 1px solid var(--line); }
.hero-field:hover { background: var(--cream); }
.hero-field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-field select,
.hero-field input {
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  width: 100%;
  cursor: pointer;
}
.hero-search .btn { width: 100%; height: 100%; }

/* Stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 38px;
}
.hero-stat__num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
.hero-stat__num span { color: var(--cream-2); }
.hero-stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

/* =========================================================
   Feature row (under hero)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cream), var(--sand));
  color: var(--brown);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(138,109,69,0.15);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; font-weight: 600; }
.feature p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }

/* =========================================================
   About split
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-media { position: relative; }
.about-media__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 4.4;
}
.about-media__main img { width: 100%; height: 100%; object-fit: cover; }
.about-media__badge {
  position: absolute;
  left: 20px;
  bottom: 36px;
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px 26px;
  box-shadow: var(--sh);
  text-align: center;
}
.about-media__badge strong { font-size: 2.2rem; color: var(--brown); display: block; font-weight: 600; }
.about-media__badge span { font-size: 0.85rem; color: var(--text-muted); }

.about-list { display: grid; gap: 18px; margin: 28px 0 32px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream-2); color: var(--brown);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 3px;
}
.about-list .tick svg { width: 15px; height: 15px; }
.about-list strong { font-weight: 500; }
.about-list p { font-size: 0.92rem; color: var(--text-soft); }

/* =========================================================
   Villa cards
   ========================================================= */
.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.villa-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.villa-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.villa-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.villa-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.villa-card:hover .villa-card__media img { transform: scale(1.07); }
.villa-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown-deep);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
}
.villa-fav {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid; place-items: center; color: var(--brown);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.villa-fav:hover { background: #fff; transform: scale(1.1); }
.villa-fav svg { width: 18px; height: 18px; }

.villa-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.villa-card__loc {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px;
}
.villa-card__loc svg { width: 15px; height: 15px; }
.villa-card__name { font-size: 1.22rem; font-weight: 500; }
.villa-card__rating { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; margin-top: 8px; }
.villa-card__rating svg { width: 15px; height: 15px; color: var(--gold); }
.villa-specs {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 16px 0; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.villa-specs li { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--text-soft); }
.villa-specs svg { width: 17px; height: 17px; color: var(--brown); }
.villa-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.villa-price strong { font-size: 1.45rem; color: var(--brown-deep); font-weight: 600; }
.villa-price span { font-size: 0.85rem; color: var(--text-muted); }
.villa-card__foot .btn { padding: 11px 22px; font-size: 0.88rem; }
.villa-card__foot .btn--primary { background: #bd9b67; color: #fff; }
.villa-card__foot .btn--primary:hover { background: #a8895a; }

/* =========================================================
   Why choose / amenities
   ========================================================= */
.amen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.amen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.amen-card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.amen-card__icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--cream), var(--sand));
  color: var(--brown); display: grid; place-items: center; margin-bottom: 22px;
  margin-inline: auto;
}
.amen-card__icon svg { width: 28px; height: 28px; }
.amen-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 500; text-align: center; }
.amen-card p { font-size: 0.94rem; color: var(--text-soft); text-align: center; }

/* =========================================================
   Showcase / parallax band
   ========================================================= */
.showcase {
  position: relative;
  padding: clamp(90px, 14vw, 180px) 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.showcase__bg { position: absolute; inset: 0; z-index: -2; }
.showcase__bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,13,.55), rgba(30,22,13,.7));
}
.showcase h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.showcase p { margin: 20px auto 32px; max-width: 56ch; color: rgba(255,255,255,.88); }

/* =========================================================
   Reviews
   ========================================================= */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.review-card::before {
  content: "\201C";
  position: absolute; top: 10px; right: 26px;
  font-size: 5rem; line-height: 1; color: var(--cream-2);
  font-family: Georgia, serif;
}
.review-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.review-stars svg { width: 18px; height: 18px; }
.review-card p { color: var(--text-soft); flex: 1; }
.review-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.review-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review-author strong { font-weight: 500; display: block; }
.review-author span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--brown-deep), var(--espresso));
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(189,155,103,.4), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 46ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--espresso); color: #cfc5b4; padding-top: clamp(60px, 8vw, 90px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }
.footer-about { margin: 20px 0 22px; font-size: 0.94rem; line-height: 1.8; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--brown); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; font-weight: 500; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color 0.25s var(--ease), padding 0.25s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 5px; }

.footer-contact li { display: flex; gap: 12px; font-size: 0.94rem; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--tan); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 24px 0; font-size: 0.86rem; color: rgba(255,255,255,.55);
}
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 70px;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,18,10,.62), rgba(25,18,10,.78));
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { margin-top: 14px; max-width: 58ch; color: rgba(255,255,255,.85); text-align: center; margin-inline: auto; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--tan); }

/* =========================================================
   Forms
   ========================================================= */
.form-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.96rem; color: var(--text);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--tan);
  box-shadow: 0 0 0 3px rgba(184,155,113,.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.info-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}
.info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.info-item__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; color: var(--brown);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 1rem; margin-bottom: 3px; font-weight: 500; }
.info-item p { font-size: 0.92rem; color: var(--text-soft); }

/* =========================================================
   Calendar (booking)
   ========================================================= */
.cal-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.calendar {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--sh);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal-head h3 { font-size: 1.3rem; font-weight: 500; }
.cal-nav { display: flex; gap: 10px; }
.cal-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--brown-deep);
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.cal-nav button:hover { background: var(--sand); transform: scale(1.05); }
.cal-nav svg { width: 18px; height: 18px; }

.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays span {
  text-align: center; font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); padding-bottom: 10px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cal-day.empty { pointer-events: none; }
.cal-day.available { cursor: pointer; color: var(--text); }
.cal-day.available:hover { background: var(--cream); transform: scale(1.06); }
.cal-day.available::after {
  content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px;
  border-radius: 50%; background: #3f9e6b;
}
.cal-day.booked {
  color: var(--text-muted); text-decoration: line-through;
  background: #f4ece0; cursor: not-allowed;
}
.cal-day.booked::after {
  content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px;
  border-radius: 50%; background: #c0473f;
}
.cal-day.past { color: #cfc7b8; cursor: not-allowed; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--tan); }
.cal-day.selected, .cal-day.selected:hover { background: var(--brown); color: #fff; transform: scale(1.04); }
.cal-day.in-range { background: var(--cream-2); border-radius: 0; }

.cal-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cal-legend span { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.free { background: #3f9e6b; }
.dot.busy { background: #c0473f; }
.dot.sel { background: var(--brown); }

.booking-summary { background: var(--cream); border-radius: var(--r-lg); padding: clamp(24px,3vw,34px); position: sticky; top: 100px; }
.booking-summary h3 { font-size: 1.3rem; margin-bottom: 6px; }
.summary-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.summary-row span:first-child { color: var(--text-soft); }
.summary-row strong { font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; margin-top: 18px; font-size: 1.25rem; font-weight: 600; color: var(--brown-deep); }

/* =========================================================
   Filter bar
   ========================================================= */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 44px;
}
.filter-bar button, .filter-bar a {
  display: inline-flex; flex-direction: column; align-items: center; text-decoration: none;
  padding: 10px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.92rem; color: var(--text-soft); cursor: pointer;
  transition: all 0.25s var(--ease); line-height: 1.3;
}
.filter-bar button:hover, .filter-bar a:hover { border-color: var(--tan); color: var(--brown); }
.filter-bar button.is-active, .filter-bar a.is-active { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.filter-th {
  font-size: 0.72rem; opacity: 0.75; margin-top: 2px;
  font-weight: 300; letter-spacing: 0.01em;
}

/* =========================================================
   Misc
   ========================================================= */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-block strong { font-size: clamp(2rem, 4vw, 3rem); color: var(--brown); font-weight: 600; display: block; }
.stat-block span { font-size: 0.92rem; color: var(--text-soft); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px,5vw,70px); align-items: center; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-card__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; margin-bottom: 16px; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.team-card:hover .team-card__img img { transform: scale(1.06); }
.team-card h4 { font-size: 1.1rem; font-weight: 500; }
.team-card span { font-size: 0.88rem; color: var(--brown); }

.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); height: 380px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .villa-grid, .amen-grid, .review-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { grid-template-columns: repeat(2, 1fr); }
  .hero-search .btn { grid-column: span 2; }
  .hero-field + .hero-field:nth-child(odd) { border-left: none; }
  .cal-layout, .value-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  /* ── Header: ซ่อน desktop nav + phone, แสดง hamburger ── */
  .nav { display: none !important; }
  .header-phone { display: none; }
  .hide-mobile { display: none !important; }
  .nav-toggle { display: flex; }

  .brand__logo { padding: 5px 9px; }
  .header-logo-img { width: 80px !important; height: 80px !important; }
  .header-cta { gap: 10px; }

  /* ── จัดกลาง: หัวข้อและข้อความทั้งเว็บ ── */
  h1, h2, h3 { text-align: center; }
  .section-head { text-align: center; margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--tan); }
  .lead { text-align: center; }
  .hero__title, .hero__desc { text-align: center; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero-stats { justify-content: center; text-align: center; }
  .page-hero h1, .page-hero p, .breadcrumb { text-align: center; justify-content: center; }
  .feature { flex-direction: column; align-items: center; text-align: center; }
  .about-list li { flex-direction: row; }
  .cta-band { text-align: center; align-items: center; }
  .cta-band__actions { justify-content: center; }
  .footer-bottom { justify-content: space-between; text-align: left; }

  /* ── Layout adjustments ── */
  .about-grid { grid-template-columns: 1fr; }
  .about-media__badge { left: 8px; bottom: 16px; padding: 10px 14px; }
  .about-media__badge strong { font-size: 1.4rem; }
  .about-media__badge span { font-size: 0.72rem; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cta-band { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .villa-card__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
}

@media (max-width: 560px) {
  .villa-grid, .amen-grid, .review-grid, .team-grid, .feature-row,
  .footer-grid, .stats-band { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; padding: 8px; gap: 4px; margin-top: 20px; border-radius: 14px; }
  .hero-search .btn { grid-column: span 1; padding: 10px; font-size: 0.85rem; }
  .hero-field { padding: 7px 12px; }
  .hero-field label { font-size: 0.65rem; }
  .hero-field select, .hero-field input { font-size: 0.85rem; }
  .hero-field + .hero-field { border-left: none; border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }

  /* ── Text centering ── */
  .villa-card__name, .villa-card__loc, .villa-card__rating { text-align: center; justify-content: center; }
  .villa-specs { justify-content: center; }
  .amen-card { text-align: center; }
  .amen-card__icon { margin-inline: auto; }
  .review-card { text-align: center; }
  .review-author { justify-content: center; }
  .stat-block { text-align: center; }
  .filter-bar { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 7px; margin-bottom: 28px; }
  .filter-bar button, .filter-bar a { padding: 6px 10px; font-size: 0.72rem; border-radius: 12px; width: 100%; justify-content: center; }
  .filter-th { font-size: 0.6rem; }
}

body.no-scroll { overflow: hidden; }

/* Floating Widget */
.floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 999;
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  transform-origin: bottom center;
}

.floating-widget:hover .floating-menu,
.floating-widget:focus-within .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--brown);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  transition: transform 0.2s;
  z-index: 2;
}

.floating-main-btn svg {
  width: 28px;
  height: 28px;
}

.floating-main-btn:hover, .floating-main-btn:focus {
  transform: scale(1.05);
  outline: none;
}

/* Ripple Effect Animation */
.floating-main-btn::before,
.floating-main-btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--brown);
  animation: ripple 2s infinite ease-out;
  pointer-events: none;
}
.floating-main-btn::after {
  animation-delay: 1s;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.floating-btn {
  position: relative;
}

.floating-btn > a, .floating-btn > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: var(--brown);
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.floating-btn > a:hover, .floating-btn > button:hover, .floating-btn > button:focus {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

/* Specific colors */
.fb-line > a { background-color: #00B900; }
.fb-facebook > a { background-color: #1877F2; }
.fb-tiktok > a { background-color: #000000; }
.fb-phone > button { background-color: #9D8057; }
.fb-map > a { background-color: #EA4335; }

/* Phone Dropdown */
.phone-dropdown {
  position: absolute;
  right: 60px;
  bottom: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.floating-btn.has-dropdown:hover .phone-dropdown,
.floating-btn.has-dropdown:focus-within .phone-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.phone-dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s;
}

.phone-dropdown a:hover {
  background: var(--cream);
  color: var(--brown);
}
