/* =========================================================
   Greenishfence Homestay — styles
   Palette: forest green + warm cream + terracotta accent
   ========================================================= */
:root {
  --forest: #1f3a2a;
  --forest-deep: #142a1e;
  --moss: #3d6b47;
  --leaf: #9cc47a;
  --cream: #f7f3ea;
  --sand: #ece4d3;
  --terracotta: #b5652e;
  --ink: #1d2420;
  --muted: #5a6560;
  --white: #ffffff;
  --line: rgba(31, 58, 42, .14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(20, 42, 30, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--forest); color: var(--white); padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--moss); font-weight: 500; margin-bottom: 14px;
}
.eyebrow-light { color: var(--leaf); }
.section-title { font-size: clamp(34px, 4.6vw, 54px); color: var(--forest); font-weight: 400; }
.section-title.light { color: var(--white); }
.lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.lead.light { color: rgba(255,255,255,.82); margin: 18px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 26px;
  font: 500 14px/1 var(--font-body); letter-spacing: .06em;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--moss); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--sand); }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--forest); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.site-header.scrolled {
  background: rgba(247, 243, 234, .96);
  backdrop-filter: blur(10px);
  color: var(--forest);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 48px; height: 48px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: .01em; }
.logo-sub { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; margin-top: 5px; opacity: .85; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .04em; position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.site-header.scrolled .header-cta { background: var(--forest); color: var(--white); }
.site-header.scrolled .header-cta:hover { background: var(--moss); }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: inherit; position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  background: var(--cream); color: var(--forest);
  display: flex; flex-direction: column; padding: 8px 24px 24px; gap: 4px;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { text-decoration: none; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; border: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); padding: 120px 0 40px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,16,.55) 0%, rgba(10,25,16,.15) 40%, rgba(10,25,16,.65) 100%);
}
.hero-content { position: relative; text-align: center; }
.hero-title {
  font-size: clamp(64px, 12vw, 156px); font-weight: 300; line-height: .92; letter-spacing: -.01em;
  display: flex; flex-direction: column;
}
.hero-title span { opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) forwards; }
.hero-title span:nth-child(2) { animation-delay: .15s; }
.hero-title span:nth-child(3) { animation-delay: .3s; }
.hero-title .faded { color: rgba(255,255,255,.55); font-style: italic; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Booking card: light floating panel over the hero */
.booking-bar {
  position: relative; margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr 1.15fr auto; align-items: stretch;
  width: calc(100% - 48px); max-width: 1000px; padding: 10px;
  background: rgba(247, 243, 234, .97); color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
}
.booking-bar .field {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 12px; min-width: 0;
  transition: background .2s var(--ease);
}
.booking-bar .field:hover { background: #ece5d6; }
.booking-bar .field:focus-within { background: #ece5d6; box-shadow: inset 0 0 0 2px var(--moss); }
.booking-bar .field + .field::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line);
}
.booking-bar .field:hover::before, .booking-bar .field:hover + .field::before { opacity: 0; }
.booking-bar .field > svg {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.field-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.field-body label, .field-label {
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--moss);
}
.date-display, .guest-value { font-size: 17px; font-weight: 400; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-display.empty { color: #8b938e; }
.date-display .nights { font-size: 13px; color: var(--terracotta); margin-left: 6px; }
/* Native date picker sits invisibly over the whole field */
.date-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: 16px;
}
.date-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.stepper { display: flex; gap: 8px; margin-left: auto; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(31, 58, 42, .22); background: var(--white); color: var(--forest);
  font: 400 20px/1 var(--font-body); cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, color .2s;
}
.stepper button:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); color: var(--white); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }

.btn-book {
  margin-left: 10px; min-height: 76px; padding: 0 30px; border-radius: 12px;
  background: var(--forest); color: var(--white); text-align: left; gap: 14px;
}
.btn-book:hover { background: var(--moss); }
.btn-book svg { width: 26px; height: 26px; }
.btn-book-text { display: flex; flex-direction: column; gap: 5px; font-size: 15px; letter-spacing: .03em; }
.btn-book-text small { font-size: 11px; font-weight: 400; letter-spacing: .06em; opacity: .75; }

.form-hint { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #9c4a1c; padding: 0 20px; }
.form-hint:empty { display: none; }
.form-hint:not(:empty) { padding: 10px 20px 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Intro ---------- */
.intro { overflow: hidden; }
.intro-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 90px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 76px);
}
.intro-lead {
  margin: 0; padding-left: 28px; border-left: 1px solid var(--line);
  font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.45;
  color: var(--forest);
}

.intro-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; }

