/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2e7d32;
  --green-light: #4caf50;
  --accent: #ff6f00;
  --bg: #f5f5f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== Acid green accent (matches hero) ===== */
:root {
  --acid: #b8ff3c;
  --hero-dark: #14171c;
}

/* ===== Header ===== */
header {
  background: var(--hero-dark);
  color: #fff;
  padding: 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  transition: opacity .3s ease, transform .3s ease;
}

header.header-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand em {
  color: var(--acid);
  font-style: normal;
}

.brand span {
  color: #8a9a6a;
  font-weight: 400;
  font-size: .82em;
}

.header-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}

.header-location {
  font-size: .88rem;
  opacity: .80;
  color: #fff;
  letter-spacing: .3px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('portrait-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
  color: #fff;
}

/* Overlay removed */
.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Hero logo */
.hero-logo {
  width: 100px;
  height: 80px;
  object-fit: contain;
  margin-bottom: -30px;
}

/* "India's Only ZERO Commission…" label */
.hero-product-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid rgba(184, 255, 60, .30);
  border-radius: 2rem;
  padding: .3rem .9rem;
  background: rgba(0, 0, 0, 0.3);
}

/* Acid green used in label and throughout */
.acid {
  color: var(--acid);
}

/* Giant product title */
.hero-title {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
  color: #153019;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
}

/* Main descriptive heading */
.hero-heading {
  font-size: clamp(.95rem, 2.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.65;
  color: #d8e8c8;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Closing line */
.hero-closing {
  font-size: clamp(.85rem, 2vw, 1rem);
  color: #8fad6a;
  letter-spacing: .5px;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Hunt CTAs */
.hero-hunts {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.hunt-btn {
  padding: .85rem 2rem;
  border: none;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-transform: uppercase;
}

.hunt-btn:hover {
  transform: translateY(-2px);
}

.hunt-farm {
  background: var(--acid);
  color: var(--hero-dark);
  box-shadow: 0 4px 20px rgba(184, 255, 60, .30);
}

.hunt-farm:hover {
  box-shadow: 0 8px 28px rgba(184, 255, 60, .45);
}

.hunt-plot {
  background: transparent;
  color: var(--acid);
  border: 2px solid var(--acid);
  box-shadow: 0 4px 20px rgba(184, 255, 60, .15);
}

.hunt-plot:hover {
  background: rgba(184, 255, 60, .10);
  box-shadow: 0 8px 28px rgba(184, 255, 60, .25);
}

/* Desktop: switch to landscape image + parallax */
@media (min-width: 768px) {
  .hero {
    background-image: url('landscape-bg.png');
    background-attachment: fixed;
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .hero {
    background-attachment: scroll;
  }

  .hero-content {
    gap: .85rem;
    padding: 2rem 1.25rem 2.5rem;
  }

  .hero-product-label {
    font-size: .75rem;
  }

  .hero-hunts {
    flex-direction: column;
    width: 100%;
  }

  .hunt-btn {
    padding: .75rem 1.75rem;
    font-size: .92rem;
  }
}

/* ===== Main layout ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  scroll-margin-top: 56px;
}

/* ===== Filter tabs ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  padding: .45rem 1rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}

.filter-btn:hover {
  border-color: var(--green-light);
  color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ===== Results meta ===== */
.results-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  min-height: 1.4em;
}

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Listing card ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #ddd;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .2rem .55rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #fff;
}

.badge-residential_plot {
  background: #1565c0;
}

.badge-commercial {
  background: #e65100;
}

.badge-farm_land {
  background: #2e7d32;
}

.badge-house {
  background: #6a1b9a;
}

.card-body {
  padding: .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .8rem;
  color: var(--muted);
}

.card-meta span::before {
  margin-right: .25rem;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}

.card-highlights {
  list-style: none;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: auto;
}

.card-highlights li::before {
  content: "✓ ";
  color: var(--green-light);
  font-weight: 700;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2rem;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .85rem;
  color: var(--text);
  transition: all .12s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ===== Empty / loading state ===== */
.state-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  grid-column: 1/-1;
}

/* ===== Modal overlay ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 200;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(0, 0, 0, .55);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

/* ===== Detail content ===== */
.detail-video {
  aspect-ratio: 16/9;
  background: #000;
  width: 100%;
}

.detail-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.detail-body {
  padding: 1.25rem;
}

.detail-badge {
  display: inline-block;
  margin-bottom: .75rem;
}

.detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.35;
}

.detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

.detail-desc {
  font-size: .9rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
}

@media (min-width: 500px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-field label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  margin-bottom: .15rem;
}

.detail-field span {
  font-weight: 500;
}

.detail-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: .5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

.detail-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
  font-size: .88rem;
}

.detail-highlights li::before {
  content: "✓ ";
  color: var(--green-light);
  font-weight: 700;
}

.detail-broker {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f1f8e9;
  border-radius: 8px;
  padding: .85rem 1rem;
  margin-top: 1rem;
}

.detail-broker-info {
  flex: 1;
}

.detail-broker-info strong {
  display: block;
  font-size: .95rem;
}

.detail-broker-info span {
  font-size: .8rem;
  color: var(--muted);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-call:hover {
  background: #1b5e20;
}

/* ===== Responsive detail ===== */
@media (max-width: 480px) {
  .detail-broker {
    flex-direction: column;
    align-items: flex-start;
  }
}