/* Résidence Green B11 — design system
   Palette drawn from the apartment's interiors: cream travertine, terracotta, olive, walnut. */
:root {
  --cream: #f7f2ea;
  --sand: #efe6d8;
  --ink: #2b2620;
  --ink-soft: #5c544a;
  --terra: #b95c38;
  --terra-dark: #9a4527;
  --olive: #5f6f4a;
  --olive-deep: #47543a;
  --line: #e0d5c3;
  --white: #fffdf9;
  --shadow: 0 20px 50px -24px rgba(43, 38, 32, 0.35);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.5rem; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin-bottom: 0.9rem; display: block;
}
.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.section-intro { max-width: 640px; color: var(--ink-soft); margin-bottom: 2.6rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled { background: rgba(247, 242, 234, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav .brand { font-family: var(--font-display); font-size: 1.18rem; color: var(--white); font-weight: 600; letter-spacing: 0.02em; }
.nav.scrolled .brand { color: var(--ink); }
.nav ul { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav ul a { color: rgba(255, 253, 249, 0.9); font-size: 0.92rem; font-weight: 500; }
.nav.scrolled ul a { color: var(--ink-soft); }
.nav ul a:hover { color: var(--terra); }
.nav .lang { border: 1px solid currentColor; border-radius: 99px; padding: 0.18rem 0.75rem; font-size: 0.8rem; }
.nav .cta-mini { background: var(--terra); color: #fff !important; border-radius: 99px; padding: 0.45rem 1.1rem; }
.nav .cta-mini:hover { background: var(--terra-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--white); position: relative; margin: 0 auto; transition: 0.3s;
}
.nav.scrolled .nav-toggle span, .nav.scrolled .nav-toggle span::before, .nav.scrolled .nav-toggle span::after { background: var(--ink); }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(43,38,32,0) 30%, rgba(43,38,32,0.72) 88%);
}
.hero-content { position: relative; z-index: 2; padding: clamp(1.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); max-width: 780px; color: var(--white); }
.hero-content .stars { color: #f4c561; letter-spacing: 0.2em; font-size: 0.95rem; margin-bottom: 0.8rem; display: block; }
.hero-content h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); color: var(--white); margin-bottom: 0.9rem; }
.hero-content p { font-size: clamp(1.02rem, 2vw, 1.22rem); color: rgba(255, 253, 249, 0.88); max-width: 560px; }
.hero-ctas { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border-radius: 99px; padding: 0.85rem 1.7rem; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease; cursor: pointer; border: 0;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); color: #fff; }
.btn-ghost { background: rgba(255, 253, 249, 0.14); color: #fff; border: 1px solid rgba(255, 253, 249, 0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 253, 249, 0.28); color: #fff; }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-deep); color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.6; }
.about-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--olive-deep); }
.facts div span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Highlights ---------- */
.highlights { background: var(--olive-deep); color: var(--sand); }
.highlights .section { max-width: 1200px; }
.highlights h2, .highlights .kicker { color: var(--sand); }
.highlights .kicker { color: #cdd6b8; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-top: 2.4rem; }
.hl-card { background: rgba(247, 242, 234, 0.07); border: 1px solid rgba(247, 242, 234, 0.16); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.hl-card .ico { font-size: 1.6rem; display: block; margin-bottom: 0.7rem; }
.hl-card h3 { font-size: 1.08rem; color: var(--white); margin-bottom: 0.3rem; }
.hl-card p { font-size: 0.9rem; color: rgba(239, 230, 216, 0.75); line-height: 1.5; }

/* ---------- Gallery ---------- */
.gal-pills { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.gal-pills button {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  border-radius: 99px; padding: 0.5rem 1.15rem; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.gal-pills button:hover { border-color: var(--terra); color: var(--terra); }
.gal-pills button.active { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--white); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 0.8rem; }
.gal-grid a.hide { display: none; }
.gal-grid.filtered a { grid-column: auto !important; grid-row: auto !important; }
.gal-grid.limited a:nth-child(n+9) { display: none; }
.gal-more-wrap { text-align: center; margin-top: 1.6rem; }
.gal-more {
  border: 1.5px solid var(--olive-deep); background: transparent; color: var(--olive-deep);
  border-radius: 99px; padding: 0.8rem 1.9rem; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease;
}
.gal-more:hover { background: var(--olive-deep); color: var(--white); }
.gal-grid a { border-radius: 14px; overflow: hidden; position: relative; display: block; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gal-grid a:hover img { transform: scale(1.05); }
.gal-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-grid a:nth-child(6) { grid-column: span 2; }
.gal-grid a:nth-child(9) { grid-row: span 2; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(30, 26, 21, 0.94);
  display: none; place-items: center; padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 10px; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(247,242,234,0.12); color: #fff; border: 1px solid rgba(247,242,234,0.35);
  border-radius: 99px; width: 46px; height: 46px; font-size: 1.15rem; cursor: pointer;
}
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(255,253,249,0.85); font-size: 0.92rem; }

/* ---------- Video tour ---------- */
.tour { background: var(--sand); }
.tour .wrap { max-width: 1000px; margin: 0 auto; }
.tour video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Amenities ---------- */
.amen-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1rem; }
.amen-cols h3 { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--olive-deep); display: flex; align-items: center; gap: 0.5rem; }
.amen-cols ul { list-style: none; }
.amen-cols li { padding: 0.34rem 0; color: var(--ink-soft); font-size: 0.95rem; border-bottom: 1px dashed var(--line); }

/* ---------- Explore ---------- */
.explore { background: linear-gradient(var(--white), var(--cream)); }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.3rem; }
.exp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.exp-card .exp-img { height: 165px; background: var(--sand); display: block; overflow: hidden; }
.exp-card .exp-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 0.5s ease; }
.exp-card:hover .exp-img img { transform: scale(1.06); }
.exp-card .body { padding: 1.2rem 1.3rem 1.5rem; }
.exp-card .dist { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); }
.exp-card h3 { font-size: 1.15rem; margin: 0.35rem 0 0.45rem; }
.exp-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.walkable { margin-top: 2.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.walkable h3 { margin-bottom: 0.6rem; }
.walkable p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--olive); color: var(--sand); }
.reviews .kicker { color: #d8e0c4; }
.reviews h2 { color: var(--white); }
.rev-badge {
  display: inline-flex; align-items: center; gap: 0.7rem; background: rgba(255,253,249,0.1);
  border: 1px solid rgba(255,253,249,0.25); padding: 0.55rem 1.15rem; border-radius: 99px; margin: 0.8rem 0 2rem;
}
.rev-badge strong { font-size: 1.25rem; }
.rev-badge .stars { color: #f4c561; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.rev-card { background: rgba(255, 253, 249, 0.09); border: 1px solid rgba(255,253,249,0.16); border-radius: var(--radius); padding: 1.5rem; }
.rev-card .stars { color: #f4c561; font-size: 0.85rem; letter-spacing: 0.15em; }
.rev-card blockquote { margin: 0.7rem 0 0; font-size: 0.96rem; line-height: 1.6; color: var(--white); }
.rev-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.rev-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(247,242,234,0.45); }
.rev-head strong { display: block; color: var(--white); font-size: 0.95rem; line-height: 1.2; }
.rev-head span { font-size: 0.78rem; color: rgba(239,230,216,0.7); }
.rev-more { margin-top: 2rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0.2rem; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--terra); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0.2rem 1.2rem; color: var(--ink-soft); font-size: 0.97rem; max-width: 720px; }

/* ---------- Availability ---------- */
.avail { background: var(--sand); }
.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 860px; }
.cal { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.3rem; }
.cal h3 { text-align: center; font-size: 1.02rem; margin-bottom: 0.8rem; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding-bottom: 0.5rem; }
.cal td { text-align: center; padding: 0.14rem; }
.cal td span {
  display: grid; place-items: center; height: 40px; border-radius: 10px; font-size: 0.86rem; position: relative;
}
.cal td .price { position: absolute; bottom: 2px; font-size: 0.55rem; color: var(--olive-deep); font-weight: 600; }
.cal .free span { background: #eef2e4; color: var(--olive-deep); font-weight: 600; cursor: pointer; transition: box-shadow 0.15s ease; }
.cal .free span:hover { box-shadow: inset 0 0 0 2px var(--olive); }
.cal .busy span { background: #f3ece2; color: #c0b5a4; text-decoration: line-through; }
.cal .past span { color: #cfc6b8; }
.cal td.sel span { background: var(--olive); color: var(--white); }
.cal td.sel span .price { color: #e6ecd8; }
.cal td.edge span { background: var(--olive-deep); color: var(--white); box-shadow: 0 4px 12px -4px rgba(71,84,58,0.6); }
.cal td.edge span .price { color: #e6ecd8; }
/* Booking quote panel */
.quote-panel { max-width: 860px; margin-top: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow); }
.quote-panel .qp-hint { color: var(--ink-soft); font-size: 0.95rem; }
.quote-row { display: flex; justify-content: space-between; padding: 0.42rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.quote-row.total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.8rem; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.quote-row .disc { color: var(--olive-deep); font-weight: 600; }
.qp-controls { display: flex; gap: 0.9rem; align-items: center; margin: 0.4rem 0 0.8rem; flex-wrap: wrap; }
.qp-controls label { font-size: 0.85rem; font-weight: 600; }
.qp-controls select { border: 1px solid var(--line); background: var(--cream); border-radius: 10px; padding: 0.5rem 0.8rem; font: inherit; }
.qp-actions { display: flex; gap: 0.8rem; margin-top: 1.1rem; flex-wrap: wrap; }
.qp-error { color: #b3402a; font-weight: 600; font-size: 0.9rem; margin-top: 0.6rem; display: none; }
.deal-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #eef2e4; color: var(--olive-deep); border-radius: 99px; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.2rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin-bottom: 1rem; }
.cal-nav button { background: var(--white); border: 1px solid var(--line); border-radius: 99px; width: 42px; height: 42px; cursor: pointer; font-size: 1rem; }
.cal-legend { display: flex; gap: 1.4rem; margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 0.4rem; vertical-align: -2px; }
.cal-legend .li-free i { background: #eef2e4; }
.cal-legend .li-busy i { background: #f3ece2; }
.rate-note { margin-top: 1.2rem; font-size: 0.98rem; color: var(--ink-soft); }
.rate-note strong { color: var(--olive-deep); font-size: 1.15rem; }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.book-form label { display: block; font-size: 0.82rem; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.book-form input, .book-form textarea, .book-form select {
  width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 10px;
  padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem; color: var(--ink);
}
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.book-form button { width: 100%; justify-content: center; margin-top: 1.3rem; }
.book-side p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.book-side .alt { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.94rem; }

/* ---------- Map / Footer ---------- */
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
footer { background: var(--ink); color: #b8ac9c; padding: 3.5rem clamp(1.2rem, 5vw, 4rem) 2.5rem; }
footer .foot-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
footer .brand { font-family: var(--font-display); color: var(--cream); font-size: 1.4rem; margin-bottom: 0.6rem; }
footer h4 { color: var(--cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.8rem; }
footer a { color: #b8ac9c; display: block; padding: 0.18rem 0; font-size: 0.93rem; }
footer a:hover { color: var(--cream); }
footer .fine { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(247,242,234,0.14); font-size: 0.8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .book-grid, .cal-wrap { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gal-grid a:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gal-grid a:first-child { grid-column: span 2; }
  footer .foot-grid { grid-template-columns: 1fr; }
  .nav ul {
    position: fixed; inset: 0 0 0 30%; background: var(--cream); flex-direction: column;
    justify-content: center; gap: 1.4rem; transform: translateX(110%); transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(43,38,32,0.25);
  }
  .nav ul.open { transform: none; }
  .nav ul a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav-toggle { display: block; z-index: 60; }
}
