:root {
  --bg: #fbf7f1;
  --surface: #fff;
  --ink: #16302f;
  --muted: #5d6f6d;
  --brand: #0e5c59;
  --accent: #e4572e;
  --sand: #f2e6d3;
  --line: #e6ddcf;
  --r: 18px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}
button, input, select, textarea { font: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
}
.brand-logo { height: 2.85rem; width: auto; object-fit: contain; }
.logo {
  font: 700 1.35rem var(--font-display);
  color: var(--brand);
  line-height: 1.05;
}
.logo b { color: var(--accent); }
.logo small {
  display: block; font: 600 0.65rem/1.2 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
nav ul {
  display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0;
  font-weight: 500; font-size: 0.95rem;
}
nav ul a:hover { color: var(--accent); }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line);
  background: var(--surface); border-radius: 0.65rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.1rem; height: 1.5px; background: var(--ink); margin: 0.22rem auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; background: var(--accent); color: #fff;
  padding: 0.75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.brand { background: var(--brand); }
.btn.ghost {
  background: transparent; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

/* Hero */
.hero {
  padding: 3rem 0 0;
  background: linear-gradient(160deg, var(--sand), var(--bg) 72%);
}
.hero-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.sub {
  color: var(--accent); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.55rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.55rem);
  margin-bottom: 0.85rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { color: var(--muted); font-size: 1.1rem; max-width: 34rem; margin: 0 0 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.art {
  position: relative; min-height: 360px; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 48, 47, 0.14);
}
.art img {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover;
}
.art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(11, 63, 61, 0.72));
}
.art span {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 1;
  color: #fff; font-weight: 600; font-size: 1rem;
}

.book {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.1rem; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  position: relative; top: 2rem;
}
label {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  display: block; margin-bottom: 0.3rem;
}
input, select, textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

section { padding: 4.5rem 0; }
section.first { padding-top: 6.5rem; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.45rem); margin-bottom: 0.7rem; }
.lead { color: var(--muted); max-width: 40rem; margin: 0 0 1.8rem; }

.grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(22, 48, 47, 0.1);
}
.card img, .sc img {
  width: 100%; height: 190px; object-fit: cover; cursor: pointer;
}
.card .b { padding: 1rem 1.05rem 1.15rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tags span {
  font-size: 0.75rem; background: var(--sand);
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.more {
  color: var(--brand); font-weight: 600; font-size: 0.9rem;
  margin-top: 0.65rem; display: inline-block; cursor: pointer;
  background: none; border: 0; padding: 0;
}

/* AI / Chatbot panel */
.ai {
  background: linear-gradient(145deg, #0e5c59, #0b3f3d);
  color: #fff; border-radius: 28px; padding: 2rem;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr 1.05fr;
  box-shadow: 0 20px 50px rgba(11, 63, 61, 0.28);
}
.ai h2 { color: #fff; }
.ai .sub { color: #ffd58a; }
.ai p { opacity: 0.92; margin: 0 0 1rem; }
.ai-chat-box {
  background: rgba(0, 0, 0, 0.22); border-radius: 16px;
  min-height: 360px; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ai-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.msg {
  max-width: 92%; padding: 0.75rem 0.9rem; border-radius: 0.9rem;
  font-size: 0.94rem; line-height: 1.45;
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.msg.user {
  align-self: flex-end;
  background: rgba(255, 213, 138, 0.2);
  border: 1px solid rgba(255, 213, 138, 0.35);
}
.msg a { color: #ffd58a; text-decoration: underline; }
.msg.typing { display: inline-flex; gap: 0.28rem; align-items: center; min-width: 2.8rem; }
.msg.typing span {
  width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #d6ecea;
  animation: chatPulse 1s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.ai-choices {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0 1rem 0.85rem; max-height: 7rem; overflow-y: auto;
}
.ai-choice {
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent;
  color: #fff; border-radius: 999px; padding: 0.45rem 0.85rem;
  cursor: pointer; font-size: 0.84rem;
}
.ai-choice:hover { background: rgba(255, 255, 255, 0.12); }
.chat-input-inline {
  display: grid; grid-template-columns: 1fr auto; gap: 0.45rem;
  padding: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-input-inline input {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff;
}
.chat-input-inline input::placeholder { color: #c4dcda; }
.chat-section-hint { margin: 0.75rem 0 0; opacity: 0.8; font-size: 0.88rem; }

.why {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.why div {
  padding: 1.15rem; border-radius: var(--r); background: var(--sand);
}
.why b { font-size: 1.55rem; display: block; color: var(--brand); margin-bottom: 0.2rem; }

.gal {
  columns: 3 220px; column-gap: 0.9rem;
}
.gal figure { margin: 0 0 0.9rem; break-inside: avoid; }
.gal img {
  width: 100%; border-radius: 14px; cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.gal img:hover { transform: scale(1.015); }

.exp-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.exp-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.exp-card .ph {
  height: 120px; display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: var(--brand);
}
.exp-card .b { padding: 1rem; }
.exp-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.exp-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

footer {
  background: #0b3f3d; color: #e8f1ef; padding: 3rem 0 1.75rem;
}
footer .wrap {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
footer h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
footer a { display: block; opacity: 0.88; margin: 0.25rem 0; }
footer a:hover { opacity: 1; color: #ffd58a; }
footer .footer-logo { height: 4.5rem; width: auto; margin-bottom: 0.75rem; }
footer small {
  display: block; margin-top: 1.75rem; opacity: 0.65; text-align: center;
}

.wa {
  position: fixed; right: 1rem; bottom: 5.2rem; z-index: 55;
  background: #25d366; color: #fff; width: 54px; height: 54px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

/* Floating chatbot */
.chat-launcher {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  border: 0; border-radius: 999px; padding: 0.85rem 1.15rem;
  background: var(--accent); color: #fff; font-weight: 600;
  cursor: pointer; box-shadow: 0 10px 28px rgba(228, 87, 46, 0.35);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.chat-launcher-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7dffb0;
  box-shadow: 0 0 0 4px rgba(125, 255, 176, 0.25);
}
.ps-chatbot {
  position: fixed; right: 1rem; bottom: 4.4rem; z-index: 61;
  width: min(380px, calc(100vw - 1.5rem));
  height: min(560px, calc(100svh - 6rem));
  display: none; grid-template-rows: auto 1fr auto auto;
  border-radius: 1.1rem; overflow: hidden;
  background: #0b3f3d; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ps-chatbot.is-open { display: grid; }
.chat-header {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1rem; background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header-brand { display: flex; align-items: center; gap: 0.55rem; }
.chat-header-brand img { height: 2.3rem; width: auto; }
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header span { display: block; font-size: 0.75rem; opacity: 0.75; margin-top: 0.15rem; }
.chat-close {
  width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff; cursor: pointer;
}
.ps-chatbot .ai-messages { background: transparent; }
.ps-chatbot .ai-choices { border-top: 1px solid rgba(255,255,255,0.08); }
.chat-input-form {
  display: grid; grid-template-columns: 1fr auto; gap: 0.45rem;
  padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.15);
}
.chat-input-form input {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff;
}
.chat-send { padding: 0.7rem 0.95rem; }

/* Lightbox */
#lb {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 80;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1.2rem;
}
#lb.on { display: flex; }
#lb img { max-width: 100%; max-height: 78vh; border-radius: 10px; }
#lb .bar {
  display: flex; gap: 0.75rem; align-items: center; margin-top: 0.9rem; color: #fff;
}
#lb button {
  background: #ffffff26; color: #fff; border: 0; border-radius: 999px;
  padding: 0.65rem 1.1rem; font-weight: 600; cursor: pointer;
}

.seo-block {
  padding: 2.5rem 0 1rem;
}
.seo-block h2 { font-size: 1.55rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.65rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.faq p { margin: 0.65rem 0 0; color: var(--muted); }

/* Inner villa pages */
.site-header { /* alias if older markup */ }
.page-hero {
  position: relative; min-height: 48svh; display: grid; align-items: end; overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,63,61,0.25), rgba(11,63,61,0.82));
}
.page-hero-content { position: relative; z-index: 1; padding: 6rem 0 2.5rem; color: #fff; }
.page-hero-content .section-kicker,
.page-hero-content .sub { color: #ffd58a; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0.4rem 0 0.6rem; color: #fff; }
.page-hero p { max-width: 36ch; opacity: 0.92; margin: 0; }
.detail-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.detail-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; min-height: 200px; }
.detail-gallery img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; cursor: pointer; }
.detail-gallery figure:first-child { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.detail-gallery figure:first-child img { min-height: 420px; }
.amenity-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  list-style: none; margin: 0; padding: 0;
}
.amenity-list li {
  padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.section-kicker { color: var(--accent); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.55rem; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.45rem); margin-bottom: 0.7rem; }
.section-copy { color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.reveal { opacity: 1; transform: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.9);
  display: none; place-items: center; padding: 1.5rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 85vh; border-radius: 1rem; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; width: 2.5rem; height: 2.5rem; border-radius: 999px; cursor: pointer;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1rem; color: rgba(232,241,239,0.75); font-size: 0.9rem;
}
.site-footer { background: #0b3f3d; color: #e8f1ef; padding: 2rem 0; }
.brand-text { display: grid; gap: 0.1rem; }
.brand-mark { font: 700 1.2rem var(--font-display); color: var(--brand); }
.brand-mark span { color: var(--accent); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-cta {
  display: inline-flex; padding: 0.65rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }

@media (max-width: 900px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-gallery figure:first-child { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .detail-gallery figure:first-child img { min-height: 260px; }
  .amenity-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .detail-gallery, .amenity-list { grid-template-columns: 1fr; }
  .detail-gallery figure:first-child { grid-column: auto; }
}

@media (max-width: 900px) {
  .hero-grid, .ai { grid-template-columns: 1fr; }
  .art, .art img { min-height: 240px; }
  .gal { columns: 2 160px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-content: center; }
  nav ul {
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 0.5rem 1.1rem 1rem;
    display: none;
  }
  nav ul.is-open { display: flex; }
  nav ul a { padding: 0.55rem 0; display: block; }
  .logo small { display: none; }
  .gal { columns: 1; }
  .wa { bottom: 4.8rem; right: 0.85rem; }
}
