/* ============================================================
   MCBADILLO REAL ESTATE — shared stylesheet
   Edit colors and fonts here and every page updates.
   ============================================================ */

/* ---- Design tokens (your brand in one place) ---- */
:root {
  --pine:  #17352C;   /* deep cool pine — headers, nav, footer */
  --moss:  #3E6B58;   /* mid green — buttons and links */
  --moss-dark: #2E5445;
  --sage:  #A7C0B2;   /* soft sage — borders, subtle accents */
  --mist:  #F1F5F2;   /* pale green-white — page background */
  --card:  #FFFFFF;
  --ink:   #23302B;   /* body text */
  --ink-soft: #56655E;

  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Roboto", -apple-system, Segoe UI, sans-serif;

  --radius: 14px;
  --arch: 220px 220px 14px 14px;  /* the doorway-arch shape on photos */
  --shadow: 0 10px 30px rgba(23, 53, 44, 0.08);
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p  { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border: 1.5px solid var(--sage);
}
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(167, 192, 178, 0.4);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pine);
  text-decoration: none;
  font-weight: 600;
}
.brand span { color: var(--moss); }
.nav .brand img { height: 48px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--moss); }

/* The Contact Us pill keeps white text even though it's also a nav link */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active { color: #fff; }
.nav-links a.nav-cta:hover { background: var(--moss-dark); }

/* ---- Dropdown (Areas We Serve) ---- */
.has-dropdown { position: relative; }
.caret { font-size: 0.7rem; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 192, 178, 0.4);
  list-style: none;
  padding: 8px;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
}
.dropdown a:hover { background: var(--mist); }

.nav-cta { padding: 10px 20px; }

/* Mobile menu toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--pine);
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero p.lede {
  font-size: 1.15rem;
  margin: 20px 0 32px;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* The arched "doorway" photo — the site's signature shape */
.arch-photo {
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--sage), var(--moss));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.92rem;
}

