/* Kingdom Real Estate demo, built on the RealtyPA agent website default style.
   Theme tokens follow the RealtyPA tenant theme (primary, secondary, grey..grey-8, font),
   filled with Kingdom's own values read from kingdomrealestate.co.za. */
:root {
  --primary: #111111;
  --secondary: #ed3237;
  --grey: #262b25;
  --grey-2: #65715f;
  --grey-3: #65715f;
  --grey-4: #aeb8a9;
  --grey-5: #e1e1de;
  --grey-6: #e9e8e3;
  --grey-7: #f4f3f0;
  --grey-8: #faf9f6;
  --paper: #fbfaf7;
  --ink: #121517;
  --success: #51a351;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --radius: 6px;
  --nav-h: 96px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(17, 17, 17, 0.12);
}
@media (max-width: 800px) {
  :root { --nav-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey);
  background: var(--paper);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 82%; max-width: 1240px; margin: 0 auto; }
@media (max-width: 800px) { .wrap { width: auto; margin: 0 16px; } }
.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.icon-sm { width: 20px; height: 20px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.04em; }

/* ---------- Buttons and inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #2b2b2b; border-color: #2b2b2b; }
.btn-outline { background: transparent; color: var(--grey); border-color: var(--grey-5); font-weight: 500; }
.btn-outline:hover { background: var(--grey-7); border-color: var(--grey-5); color: var(--ink); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--grey-7); border-color: var(--grey-7); }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 14px; color: var(--grey-3); }
.input, .select, .textarea {
  width: 100%; height: 40px; border: 0; border-radius: var(--radius);
  background: var(--grey-7); color: var(--ink); padding: 0 12px; font-size: 16px;
  outline: none; appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 2px var(--primary) inset; }
.select {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2365715f' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 22px;
}
.textarea { height: 116px; padding: 10px 12px; resize: vertical; }
.phone-row { display: flex; align-items: center; background: var(--grey-7); border-radius: var(--radius); }
.phone-row b { font-weight: 400; padding: 0 4px 0 12px; color: var(--ink); white-space: nowrap; }
.phone-row .input { background: transparent; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--grey-3); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.check b { font-weight: 400; color: var(--ink); }
.demo-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45;
  color: var(--grey-3); background: var(--grey-7); border-radius: var(--radius); padding: 10px 12px;
}
.demo-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); margin-top: 5px; flex: none; }
.form-sent { display: none; }
.form-sent.show { display: flex; }

/* ---------- Navbar (RealtyPA default navbar) ---------- */
.navbar { position: sticky; top: 0; z-index: 30; background: #fff; height: var(--nav-h); border-bottom: 1px solid var(--grey-6); }
.navbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 44px; width: auto; }
.nav-items { display: flex; align-items: center; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--grey); white-space: nowrap; cursor: pointer;
  background: none; border: 0; transition: background-color .15s ease, color .15s ease;
}
.nav-item:hover, .nav-drop:hover > .nav-item, .nav-drop:focus-within > .nav-item { background: var(--grey-7); color: var(--secondary); }
.nav-item.active { color: var(--secondary); }
.nav-item .chev { width: 20px; height: 20px; }
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; left: 0; top: 100%; min-width: 220px; display: none; padding: 8px 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--grey-6);
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: block; }
.nav-menu a { display: flex; align-items: center; height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--grey); }
.nav-menu a:hover { background: var(--grey-7); color: var(--secondary); }
.nav-divider { width: 2px; height: 24px; background: var(--grey-6); margin: 0 10px; }
.nav-social { display: flex; padding: 8px; border-radius: var(--radius); color: var(--grey); }
.nav-social:hover { background: var(--grey-7); color: var(--secondary); }
.nav-cta { margin-left: 10px; height: 40px; padding: 0 16px; font-size: 13px; }
.nav-burger { display: none; background: none; border: 0; padding: 8px; border-radius: 50%; color: var(--grey); }
.nav-burger:hover { background: var(--grey-7); }
@media (max-width: 1240px) {
  .nav-item { padding: 0 10px; }
  .nav-cta { display: none; }
}
@media (max-width: 1000px) {
  .nav-items { display: none; }
  .nav-burger { display: flex; }
  .nav-logo img { height: 36px; }
}
/* Mobile menu overlay (RealtyPA l-menu-overlay) */
.menu-overlay { position: fixed; inset: 0; z-index: 50; background: var(--grey-8); display: none; flex-direction: column; overflow-y: auto; }
.menu-overlay.open { display: flex; }
.menu-head { flex: none; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--grey-6); background: #fff; }
.menu-head img { height: 34px; width: auto; }
.menu-links { display: flex; flex-direction: column; padding: 16px 24px 32px; }
.menu-links a, .menu-links summary { font-size: 22px; font-weight: 500; color: var(--ink); padding: 12px 0; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.menu-links summary::-webkit-details-marker { display: none; }
.menu-links details[open] summary .chev { transform: rotate(180deg); }
.menu-links a.active { color: var(--secondary); }
.menu-sub { display: flex; flex-direction: column; padding: 0 0 8px 16px; border-left: 2px solid var(--grey-6); }
.menu-sub a { font-size: 17px; padding: 8px 0; color: var(--grey-3); }
.menu-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.menu-links .menu-contact .btn { font-size: 16px; height: 48px; padding: 0 20px; justify-content: center; color: #fff; }
.menu-links .menu-contact .btn-outline { color: var(--ink); background: #fff; }
.menu-links { flex: none; }

/* ---------- Stage (hero) ---------- */
.stage { position: relative; height: 720px; background: #1a1a1a center / cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.55) 100%); }
.stage-inner { position: relative; padding: 0 24px 90px; max-width: 980px; }
.eyebrow { font-family: var(--font); display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--secondary); }
.stage h1 { margin-top: 22px; color: #fff; font-family: var(--serif); font-weight: 400; font-size: 84px; line-height: .98; letter-spacing: -0.055em; }
.stage p:not(.eyebrow) { margin: 22px auto 0; max-width: 620px; font-family: var(--serif); font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; color: rgba(255,255,255,.92); }
.stage-small { height: 220px; align-items: flex-end; }
.stage-small::before { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)); }
.stage-small .stage-inner { padding-bottom: 110px; }
.stage-small h1 { font-size: 40px; margin: 0; }
@media (max-width: 800px) {
  .stage { height: 560px; }
  .stage-inner { padding: 0 16px 120px; }
  .stage h1 { font-size: 46px; }
  .stage p:not(.eyebrow) { font-size: 17px; }
  .eyebrow { font-size: 10px; letter-spacing: .18em; }
  .stage-small { height: 190px; }
  .stage-small .stage-inner { padding-bottom: 64px; }
  .stage-small h1 { font-size: 30px; }
}

/* ---------- Search bar (RealtyPA search-bar) ---------- */
.search-hold { position: relative; z-index: 5; margin-top: -86px; }
.stage-small + .search-hold { margin-top: -56px; }
.search-card { width: min(880px, 100%); margin: 0 auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 18px 16px 18px; }
.search-row { display: flex; gap: 16px; align-items: flex-end; }
.search-row + .search-row { margin-top: 14px; }
.search-row .field { flex: 1; }
.search-row .grow-2 { flex: 2.6; }
.search-btn { height: 40px; min-width: 132px; }
.search-more { background: none; border: 0; color: var(--grey-3); font-size: 15px; padding: 0 4px; height: 40px; white-space: nowrap; }
.search-more:hover { color: var(--secondary); }
.more-filters { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-6); }
.more-filters.open { display: block; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; margin-top: 16px; }
@media (max-width: 800px) {
  .search-hold { margin-top: -110px; }
  .stage-small + .search-hold { margin-top: -40px; }
  .search-card { padding: 16px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-btn { width: 100%; }
  .search-more { height: 32px; }
  .more-grid, .check-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.section-sub { text-align: center; margin-top: 12px; color: var(--grey-3); }
.section-band { background: var(--grey-8); }
@media (max-width: 800px) {
  .section { padding-top: 64px; }
  .section-title { font-size: 28px; }
}

/* ---------- Listing card (RealtyPA property card) ---------- */
.card {
  position: relative; display: flex; flex-direction: column; width: 370px; min-height: 553px;
  background: #fff; border: 1px solid var(--grey-6); border-radius: var(--radius); overflow: hidden;
  padding-bottom: 24px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-img { position: relative; height: 265px; overflow: hidden; background: var(--grey-7); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-badges { position: absolute; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.badge { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--radius); font-weight: 600; font-size: 14px; background: #fff; color: var(--ink); }
.ribbon { position: absolute; top: 22px; left: -46px; width: 170px; height: 32px; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; z-index: 2; }
.ribbon-offer { background: var(--primary); }
.ribbon-sold { background: var(--secondary); }
.ribbon-let { background: var(--success); }
.card-price { position: relative; height: 0; }
.card-price span { position: absolute; left: 24px; top: -16px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; }
.card-price small { font-size: 13px; font-weight: 500; margin-left: 4px; opacity: .85; }
.card-body { display: flex; flex-direction: column; padding: 30px 24px 0; flex: 1; }
.card-head { display: flex; justify-content: space-between; gap: 12px; }
.card-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-loc { font-size: 14px; color: var(--grey-3); margin-top: 2px; }
.fav {
  position: relative; z-index: 3; width: 40px; height: 40px; flex: none; margin: -6px -8px 0 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--grey-2); display: flex; align-items: center; justify-content: center;
}
.fav:hover { background: var(--grey-7); }
[data-fav] .on { display: none; }
.fav.is-fav { color: var(--secondary); }
[data-fav].is-fav .on { display: block; }
[data-fav].is-fav .off { display: none; }
.card-feats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 14px; color: var(--grey); }
.card-feats span { display: inline-flex; align-items: center; gap: 5px; }
.card-feats .icon { width: 20px; height: 20px; color: var(--grey-2); }
.card-rule { height: 1px; background: var(--grey-6); margin: 16px 0 12px; }
.card-headline { font-weight: 600; font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { margin-top: 4px; font-size: 14px; color: var(--grey); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.is-sold .card-img img { filter: grayscale(.15); }
.card.is-sold { cursor: default; }
@media (max-width: 500px) {
  .card { width: 100%; min-height: 0; }
  .card-img { height: 230px; }
}

/* ---------- Slider (featured listings, news) ---------- */
.slider-hold { position: relative; margin-top: 40px; }
.slider { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; flex: none; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--grey); display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--grey-7); }
.slider-btn:disabled { color: var(--grey-4); cursor: default; background: transparent; }
.dots { display: flex; gap: 4px; }
.dot { width: 24px; height: 6px; border-radius: 4px; background: var(--grey-6); border: 0; padding: 0; }
.dot.on { background: var(--primary); }
.slider-count { display: none; font-size: 16px; color: var(--grey); min-width: 56px; text-align: center; }
@media (max-width: 800px) {
  .dots { display: none; }
  .slider-count { display: block; }
  .slider { gap: 16px; }
  .slider > .card, .slider > .blog-card { width: calc(100vw - 32px); max-width: 420px; }
}

/* ---------- CTA: Buy, Rent or Sell (RealtyPA cta block) ---------- */
.cta-grid { display: flex; justify-content: center; gap: 16px; margin-top: 48px; }
.cta-card { width: 276px; min-height: 254px; border: 1px solid var(--grey-5); border-radius: var(--radius); background: #fff; padding: 44px 24px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: border-color .15s ease, box-shadow .15s ease; }
.cta-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.cta-card .icon { width: 30px; height: 30px; color: var(--primary); }
.cta-card h3 { margin-top: 26px; font-size: 17px; font-weight: 600; color: var(--ink); }
.cta-card p { margin-top: 14px; font-size: 14px; color: var(--grey-3); }
@media (max-width: 800px) {
  .cta-grid { flex-direction: column; align-items: center; }
  .cta-card { width: 100%; max-width: 420px; min-height: 0; padding: 36px 24px 30px; }
}

/* ---------- About (home) ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.about-line { width: 56px; height: 2px; background: var(--secondary); }
.about h2 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: 52px; letter-spacing: -0.05em; line-height: 1.02; }
.about .about-text { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.6; color: var(--grey-3); }
.about .btn { margin-top: 30px; }
.about-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 4.2; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about h2 { font-size: 38px; }
  .about .about-text { font-size: 16px; }
  .about-img { aspect-ratio: 4 / 3; }
}

/* ---------- Blog cards (RealtyPA blogs) ---------- */
.blog-card { position: relative; width: 370px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-6); border-radius: var(--radius); overflow: hidden; }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-img { height: 265px; background: var(--grey-7); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 14px; color: var(--grey-3); }
.blog-card h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -0.03em; line-height: 1.2; }
.blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-excerpt { position: relative; margin-top: 8px; font-size: 14px; color: var(--grey); max-height: 84px; overflow: hidden; }
.blog-excerpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.blog-more { margin-top: auto; padding-top: 14px; align-self: flex-end; font-size: 14px; font-weight: 600; color: var(--grey-3); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; margin-top: 40px; }
.blog-grid .blog-card { width: auto; }
@media (max-width: 500px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 1152px; margin: 0 auto; }
.faq-title { font-size: 32px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.faq-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; margin-top: 12px; background: var(--secondary); }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--grey-6); border-radius: var(--radius); background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--grey-2); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--grey-3); line-height: 1.6; }

