/* ===========================================================
   Meandarra Accommodation - shared stylesheet
   Warm, country/eucalyptus palette. Mobile-first.
   =========================================================== */

:root {
  --ink: #242a20;
  --ink-soft: #5c6353;
  --brand: #3d5a40;        /* eucalyptus green */
  --brand-dark: #2b4030;
  --accent: #c06b3e;       /* warm terracotta */
  --accent-dark: #a4552c;
  --paper: #faf8f3;        /* warm off-white */
  --sand: #efe9dd;
  --sand-deep: #e3dccb;
  --line: #e5e0d4;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(36, 42, 32, .06), 0 2px 8px rgba(36, 42, 32, .05);
  --shadow-md: 0 6px 20px rgba(36, 42, 32, .10);
  --shadow-lg: 0 18px 50px rgba(36, 42, 32, .18);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--sand); color: var(--brand-dark); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  color: var(--brand);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
}
.nav__links a:hover { color: var(--accent-dark); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 13px 22px; }
  .nav__links .btn { margin: 8px 22px; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f3efe4 0%, var(--sand) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 76px 0 80px;
}
.hero__copy h1 { margin-bottom: .35em; }
.hero__copy .lede { margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(36, 42, 32, .82);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 52px 0 56px; }
  .hero__media { aspect-ratio: 16 / 10; }
}

/* trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 1.8rem;
  list-style: none;
  padding: 0;
}
.trust li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; color: var(--ink-soft); font-weight: 500;
}
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }

/* ---------- Section heading ---------- */
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Property cards (home) ---------- */
.properties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 760px) { .properties { grid-template-columns: 1fr; } }

.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: .76rem; font-weight: 600; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  max-width: calc(50% - 18px);
}
.pcard__badge--right { left: auto; right: 14px; background: var(--brand-dark); }
.pcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.5rem; margin-bottom: .15em; }
.pcard__addr { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.pcard__desc { color: var(--ink-soft); margin-bottom: 1.3rem; }

.specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 1.4rem; padding: 0;
}
.specs li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--sand); color: var(--brand-dark);
  font-size: .85rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.specs svg { width: 16px; height: 16px; color: var(--brand); }

.pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-tag { font-weight: 600; color: var(--brand-dark); font-size: .98rem; }

/* ---------- Feature columns ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--sand); color: var(--brand);
  border-radius: 12px; margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .35em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Property detail page ---------- */
.detail-hero { background: linear-gradient(180deg, #f3efe4, var(--sand)); padding: 36px 0 0; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-dark); }
.detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-bottom: 40px;
}
.detail-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.detail-title h1 { margin-bottom: .1em; }
.detail-title .addr { color: var(--ink-soft); font-size: 1.05rem; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .detail-body { grid-template-columns: 1fr; gap: 28px; } }

.prose p { color: var(--ink); }
.prose .lede { color: var(--ink-soft); margin-bottom: 1.5rem; }

.feature-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px;
}
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.feature-list svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }

/* sidebar */
.sidebar {
  position: sticky; top: 90px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.sidebar h3 { font-size: 1.25rem; }
.sidebar .price-tag { font-size: 1.05rem; display: block; margin-bottom: 6px; }
.sidebar .muted { color: var(--ink-soft); font-size: .92rem; }
.sidebar .specs { margin-top: 16px; }
.sidebar .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item {
  position: relative;
  border: 0; padding: 0; margin: 0;
  background: var(--sand);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(36,42,32,0);
  transition: background .2s ease;
}
.gallery__item:hover::after { background: rgba(36,42,32,.12); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 24, 17, .92);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  width: auto; height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0; cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .9rem; background: rgba(0,0,0,.4);
  padding: 5px 12px; border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 36px 26px; gap: 26px; } }
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.85); }
.contact-card .eyebrow { color: #e9c9a8; }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-details li { display: flex; align-items: center; gap: 14px; }
.contact-details .ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  background: rgba(255,255,255,.14); border-radius: 12px;
  display: grid; place-items: center;
}
.contact-details .ic svg { width: 22px; height: 22px; color: #fff; }
.contact-details .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); display: block; }
.contact-details .val { font-weight: 600; font-size: 1.05rem; color: #fff; }
.placeholder {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px dashed rgba(255,255,255,.55);
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 600;
  color: #fff;
}

/* click-to-reveal contact */
.contact-reveal { display: grid; gap: 18px; align-content: center; }
.contact-reveal__btn { justify-self: start; }
.contact-details[hidden] { display: none; }
.contact-details a.val { color: #fff; }
.contact-details a.val:hover { color: #fff; text-decoration: underline; }
.contact-hint { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 50px 0 30px;
  font-size: .94rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer-brand svg { width: 30px; height: 30px; color: #8fae84; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.55); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