/* ---- Sections ---- */
section { padding: 70px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-head p { font-size: 1.05rem; }

/* ---- Card grids ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }

.card-photo {
  aspect-ratio: 16 / 11;
  background: linear-gradient(160deg, #C6D7CC, var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  font-size: 0.8rem;
  opacity: 0.9;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 22px 24px 26px; flex: 1; }

.card-body h3 { margin-bottom: 8px; }
.card-body p  { font-size: 0.95rem; }

.card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--pine);
  margin-bottom: 6px;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--moss);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* Status badge on listings */
.badge {
  display: inline-block;
  background: var(--pine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.badge.sold { background: var(--sage); color: var(--pine); }

/* ---- Split feature (about page, buy/sell) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 700;
}

/* ---- Stats strip ---- */
.stats {
  background: var(--pine);
  border-radius: var(--radius);
  padding: 44px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stats .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
}
.stats .label {
  color: var(--sage);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--pine);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p  { color: var(--sage); margin-bottom: 28px; }
.cta-band .btn-ghost { color: #fff; border-color: var(--sage); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---- Forms (contact page) ---- */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pine);
  margin: 18px 0 6px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--sage);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #FBFDFB;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
  border-color: var(--moss);
}

textarea { resize: vertical; min-height: 130px; }

/* ---- Contact info panel ---- */
.info-panel { padding: 10px 0; }
.info-panel h3 { margin: 22px 0 6px; }
.info-panel a { color: var(--moss); text-decoration: none; font-weight: 600; }
.info-panel a:hover { text-decoration: underline; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 26px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---- Blog article layout ---- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin: 34px 0 12px; }
.article p { margin-bottom: 16px; }

/* ---- Footer ---- */
footer {
  background: var(--pine);
  color: var(--sage);
  margin-top: 70px;
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

footer .brand { color: #fff; font-size: 1.2rem; }
footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: var(--sage); text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(167, 192, 178, 0.25);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Social links (circular icon buttons) ---- */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--sage);
  border: 1.5px solid rgba(167, 192, 178, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { color: #fff; border-color: #fff; }

/* On light backgrounds (e.g. contact page) the pills use green instead */
.info-panel .socials a { color: var(--moss); border-color: var(--sage); }
.info-panel .socials a:hover { color: var(--pine); border-color: var(--moss); }

/* ---- Search filter bar ---- */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 26px;
  margin-bottom: 34px;
}
.filter-bar label { margin-top: 0; }

/* ---- Listing group headings (Marlu's listings vs the rest of the area) ---- */
.listing-group-heading {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
}
.listing-group-heading:not(:first-child) {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--sage);
}
.listing-group-heading h2 {
  font-size: 1.35rem;
  color: var(--pine);
  margin: 0 0 4px;
}
.listing-group-heading p {
  margin: 0;
  font-size: 0.9rem;
  color: #6B7A72;
}

/* Marlu's own listings get a soft outline so they read as ours at a glance */
.listing.is-featured {
  outline: 2px solid var(--moss);
  outline-offset: -2px;
}
.badge-featured {
  background: var(--moss);
  color: #fff;
}

/* ---- Area cards (whole card is a link) ---- */
a.area-card { text-decoration: none; color: inherit; }
a.area-card .card-link { margin-top: 14px; display: inline-block; color: var(--moss); font-weight: 600; font-size: 0.9rem; }

/* ---- Review cards ---- */
.stars {
  color: #E8A93C;           /* warm gold stars */
  letter-spacing: 3px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.review-text {
  font-style: italic;
  font-size: 0.97rem;
}
.reviewer {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss);
}

/* ---- Brokerage logo in footer ----
   The logo is grey on transparent, so it sits on a white chip
   to stay readable against the dark green footer */
.brokerage {
  margin-top: 20px;
}
.brokerage img {
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  max-width: 190px;
  height: auto;
}

/* ---- Areas We Serve page ---- */
.area-list {
  list-style: none;
  margin-top: 18px;
  columns: 2;
  max-width: 420px;
}
.area-list li { margin-bottom: 12px; }
.area-list a {
  color: var(--moss);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding-left: 22px;
  position: relative;
}
.area-list a::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--sage);
}
.area-list a:hover { text-decoration: underline; }

/* Highlighted "not limited to this list" note */
.callout {
  margin-top: 26px;
  background: #EAF2ED;
  border-left: 4px solid var(--moss);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
}
.callout p {
  color: var(--pine);
  font-weight: 500;
  font-size: 1.02rem;
}

.office-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

/* ---- In-page articles (Buyers / Sellers guides) ---- */
.article-section { background: #fff; }
.article-section .article h2 { margin-bottom: 18px; }
.article-section .article h3 { margin: 30px 0 10px; }
.article-section .article p { margin-bottom: 14px; }
.article-section .article ul,
.article-section .article ol { margin: 6px 0 16px 22px; color: var(--ink-soft); }
.article-section .article li { margin-bottom: 10px; }
.article-cta {
  margin-top: 36px;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.article-cta h3 { margin-top: 0 !important; }

/* ---- Phone top bar ---- */
.topbar {
  background: var(--pine);
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar a:hover { color: var(--sage); }

/* ---- Reviews carousel ---- */
.carousel {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.car-viewport {
  overflow: hidden;
  flex: 1;
}
.car-track {
  display: flex;
  transition: transform 0.45s ease;
}
.car-slide {
  flex: 0 0 100%;
  padding: 4px;
  box-sizing: border-box;
}
.car-slide .card.review {
  max-width: 820px;
  margin: 0 auto;
  height: 100%;
}
.car-btn {
  background: #fff;
  border: 1.5px solid var(--sage);
  color: var(--moss);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  align-self: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.car-btn:hover { border-color: var(--moss); color: var(--pine); }
.car-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.car-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--sage);
  cursor: pointer;
  padding: 0;
}
.car-dots button.active { background: var(--moss); }

/* ---- Blog article images ---- */
.blog-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #C6D7CC, var(--sage));
}
.blog-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-inline-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0;
}
.blog-inline-img img { width: 100%; display: block; }

/* ---- Community evaluation cards ---- */
.eval-grid { gap: 22px; }
.eval-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.eval-card h3 { margin-bottom: 12px; }
.eval-card .checklist { margin-top: 0; }
.eval-card .checklist li { font-size: 0.95rem; }
.eval-help {
  background: var(--pine);
}
.eval-help h3 { color: #fff; }
.eval-help p { color: var(--sage); font-size: 0.95rem; }
.eval-help .card-link { color: #fff; margin-top: 14px; }
.eval-help .card-link:hover { color: var(--sage); }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--pine);
  color: var(--sage);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { color: var(--sage); font-size: 0.9rem; margin: 0; max-width: 62ch; }
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn { padding: 10px 22px; font-size: 0.9rem; }
.cookie-banner .btn-ghost { color: #fff; border-color: var(--sage); }
.cookie-banner .btn-ghost:hover { border-color: #fff; color: #fff; }

.footer-legal a { color: var(--sage); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---- Interactive tool promo band ---- */
.tool-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(160deg, var(--pine), var(--moss));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  text-decoration: none;
  flex-wrap: wrap;
  transition: transform 0.2s ease;
}
.tool-promo:hover { transform: translateY(-3px); }
.tool-promo-cta {
  background: #fff;
  color: var(--pine);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Utility ---- */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid, .split, .grid-3, .grid-2, .footer-grid, .form-row, .stats,
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .hero { padding: 50px 0 40px; }
  section { padding: 50px 0; }
  .hero-grid { gap: 36px; }
  .arch-photo { max-width: 380px; margin: 0 auto; }

  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--mist);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--sage);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }

  /* On mobile the dropdown shows as an indented list, always visible */
  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 16px;
    min-width: 0;
  }
  .dropdown a { padding: 6px 0; }
}

@media (max-width: 560px) {
  .car-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SEARCH PAGINATION + RESULT COUNT
   Added for the 24-per-page general MLS listings. Uses the existing
   design tokens so it sits inside the current look rather than beside it.
   ============================================================ */

.results-count {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.page-btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-width: 42px;
  padding: 9px 14px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

/* The page you are on. Not clickable, and visually settled. */
.page-btn.is-current {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* Kept in the layout rather than removed, so the row does not shift
   sideways when you reach the first or last page. */
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */

.property-page { padding: 30px 0 10px; }

/* ---- Photo gallery ---- */
.gallery { margin-bottom: 30px; }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(23, 53, 44, 0.65);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav:hover { background: rgba(23, 53, 44, 0.85); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(23, 53, 44, 0.7);
  color: #fff;
  font-size: 0.82rem;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
}

.gallery-thumb {
  flex: 0 0 104px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--moss); }

/* ---- Header block ---- */
.property-header { margin-bottom: 26px; }
.property-header .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pine);
}
.property-header h1 {
  font-size: 1.5rem;
  margin: 6px 0 4px;
}
.property-location { color: var(--ink-soft); }

.property-keyfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sage);
  font-size: 0.95rem;
}
.property-keyfacts strong { color: var(--pine); }

