/* ============================================================
   Smart PGs — Redesign design system
   Green / Gold / Cream · Manrope + DM Serif Display
   ============================================================ */
:root {
  --ink: #13251C;
  --ink-2: #3a3f37;
  --muted: #5E6259;
  --muted-2: #8A8D82;
  --cream: #F5F0E6;
  --card: #FBF8F1;
  --green: #17402D;
  --green-deep: #0F251A;
  --gold: #C4A05A;
  --gold-deep: #9E7B34;
  --gold-light: #E7C883;
  --wa: #1FA855;
  --line: rgba(19, 37, 28, .08);
  --line-strong: rgba(19, 37, 28, .12);
  --shadow-lg: 0 30px 60px -40px rgba(19, 37, 28, .5);
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold-deep); }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { margin: 0; }
.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav__brand { display: flex; align-items: baseline; gap: 10px; }
.nav__logo { font-weight: 800; font-size: 27px; letter-spacing: .01em; color: var(--cream); }
.nav__logo b { color: var(--gold); font-weight: 800; }
.nav__sub { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(245, 240, 230, .85); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { color: rgba(245, 240, 230, .85); font-weight: 600; font-size: 15px; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav__link:hover { color: var(--cream); }
.nav__link.is-active { color: var(--cream); font-weight: 800; border-bottom-color: var(--gold); }
.nav__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--cream);
  background: transparent; border: 1.5px solid rgba(196, 160, 90, .75);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .16s ease;
}
.nav__pill:hover { transform: translateY(-1px); }
.nav__burger {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid rgba(245, 240, 230, .55); background: transparent;
  color: var(--cream); font-size: 20px; cursor: pointer; line-height: 1;
}
/* scrolled state */
.nav.is-scrolled {
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -22px rgba(19, 37, 28, .5);
  padding-top: 13px; padding-bottom: 13px;
}
.nav.is-scrolled .nav__logo { color: var(--ink); }
.nav.is-scrolled .nav__logo b { color: var(--gold-deep); }
.nav.is-scrolled .nav__sub { color: var(--muted); }
.nav.is-scrolled .nav__link { color: var(--muted); }
.nav.is-scrolled .nav__link:hover { color: var(--ink); }
.nav.is-scrolled .nav__link.is-active { color: var(--ink); border-bottom-color: var(--gold-deep); }
.nav.is-scrolled .nav__pill { background: var(--green); color: var(--cream); border-color: var(--green); }
.nav.is-scrolled .nav__burger { color: var(--ink); border-color: rgba(19, 37, 28, .2); }

/* mobile menu */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 24px 44px -26px rgba(19, 37, 28, .5); padding: 6px 26px 22px;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a.m-link { display: block; color: var(--ink); font-weight: 600; font-size: 17px; padding: 13px 0; border-bottom: 1px solid rgba(19, 37, 28, .07); }
.mobile-menu a.m-link.is-active { color: var(--gold-deep); font-weight: 800; }
.mobile-menu a.m-call { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; background: var(--green); color: var(--cream); font-weight: 800; padding: 14px; border-radius: 12px; font-size: 15px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 150px var(--pad-x) 60px;
  background-size: cover; background-position: center;
  color: var(--cream);
}
.hero__back { display: inline-flex; align-items: center; gap: 8px; color: rgba(245, 240, 230, .75); font-weight: 700; font-size: 14px; margin-bottom: 24px; }
.hero__back:hover { color: var(--cream); }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: rgba(245, 240, 230, .14); color: var(--cream); font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; }
.hero__title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; margin: 0 0 12px; max-width: 760px; }
.hero__tagline { font-style: italic; color: var(--gold-light); font-size: clamp(16px, 1.8vw, 20px); margin: 0 0 22px; }
.hero__meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: rgba(245, 240, 230, .85); font-weight: 600; font-size: 14.5px; margin-bottom: 30px; }
.hero__meta .sep { opacity: .4; }
.hero__meta .price { color: var(--gold-light); font-weight: 800; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 15px 26px; cursor: pointer; border: none; transition: transform .16s ease, box-shadow .22s ease, filter .18s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; filter: brightness(1.04); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); filter: brightness(1.03); }