/* ---------- Contact form (RealtyPA contact) ---------- */
.contact-form { width: 100%; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form.left { margin: 0; }
.form-title { text-align: center; font-size: 32px; font-weight: 600; letter-spacing: -0.035em; }
.form-legal { font-size: 14px; color: var(--grey-4); text-align: center; line-height: 1.45; }
.form-legal a { color: var(--ink); text-decoration: underline; }

/* ---------- Footer (RealtyPA default footer, Kingdom dark) ---------- */
.footer { margin-top: 112px; background: var(--primary); color: rgba(255,255,255,.86); }
.footer-disclaimer { max-width: 1050px; margin: 0 auto; padding: 48px 16px 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--grey-4); }
.footer-logos { display: flex; justify-content: center; gap: 48px; margin-top: 36px; }
.footer-logos img { height: 40px; width: auto; opacity: .8; }
.footer-cols { display: grid; grid-template-columns: 1.25fr 1.5fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand img { width: 210px; height: auto; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--grey-4); }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-contact a { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--grey-4); }
.footer-powered { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--grey-4); }
.footer-powered a:hover { color: #fff; }
.footer-powered img { width: 80px; height: auto; }
.demo-mark { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .02em; }
@media (max-width: 960px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Listings page (RealtyPA properties block) ---------- */
.results-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.results-tools .btn-outline { height: 44px; font-size: 16px; color: var(--grey-3); border-color: var(--grey-5); }
.results-tools .btn-outline .icon { color: var(--grey-3); }
.results-count { text-align: center; margin-top: 22px; font-size: 15px; color: var(--grey-3); }
.results-grid { display: grid; grid-template-columns: repeat(3, 370px); justify-content: center; gap: 24px; margin-top: 24px; }
.empty { display: none; text-align: center; padding: 56px 16px; color: var(--grey-3); }
.empty.show { display: block; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
@media (max-width: 1260px) { .results-grid { grid-template-columns: repeat(2, 370px); } }
@media (max-width: 800px) {
  .results-grid { grid-template-columns: minmax(0, 420px); }
  .results-tools { gap: 10px; }
  .results-tools .btn-outline { font-size: 14px; padding: 0 12px; height: 40px; }
}
@media (max-width: 500px) { .results-grid { grid-template-columns: 1fr; } }

/* ---------- Listing detail (RealtyPA property block) ---------- */
.prop-top { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 22px; color: var(--grey-3); font-size: 16px; }
.prop-top a { display: inline-flex; align-items: center; gap: 6px; }
.prop-top a:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 221px 221px; gap: 8px; border-radius: 8px; overflow: hidden; }
.gallery button { position: relative; border: 0; padding: 0; overflow: hidden; background: var(--grey-7); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .g-main { grid-row: 1 / 3; }
.g-more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gallery .ribbon { top: 24px; }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 418px; gap: 0; margin-top: 32px; }
.prop-main { padding-right: 32px; border-right: 1px solid var(--grey-6); }
.prop-side { padding-left: 32px; }
.prop-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.prop-badges .badge { background: var(--grey-7); }
.prop-badges .badge-dark { background: var(--primary); color: #fff; }
.prop-title { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.prop-title .price { color: var(--ink); }
.prop-title .sep { color: var(--secondary); margin: 0 4px; }
.prop-loc { margin-top: 6px; color: var(--grey-3); }
.prop-feats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 16px; }
.prop-feats span { display: inline-flex; align-items: center; gap: 6px; }
.prop-feats .icon { color: var(--grey-2); }
.prop-actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.prop-actions .btn-outline { height: 50px; font-size: 16px; color: var(--grey-3); }
.prop-actions .btn-outline.is-fav { color: var(--secondary); border-color: var(--secondary); }
.prop-headline { margin-top: 34px; font-size: 18px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.prop-desc { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; }
.prop-desc.clamped { max-height: 420px; overflow: hidden; position: relative; }
.prop-desc.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(251,250,247,0), var(--paper)); }
.read-more { margin-top: 10px; background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; color: var(--ink); }
.prop-h { margin-top: 40px; font-size: 18px; font-weight: 600; color: var(--ink); }
.prop-sub { margin-top: 18px; font-size: 14px; color: var(--grey-4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--grey-5); color: var(--grey); }
.share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.share a { height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--grey-4); border-radius: 2px; color: var(--grey-3); font-size: 16px; background: #fff; }
.share a:hover { border-color: var(--primary); color: var(--ink); }
.calc { margin-top: 16px; }
.calc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--grey-6); overflow-x: auto; }
.calc-tab { background: none; border: 0; padding: 12px 12px 10px; font-size: 16px; color: var(--grey-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.calc-tab.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--primary); }
.calc-panel { display: none; padding-top: 24px; }
.calc-panel.on { display: block; }
.calc-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calc-fields .field > span { font-size: 13px; color: var(--grey); }
.calc-out { margin-top: 26px; }
.calc-line { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--grey-6); font-size: 15px; color: var(--grey-3); }
.calc-line.big { font-size: 20px; font-weight: 600; color: var(--ink); }
.calc-line b { font-weight: 600; color: var(--ink); }
.calc-disclaimer { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--grey-4); }
.calc-disclaimer b { color: var(--grey-3); }
.enquiry h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.agent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 24px; }
.agent-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--grey-6); }
.agent-name { margin-top: 6px; font-weight: 600; font-size: 17px; color: var(--ink); }
.agent-role { font-size: 14px; color: var(--grey-3); }
.reveal { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--grey); text-decoration: underline; }
.reveal-box { display: none; font-size: 14px; color: var(--grey-3); flex-direction: column; gap: 2px; }
.reveal-box.show { display: flex; }
.reveal-box a:hover { color: var(--ink); }
.contact-btns { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 36px; }
.contact-btns .btn-outline { height: 48px; color: var(--ink); background: #fff; }
.contact-btns .btn-outline .icon { width: 20px; height: 20px; }
.sticky-side { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 1100px) {
  .prop-grid { grid-template-columns: minmax(0, 1fr); }
  .prop-main { padding-right: 0; border-right: 0; }
  .prop-side { padding-left: 0; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--grey-6); }
  .sticky-side { position: static; }
}
@media (max-width: 800px) {
  .prop-top { padding: 18px 0 14px; font-size: 13px; gap: 12px; }
  .prop-top span { white-space: nowrap; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 110px; margin: 0 -16px; border-radius: 0; }
  .gallery .g-main { grid-row: auto; grid-column: 1 / -1; }
  .gallery .g-hide-m { display: none; }
  .prop-title { font-size: 21px; }
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .prop-actions .btn-outline { height: 44px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }
.lb-close { right: 20px; top: 20px; }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }

/* ---------- About page / team (RealtyPA full-about, agent cards) ---------- */
.page-head { text-align: center; padding: 56px 0 8px; }
.page-head h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; }
.page-head p { margin: 14px auto 0; max-width: 640px; color: var(--grey-3); font-size: 17px; }
.bio { max-width: 920px; margin: 40px auto 0; }
.bio h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -0.045em; line-height: 1.08; }
.bio .lead { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--grey); }
.bio-block { margin-top: 44px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-3); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--secondary); }
.bio-block h3 { margin-top: 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.bio-block p { margin-top: 12px; line-height: 1.65; color: var(--grey); }
.bio-block p.kicker { color: var(--grey-3); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.pillar { background: #fff; border: 1px solid var(--grey-6); border-radius: var(--radius); padding: 24px; }
.pillar h4 { font-size: 17px; }
.pillar p { margin-top: 8px; font-size: 15px; color: var(--grey-3); }
.team-search { margin-top: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 20px; }
.agent-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--grey-6); border-radius: var(--radius); padding: 20px; }
.agent-card .agent-photo { width: 72px; height: 72px; }
.agent-card .agent-name { margin-top: 0; }
@media (max-width: 800px) {
  .page-head { padding-top: 40px; }
  .page-head h1 { font-size: 28px; }
  .bio h2 { font-size: 31px; }
  .bio .lead { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page (RealtyPA full-contact) ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 48px; margin-top: 48px; }
.contact-divider { background: var(--grey-6); }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info h2 { font-size: 20px; font-weight: 600; }
.info-group { display: flex; flex-direction: column; gap: 6px; }
.info-group b { color: var(--ink); }
.info-group a { color: var(--grey); }
.info-group a span { text-decoration: underline; color: var(--grey-3); }
.contact-wrap .form-title { text-align: left; }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-divider { height: 1px; }
}

/* ---------- Sell page ---------- */
.sell-grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; margin-top: 48px; align-items: start; }
.sell-copy h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -0.05em; line-height: 1.05; }
.sell-copy > p:not(.kicker) { margin-top: 16px; font-size: 18px; color: var(--grey-3); line-height: 1.6; }
.steps { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; background: #fff; border: 1px solid var(--grey-6); border-radius: var(--radius); padding: 20px; }
.step em { font-style: normal; grid-row: 1 / 3; font-family: var(--serif); font-size: 30px; color: var(--secondary); line-height: 1; }
.step h4 { font-size: 17px; }
.step p, .bio-block .step p { font-size: 15px; color: var(--grey-3); margin-top: 0; }
.sell-copy > p.sell-tag { margin-top: 14px; font-family: var(--serif); font-size: 19px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.4; }
.sell-card { background: #fff; border: 1px solid var(--grey-6); border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.sell-card .contact-form { max-width: none; }
.seg { display: flex; background: var(--grey-7); border-radius: var(--radius); padding: 4px; gap: 4px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; height: 36px; align-items: center; justify-content: center; border-radius: 4px; font-size: 15px; color: var(--grey-3); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) {
  .sell-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sell-copy h2 { font-size: 34px; }
}
@media (max-width: 500px) { .two { grid-template-columns: 1fr; } .sell-card { padding: 20px 16px; } }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article-meta { font-size: 14px; color: var(--grey-3); margin-top: 40px; }
.article h1 { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 46px; letter-spacing: -0.045em; line-height: 1.08; }
.article-cover { margin-top: 32px; border-radius: 10px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.prose { margin-top: 32px; font-size: 18px; line-height: 1.7; color: var(--grey); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 40px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.prose h3 { margin-top: 32px; font-size: 20px; font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--grey-6); border-radius: var(--radius); background: #fff; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; min-width: 640px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-6); vertical-align: top; }
.prose th { background: var(--grey-7); color: var(--ink); font-weight: 600; }
.article-cta { margin-top: 48px; background: var(--primary); color: #fff; border-radius: 10px; padding: 32px; }
.article-cta h3 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.04em; }
.article-cta p { margin-top: 10px; color: rgba(255,255,255,.8); }
.article-cta .row { margin-top: 20px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.article-cta .row a:not(.btn) { text-decoration: underline; }
@media (max-width: 800px) {
  .article h1 { font-size: 32px; }
  .prose { font-size: 17px; }
}

/* ---------- Calculator page ---------- */
.calc-page { max-width: 920px; margin: 48px auto 0; background: #fff; border: 1px solid var(--grey-6); border-radius: 10px; padding: 28px; }
@media (max-width: 800px) { .calc-page { padding: 20px 16px; } }
