:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --alt: #edf5fa;
  --text: #1c1f1d;
  --muted: #5f6661;
  --line: #dbe7ef;
  --primary: #0a78a8;
  --brand: #1a9fd0;
  --tint: #e3f3fa;
  --primary-ink: #ffffff;
  --accent: #c8902e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #08668f; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { font-weight: 800; text-decoration: none; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-place { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  border-left: 2px solid var(--line); padding-left: 10px; line-height: 1.2; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4,28,48,.92) 0%, rgba(4,28,48,.72) 45%, rgba(6,60,96,.25) 100%),
    linear-gradient(0deg, rgba(4,28,48,.55), transparent 40%),
    url("img/hero-dholera.jpg") center 60% / cover no-repeat,
    #0a2a44;
  padding: 120px 0 88px;
}
.hero h1, .hero .lead { text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .pill { backdrop-filter: blur(6px); }
.photo-credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.65); text-decoration: none; }
.photo-credit:hover { color: #fff; text-decoration: underline; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; max-width: 16ch; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #7fd6f7; }
.lead { font-size: 19px; opacity: .9; max-width: 52ch; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; margin-bottom: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 48px; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 28px; }
.stats strong { display: block; font-size: 28px; }
.stats span { opacity: .75; font-size: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.filters input { grid-column: 1 / -1; }
.filters input, .filters select, .form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; color: inherit;
}
.filters input:focus, .filters select:focus, .form :is(input,select,textarea):focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.plot { overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.plot:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.plot-img { position: relative; aspect-ratio: 16/10; background: var(--alt); }
.plot-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; }
.badge.Available { color: var(--primary); }
.badge.Booked { color: #a46a00; }
.badge.Sold { color: #b42318; }
.tag-featured { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.plot-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plot-meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.plot h3 { font-size: 18px; margin: 2px 0; }
.plot-loc { color: var(--muted); font-size: 14px; }
.plot-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-size: 22px; font-weight: 800; color: var(--primary); }
.rate { font-size: 12px; color: var(--muted); }
.area { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #7c8d99; font-size: 14px;
  background: repeating-linear-gradient(45deg, #e9f1f6 0 12px, #e1ebf2 12px 24px); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--surface); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature .ic { font-size: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(26px, 4vw, 38px); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list a { text-decoration: none; font-weight: 600; }
.form { padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }

.float-wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 30; }

/* Modal */
.modal { border: none; border-radius: 18px; padding: 0; width: min(880px, 100% - 24px); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--text); }
.modal::backdrop { background: rgba(10,20,15,.6); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; font-size: 24px; cursor: pointer; box-shadow: var(--shadow); }
.gallery-main { aspect-ratio: 16/9; background: var(--alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px 24px 0; overflow-x: auto; }
.thumbs img { width: 80px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; flex: none; }
.thumbs img.active { opacity: 1; outline: 2px solid var(--primary); }
.detail { padding: 24px; }
.detail h2 { font-size: 26px; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.spec div { background: var(--alt); border-radius: 10px; padding: 12px 14px; }
.spec small { display: block; color: var(--muted); font-size: 12px; }
.spec strong { font-size: 16px; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0; }
.highlights li { background: var(--tint); color: var(--primary); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.detail-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px;
    background:
      linear-gradient(180deg, rgba(4,28,48,.55), rgba(4,28,48,.82)),
      url("img/hero-dholera-sm.jpg") center / cover no-repeat,
      #0a2a44; }
  .stats { gap: 28px; }
  .filters input { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}

/* ---------- Flash messages ---------- */
.flashes { display: grid; gap: 8px; margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash.success { background: var(--tint); color: var(--primary); }
.flash.error { background: #fdecea; color: #b42318; }

/* ---------- Plot detail page ---------- */
.plot { text-decoration: none; }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--text); }
.detail-page { padding-top: 32px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.detail-page .gallery-main { overflow: hidden; }
.detail-page .thumbs { padding: 10px 0 0; }
.detail-page .detail { padding: 24px 0 0; }
.detail h1 { font-size: clamp(26px, 4vw, 34px); margin-top: 6px; }
.desc { white-space: pre-line; }
.detail-side { position: sticky; top: 92px; display: grid; gap: 20px; }
.side-card { padding: 22px; }
.price.big { font-size: 30px; }
.detail-side .detail-cta { flex-direction: column; }
.side-title { font-size: 16px; margin: 0 0 10px; }
.status-text { font-weight: 600; font-size: 13px; }
.status-text.Available { color: var(--primary); }
.status-text.Booked { color: #a46a00; }
.status-text.Sold { color: #b42318; }

/* ---------- Thanks ---------- */
.narrow { max-width: 460px; }
.narrow-wide { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px; }

/* ---------- Admin ---------- */
.admin .nav-inner form { margin: 0; }
.admin-section { padding-top: 40px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1, .admin-section h1 { font-size: 28px; margin-bottom: 4px; }
.admin-head p { margin: 0; }
.table { overflow: hidden; }
.row { display: grid; grid-template-columns: 72px minmax(0, 2.4fr) 1fr 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row-thumb { width: 72px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--alt); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main, .row-price { display: grid; min-width: 0; }
.row-main span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-price { font-weight: 700; }
.row-price span { font-weight: 400; font-size: 13px; }
.row-actions { display: flex; gap: 8px; }
.tag-mini { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fbf1dc; color: #8a5a00; }
.tag-mini.new { background: var(--tint); color: var(--primary); margin-left: 6px; }
.empty-card { padding: 40px; text-align: center; }

.admin-form { gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form small { font-weight: 400; }
.check-label { display: flex !important; align-items: center; gap: 10px; }
.check-label input { width: auto; }
.label-text { font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-actions { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 13px; }
.form input[type=file] { padding: 10px; background: var(--alt); }
.form-actions { display: flex; gap: 10px; }
.link { background: none; border: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.link.danger, .danger { color: #b42318; }
.btn-danger { background: #b42318; color: #fff; }
.danger-zone { margin-top: 24px; text-align: right; }

.enquiries { display: grid; gap: 14px; }
.enquiry { padding: 18px 20px; display: grid; gap: 6px; }
.enquiry.handled { opacity: .6; }
.enquiry p { margin: 4px 0; white-space: pre-line; }
.enq-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.enq-top strong { margin-right: 10px; }
.enq-top a { text-decoration: none; color: var(--primary); font-weight: 600; }
.enq-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.enq-actions form { margin: 0; }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
}
@media (max-width: 760px) {
  .admin .nav-links.admin-links { display: flex; gap: 14px; font-size: 14px; }
  .admin .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .row { grid-template-columns: 60px minmax(0, 1fr); }
  .row-thumb { width: 60px; height: 46px; }
  .row-price, .row > div:nth-child(4), .row-actions { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Land details table ---------- */
.detail-heading { font-size: 18px; margin: 24px 0 12px; }
.details-table { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.details-table > div { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); }
.details-table > div:last-child { border-bottom: none; }
.details-table dt { padding: 12px 16px; background: var(--alt); color: var(--muted); font-size: 14px; font-weight: 500; }
.details-table dd { margin: 0; padding: 12px 16px; font-weight: 600; }
.details-table .pre { white-space: pre-line; font-weight: 500; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .details-table > div { grid-template-columns: 130px 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}
.zone-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fbf1dc; color: #8a5a00; margin-top: 2px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .brand-logo { height: 36px; }
  .brand-place { font-size: 11px; padding-left: 8px; }
}
