:root {
  --green: #0f5132;
  --green-2: #146c43;
  --accent: #c9a227;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #1d2a22;
  --muted: #5b6b61;
  --line: #d7ddd6;
  --danger: #b42318;
  --ok: #067647;
  --pending: #8a5a00;
  --wa: #25d366;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
body.urdu {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Noto Naskh Arabic', serif;
  line-height: 2.1;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--green-2); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 780px; }
.sr-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; background: var(--surface);
  padding: 8px 12px; z-index: 10; border-radius: 6px;
}
.skip:focus { top: 8px; }

/* Header */
.site-header { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 5; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; margin-inline-end: auto; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.nav-links a { color: #e8f3ec; text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--accent); }
.lang-btn {
  background: transparent; color: #fff; border: 1px solid #fff; border-radius: 999px;
  padding: 6px 14px; min-height: 40px; cursor: pointer; font: inherit;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }

.banner { background: #fff4cc; color: #5c4400; padding: 8px 16px; text-align: center; font-size: .92rem; }

main { min-height: 70vh; padding-block: 24px 40px; }
main:focus { outline: none; }
.site-footer { background: #0c3a25; color: #cfe3d6; padding: 24px 0; font-size: .92rem; }
.site-footer a { color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; padding: 40px 0 36px; margin-top: -24px; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { color: #e7f2eb; font-size: 1.05rem; max-width: 60ch; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* Buttons */
.btn, .btn-ghost, .btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: #e8f1ec; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #05321a; }
.btn-wa:hover { background: #1fb858; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-top h3 { margin: 0; }
.sector, .meta { color: var(--muted); font-size: .92rem; margin: 0; }
.price { font-size: 1.2rem; font-weight: 700; margin: 4px 0; }
.verify { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 4px; }
.verify .meta { margin: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 4px 0 0; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.link { margin-top: auto; font-weight: 600; }

.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; width: fit-content; }
.badge-ok { background: #d1fadf; color: var(--ok); }
.badge-pending { background: #fef0c7; color: var(--pending); }
.status { font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: #e9edf0; color: #374151; }
.status-available { background: #e3f4ea; color: var(--green); }
.status-on-hold { background: #fff1d6; color: #7a4b00; }
.status-sold { background: #ececec; color: #555; }

.notice { background: #eef5f0; border-inline-start: 4px solid var(--green-2); padding: 10px 14px; border-radius: 6px; font-size: .95rem; }
.warn { background: #fdecea; border-inline-start: 4px solid var(--danger); padding: 10px 14px; border-radius: 6px; margin-top: 16px; }

.steps, .bullets { padding-inline-start: 1.2em; }
.steps.plain { list-style: none; padding-inline-start: 0; }
.steps li, .bullets li { margin-bottom: .5em; }

/* Filters */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; display: grid; gap: 12px; }
.filters .btn-ghost { justify-self: start; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-item input { margin-top: 6px; width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.check-item .block { display: block; color: var(--muted); }
.check-item strong { display: block; }

/* Forms */
.tablist { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 20px 0 0; }
.tab {
  min-height: 44px; padding: 10px 18px; border: 0; background: transparent; font: inherit; font-weight: 600;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
[role="tabpanel"] { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 20px 16px; }

.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field legend { margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.err { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 600; }
.form-error {
  color: var(--danger); background: #fdecea; border: 1px solid #f4c7c3; border-radius: 6px; padding: 10px 12px; margin: 0;
}
.success {
  background: #d1fadf; color: #054f31; border-radius: 8px; padding: 14px 16px; font-weight: 600;
}
input, select, textarea {
  font: inherit; font-size: 16px; min-height: 44px; width: 100%; padding: 8px 12px;
  border: 1px solid #9aa79e; border-radius: 8px; background: #fff; color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { padding: 8px; min-height: 48px; background: #fafcfa; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--danger); }
fieldset[aria-invalid="true"] { outline: 2px solid var(--danger); border-radius: 8px; padding: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 44px; cursor: pointer; }
.check input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: none; margin-top: 4px; accent-color: var(--green); }
.checks { display: grid; gap: 6px; }

/* Tables and facts */
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
  .filters .btn-ghost { justify-self: end; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 64px 0 56px; }
  .nav-links { order: 0; }
}
@media (max-width: 559px) {
  .nav { justify-content: space-between; }
  .nav-links { width: 100%; order: 3; gap: 4px 12px; }
  .lang-btn { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Animated header, footer and hero (CSS only) ---- */
.site-header {
  background: linear-gradient(120deg, #0b4329, var(--green), var(--green-2), var(--green));
  background-size: 300% 300%;
  animation: hdr-drift 14s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(12, 58, 37, .18);
}
@keyframes hdr-drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.brand { position: relative; display: inline-block; }
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(201,162,39,.55) 50%, transparent 65%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0;
  animation: brand-sheen 5s ease-in-out infinite;
}
@keyframes brand-sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.nav-links a { position: relative; border-bottom: 0; padding-bottom: 2px; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 3px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
[dir="rtl"] .nav-links a::after { transform-origin: right center; }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.lang-btn { transition: transform .2s ease, background-color .2s ease; }
.lang-btn:hover { transform: translateY(-1px); }

.hero { animation: fade-up .7s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.site-footer { animation: fade-up .8s ease .15s both; border-top: 3px solid var(--accent); }
.site-footer a { position: relative; text-decoration: none; }
.site-footer a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
[dir="rtl"] .site-footer a::after { transform-origin: right center; }
.site-footer a:hover::after, .site-footer a:focus-visible::after { transform: scaleX(1); }

.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 81, 50, .12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Available land section ---- */
.land { margin-top: 32px; }
.land-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.land-tab {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--surface); color: var(--green); font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.land-tab:hover { transform: translateY(-1px); background: #eef5f0; }
.land-tab[aria-pressed="true"] { background: var(--green); color: #fff; }
.land-media { display: grid; gap: 8px; margin: -16px -16px 12px; }
.land-photo, .land-map {
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block;
  border-radius: var(--radius) var(--radius) 0 0; background: #e9efea; object-fit: cover;
}
.land-map { border-radius: 0; }
.land-media:has(.land-photo) .land-map { border-radius: 0; }
.land-card { padding-top: 0; overflow: hidden; }
#land-grid .notice { margin-top: 0; }

/* ---- Footer news link ---- */
.site-footer a.news-link {
  color: var(--accent); font-weight: 600;
  background: linear-gradient(90deg, var(--accent), #fff3c4, var(--accent)) no-repeat left bottom / 0% 2px;
  background-size: 0% 2px;
  transition: background-size .35s ease;
  animation: news-pulse 2.6s ease-in-out infinite;
}
.site-footer a.news-link::after { display: none; }
.site-footer a.news-link:hover, .site-footer a.news-link:focus-visible { background-size: 100% 2px; }
@keyframes news-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }


/* ---- Footer news ribbon ---- */
.news-ticker { overflow: hidden; border-block: 1px solid rgba(255,255,255,.15); margin: -24px 0 20px; padding: 8px 0; background: rgba(0,0,0,.12); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker-run { display: flex; align-items: center; white-space: nowrap; }
.ticker-run a { color: #fff; text-decoration: none; padding: 0 12px; font-size: .92rem; }
.ticker-run a:hover, .ticker-run a:focus-visible { color: var(--accent); text-decoration: underline; }
.ticker-sep { color: var(--accent); font-size: .7rem; }
.news-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .news-ticker { overflow-x: auto; }
  .ticker-track { animation: none !important; }
}