/* ---------------- Gallery ---------------- */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad-x) 0; }
.gallery__main { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #e9e2d2; }
.gallery__main img { width: 100%; height: min(460px, 52vw); object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gallery__thumbs img { width: 112px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer; flex: none; outline: 1px solid var(--line-strong); outline-offset: -1px; opacity: .72; transition: opacity .2s ease, outline-color .2s ease; }
.gallery__thumbs img:hover { opacity: .92; }
.gallery__thumbs img.is-active { outline: 3px solid var(--gold); opacity: 1; }
.gallery__caption { margin-top: 16px; }
.gallery__caption .t { font-weight: 800; font-size: 16px; color: var(--ink); }
.gallery__caption .d { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* ---------------- Detail grid ---------------- */
.detail-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 48px var(--pad-x) 0;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 44px; align-items: start;
}
.section { margin-bottom: 48px; }
.section:last-child { margin-bottom: 0; }
.section__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid rgba(19, 37, 28, .07); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.feature .ic { flex: none; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.feature .ic--gold { background: rgba(196, 160, 90, .22); color: var(--gold-deep); }
.feature .ic--green { background: rgba(23, 64, 45, .1); color: var(--green); }

.addr { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; background: var(--card); border: 1px solid rgba(19, 37, 28, .07); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.addr .pin { color: var(--gold-deep); font-size: 17px; }
.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); height: 300px; }
.map-frame iframe { border: 0; display: block; width: 100%; height: 300px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; }
details.faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; font-weight: 800; font-size: 15px; color: var(--ink); list-style: none; cursor: pointer; }
details.faq > summary::-webkit-details-marker { display: none; }
.faq__ic { flex: none; width: 22px; height: 22px; border-radius: 999px; background: rgba(196, 160, 90, .2); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; transition: transform .25s ease; }
details.faq[open] .faq__ic { transform: rotate(45deg); }
.faq__a { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; padding: 0 0 18px; }
.terms-list { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; padding: 4px 0 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.terms-list li { padding-left: 4px; }
.terms-list li b { color: var(--ink); }
.terms-full { display: inline-block; margin: 0 0 16px; font-weight: 700; font-size: 14px; color: var(--green); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Sticky sidebar */
/* the grid ITEM is the sticky element (its containing block is the full-height
   grid row) so it pins while the left column scrolls, then releases at the
   section's end. Sticky on the inner card wouldn't travel — the aside shrinks to it. */
.detail-aside { position: sticky; top: 96px; align-self: start; }
.book-card { background: var(--green); color: var(--cream); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -34px rgba(19, 37, 28, .6); }
.book-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.book-card__price { font-family: 'DM Serif Display', Georgia, serif; font-size: 40px; margin: 8px 0 20px; }
.book-card__price small { font-size: 15px; color: rgba(245, 240, 230, .7); font-family: 'Manrope', sans-serif; font-weight: 600; }
.rate-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.rate { display: flex; align-items: center; justify-content: space-between; background: rgba(245, 240, 230, .08); border-radius: 11px; padding: 12px 15px; gap: 10px; }
.rate .type { font-size: 13.5px; font-weight: 600; color: rgba(245, 240, 230, .9); }
.rate .amt { text-align: right; flex: none; }
.rate .amt b { font-weight: 800; font-size: 15px; }
.rate .amt span { display: block; font-size: 11px; color: rgba(245, 240, 230, .62); }
.book-btn { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 15px; padding: 15px; border-radius: 12px; margin-bottom: 10px; }
.book-btn--wa { background: var(--wa); color: #fff; }
.book-btn--wa:hover { color: #fff; }
.book-btn--gold { background: var(--gold); color: var(--ink); }
.book-btn--gold:hover { color: var(--ink); }
.book-btn--ghost { border: 1.5px solid rgba(245, 240, 230, .35); color: var(--cream); font-weight: 700; font-size: 14px; padding: 13px; }
.book-btn--ghost:hover { color: var(--cream); background: rgba(245, 240, 230, .06); }
.book-card__note { text-align: center; margin-top: 14px; color: rgba(245, 240, 230, .6); font-size: 12px; font-weight: 600; }

/* Others */
.others { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--pad-x) 80px; }
.others__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; margin: 20px 0 22px; }
.others__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.other-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.other-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(19, 37, 28, .5); }
.other-card__img { height: 150px; overflow: hidden; }
.other-card__img img { width: 100%; height: 100%; object-fit: cover; }
.other-card__body { padding: 16px; }
.other-card__name { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.other-card__area { color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.other-card__price { color: var(--green); font-weight: 800; font-size: 14px; margin-top: 8px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--green-deep); color: #EBE6D8; }
.footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 66px var(--pad-x) 30px; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 44px; }
.footer__brand { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; }
.footer__brand b { font-weight: 800; font-size: 23px; }
.footer__brand b i { color: var(--gold); font-style: normal; }
.footer__brand span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(235, 230, 216, .6); }
.footer p.blurb { color: rgba(235, 230, 216, .68); font-size: 14.5px; line-height: 1.65; margin: 0 0 22px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(235, 230, 216, .2); display: flex; align-items: center; justify-content: center; color: #EBE6D8; }
.footer__social a:hover { color: #EBE6D8; border-color: var(--gold); }
.footer__h { font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(235, 230, 216, .75); font-size: 14.5px; }
.footer__col a:hover { color: #fff; }
.footer__contact a { color: rgba(235, 230, 216, .82); font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.footer__contact a span { color: var(--gold); }
.footer p.loc { color: rgba(235, 230, 216, .7); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.footer__tour { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 12px 20px; border-radius: 999px; }
.footer__tour:hover { color: var(--ink); }
.footer__bar { border-top: 1px solid rgba(235, 230, 216, .12); }
.footer__bar-in { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bar-in span { color: rgba(235, 230, 216, .55); font-size: 13px; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: rgba(235, 230, 216, .55); font-size: 13px; }
.footer__legal a:hover { color: #fff; }

/* ---------------- Floating CTA ---------------- */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab-stack.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.fab { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; padding: 13px 20px 13px 16px; border-radius: 999px; cursor: pointer; border: none; }
.fab--wa { background: var(--wa); color: #fff; box-shadow: 0 16px 34px -14px rgba(31, 168, 85, .7); animation: fab-pulse 2.6s infinite; }
.fab--wa:hover { color: #fff; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (max-width: 980px) {
  .detail-grid { display: flex; flex-direction: column; gap: 32px; padding-top: 36px; }
  .detail-aside { position: static; order: -1; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 120px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .gallery__main img { height: 46vw; min-height: 220px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer p.blurb { max-width: none; }
}
@media (max-width: 560px) {
  :root { --pad-x: 18px; }
  .nav { padding: 16px var(--pad-x); }
  .nav.is-scrolled { padding-top: 11px; padding-bottom: 11px; }
  .hero { padding-top: 108px; }
  .hero__meta { gap: 10px 14px; }
  .book-card { padding: 22px; }
  .book-card__price { font-size: 34px; }
  .fab-stack { right: 14px; bottom: 14px; }
  .fab span.fab__label { display: none; }
  .fab { padding: 14px; border-radius: 999px; }
}