/* Photo collage: large pool shot + framed veranda shot + spinning badge */
.intro-media { position: relative; padding: 0 20% 70px 0; }
.intro-media figure { margin: 0; }
.intro-img-main img {
  width: 100%; aspect-ratio: 4/3.7; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.intro-img-side { position: absolute; right: 0; bottom: 0; width: 48%; }
.intro-img-side img {
  width: 100%; aspect-ratio: 4/3.1; object-fit: cover;
  border-radius: var(--radius); border: 10px solid var(--cream); box-shadow: var(--shadow);
}
.badge-round {
  position: absolute; top: 34px; right: calc(20% - 56px); width: 112px; height: 112px;
  background: var(--forest); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(20,42,30,.5);
}
.badge-round svg { grid-area: 1 / 1; }
.badge-text { width: 104px; height: 104px; animation: spin 24s linear infinite; }
.badge-round text { font: 500 8px var(--font-body); letter-spacing: .24em; fill: var(--cream); }
.badge-leaf { width: 30px; height: 30px; fill: none; stroke: var(--leaf); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

.intro-copy p { font-size: 17px; color: #3f4a45; }
.intro-copy strong { font-weight: 500; color: var(--forest); }

.intro-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 30px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.intro-stats li { display: flex; align-items: center; gap: 12px; }
.intro-stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--forest); font-variant-numeric: lining-nums; }
.stat-label { font-size: 11px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.intro-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hosts {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 32px; padding: 16px 18px;
  background: #e3ecdc; border-radius: var(--radius);
}
.hosts p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.hosts strong { font-weight: 500; color: var(--forest); }
.host-avatars { display: flex; flex: none; }
.host-avatars .avatar { border: 2px solid #e3ecdc; }
.host-avatars .avatar + .avatar { margin-left: -10px; background: var(--moss); }
.leaf-deco { position: absolute; right: -60px; bottom: 30px; width: 220px; opacity: .08; pointer-events: none; }

/* ---------- Rooms ---------- */
.rooms { background: var(--white); }
.rooms-lead { margin: 16px 0 0; }
.rooms-lead strong { font-weight: 500; color: var(--forest); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.room-card h3 { font-size: 30px; color: var(--forest); margin: 22px 0 8px; }
.room-card p { color: var(--muted); font-size: 15px; }
.room-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.room-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform .8s var(--ease); }
.room-card:hover .room-img img { transform: scale(1.05); }
.room-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--forest); color: var(--white);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px;
}
.room-meta { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.room-meta li { display: inline-flex; align-items: center; gap: 7px; }
.room-meta svg { width: 18px; height: 18px; fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Activities ---------- */
.activities { color: var(--white); overflow: hidden; }
.activities-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activities-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,42,30,.92), rgba(20,42,30,.80) 50%, rgba(20,42,30,.95)); }
.activities .container { position: relative; }
.activity-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.activity-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4.2; }
.activity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.activity-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,25,16,.9)); }
.activity-card:hover img { transform: scale(1.06); }
.activity-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.activity-body h3 { font-size: 30px; margin-bottom: 6px; }
.activity-body p { font-size: 14px; color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Amenities ---------- */
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 36px; }
.chips li {
  font-size: 14px; padding: 8px 16px; border-radius: 999px;
  background: #e3ecdc; color: var(--forest); border: 1px solid #cfdfc4;
  white-space: nowrap;
}
.amenities-imgs { position: relative; min-height: 520px; }
.amenities-imgs img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.am-a { width: 72%; aspect-ratio: 1; top: 0; right: 0; }
.am-b { width: 44%; aspect-ratio: 3/4.4; left: 0; bottom: 0; border: 8px solid var(--cream); }

/* ---------- Explore ---------- */
.explore { background: var(--sand); }
.explore-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.explore-list li {
  display: flex; gap: 14px; padding: 30px 22px 30px 0;
  border-bottom: 1px solid var(--line);
}
.explore-list .num { font-family: var(--font-display); font-size: 22px; color: var(--terracotta); font-style: italic; }
.explore-list h3 { font-size: 24px; color: var(--forest); margin-bottom: 6px; }
.explore-list p { font-size: 15px; color: var(--muted); margin: 0; }
.explore-group {
  font: 500 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 4px;
}
.explore-list + .explore-group { margin-top: 48px; }

