/* Hasu Stay — multi-property home page. Shares brand tokens with css/style.css. */
:root {
  --olive: #5c6b2e;
  --olive-dark: #37401b;
  --olive-darker: #2b3115;
  --olive-light: #7c8c46;
  --pink: #e8749a;
  --pink-pale: #fbe6ee;
  --cream: #faf8f3;
  --sand: #f2eee3;
  --ink: #2c2c26;
  --muted: #6f6f63;
  --line: #e7e3d8;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(43, 49, 21, 0.12);
  --shadow-sm: 0 4px 14px rgba(43, 49, 21, 0.08);
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--olive-dark); color: #fff; }
.btn-primary:hover { background: var(--olive); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--olive-dark); border: 1.5px solid var(--olive-dark); }
.btn-outline:hover { background: var(--olive-dark); color: #fff; }
.btn-light { background: #fff; color: var(--olive-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.eyebrow { color: var(--pink); font-weight: 700; letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; display: inline-block; margin-bottom: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--olive-dark); }
.brand img { width: 52px; height: 52px; }
.brand-light { color: #fff; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--olive-dark); border-color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--olive-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: stretch; color: #fff; overflow: hidden; background: linear-gradient(160deg, #2f3a1b, #6a7a3c); }
/* slideshow: crossfade + slow Ken Burns zoom + scroll parallax (translate set by JS on .hero-slides) */
.hero-slides { position: absolute; inset: -90px 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease, transform 7s ease-out; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,15,6,.72) 0%, rgba(12,15,6,.35) 55%, rgba(12,15,6,.15) 100%), linear-gradient(180deg, transparent 50%, rgba(12,15,6,.75) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: 90px; padding-bottom: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-caption { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); padding: 8px 16px; border-radius: 999px; transition: background .2s, opacity .4s, transform .4s; }
.hero-caption:hover { background: rgba(255,255,255,.22); }
.hero-caption.swap { opacity: 0; transform: translateY(8px); }
.hero-caption b { font-weight: 600; white-space: nowrap; }
.hero-nav { display: flex; align-items: center; gap: 12px; }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.18); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.active { width: 28px; background: #fff; }
.hero-tagline { display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); margin: 18px 0 16px; font-weight: 700; }
.hero h1 em { color: var(--pink-pale); font-style: italic; }
.hero-sub { max-width: 560px; font-size: 18px; opacity: .92; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; font-family: var(--serif); }
.hero-stats span { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Booking bar ---------- */
.booking-bar { position: relative; z-index: 5; margin-top: -60px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.booking-bar[hidden] { display: none; }
.bb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bb-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.bb-field select, .bb-field input { height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--cream); color: var(--ink); width: 100%; }
.bb-field select:focus, .bb-field input:focus { outline: 2px solid var(--olive-light); outline-offset: 1px; }
.bb-submit { height: 48px; padding: 0 26px; }
.bb-msg { grid-column: 1 / -1; font-size: 13px; color: var(--pink); min-height: 0; }
.bb-msg:empty { display: none; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; overflow-x: clip; } /* keeps slide-in/flip animations from causing sideways scroll */
.section-tint { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); color: var(--olive-darker); }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 10px; }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--olive-light); }
.chip.active { background: var(--olive-dark); color: #fff; border-color: var(--olive-dark); }
.chip small { opacity: .7; margin-left: 4px; }

/* ---------- Property cards ---------- */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.prop-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, #47552a, #8a9a52); }
.prop-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-badge, .prop-status { z-index: 2; }
.prop-card:hover .prop-media img { transform: scale(1.05); }
.prop-media .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 46px; gap: 6px; }
.prop-media .placeholder span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.prop-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--olive-dark); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.prop-status { position: absolute; top: 14px; right: 14px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.prop-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-type { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--olive-light); }
.prop-body h3 { font-family: var(--serif); font-size: 24px; color: var(--olive-darker); }
.prop-body > p { color: var(--muted); font-size: 14.5px; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-tags li { font-size: 12.5px; background: var(--cream); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.prop-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prop-price { font-size: 13px; color: var(--muted); }
.prop-price b { display: block; font-size: 20px; color: var(--olive-dark); }
.prop-actions { display: flex; gap: 8px; }
.prop-actions .btn { padding: 10px 16px; font-size: 13.5px; }
.prop-card.coming-soon .prop-media { filter: saturate(.7); }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.dest-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.dest-card h3 { font-family: var(--serif); font-size: 28px; color: var(--olive-darker); }
.dest-card .dest-region { color: var(--pink); font-size: 13px; font-weight: 600; margin: 4px 0 12px; }
.dest-card > p { color: var(--muted); margin-bottom: 18px; }
.dest-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--olive); margin-bottom: 10px; }
.dest-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.dest-list li:last-child { border-bottom: none; }
.dest-list li span { color: var(--muted); font-size: 13px; text-align: right; }
.dest-card .dest-stays { margin-top: 18px; font-size: 14px; }
.dest-card .dest-stays a { color: var(--olive-dark); font-weight: 600; border-bottom: 1px solid var(--pink); }

