/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-tint: #f6f7f5;
  --ink: #16221c;
  --ink-soft: #5a6b62;
  --line: #e6e9e5;
  --brand: #1f6f4f;       /* deep Lagos green */
  --brand-dark: #155138;
  --brand-soft: #e8f3ed;
  --accent: #e9a23b;      /* warm gold */
  --dark: #14271f;
  --whatsapp: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(20, 39, 31, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(20, 39, 31, 0.4);
  --maxw: 1180px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer; border: none;
  padding: 14px 24px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-whatsapp { background: var(--whatsapp); color: #06301a; font-weight: 700; }
.btn-whatsapp:hover { filter: brightness(1.05); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--brand); }
.logo-mark { color: var(--accent); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-weight: 600; font-size: .92rem; color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; padding: 96px 0 120px;
  background: linear-gradient(120deg, #103a29, #1f6f4f), url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center; background-blend-mode: multiply;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,22,.35), rgba(11,30,22,.65)); }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin-top: 18px; font-size: 1.12rem; max-width: 620px; color: rgba(255,255,255,.92); }

/* Search bar */
.search-bar {
  margin-top: 36px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: grid;
  grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; padding: 6px; text-align: left; }
.search-field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; padding-left: 4px; }
.search-btn { height: 52px; }

/* ===== Dropdowns (custom select component) ===== */
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink);
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 40px 12px 14px;
}
.select-wrap.enhanced select {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.cs-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink); text-align: left;
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cs-trigger:hover { border-color: var(--brand); background: #fff; }
.cs-trigger:focus-visible { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.select-wrap.open .cs-trigger { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.cs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-label.cs-placeholder { color: var(--ink-soft); }
.cs-chevron {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); position: relative;
  transition: transform .22s ease, background .18s ease;
}
.cs-chevron::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -65%) rotate(45deg);
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
}
.select-wrap.open .cs-chevron { transform: rotate(180deg); background: var(--brand); }
.select-wrap.open .cs-chevron::before { border-color: #fff; }
.cs-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(20, 39, 31, .35);
  max-height: 264px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.select-wrap.open .cs-panel { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.cs-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 9px; cursor: pointer;
  font-weight: 500; font-size: .95rem; color: var(--ink);
}
.cs-option.active { background: var(--brand-soft); color: var(--brand-dark); }
.cs-option.selected { font-weight: 700; color: var(--brand-dark); }
.cs-option.selected::after {
  content: ""; width: 6px; height: 11px; margin-right: 4px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
}
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500; position: relative; z-index: 2; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-head.center { justify-content: center; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.eyebrow.light { color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; }
.section-result { color: var(--ink-soft); font-weight: 600; }

/* ===== Listings ===== */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tint); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-media img { transform: scale(1.05); }
.listing-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(20,39,31,.85); color: #fff;
  font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.listing-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.listing-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.listing-price span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.listing-title { font-weight: 700; font-size: 1.02rem; }
.listing-loc { color: var(--ink-soft); font-size: .92rem; }
.listing-meta { display: flex; gap: 14px; color: var(--ink-soft); font-size: .86rem; margin-top: 4px; flex-wrap: wrap; }
.listing-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; }
.listing-actions .btn { flex: 1; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 30px; font-size: 1.05rem; }
.listing-media[role="button"] { cursor: pointer; }
.media-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(20,39,31,.75); color: #fff; font-size: .74rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.rate-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.rate-chip {
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px;
  padding: 6px 10px; font-size: .8rem; font-weight: 700; line-height: 1.3;
}
.rate-chip em { display: block; font-style: normal; font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rate-chip small { font-weight: 500; color: var(--ink-soft); }

/* ===== Apartment types ===== */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.type-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.type-icon { font-size: 2rem; margin-bottom: 14px; }
.type-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.type-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 16px; }
.link-arrow { color: var(--brand); font-weight: 600; font-size: .92rem; }
.link-arrow:hover { color: var(--brand-dark); }
.type-soon { opacity: .65; }
.type-soon:hover { transform: none; box-shadow: none; }
.soon-badge {
  display: inline-block; background: var(--bg-tint); border: 1px dashed var(--ink-soft);
  color: var(--ink-soft); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}

