/* Keystone Realty: editorial navy and coral.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F4F6F9;
  --ink: #101828;
  --muted: #536079;
  --line: #E3E8EF;
  --line-strong: #CBD3DF;
  --navy: #13294B;
  --coral: #E8624A;
  --brand: #13294B;
  --brand-hover: #0B1B33;
  --brand-ink: #FFFFFF;
  --brand-text: #13294B;
  --accent: #E8624A;
  --eyebrow: #C94A33;
  --head: "Source Serif 4", Georgia, serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 1220px;
  --gap: 22px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; }
.eyebrow { letter-spacing: .12em; }
.btn { font-weight: 600; }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #D4523B; }
.text-link { font-weight: 600; color: var(--navy); text-underline-offset: 5px; }
.text-btn { border: 0; background: none; padding: 8px 0; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; display: block; }

/* ---------- header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header .wrap { min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo span { display: grid; line-height: 1; }
.logo b { font: 700 1.45rem var(--head); color: var(--navy); }
.logo small { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.nav a { font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; }
.cart-count[hidden] { display: none; }

/* ---------- hero + quick search ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--soft), #fff); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; max-width: 15ch; margin: 14px 0 18px; color: var(--navy); }
.hero h1 em { font-style: italic; color: var(--coral); }
.quick-search { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; margin-top: 32px; padding: 18px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 50px -30px rgba(19,41,75,.45); border: 1px solid var(--line); }
@media (max-width: 860px) { .quick-search { grid-template-columns: 1fr 1fr; } .quick-search .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .quick-search { grid-template-columns: 1fr; } }
.f-field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* ---------- listings ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2, .sec-title, .sub-title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-top: 8px; color: var(--navy); }
.sub-title { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 18px; }
.listing-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }
.listing { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.listing[hidden] { display: none; }
.listing:hover { box-shadow: 0 20px 40px -28px rgba(19,41,75,.5); transform: translateY(-2px); }
.l-link { position: relative; display: block; }
.listing-art { aspect-ratio: 5 / 3; }
.l-deal { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.deal-buy { background: var(--navy); color: #fff; }
.deal-rent { background: var(--coral); color: #fff; }
.prop-info .l-deal { position: static; display: inline-block; }
.l-body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.l-price { font: 700 1.4rem var(--head); color: var(--navy); }
.l-body h3 { font: 600 1.05rem var(--body); }
.l-body h3 a { text-decoration: none; }
.l-body h3 a:hover { text-decoration: underline; }
.l-meta { font-size: .9rem; color: var(--muted); }
.save { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.save svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; }
.save[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral); }
.save-inline[aria-pressed="true"] { border-color: var(--coral); color: var(--coral); }
.save-inline[aria-pressed="true"]::before { content: "♥ "; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 16px; border-radius: var(--radius-lg); background: var(--soft); margin-bottom: 14px; }
.filters .f-field { min-width: 170px; flex: 1; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-weight: 600; margin-bottom: 14px; color: var(--muted); }
.menu-empty { padding: 32px 0; color: var(--muted); }

/* ---------- property page ---------- */
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.prop-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr; } }
.prop-media .listing-art { border-radius: var(--radius-lg); }
.prop-info { display: grid; gap: 12px; }
.prop-info h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.prop-price { font: 700 2rem var(--head); color: var(--coral); }
.prop-info .spec { grid-template-columns: 1fr 1fr; }
.prop-emi { padding-top: 0; }

/* ---------- shortlist comparison (signature) ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding-bottom: 18px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 1.15rem var(--head); background: var(--soft); }
.compare thead a { color: var(--navy); }
.c-loc { display: block; font: 500 .85rem var(--body); color: var(--muted); }
.compare tbody th { color: var(--muted); font-weight: 600; width: 140px; }
.compare tbody tr:first-child td { font: 700 1.2rem var(--head); color: var(--navy); }
.compare-wrap > .btn { margin-left: 18px; }

/* ---------- how, reviews, sell ---------- */
.how { background: var(--soft); }
.how-steps { list-style: none; counter-reset: h; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 24px; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how-steps { grid-template-columns: 1fr; } }
.how-col { grid-template-columns: 1fr 1fr; margin-top: 0; margin-bottom: 24px; }
.how-steps li { counter-increment: h; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.how-steps li::before { content: counter(h); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; }
.how-steps h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; }
.how-steps p { color: var(--muted); }
.quote-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 24px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-grid blockquote { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 26px; border-left: 4px solid var(--coral); background: var(--soft); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.quote-grid p { font: 500 1.15rem/1.45 var(--head); }
.quote-grid footer { font-weight: 600; color: var(--muted); font-size: .9rem; }

/* ---------- inner pages ---------- */
.page-head { background: linear-gradient(180deg, var(--soft), #fff); margin-bottom: 8px; }
.page-head h1 { color: var(--navy); }

/* ---------- CTA + footer ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(44px, 6vw, 80px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { margin-top: 6px; color: #C8D2E3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { background: #0B1B33; color: #C1CADA; --footer-line: rgba(255,255,255,.12); }
.footer .logo b { color: #fff; }
.footer .logo small { color: #9AA6BA; }
.footer h2 { color: var(--coral); opacity: 1; }
.f-about { margin: 14px 0 10px; max-width: 34ch; }
.footer .rera { margin-top: 32px; }
.footer .credit a { color: #fff; }
