:root {
  --blue: #071a33;
  --blue-2: #0d2b52;
  --gold: #c99a2e;
  --gold-2: #f4d27b;
  --ink: #102033;
  --muted: #66758a;
  --soft: #f6f8fb;
  --line: #dde5ef;
}

* {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  box-shadow: 0 10px 30px rgba(7, 26, 51, .08);
}

.navbar-brand {
  color: var(--blue);
  font-weight: 800;
}

.site-logo {
  width: 168px;
  height: auto;
  display: block;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.nav-link {
  color: var(--blue);
  font-weight: 650;
}

.nav-link.active,
.nav-link:hover {
  color: var(--gold);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  font-weight: 900;
}

.btn-gold {
  --bs-btn-color: #111;
  --bs-btn-bg: var(--gold-2);
  --bs-btn-border-color: var(--gold-2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  font-weight: 800;
}

.btn-blue {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue-2);
  --bs-btn-hover-border-color: var(--blue-2);
  font-weight: 800;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  background: none;
  color: #f4d27b;
  display: block;
  padding: 0;
  border-radius: 0;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.7),
    2px 2px 0px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
  z-index: 10;
  position: relative;
  margin-top: 0;
  margin-bottom: 24px;
}
.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  margin-top: 50px;
}
.hero .lead {
  font-size: 0.92rem;
  background: rgba(7,26,51,0.62); /* Add overlay for readability */
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 8px;
  color: #fff;
  text-shadow: 0 1px 6px #000, 0 1px 0 #222;
}
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,26,51,0.85), rgba(7,26,51,0.7), rgba(7,26,51,0.32)), rgba(0,0,0,0.25);
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel {
  z-index: 0;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 3;
  width: 7%;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: crisp-edges;
  filter: brightness(1.18) contrast(1.22) saturate(1.22) drop-shadow(0 0 2px #000); /* Maximum clarity */
}

/* ── Home Banner — img-based, mobile-first ───────────────────── */
.home-banner {
  margin-top: 72px; /* navbar height offset */
}

/* Each slide wrapper — relative so overlay & content can sit on top */
.banner-slide {
  position: relative;
  overflow: hidden;
  background: var(--blue);
}

/* The actual <img> — full width, fixed height on desktop */
.banner-slide-img {
  width: 100%;
  height: calc(95vh + 50px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback slide when no banners in DB */
.banner-slide-img--fallback {
  height: calc(95vh + 50px);
  background: var(--blue);
}

/* Subtle uniform overlay — just enough to keep text readable */
.banner-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.18);
}

/* Content centred over the image — offset for fixed navbar */
.banner-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 2rem 2rem; /* top = navbar height so true-centre is below nav */
  color: #fff;
}

.banner-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  color: #f4d27b;
  text-shadow:
    0 2px 8px  rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.7),
    2px 2px 0  rgba(0,0,0,0.45);
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

.banner-btns {
  display: flex;
  flex-wrap: nowrap;   /* stay on one line on desktop */
  gap: .85rem;
  justify-content: center;
  align-items: center;
}

.banner-btns .btn {
  white-space: nowrap; /* prevent text inside button from wrapping */
}

/* Dot indicators — keep them inside the image area */
.home-banner .carousel-indicators {
  bottom: 0;
  margin-bottom: .5rem;
}

/* ── Tablet (576–991px) ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  .banner-slide-img,
  .banner-slide-img--fallback {
    height: 72vh;
  }

  .banner-btns {
    flex-wrap: wrap; /* allow wrap on tablet */
  }

  .banner-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
}

/* ── Mobile (≤575px) — stacked layout ───────────────────────── */
@media (max-width: 575.98px) {
  .home-banner {
    margin-top: 60px;
  }

  /* Image fills its natural aspect ratio — no cropping */
  .banner-slide-img {
    height: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }

  .banner-slide-img--fallback {
    height: 56vw;
  }

  /* Hide desktop overlay — content lives below image on mobile */
  .banner-slide-overlay {
    display: none;
  }

  /* Content stacks below the image in a dark blue bar */
  .banner-slide-content {
    position: relative;
    inset: auto;
    background: var(--blue);
    padding: 1.25rem 1rem 1.5rem;
  }

  .banner-title {
    font-size: 1.5rem;
    letter-spacing: 0;
    text-shadow: none;
    margin-bottom: 1rem;
  }

  .banner-btns {
    gap: .65rem;
  }

  .banner-btns .btn {
    font-size: .82rem;
    padding: .5rem .9rem;
  }

  /* Dots sit at bottom of image, not bottom of content bar */
  .home-banner .carousel-indicators {
    bottom: auto;
    top: calc((100vw * 3 / 4) - 28px);
  }
}