/* ===== Locations ===== */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 18px; }
.location-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); border: none;
}
.location-card:first-child { grid-row: span 2; }
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.location-card:hover img { transform: scale(1.06); }
.location-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,30,22,.8)); }
.location-label { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; }
.location-label strong { display: block; font-size: 1.2rem; font-weight: 700; }
.location-label span { font-size: .85rem; opacity: .9; }
.location-soon {
  cursor: default; box-shadow: none; background: var(--bg-tint);
  border: 1.5px dashed var(--line);
}
.location-soon::after { background: none; }
.location-soon .location-label strong { color: var(--ink); }
.location-soon .location-label span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }

/* ===== How it works ===== */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.how-step { padding: 8px; }
.how-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.how-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.how-step p { color: rgba(255,255,255,.78); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 40px; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat span { color: rgba(255,255,255,.78); font-size: .92rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy h2 { margin-bottom: 16px; }
.about-copy > p { color: var(--ink-soft); margin-bottom: 22px; }
.amenity-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 28px; }
.amenity-list li { font-weight: 500; font-size: .96rem; }

/* ===== Reviews ===== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote { font-size: 1.02rem; line-height: 1.6; margin-bottom: 18px; }
.review-card figcaption strong { display: block; }
.review-card figcaption span { color: var(--ink-soft); font-size: .88rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--ink-soft); margin-bottom: 24px; }
.btn-whatsapp { margin-bottom: 28px; }
.contact-info p { margin-bottom: 8px; font-weight: 500; }
.contact-info a:hover { color: var(--brand); }
.booking-form { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-field .select-wrap select, .form-field .cs-trigger { background: #fff; }
.form-field textarea { resize: vertical; }
.form-note { margin-top: 14px; text-align: center; font-weight: 600; color: var(--brand); }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: .94rem; }
.socials { display: flex; gap: 16px; margin-top: 18px; }
.socials a { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }
.socials a:hover { color: var(--accent); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-soon { display: block; margin-bottom: 10px; font-size: .88rem; color: rgba(255,255,255,.45); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .85rem; flex-wrap: wrap; gap: 8px; }

/* ===== Gallery lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 22, 16, .92); backdrop-filter: blur(6px);
  padding: 20px;
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lb-panel { width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lb-head { display: flex; align-items: center; justify-content: space-between; color: #fff; gap: 16px; }
.lb-head strong { font-size: 1.05rem; }
.lb-counter { margin-left: 12px; font-size: .85rem; color: rgba(255,255,255,.65); font-weight: 600; }
.lb-close {
  background: rgba(255,255,255,.12); border: none; color: #fff; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background .15s ease;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-stage-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.lb-stage { width: 100%; height: min(66vh, 640px); display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); object-fit: contain;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.lb-arrow:hover { background: var(--brand); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px;
  scrollbar-width: thin;
}
.lb-thumb {
  position: relative; flex: 0 0 auto; width: 76px; height: 56px; border-radius: 8px;
  overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none;
  opacity: .65; transition: opacity .15s ease, border-color .15s ease;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb.active { border-color: var(--accent); opacity: 1; }
.lb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,22,16,.45); color: #fff; font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .listing-grid, .review-grid, .how-grid, .location-grid { grid-template-columns: repeat(2, 1fr); }
  .location-card:first-child { grid-row: auto; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media img { height: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .nav-phone { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .nav-toggle { display: block; }
  .search-bar { grid-template-columns: 1fr; }
  .search-btn { height: 50px; }
}
@media (max-width: 560px) {
  .listing-grid, .review-grid, .how-grid, .location-grid, .type-grid, .stats, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 90px; }
  .location-soon { min-height: 90px; }
  .lightbox { padding: 10px; }
  .lb-stage { height: 55vh; }
  .lb-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}
