/* ==== Settlescan theme — dark-brown brand + full-width hero, centered content ==== */
:root{
  --brand-dark:#2b1a05;   /* deep brown brand */
  --cta:#5a3411;          /* buttons */
  --bg:#ffffff;           /* page background */
  --panel:#ffffff;        /* cards / inputs */
  --ink:#2f2b27;          /* body text */
  --muted:#e9e5df;        /* light borders */

  --content-max: 1120px;  /* centered content width */

  /* control sizing */
  --control-h: 40px;      /* desktop control height */
  --control-h-sm: 36px;   /* mobile control height */
  --fs-base: 16px;
  --fs-sm: 14px;
  --topbar-h: 56px;       /* sticky header height */

  /* slight vertical “optical centering” tweak for header items */
  --header-optical-nudge: -3px; /* raise items ~3px; set to 0 if not needed */

  /* mobile spacing knob (how far the hero drops under the stacked header) */
  --hero-mobile-offset: 140px;   /* <-- bump hero lower on phones */

  /* === EASY KNOBS (you can change these) === */
  --filter-font-size: 16px;   /* desktop/tablet Filter button text */
  --search-font-size: 17px;   /* desktop/tablet search input text */
  --search-border-width: 1px; /* default uniform border thickness */
  --how-card-border-color: #2b1a05;

  /* NEW: split border “height/width” (vertical vs horizontal) if you want */
  --search-border-width-x: var(--search-border-width); /* left/right */
  --search-border-width-y: var(--search-border-width); /* top/bottom */

  /* ==== NEW: Features section typography knobs ==== */
  --feature-header-font-size: 25px; /* titles like “All rentals in one place” */
  --feature-body-font-size: 22px;   /* regular description text in cards */
}

/* Base */
html, body { font-size: var(--fs-base); }
body { background: var(--bg); color: var(--ink); }

/* Footer (brand defaults) */
.footer, .footer--brand { background: var(--brand-dark); color: #fff; border-top: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border: 0; margin: 0; }
.hero-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}
.hero img { width: 100%; height: 420px; object-fit: cover; display:block; }
.hero .headline {
  position: absolute; left: 50%; top: 92px; transform: translateX(-50%);
  font-size: 56px; font-weight: 800; color: #ffffff; letter-spacing: .4px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45); text-align: center; width: 92%;
}