.perfect-for { margin-top: 70px; text-align: center; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.pf {
  background: var(--cream); border-radius: var(--radius); padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 22px; color: var(--forest);
}
.pf svg { width: 32px; height: 32px; fill: none; stroke: var(--moss); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gallery ---------- */
/* Fixed tiling so every cell is filled (9 photos → 4×3 grid) */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px;
  grid-template-areas:
    "a b c c"
    "a d e f"
    "g d h i";
}
.g-item:nth-child(1) { grid-area: a; }
.g-item:nth-child(2) { grid-area: c; }
.g-item:nth-child(3) { grid-area: b; }
.g-item:nth-child(4) { grid-area: e; }
.g-item:nth-child(5) { grid-area: d; }
.g-item:nth-child(6) { grid-area: f; }
.g-item:nth-child(7) { grid-area: g; }
.g-item:nth-child(8) { grid-area: i; }
.g-item:nth-child(9) { grid-area: h; }
.g-item { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.05); filter: brightness(1.05); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh;
}
.lightbox::backdrop { background: rgba(10, 20, 14, .9); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lb-close {
  position: fixed; top: 18px; right: 22px; width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white);
  font-size: 30px; line-height: 1; cursor: pointer;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reviews .container { max-width: 1360px; }
.review-card {
  margin: 0; padding: 30px 24px 24px; background: var(--cream); border-radius: var(--radius);
  border-top: 3px solid var(--moss); position: relative;
  display: flex; flex-direction: column;
}
.review-card figcaption { margin-top: auto; }
.review-card::before {
  content: "\201C"; position: absolute; right: 26px; top: 6px;
  font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--moss); opacity: .15;
}
.stars { color: var(--terracotta); letter-spacing: 3px; margin-bottom: 16px; }
.review-card blockquote { margin: 0 0 24px; }
.review-card p { font-family: var(--font-display); font-size: 18px; line-height: 1.5; color: var(--forest); font-style: italic; margin-bottom: .7em; }
.review-card p:last-child { margin-bottom: 0; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-card figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review-card strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.review-card small { font-size: 13px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--forest); color: var(--white); font-family: var(--font-display); font-size: 20px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: stretch; }
.contact-list { margin: 34px 0 36px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg {
  flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: #e3ecdc; fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-weight: 500; font-size: 14px; letter-spacing: .04em; }
.contact-list span, .contact-list a { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--forest); }
.contact-list .directions { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--moss); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.logo-footer { color: var(--white); }
.footer-tag { margin-top: 20px; max-width: 300px; font-size: 15px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--leaf); font-weight: 500; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); transition: background .25s, border-color .25s;
}
.social a:hover { background: var(--moss); border-color: var(--moss); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { margin-top: 60px; padding: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float { transition: transform .25s var(--ease), opacity .25s var(--ease); }
.wa-float.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { background: var(--cream); color: var(--forest); }
  .activity-row, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-list { grid-template-columns: repeat(2, 1fr); }
  .explore-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-bar { grid-template-columns: 1fr 1fr; row-gap: 6px; max-width: 720px; }
  .booking-bar .field:nth-child(3)::before { display: none; }
  .btn-book { margin-left: 0; min-height: 68px; }
}

@media (max-width: 820px) {
  .intro-head, .intro-body { grid-template-columns: 1fr; }
  .intro-body { gap: 48px; }
  .intro-lead { padding-left: 20px; }
  .intro-media { padding: 0 14% 50px 0; }
  .badge-round { width: 92px; height: 92px; right: calc(14% - 46px); top: 22px; }
  .badge-text { width: 86px; height: 86px; }
  .room-grid, .review-grid { grid-template-columns: 1fr; }
  .amenities-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .amenities-imgs { min-height: 420px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px;
    grid-template-areas: "c c" "a b" "d e" "f g" "h i";
  }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .activity-row, .explore-list { grid-template-columns: 1fr; }
  .activity-card { aspect-ratio: 4/3.6; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 22px; }
  .stat-num { font-size: 34px; }
  .stat-label { font-size: 10px; letter-spacing: .08em; }
  .intro-stats li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .intro-stats li + li { padding-left: 14px; }
  .booking-bar { width: calc(100% - 32px); padding: 8px; }
  .booking-bar .field { padding: 12px 14px; gap: 10px; }
  .booking-bar .field-date > svg { display: none; }
  .booking-bar .field:nth-child(3), .btn-book { grid-column: 1 / -1; }
  .date-display { font-size: 16px; }
  .amenities-imgs { min-height: 340px; }
}

/* ---------- Print / PDF export ---------- */
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-title span { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 860px; }
  .hero-bg { transform: none; }
  .site-header { position: absolute; }
  .wa-float, .menu-toggle, .mobile-menu, .lightbox { display: none !important; }
  /* Embedded maps don't print: show a location card instead */
  .map-wrap { display: grid; place-items: center; background: var(--forest); color: var(--cream); text-align: center; padding: 40px; }
  .map-wrap iframe { display: none; }
  .map-wrap::before {
    content: "Greenishfence Homestay\A Krishnagiri, Sultan Bathery, Wayanad, Kerala 673591\A\A Google Maps: 11.670039, 76.191606";
    white-space: pre-line; font-family: var(--font-display); font-size: 26px; line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-title span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
