/* Sunny Palm Guesthouse — sample site */
:root {
  --sand: #f6f1e9;
  --paper: #fffdf9;
  --ink: #1f1b16;
  --body: #4d463d;
  --muted: #6e665b;
  --line: #e6ddcf;
  --clay: #a84f2a;
  --clay-dark: #8a3f20;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 1000px; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.kicker.dark { color: var(--clay); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-solid { background: var(--clay); color: #fff; border: 1px solid var(--clay); }
.btn-solid:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* sample bar */
.sample-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 9px 16px; background: var(--ink); color: #e9e3d8; font-size: 13px; text-align: center; }
.sample-bar a { color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,253,249,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; flex-direction: column; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.logo span { font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo.light { color: #fff; }
.logo.light span { color: #bdb3a4; }
.links { display: flex; gap: 30px; font-size: 14px; }
.links a { text-decoration: none; color: var(--body); }
.links a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding-bottom: 48px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .hero-img { transform: scale(1.06); transition: transform 2.4s var(--ease); }
.js .hero.loaded .hero-img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.05) 35%, rgba(20,16,12,.6) 100%); }
.hero-inner { text-shadow: 0 1px 18px rgba(0,0,0,.35); position: relative; width: 100%; display: flex; flex-direction: column; gap: 16px; padding-bottom: 36px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -0.015em; }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.92); }

.book-bar { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; width: calc(100% - 64px); margin: 0 auto; padding: 12px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.4); }
.book-bar label { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px; transition: background .2s; }
.book-bar label:hover, .book-bar label:focus-within { background: var(--sand); }
.book-bar label span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.book-bar input, .book-bar select { border: 0; background: none; padding: 2px 0; font: 500 16px var(--sans); color: var(--ink); min-height: 28px; width: 100%; }
.book-bar input:focus, .book-bar select:focus { outline: none; }
.book-bar .btn { min-height: 56px; border-radius: 12px; }
.book-note { grid-column: 1 / -1; padding: 6px 14px 4px; font-size: 14px; color: var(--clay-dark); }

/* intro */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.intro-text { display: flex; flex-direction: column; gap: 18px; }
.intro-text > p:not(.kicker) { font-size: 18px; color: var(--body); max-width: 500px; }
.facts { margin-top: 8px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span { color: var(--muted); text-align: right; }
.intro-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.intro-photo img, .room-img img, .gallery img, .find-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* rooms */
.band { background: var(--sand); padding: 96px 0; }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room { background: var(--paper); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.room-img { aspect-ratio: 4 / 3; overflow: hidden; }
.room:hover .room-img img { transform: scale(1.04); }
.room-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.room-body > p { color: var(--body); font-size: 15px; }
.room-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rate { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.rate span, .rate small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--body); }
.room .btn { margin-top: auto; align-self: flex-start; }

/* stay */
.stay { padding-top: 96px; padding-bottom: 72px; }
.stay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stay-grid > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--ink); }
.stay-grid .n { font-size: 12px; color: var(--muted); }
.stay-grid h3 { font-size: 24px; }
.stay-grid p { font-size: 15px; color: var(--body); }

/* gallery */
.gallery-band { padding: 24px 0 96px; }
.gallery { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 10px; }
.gallery figure { overflow: hidden; border-radius: 4px; }
.gallery figure:hover img { transform: scale(1.04); }
.g1 { grid-column: span 2; grid-row: span 2; }


/* find */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-bottom: 104px; }
.find > div { display: flex; flex-direction: column; gap: 18px; }
.find > div > p:not(.kicker):not(.perk) { font-size: 17px; color: var(--body); max-width: 480px; }
.find-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.perk { font-size: 14px; color: var(--clay-dark); }
.find-photo { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; }

/* footer */
.foot { background: var(--ink); color: #d9d1c4; padding: 56px 0 28px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.foot-cols div { display: flex; flex-direction: column; gap: 4px; }
.foot-cols strong { color: #fff; font-weight: 500; margin-bottom: 4px; }
.foot-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a342c; font-size: 12px; color: #a59b8c; }
.foot-small a { color: #d9d1c4; }

/* WhatsApp widget */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #1f7a4d; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(31,122,77,.45); animation: wa-ping 2.6s ease-out infinite; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 rgba(31,122,77,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(31,122,77,0); } }
.wa-panel { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); display: flex; flex-direction: column; animation: wa-in .35s var(--ease) both; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: #1f3a2f; color: #fff; }
.wa-head strong { display: block; font-size: 14px; font-weight: 600; }
.wa-head span { display: block; font-size: 12px; color: #b9d6c8; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--clay); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; flex: none; }
.wa-close { margin-left: auto; width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; border-radius: 50%; }
.wa-close:hover { background: rgba(255,255,255,.12); }
.wa-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 180px; max-height: 300px; overflow-y: auto; background: #f3efe8; font-size: 14px; line-height: 1.45; }
.wa-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; animation: wa-pop .3s var(--ease) both; }
.wa-msg.in { align-self: flex-end; background: #dcefe2; border-bottom-right-radius: 3px; }
.wa-msg.out { align-self: flex-start; background: #fff; border-bottom-left-radius: 3px; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 12px; background: #fff; border-radius: 12px; border-bottom-left-radius: 3px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #1f3a2f; opacity: .3; animation: wa-dot 1.1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 30% { opacity: 1; transform: translateY(-3px); } }
.wa-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 4px; }
.wa-quick button { min-height: 36px; padding: 0 12px; border: 1px solid #cfd9d3; border-radius: 999px; background: #fff; font: 500 13px var(--sans); color: #1f3a2f; cursor: pointer; }
.wa-quick button:hover { background: #eef4f0; }
.wa-quick button:disabled { opacity: .5; cursor: default; }
.wa-foot { padding: 8px 14px 12px; font-size: 11px; color: var(--muted); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .links { display: none; }
  .book-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-bar .btn { grid-column: 1 / -1; }
  .intro, .find { grid-template-columns: 1fr; gap: 40px; }
  .rooms { grid-template-columns: 1fr; max-width: 560px; }
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { min-height: 640px; padding-bottom: 24px; }
  .book-bar { grid-template-columns: 1fr 1fr; width: calc(100% - 40px); }
  .book-bar label:nth-of-type(3) { grid-column: 1 / -1; }
  .intro { padding-top: 64px; padding-bottom: 64px; }
  .band, .stay { padding-top: 64px; padding-bottom: 64px; }
  .stay-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-auto-rows: 150px; padding: 0 12px; }
  .g1 { grid-row: span 2; }
  .gallery-band { padding-bottom: 64px; }
  .find { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-img { transform: none; }
}
.book-bar label, .book-bar input, .book-bar select { min-width: 0; }