/* ---------- Experiences (hover-reveal cards) ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp-card { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; color: #fff; cursor: default; isolation: isolate; outline: none; }
.exp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; z-index: -2; }
.exp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(20,24,10,.85) 100%); transition: background .45s; }
.exp-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; transform: translateY(calc(100% - 78px)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.exp-where { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.exp-body h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 12px; }
.exp-body p { font-size: 14px; opacity: 0; transition: opacity .35s .05s; }
.exp-card:hover img, .exp-card:focus-within img, .exp-card.open img { transform: scale(1.08); }
.exp-card:hover::before, .exp-card:focus-within::before, .exp-card.open::before { background: linear-gradient(180deg, rgba(20,24,10,.15) 0%, rgba(43,49,21,.92) 100%); }
.exp-card:hover .exp-body, .exp-card:focus-within .exp-body, .exp-card.open .exp-body { transform: translateY(0); }
.exp-card:hover .exp-body p, .exp-card:focus-within .exp-body p, .exp-card.open .exp-body p { opacity: .92; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 30px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.why-icon { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-pale); font-size: 26px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--olive-darker); }
.why-card p { color: var(--muted); font-size: 14px; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.review-card .stars { color: #e0a82e; letter-spacing: 2px; }
.review-card p { font-size: 14.5px; }
.review-who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; font-size: 13px; }
.review-who > div { min-width: 0; }
.review-who b { display: block; font-size: 14px; }
.review-who span { color: var(--muted); }
.review-prop { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; line-height: 1.3; max-width: 100%; }
.review-who .review-prop { color: var(--olive-dark); }

/* ---------- OTA / "find us on" row ---------- */
.ota-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; }
.ota-row > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.ota-row a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--olive-dark); transition: border-color .2s, transform .2s; }
.ota-row a:hover { border-color: var(--pink); transform: translateY(-2px); }
.ota-row a small { font-weight: 500; color: var(--muted); margin-left: 4px; }

/* ---------- CTA (parallax photo band) ---------- */
.cta { position: relative; overflow: hidden; color: #fff; padding: 96px 0; background: var(--olive-darker); }
.cta-bg { position: absolute; inset: -120px 0; background: linear-gradient(90deg, rgba(43,49,21,.92), rgba(43,49,21,.55)), url('../images/properties/srf-slide-verandah.jpg') center/cover no-repeat; will-change: transform; }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.cta p { opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--olive-darker); color: rgba(255,255,255,.82); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14px; }
.footer-contact { line-height: 1.9; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer ul li { margin-bottom: 9px; font-size: 14px; }
footer ul a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { color: var(--pink); }

/* ---------- Scroll reveal (children of [data-stagger] animate in one after another) ---------- */
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 150ms); }
.js [data-stagger="x"] > * { transform: translateX(80px); }
.js [data-stagger="flip"] { perspective: 900px; }
.js [data-stagger="flip"] > * { transform: rotateY(-60deg) translateY(40px); transform-origin: left center; }
.js [data-stagger].in > * { opacity: 1; transform: none; }
/* js/home.js removes data-stagger once the reveal has finished, so hover effects work normally afterwards */

/* image "curtain" reveal on property photos */
.prop-media::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--olive); transform-origin: right center; transform: scaleX(0); pointer-events: none; }
.js .property-grid[data-stagger] .prop-media::after { transform: scaleX(1); }
.js .property-grid[data-stagger].in .prop-media::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.77,0,.18,1); transition-delay: calc(var(--i, 0) * 150ms + .25s); }

/* "switch text" buttons: label rolls up on hover */
.btn-roll .roll-clip { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: middle; }
.btn-roll .roll { position: relative; display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn-roll .roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
.btn-roll:hover .roll, .btn-roll:focus-visible .roll { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .js [data-stagger] > *, .prop-media::after, .btn-roll .roll, .exp-card img, .exp-body { transition: none !important; }
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .prop-media::after { display: none; }
  .hero-slides, .cta-bg { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .bb-field-wide, .bb-submit { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 600px; }
  .hero-inner { padding-top: 56px; padding-bottom: 96px; }
  .hero-controls { flex-direction: column; align-items: flex-start; }
  .hero-caption { font-size: 13px; }
  .exp-grid { grid-template-columns: 1fr; }
  .cta { padding: 64px 0; }
  .hero-stats { gap: 22px; }
  .booking-bar { grid-template-columns: 1fr; padding: 18px; }
  .property-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