.eyebrow {
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(95vh + 50px);
  display: grid;
  align-items: center;
  padding: 140px 0 80px; /* Even more padding */
  color: #fff;
  overflow: hidden;
  background: var(--blue);
}
}

.hero-search {
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.section-pad {
  padding: 82px 0;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  color: var(--blue);
  font-weight: 900;
}

.premium-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(7, 26, 51, .07);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(7, 26, 51, .13);
}

.card-img-top,
.project-thumb {
  height: 240px;
  object-fit: cover;
  background: #e7edf5;
}

.icon-tile {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--blue);
  font-size: 1.45rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.status-available {
  color: #075c2b;
  background: #d8f7e4;
}

.status-booked {
  color: #805300;
  background: #fff0c7;
}

.status-sold {
  color: #8b1020;
  background: #ffe0e5;
}

.plot-card {
  min-height: 100%;
}

.plot-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.plot-meta span {
  padding: .75rem;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: .9rem;
}

.plot-meta strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #e6edf5;
}

.project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.map-frame {
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  width: 100%;
}

.contact-panel {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 8px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--line);
  min-height: 48px;
}

.admin-shell {
  min-height: 100vh;
  background: var(--soft);
}

.admin-sidebar {
  background: var(--blue);
}

.admin-sidebar a {
  display: block;
  padding: .85rem 1rem;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.metric {
  border-left: 5px solid var(--gold);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20b15a;
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
  font-size: 1.6rem;
}

.mobile-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  padding: .9rem 1rem;
  color: #111;
  background: var(--gold-2);
  text-align: center;
  font-weight: 900;
}

.footer {
  background: #07111f;
}

.footer a {
  display: block;
  color: rgba(255,255,255,.65);
  margin-bottom: .45rem;
}

.footer a:hover {
  color: var(--gold-2);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Brochure Section Images (Route Map / Features / Layout / Plots) ── */
.brochure-img-wrap {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  min-height: 200px;
}

.brochure-img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  background: var(--soft);
  display: block;
}

.brochure-img-wrap.img-placeholder::after {
  content: "Image not uploaded yet";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  background: var(--soft);
}

/* ── Special Features — text card variant ───────────────── */
.feature-text-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.feature-text-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(7, 26, 51, .09);
}

.feature-text-icon {
  font-size: 1.1rem;
  color: var(--gold);
}

/* ── Available Plots full-width image ────────────────────── */
.plots-full-img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* ── Gallery Carousel ────────────────────────────────────── */
.gallery-carousel-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  background: #e0e8f0;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s ease, border-color .2s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

/* ── Project Hero Image ──────────────────────────────────── */
.project-hero-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ── Lightbox Trigger Wrapper ────────────────────────────── */
.lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.lightbox-trigger .zoom-hint {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 26, 51, .55);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
}

.lightbox-trigger:hover .zoom-hint,
.lightbox-trigger:focus .zoom-hint {
  opacity: 1;
}

/* ── Layout / Route Map Images ───────────────────────────── */
.layout-img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--soft);
  border-radius: 8px;
  display: block;
}

.route-map-img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
  display: block;
}

/* ── Info Stat Cards ─────────────────────────────────────── */
.info-stat-card {
  border-top: 4px solid var(--gold);
}

.info-stat-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: var(--gold-2);
  font-size: 1.4rem;
}

/* ── Special Feature Cards ───────────────────────────────── */
.feature-card {
  border-top: 3px solid var(--gold);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(7, 26, 51, .14);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: var(--gold-2);
  font-size: 1.5rem;
  margin: 0 auto;
}

/* ── Gallery — Project Cards (overview) ─────────────────────── */
.gallery-project-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(7, 26, 51, .15);
}

.gallery-cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-project-card:hover .gallery-cover-img {
  transform: scale(1.04);
}

.gallery-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--soft);
}

.gallery-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 51, .65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-project-card:hover .gallery-cover-overlay {
  opacity: 1;
}

.gallery-img-count {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  background: rgba(7, 26, 51, .55);
  padding: .25rem .55rem;
  border-radius: 999px;
}

/* ── Gallery — Masonry Grid (single project) ─────────────────── */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  break-inside: avoid;
  background: var(--soft);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 51, .45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .25s ease;
  color: #fff;
  font-size: 1.6rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .55rem;
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
}

.gallery-cover-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2;
  background: var(--gold-2);
  color: #111;
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 479.98px) {
  .gallery-masonry {
    columns: 1;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 80vh;
  }

  .card-img-top,
  .project-thumb {
    height: 210px;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 56px 0;
  }

  .hero {
    min-height: 85vh;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .plot-meta {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 74px;
  }

  .mobile-call {
    display: block;
  }
}
