:root {
  --fg: #1f2420;
  --bg: #fbfaf7;
  --accent: #3a6b4a;
  --accent-dark: #24402e;
  --muted: #6b7268;
  --border: #e3e0d8;
  --card-bg: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* ---------- Contact bar ---------- */

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  background: var(--accent-dark);
  color: #e7e2d3;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  text-align: center;
}
.contact-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-bar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img {
  height: 56px;
  width: auto;
  display: block;
}
.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .brand img { height: 44px; }
  .brand-text { font-size: 1.3rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--fg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-drop { position: relative; }

.nav-drop summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  user-select: none;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { background: rgba(58, 107, 74, 0.08); }
.nav-drop summary::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }

.nav-drop ul { list-style: none; margin: 0; padding: 0.4rem; }

@media (min-width: 641px) {
  .nav-drop[open] summary { background: rgba(58, 107, 74, 0.08); }
  .nav-drop ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 20;
  }
  .nav-drop ul li a { display: block; padding: 0.45rem 0.75rem; border-radius: 6px; font-size: 0.9rem; white-space: nowrap; }
  .nav-drop ul li a:hover { background: rgba(58, 107, 74, 0.08); }
}

/* ---------- Content shell ---------- */

.content { padding: 0; }

.prose { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose h1 { font-size: 2.1rem; margin-top: 0; }
.prose h2 { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 1.4rem; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background: #f1efe9; }

/* ---------- Carousel ---------- */

.carousel { position: relative; margin: 1.5rem auto; }

.carousel-track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: block;
  cursor: zoom-in;
}
.carousel-track img {
  height: 190px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(20, 30, 20, 0.1);
  transition: transform 0.2s ease;
}
.carousel-track a:hover img { transform: scale(1.03); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--accent-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: -4px; }
.carousel-next { right: -4px; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

.content-image { margin: 1.25rem auto; text-align: center; }
.content-image a { display: inline-block; cursor: zoom-in; }
.content-image img {
  display: inline-block;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(20, 30, 20, 0.1);
}

.prose h2[id] { scroll-margin-top: 80px; }

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem auto 2rem;
  max-width: 760px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(58, 107, 74, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
}
.page-nav a:hover { background: rgba(58, 107, 74, 0.16); }

/* ---------- Enquiry form ---------- */

.enquiry { max-width: 760px; margin: 0 auto 4rem; padding: 0 1.25rem; }
.enquiry-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}
.enquiry-inner h2 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.enquiry-sub { color: var(--muted); margin: 0 0 1.5rem; }
.enquiry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}
.enquiry-row label {
  flex: 1 1 200px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.enquiry-row input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: var(--sans);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
}
.enquiry-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.enquiry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enquiry-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.15s ease;
}
.enquiry-submit:hover { background: var(--accent-dark); }
.enquiry-submit:disabled { opacity: 0.6; cursor: default; }
.enquiry-status { margin: 0.9rem 0 0; font-size: 0.88rem; min-height: 1.2em; }
.enquiry-status[data-state="ok"] { color: var(--accent-dark); font-weight: 600; }
.enquiry-status[data-state="error"] { color: #a4342a; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 22, 15, 0.35) 0%, rgba(15, 22, 15, 0.55) 60%, rgba(15, 22, 15, 0.8) 100%),
    var(--hero-image, url("/images/varshini-estate-sakleshpur/WowScape-1024x576.jpg")) center 65% / cover no-repeat;
  color: #fff;
}
.hero-inner { max-width: 680px; padding: 2rem 1.5rem; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e7e2d3;
  margin: 0 0 0.75rem;
}
.hero h1 { font-size: 3.4rem; margin: 0 0 1rem; color: #fff; }
.hero-sub { font-size: 1.1rem; color: #f1efe9; max-width: 560px; margin: 0 auto 1.75rem; }
.hero-cta {
  display: inline-block;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-cta:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

.scroll-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

#regions { scroll-margin-top: 80px; }

.blog-hero { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; text-align: center; }
.blog-hero h1 { font-size: 2.3rem; color: var(--accent-dark); margin-bottom: 0.25rem; }
.blog-hero p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Property grid ---------- */

.region-section { max-width: 1080px; margin: 3.5rem auto 0; padding: 0 1.5rem; }
.region-section:first-of-type { margin-top: 4rem; }
.region-section h2 {
  font-size: 1.6rem;
  color: var(--accent-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}
.region-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  background: var(--card-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.property-card:hover { box-shadow: 0 14px 32px rgba(20,30,20,0.14); transform: translateY(-3px); }
.property-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.property-card-media { position: relative; }
.property-card-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
}
.property-card-location {
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  right: 0.75rem;
  color: #fff;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-card-title {
  display: block;
  padding: 1rem 1.1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-card-summary {
  display: block;
  padding: 0 1.1rem 1rem;
  margin-top: -0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.main-pages { max-width: 1080px; margin: 4rem auto 0; padding: 0 1.5rem 4rem; }
.main-pages h2 { color: var(--accent-dark); font-size: 1.4rem; }
.main-pages ul { columns: 2; padding-left: 1.1rem; }
@media (max-width: 640px) { .main-pages ul { columns: 1; } }

/* ---------- Blog ---------- */

.category-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 1.25rem; }

.category-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(58, 107, 74, 0.1);
  color: var(--accent-dark);
  margin: 0 0.25rem 0.25rem 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
a.category-pill:hover { background: rgba(58, 107, 74, 0.2); }

.blog-grid {
  max-width: 1080px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 14px 32px rgba(20,30,20,0.1); transform: translateY(-3px); }
.blog-card-link { text-decoration: none; color: var(--fg); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card h2 { font-size: 1.1rem; margin: 0.9rem 1.1rem 0.35rem; }
.blog-card .post-meta { margin: 0 1.1rem; font-size: 0.8rem; color: var(--muted); }
.blog-card .post-categories { margin: 0.4rem 1.1rem; }
.blog-card p:not(.post-meta):not(.post-categories) { margin: 0.6rem 1.1rem; font-size: 0.92rem; color: var(--fg); flex-grow: 1; }
.blog-card .read-more { margin: 0 1.1rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; }

.pager {
  max-width: 1080px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.pager a { font-weight: 600; text-decoration: none; }

.post { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.post-back { font-size: 0.9rem; }
.post h1 { font-size: 2.2rem; }
.post-meta { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.post-body img { border-radius: 10px; margin: 0.5rem 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--accent-dark); color: #e7e2d3; margin-top: 2rem; }
.site-footer-inner { max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-tagline { color: #cfe0d2; margin: 0.25rem 0 1.25rem; }
.footer-contact { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.8rem; color: #a9bcac; margin: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 10, 0.94);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  z-index: 50;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 640px) {
  .whatsapp-float { width: 48px; height: 48px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Floating announcement banner ---------- */

.site-banner {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + 56px + 0.75rem);
  z-index: 49;
  width: 260px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 0.85rem 2rem 0.85rem 1rem;
}
.site-banner-text {
  margin: 0;
  color: var(--fg);
  font-size: 0.82rem;
  line-height: 1.45;
}
.site-banner-text a {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.site-banner-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.site-banner-close:hover { color: var(--fg); }
@media (max-width: 640px) {
  .site-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: calc(1rem + 48px + 0.6rem);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .nav-drop ul { padding-left: 1rem; }
  .hero { min-height: 56vh; }
  .hero h1 { font-size: 2.3rem; }
  .hero-sub { font-size: 1rem; }

  .property-grid { grid-template-columns: repeat(auto-fill, 150px); justify-content: center; gap: 0.6rem; }
  .property-card img { aspect-ratio: 1 / 1; }
  .property-card-title { padding: 0.55rem 0.6rem; font-size: 0.82rem; }
  .property-card-summary { display: none; }
  .property-card-location { top: 0.35rem; left: 0.45rem; right: 0.45rem; font-size: 0.62rem; }

  .scroll-hint { display: flex; }
}
