/* ============================================================
   MAREA — Property Management · Pescadero, Baja California Sur
   Layout: VISTAHAVEN real-estate template (from reference)
   Palette: warm bone + rust accent + ink (MANNA tokens)
   ============================================================ */

:root {
  --bone:  #f2edde;   /* warm page canvas */
  --bone2: #ffffff;   /* card / panel surface */
  --rust:  #af6446;   /* single accent */
  --ink:   #141210;   /* near-black text */
  --muted: #6d675c;   /* secondary text */
  --line:  #e2dccb;   /* hairline */

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --pad: 28px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark  { background: var(--ink);  color: #fff; }
.btn--light { background: var(--bone2); color: var(--ink); border-color: var(--line); }
.btn__arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--rust); color: #fff;
  font-size: 12px;
}

/* ---------- Pill label ---------- */
.pill {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone2);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  max-width: var(--maxw); margin: 0 auto;
  background: var(--bone);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__mark { color: var(--rust); }
.nav__menu { display: flex; gap: 28px; }
.nav__menu a { font-size: 15px; color: var(--muted); }
.nav__menu a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang button {
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--muted); padding: 2px;
}
.lang button.is-active { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 8px auto 0;
  padding: 0 var(--pad);
}
.hero__media {
  position: absolute; inset: 0 var(--pad);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.15) 45%, rgba(20,18,16,.65) 100%);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative;
  padding: 54px 44px;
  min-height: 640px;
  display: flex; flex-direction: column;
  color: #fff;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
}
.hero__copy { max-width: 46ch; font-size: 17px; color: rgba(255,255,255,.9); margin: 0 0 26px; }
.hero .btn--light { align-self: flex-start; }

.hero__foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding-top: 40px;
}
.stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1; }
.stat__num sup { font-size: .5em; color: var(--rust); }
.stat__label { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 6px; }

.hosts {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 12px 18px; border-radius: 999px;
}
.hosts__avatars { display: flex; }
.hosts__avatars img {
  width: 40px; height: 40px; border-radius: 999px;
  border: 2px solid var(--bone); object-fit: cover;
  margin-left: -12px;
}
.hosts__avatars img:first-child { margin-left: 0; }
.hosts__text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.hosts__text strong { font-weight: 600; }
.hosts__text span { color: #ffd27a; }

/* ---------- Section shell ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 96px var(--pad) 0;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.06;
  margin: 0 0 18px;
}
.section__title--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__sub { max-width: 62ch; color: var(--muted); margin: 0; }

/* ---------- Offer showcase ---------- */
.showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 40px;
  align-items: center;
}
.showcase__icon { font-size: 30px; color: var(--rust); }
.showcase__name { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 16px 0 12px; }
.showcase__text { color: var(--muted); margin: 0; }
.showcase__media { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.showcase__media img { width: 100%; height: 420px; object-fit: cover; }
.showcase__index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.showcase__index li { display: flex; flex-direction: column; align-items: flex-end; color: var(--line); }
.showcase__index li span { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--muted); }
.showcase__index li em { font-style: normal; font-size: 12px; color: var(--muted);
  writing-mode: vertical-rl; margin-top: 8px; }
.showcase__index li.is-active span { color: var(--ink); }
.showcase__index li.is-active em { color: var(--rust); }

/* ---------- Services cards ---------- */
.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bone2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px 34px;
}
.card__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bone); color: var(--rust);
  font-size: 20px; margin-bottom: 22px;
}
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 0 0 10px; }
.card__text { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Properties ---------- */
.properties {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.prop { }
.prop__media { position: relative; border-radius: var(--r-md); overflow: hidden; }
.prop__media img { width: 100%; height: 340px; object-fit: cover; }
.prop__tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--bone); color: var(--ink);
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
}
.prop__loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin: 18px 0 6px; }
.prop__loc span { color: var(--rust); }
.prop__name { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 0 0 14px; }
.prop__specs { list-style: none; display: flex; gap: 24px; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.prop__specs li { display: flex; align-items: center; gap: 7px; }
.prop__specs em { font-style: normal; }
.prop__price { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.prop__price em { font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about {
  max-width: var(--maxw); margin: 0 auto;
  padding: 96px var(--pad) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about__copy { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.about__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.about__media img { width: 100%; height: 460px; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { margin-top: 96px; }
.footer__cta {
  max-width: var(--maxw); margin: 0 auto;
  padding: 60px var(--pad);
  background: var(--rust);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); color: #fff; margin: 0; max-width: 20ch; }

.footer__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  border-top: 1px solid var(--line); margin-top: 56px;
}
.footer__col p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink) !important; }
.footer__brand::first-letter { color: var(--rust); }
.footer__label { color: var(--ink) !important; font-weight: 600; margin-bottom: 16px !important; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__fine { font-size: 13px; }

/* ---------- Chat bot widget ---------- */
.chatbot {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.chatbot__launcher {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  border: none; cursor: pointer;
  padding: 14px 20px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px rgba(20, 18, 16, .28);
  transition: transform .15s ease;
}
.chatbot__launcher:hover { transform: translateY(-2px); }
.chatbot__icon { font-size: 18px; line-height: 1; }
.chatbot.is-open .chatbot__launcher { display: none; }

.chatbot__panel {
  width: min(400px, calc(100vw - 44px));
  height: min(620px, calc(100vh - 130px));
  min-height: 400px;
  background: var(--bone2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 18, 16, .30);
  display: none; flex-direction: column;
}
.chatbot.is-open .chatbot__panel { display: flex; }
.chatbot__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
}
.chatbot__close {
  background: none; border: none; color: #fff;
  cursor: pointer; font-size: 15px; line-height: 1; padding: 4px;
}
.chatbot__frame { flex: 1; width: 100%; border: none; background: var(--bone2); }

@media (max-width: 640px) {
  .chatbot { right: 14px; bottom: 14px; left: 14px; align-items: stretch; }
  .chatbot__panel { width: 100%; height: min(70vh, calc(100vh - 110px)); }
  .chatbot__launcher { align-self: flex-end; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__index { flex-direction: row; }
  .showcase__index li { align-items: center; }
  .showcase__index li em { writing-mode: horizontal-tb; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__menu { display: none; }
  .hero__inner { padding: 32px 22px; min-height: 560px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .stats { gap: 26px; }
  .cards { grid-template-columns: 1fr; }
  .properties { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