/* ---- Content sections ---- */
.property-section { margin-top: 34px; }
.property-section h2 {
  font-size: 1.2rem;
  color: var(--pine);
  margin-bottom: 14px;
}

/* Two-column label/value list. Sections with no data are never rendered,
   so there are no empty rows here. */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 30px;
  list-style: none;
}
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(167, 192, 178, 0.4);
}
.detail-list .label { color: var(--ink-soft); }
.detail-list .value { text-align: right; font-weight: 500; }

.room-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.room-table th,
.room-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(167, 192, 178, 0.4);
}
.room-table th { color: var(--ink-soft); font-weight: 500; }

/* ---- Listing agent / brokerage attribution ----
   This is the REAL listing REALTOR and brokerage from DDF. It is styled
   deliberately plainly so it never reads as a Marlu promotion. ---- */
.listing-attribution {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: var(--card);
}
.listing-attribution img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.listing-attribution .agent-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine);
}
.listing-attribution .agent-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.property-status {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .property-header .price { font-size: 1.55rem; }
  .detail-list li { font-size: 0.95rem; }
  .listing-attribution { flex-direction: column; }
}

/* ============================================================
   SHARED BLOG ARTICLE HEADER

   One definition for every Expert Tips article, so the posts stop
   drifting apart. Previously each article carried its own scoped
   copy of this and they disagreed: one green, one white, one with
   no header at all.

   Markup every article uses:

     <header class="article-hero">
       <div class="article">
         <span class="eyebrow">Expert Tips - Category</span>
         <h1>Title</h1>
         <p class="lede">One or two sentence hook</p>
         <p class="byline">Published date - By author</p>
       </div>
     </header>
   ============================================================ */

