/* ==== Settlescan theme — dark-brown brand + full-width hero, centered content ==== */
:root{
  --brand-dark:#1f1f1f;   /* deep brown brand replaced with neutral dark */
  --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 */
  --page-gutter: clamp(12px, 2.6vw, 24px);
  --page-gutter-tight: 12px;

  /* 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: #1f1f1f;

  /* 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); }
html{ overflow-x:hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  min-width:320px;
  overflow-x:hidden;
}
img, svg, video, canvas, iframe{ max-width:100%; }
input, select, textarea, button{ max-width:100%; }
a, button, input, select, textarea{ overflow-wrap:anywhere; }

/* 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: auto;
  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:minmax(0,120px) minmax(0,1fr) minmax(0,120px); gap:18px; }
.page-shell .content-col{ min-width:0; }

/* Content container */
.container{
  width:min(100%, var(--content-max));
  max-width: var(--content-max);
  margin-left:auto;
  margin-right:auto;
  padding: 0 var(--page-gutter);
}

/* 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; flex-wrap:wrap; 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 var(--page-gutter); }
.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);
  /* Uniform card height so action buttons align; reduced by ~10% */
  height: 410px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.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; 
  position:absolute; left:12px; right:12px; bottom:12px; 
  margin-top:0; padding-top:0;
}
.result-card .d-actions .btn{ 
  padding:10px 12px !important; 
  border:1px solid #1f1f1f !important; 
  background:#1f1f1f !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:#1f1f1f !important; 
  color:#fff !important; 
  border-color:#1f1f1f !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;
  padding: 12px 14px;
}
.result-card .d-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

/* Force the buttons to be positioned at the bottom via absolute placement */
.result-card .pad {
  position: relative !important;
  padding-bottom: 76px !important; /* Reserved space for bottom action row */
}
.result-card .pad .result-meta:last-of-type {
  margin-bottom: 20px; /* Space below last text line */
}
.result-card .pad a.btn-primary,
.result-card .pad button { position: static !important; width: auto !important; }
.result-card .d-actions .btn{ flex:1 1 0% !important; }
.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:min(380px, 100vw); max-width:100vw; 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(auto-fit, minmax(min(100%, 240px), 1fr)); }
}

/* Mobile: taller hero + lower tray (search-tray variant) */
@media (max-width: 720px){
  :root{ --page-gutter: var(--page-gutter-tight); }
  .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; }

  .filter-bar{
    align-items:stretch;
    padding-inline: var(--page-gutter-tight);
  }
  .results-grid{ grid-template-columns: 1fr; padding: 0 12px !important; margin: 0 !important; width:100%; box-sizing: border-box; }
  .filter-modal{
    width:100vw;
    border-left:0;
    padding:16px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .filter-actions{ flex-wrap:wrap; }
}

@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:var(--topbar-h) auto 0; /* keep content safely below sticky header */
  text-align:center;
}
.features-title{
  text-align:center;
  margin:0 auto 22px;
  display:inline-block;
  padding:6px 18px;
  border-radius:999px;
  font-size:clamp(26px, 3.2vw, 34px);
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:linear-gradient(90deg, #ffd700 0%, #ffed4e 25%, #fff8dc 100%);
  color:#2a2a2a;
  /* Subtle 3D depth effect */
  box-shadow:
    0 14px 30px rgba(0,0,0,.55),   /* soft ambient shadow */
    0 3px 0 rgba(0,0,0,.35);       /* crisp bottom edge */
}
.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:150px;
  height:150px;
  margin:0 auto 10px;
  display:block;
  transform-origin:center center;
}
/* Slightly enlarge icons 1 and 3 so they visually match icon 2's weight */
.features-grid .feature:nth-child(1) .feature-icon,
.features-grid .feature:nth-child(3) .feature-icon{
  transform:scale(1.12);
}
.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; }

/* Dots under mobile carousel */
.features-dots{
  display:none; /* hidden by default (desktop) */
  justify-content:center;
  gap:6px;
  margin-top:8px;
}
.features-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#d7d1c6;
  border:0;
  padding:0;
  cursor:pointer;
}
.features-dot.is-active{
  width:18px;
  background:#1f1f1f;
}

/* Simple fade animation for mobile carousel */
@keyframes feature-fade-in{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}

/* 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; }

  /* show dots only on mobile */
  .features-dots{ display:flex; }

  /* Mobile-only carousel mode: show one feature at a time */
  .features-grid.carousel-mode{
    position:relative;
  }
  .features-grid.carousel-mode .feature{
    display:none;
  }
  .features-grid.carousel-mode .feature.is-active{
    display:block;
    animation:feature-fade-in .35s ease-out;
  }
}

/* (homepage-specific extra spacing is handled via body.home-root in index.html) */

/* === 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; }

/* ---------- Listing report button in detail modal ---------- */
.detail-modal .report-btn{
  position:absolute;
  top:16px;
  left:16px;
  z-index:110;
  background:#3a3a3a;
  color:#ffffff;
  border:none;
  border-radius:999px;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.detail-modal .report-btn:hover{
  background:#4a4a4a;
}

.detail-modal .report-panel{
  position:absolute;
  top:52px;
  left:16px;
  right:16px;
  max-width:420px;
  background:#ffffff;
  border:1px solid #e53e3e;
  border-radius:8px;
  padding:10px 12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  z-index:105;
  display:none;
}
.detail-modal .report-panel.open{
  display:block;
}
.report-label{
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
}
.report-text{
  width:100%;
  min-height:80px;
  resize:vertical;
  border:1px solid #ddd;
  border-radius:6px;
  padding:6px 8px;
  font-size:14px;
  box-sizing:border-box;
}
.report-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}
.report-submit{
  background:#c53030 !important;
  border-color:#c53030 !important;
  color:#fff !important;
}
.report-status{
  font-size:12px;
  color:#4a5568;
}
.report-status.is-error{
  color:#e53e3e;
}
.report-status.is-success{
  color:#2f855a;
}

@media (max-width: 600px){
  .detail-modal .report-panel{
    left:10px;
    right:10px;
    top:56px;
  }
  .detail-modal .report-btn{
    top:12px;
    left:12px;
  }
}