/* =================== Search tray (alt layout, not used on this page) =================== */
.search-bar{
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(43,26,5,0.82);
  color: #fff; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: saturate(115%) blur(1.5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);

  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(110px,140px) minmax(110px,140px) auto;
  gap: 10px;
  padding: 12px;
  width: clamp(320px, 88%, 1000px);
  align-items: end;
}
/* let items shrink so nothing wraps/overlaps */
.search-bar > div { min-width: 0; }
.search-bar label{
  font-size: 12px; color: #e6d6c7; font-weight: 700; margin-bottom: 4px; display:block;
}
.search-bar input, .search-bar select{
  box-sizing: border-box;
  width: 100%; height: var(--control-h); padding: 0 12px;
  border:1px solid var(--muted); border-radius: 10px; outline: none;
  background: var(--panel); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search-bar button{
  height: var(--control-h); padding: 0 16px;
  border-radius: 12px; border:0; background: var(--cta);
  color:#fff; font-weight: 800; cursor: pointer; white-space: nowrap;
}

/* Layout shell */
.ad-rail{
  width: 120px; background: #f7f5f2; border:1px dashed #e2ddd7; color:#7d7167;
  display:flex; align-items:center; justify-content:center; border-radius: 12px;
}
.page-shell{ display:grid; grid-template-columns:120px 1fr 120px; gap:18px; }
.page-shell .content-col{ min-width:0; }

/* Content container */
.container{ max-width: var(--content-max); margin-left:auto; margin-right:auto; padding: 0 16px; }

/* Breadcrumb */
.breadcrumb{ color:#807567; font-size:14px; margin:16px 0; }
.breadcrumb a{ color:inherit; text-decoration:none }

/* Home cards */
.hp-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin:18px auto; }
.hp-card{
  background: var(--panel); border:1px solid var(--muted); border-radius:16px; padding:22px;
  min-height:140px; box-shadow:0 2px 8px rgba(0,0,0,.03); color: var(--ink);
}
.hp-card h3{ margin:0 0 10px; font-size:28px; }
.hp-card p{ margin:0; line-height:1.6; }

/* Results */
.filter-bar{ display:flex; align-items:center; gap:10px; margin:0 0 14px; position: sticky; top: var(--topbar-h); z-index: 95; background: var(--bg); border-bottom:1px solid var(--muted); padding: 10px 16px; }
.filter-bar .btn{ padding:10px 12px; border:1px solid var(--muted); background:#fff; border-radius:10px; cursor:pointer; color:var(--ink); }
.results-count{ text-align:center; color:#7a7066; margin:8px 0 14px; }

.results-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin:0 auto 24px;
}
.result-card{ 
  background:#fff; 
  border:1px solid var(--muted); 
  border-radius:16px; 
  overflow:hidden; 
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  min-height: 400px; /* Make all cards the same height */
  display: flex;
  flex-direction: column;
}
.result-card img{ width:100%; height:180px; object-fit:cover; display:block; }
.result-card .pad{ 
  padding:12px 14px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.result-card h4{ margin:0 0 8px; font-size:22px; color:var(--ink); }
.result-meta{ color:#7a7066; font-size:14px; line-height:1.5; }

/* Result card buttons */
.result-card .d-actions{ 
  display:flex; 
  gap:10px; 
  margin-top:14px; 
}
.result-card .d-actions .btn{ 
  padding:10px 12px !important; 
  border:1px solid #2b1a0e !important; 
  background:#2b1a0e !important; 
  border-radius:10px !important; 
  cursor:pointer; 
  color:#fff !important; 
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:600 !important;
  display:inline-block !important;
  text-align:center !important;
  transition:all 0.2s ease !important;
}
.result-card .d-actions .btn-primary{ 
  background:#2b1a0e !important; 
  color:#fff !important; 
  border-color:#2b1a0e !important; 
}
.result-card .d-actions .btn:hover{ 
  transform:translateY(-1px) !important; 
  box-shadow:0 4px 12px rgba(0,0,0,.15) !important; 
}

/* Push buttons to bottom of card - works with current HTML structure */
.result-card {
  display: flex;
  flex-direction: column;
}
.result-card .pad {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.result-card .d-actions {
  margin-top: auto;
}

/* Target the actual View links in the current rendered HTML */
.result-card .pad a[href*="rentals.ca"],
.result-card .pad a[href*="zumper.com"] {
  margin-top: auto;
  padding: 10px 12px;
  background: #2b1a0e;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: inline-block;
  border: 1px solid #2b1a0e;
  transition: all 0.2s ease;
}
.result-card .pad a[href*="rentals.ca"]:hover,
.result-card .pad a[href*="zumper.com"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Force the buttons to be positioned at the bottom */
.result-card .pad {
  position: relative;
  padding-bottom: 70px; /* Add more space for the buttons */
}
.result-card .pad .result-meta:last-of-type {
  margin-bottom: 20px; /* Add extra space after the last text element */
}
.result-card .pad a[href*="rentals.ca"],
.result-card .pad a[href*="zumper.com"] {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: calc(50% - 18px);
  margin-top: 0;
}
.result-card .pad button {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: calc(50% - 18px);
  margin-top: 0;
  padding: 10px 12px;
  background: #2b1a0e;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #2b1a0e;
  transition: all 0.2s ease;
  cursor: pointer;
}
.result-card .pad button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Filter modal */
.filter-modal-backdrop{ position:fixed; inset:0; background: rgba(0,0,0,.35); display:none; z-index:60; }
.filter-modal{
  position:fixed; right:0; top:0; bottom:0; width:380px; background:var(--bg);
  border-left:1px solid var(--muted); box-shadow:-8px 0 24px rgba(0,0,0,.18);
  padding:18px; overflow:auto; display:none; z-index:61;
}
.filter-modal.open, .filter-modal-backdrop.open{ display:block; }
.filter-section{ border-top:1px solid var(--muted); padding-top:12px; margin-top:12px; }
.filter-actions{ display:flex; gap:8px; position:sticky; bottom:0; background:var(--bg); padding-top:8px; }

/* =================== Responsive =================== */
@media (max-width: 980px) and (min-width: 721px){
  .search-bar{
    grid-template-columns: minmax(220px,1fr) minmax(100px,130px) minmax(100px,130px) auto;
    width: clamp(320px, 92%, 900px);
  }
}

@media (max-width: 1200px){
  .page-shell{ grid-template-columns: 1fr; }
  .ad-rail{ display:none; }
  .hp-grid{ grid-template-columns:1fr; }
  .results-grid{ grid-template-columns: repeat(2,1fr); }
}

/* Mobile: taller hero + lower tray (search-tray variant) */
@media (max-width: 720px){
  .hero img{ height: 460px; }
  .hero .headline{ font-size: 40px; top: 56px; }

  .search-bar{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "loc  loc"
      "beds baths"
      "btn  btn";
    row-gap: 6px;
    width: calc(100% - 28px);
    bottom: 12px;
    padding: 10px;
    background: rgba(43,26,5,0.78);
  }
  .search-bar > div:nth-child(1){ grid-area: loc; }
  .search-bar > div:nth-child(2){ grid-area: beds; }
  .search-bar > div:nth-child(3){ grid-area: baths; }
  .search-bar > div:nth-child(4){ grid-area: btn; }

  .search-bar label{ font-size: 11px; }
  .search-bar input, .search-bar select{
    height: var(--control-h-sm); font-size: var(--fs-sm); padding: 0 10px;
  }
  .search-bar button{ height: var(--control-h-sm); width: 100%; font-size: 15px; }

  .results-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 380px){
  .hero .headline{ top: 50px; font-size: 34px; }
  .search-bar{ bottom: 10px; }
}

/* Results page: allow the split shell to go full-bleed */
.split-shell--fullbleed{ max-width:none; box-sizing:border-box; }

/* === Inter font + base typography === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fs-body: 16px;
  --fs-btn: 14px;
  --fs-input: 14px;
}
html, body{ font-family: var(--font-sans); font-size: var(--fs-body); }
h1, h2, h3, h4, h5, h6, button, input, select, textarea{ font-family: inherit; }

/* Headings */
h1{ font-weight:800; letter-spacing:-0.01em; }
h2{ font-weight:700; letter-spacing:-0.01em; }
h3{ font-weight:700; }

/* ---------- Hero (page-specific) ---------- */
.hero-banner{ position:relative; overflow:hidden; margin-top:0; }
.hero-banner > img{ width:100%; height:44vh; object-fit:cover; display:block; }
.hero-title{
  letter-spacing:-0.005em; position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:clamp(28px,4vw,56px); text-align:center;
  text-shadow:0 1px 2px rgba(0,0,0,.18);
}

/* Home feature sections */
.features-wrap{ padding:28px 16px 56px; max-width:1100px; margin:0 auto; }
.features-title{ text-align:center; margin-bottom:18px; }
.features-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feature{ background:#fff; border:0px solid var(--muted); border-radius:14px; padding:18px; text-align:center; }

/* ==== NEW: features typography using the knobs ==== */
.features-grid .feature h3{ font-size: var(--feature-header-font-size); }
.features-grid .feature p{ font-size: var(--feature-body-font-size); }
.how-card p{ font-size: var(--feature-body-font-size); }

.feature-icon{ width:130px; height:130px; margin:0 auto 10px; display:block; }
.how-card{ margin:28px auto 0; background:#fff; border:5px solid var(--how-card-border-color, var(--muted)); border-radius:16px; padding:20px; max-width:900px; text-align:center; }

/* Responsive tweaks for this page (tablet-ish) — keep only non-header bits */
@media (max-width:900px){
  .features-grid{ grid-template-columns:1fr; }
  .hero-banner > img{ height:36vh; }
}

/* === Mobile: only the hero offset that relies on header height === */
@media (max-width: 720px){
  .hero-banner{ margin-top: var(--hero-mobile-offset); }
}

/* Utility */
.fx-1{ flex:1 1 auto; }