.article-hero {
  background: linear-gradient(160deg, var(--pine), var(--moss));
  padding: 56px 0 60px;
}

/* Centres the column and gives it a comfortable reading measure.
   The !important guards against the per-article scoped blocks that
   still set their own max-width on .article. */
.article-hero .article {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 0 24px;
}

.article-hero .eyebrow {
  display: block;
  color: var(--cream, #f6f2e9);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.article-hero h1 {
  color: var(--cream, #f6f2e9);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  margin: 10px 0 14px;
}

.article-hero .lede {
  color: rgba(246, 242, 233, 0.92);
  font-size: 1.1rem;
  max-width: 60ch;
}

.article-hero .byline {
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(246, 242, 233, 0.75);
}

.article-hero .byline a {
  color: rgba(246, 242, 233, 0.95);
  text-decoration: underline;
}

/* ---- Pillar 9 / CREA MLS attribution block ----
   Sits above the footer bottom bar on pages that display MLS data. ---- */
.footer-mls-disclaimer {
  border-top: 1px solid rgba(167, 192, 178, 0.25);
  padding: 14px 0;
  margin-bottom: 12px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(246, 242, 233, 0.7);
}
.footer-mls-disclaimer p { margin: 0; }

/* Co-listed badge. Visually distinct from badge-featured so the two listing
   relationships are not confusable at a glance. */
.badge-colisted {
  background: var(--sage);
  color: var(--pine);
  font-weight: 600;
}

/* ============================================================
   BREADCRUMBS
   Visible trail plus BreadcrumbList schema. Sits between the nav
   and the page hero.
   ============================================================ */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 14px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  max-width: var(--maxw);
  margin-inline: auto;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "\203A"; color: var(--sage); }
.breadcrumb a { color: var(--moss); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ============================================================
   ARTICLE AUTHOR BOX
   Appended to each article above the closing CTA.
   ============================================================ */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px 0;
}
.author-photo {
  width: 78px; height: 78px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sage);
}
.author-box h2 { font-size: 1.05rem; color: var(--pine); margin: 0 0 8px; }
.author-box p { font-size: 0.93rem; margin: 0 0 8px; }
.author-links a { color: var(--moss); font-weight: 600; text-decoration: none; }
.author-links a:hover { text-decoration: underline; }
@media (max-width: 640px) { .author-box { flex-direction: column; } }

/* ---- Accessibility: skip to main content ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine, #1f3d33);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---- DDF click-wrap terms modal (CREA DDF Policy and Rules, rule 6(d)) ---- */
.ddf-terms-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 21, .82);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ddf-terms-overlay.show { display: flex; }
.ddf-terms-box {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 30px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ddf-terms-box h2 { margin: 0 0 16px; color: var(--pine, #1f3d33); font-family: 'Montserrat', sans-serif; }
.ddf-terms-body p { font-size: .88rem; line-height: 1.6; color: #3a453e; margin: 0 0 14px; }
.ddf-terms-box .btn { margin-top: 10px; }
