/* =========================================================
   Marketable Titles — Shared Stylesheet
   Classic real-estate aesthetic: warm cream, deep mahogany,
   antique gold, photography-driven layouts.
   ========================================================= */

:root {
  --cream:        #f7f1e6;
  --cream-soft:   #fbf6ec;
  --paper:        #fffdf8;
  --ink:          #2a221c;
  --ink-soft:     #4a3f36;
  --muted:        #7a6c60;
  --line:         #e3d8c4;
  --mahogany:     #5e2b22;
  --mahogany-dk:  #421e17;
  --gold:         #b58a3f;
  --gold-soft:    #d8b977;
  --moss:         #4a5d3a;
  --rust:         #a14a2a;
  --shadow-sm:    0 1px 2px rgba(42, 34, 28, 0.06), 0 2px 6px rgba(42, 34, 28, 0.06);
  --shadow-md:    0 4px 14px rgba(42, 34, 28, 0.10), 0 10px 30px rgba(42, 34, 28, 0.06);
  --radius:       6px;
  --radius-lg:    12px;
  --max:          1180px;
  --serif:        "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--mahogany);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--mahogany-dk); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; color: var(--mahogany-dk); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--mahogany);
  color: var(--cream);
  border-radius: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--mahogany); text-decoration: none; }
.nav-links a.active { color: var(--mahogany); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mahogany);
  color: var(--cream-soft);
  border-color: var(--mahogany);
}
.btn-primary:hover {
  background: var(--mahogany-dk);
  border-color: var(--mahogany-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--mahogany);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--mahogany);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #9b7430;
  border-color: #9b7430;
  color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--cream);
  background-color: #2a221c;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(42, 27, 22, 0.85) 0%,
    rgba(42, 27, 22, 0.55) 55%,
    rgba(42, 27, 22, 0.35) 100%
  );
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 253, 248, 0.9);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-compact {
  min-height: 320px;
}
.hero-compact .container { padding-top: 60px; padding-bottom: 60px; }
.hero-compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 24ch; }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--cream-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark {
  background: linear-gradient(180deg, #2a221c 0%, #1f1813 100%);
  color: var(--cream);
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255, 253, 248, 0.78); }

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- Grids ---------- */

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

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards (generic) ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.card .icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--mahogany);
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Listing Cards ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }

.listing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: var(--ink);
}
.listing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.listing-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #d6c9b0;
  position: relative;
}
.listing-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(42, 27, 22, 0.92);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}
.listing-tag.gold { background: var(--gold); color: #fff; }
.listing-tag.moss { background: var(--moss); color: #fff; }
.listing-tag.rust { background: var(--rust); color: #fff; }

/* Photo-pending placeholder for listings without images yet */
.listing-image.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--cream-soft) 0,
      var(--cream-soft) 18px,
      var(--cream) 18px,
      var(--cream) 36px
    );
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-image .photo-pending {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.85);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.listing-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-loc {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.listing-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 4px;
}
.listing-meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.listing-price {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--mahogany);
  font-weight: 600;
}
.listing-price small {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 2px;
}
.listing-cta { font-size: 0.88rem; color: var(--mahogany); font-weight: 600; }

/* ---------- Filters ---------- */

.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: end;
  margin-bottom: 36px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 1 1 160px;
}
.filter label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.filter select, .filter input {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
}
.filter select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%237a6c60' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 32px;
}
.filter input:focus, .filter select:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
  border-color: var(--gold);
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.step h3 { margin-bottom: 8px; font-size: 1.3rem; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--gold-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Forms ---------- */

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.form-field label .req { color: var(--rust); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: var(--radius);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .hint { font-size: 0.84rem; color: var(--muted); margin: 0; }

/* Checkbox grid (e.g. "documents on hand" multi-select) */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
}
@media (max-width: 620px) {
  .checkbox-group { grid-template-columns: 1fr; }
}
.checkbox-group .checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 4px 2px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-group .checkbox-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 0;
  cursor: pointer;
}
.checkbox-group .checkbox-item span {
  flex: 1 1 auto;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Single inline confirm/agreement checkbox (e.g. authorization) */
.checkbox-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink-soft);
}
.checkbox-confirm input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0 0;
  cursor: pointer;
}
.checkbox-confirm span {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- Tables / Detail ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.detail-hero {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #c4b598;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.facts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.fact-row:last-of-type { border-bottom: none; }
.fact-row dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0;
}
.fact-row dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.facts .price-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.facts .price-block .price {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--mahogany);
  font-weight: 600;
  line-height: 1.1;
}
.facts .price-block .price-label {
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 761px) {
  .stat { border-bottom: none; }
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--mahogany);
  font-weight: 600;
  line-height: 1.1;
}
.stat .label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Callouts ---------- */

.callout {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: rgba(181, 138, 63, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  margin: 24px 0;
}
.callout.warn {
  background: rgba(161, 74, 42, 0.06);
  border-left-color: var(--rust);
}
.callout-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}
.callout.warn .callout-icon { color: var(--rust); }
.callout p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* ---------- CTA strip ---------- */

.cta-strip {
  background: linear-gradient(135deg, var(--mahogany) 0%, var(--mahogany-dk) 100%);
  color: var(--cream);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(216, 185, 119, 0.18), transparent 65%);
  pointer-events: none;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-strip h2 { color: #fff; max-width: 22ch; margin-bottom: 6px; }
.cta-strip p { color: rgba(255, 253, 248, 0.85); margin: 0; max-width: 50ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: #1f1813;
  color: rgba(255, 253, 248, 0.72);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.site-footer a { color: var(--cream); }
.site-footer .grid-4 { gap: 36px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer .footer-brand .brand-mark { background: var(--gold); color: #1f1813; }
.site-footer .footer-brand-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 253, 248, 0.5);
}

/* ---------- Glossary list ---------- */

.glossary { display: grid; grid-template-columns: 1fr; gap: 18px; }
.glossary-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.glossary-item h4 {
  font-family: var(--serif);
  color: var(--mahogany);
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.glossary-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Disclaimer ---------- */

.disclaimer {
  background: var(--cream-soft);
  border: 1px dashed var(--line);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 32px 0 0;
}
.disclaimer strong { color: var(--ink-soft); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; }
.mb-2 { margin-bottom: 24px; }
.mt-4 { margin-top: 48px; }
.mb-4 { margin-bottom: 48px; }
.flex-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }


/* =========================================================
   Marketable Titles v2 — additions to styles.css
   Appended at end of styles.css by install.php.
   ========================================================= */

/* ---------- Flash messages ---------- */

.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.flash-success { background: rgba(74, 93, 58, 0.10); border-color: var(--moss); color: #2f3d24; }
.flash-error   { background: rgba(161, 74, 42, 0.10); border-color: var(--rust);  color: #6d2c14; }
.flash-info    { background: rgba(181, 138, 63, 0.10); border-color: var(--gold); color: #6b4f1f; }

/* ---------- Auth pages ---------- */

.auth-wrap {
  max-width: 460px;
  margin: 56px auto;
}
.auth-wrap h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.auth-wrap .lede {
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.auth-wrap .form { padding: 28px; }
.auth-wrap .form-row { margin-bottom: 14px; }
.auth-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Save / heart button ---------- */

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.save-btn:hover { border-color: var(--gold); color: var(--mahogany); }
.save-btn.saved { background: var(--mahogany); color: var(--cream); border-color: var(--mahogany); }
.save-btn.saved:hover { background: var(--mahogany-dk); color: #fff; }
.save-btn .heart::before { content: "♡"; font-size: 1.1rem; line-height: 1; }
.save-btn.saved .heart::before { content: "♥"; }

/* Save icon inside a listing card (top-right of image) */
.listing-image .save-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255, 253, 248, 0.92);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid var(--line);
}
.listing-image .save-overlay:hover {
  background: #fff;
  color: var(--mahogany);
  transform: scale(1.06);
}
.listing-image .save-overlay.saved {
  background: var(--mahogany);
  color: var(--cream);
  border-color: var(--mahogany);
}

/* ---------- Status badges (listing status) ---------- */

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.status-active    { background: rgba(74,93,58,0.12); color: var(--moss);     border-color: var(--moss); }
.status-pending   { background: rgba(181,138,63,0.14); color: var(--gold);   border-color: var(--gold); }
.status-sold      { background: rgba(94,43,34,0.10); color: var(--mahogany); border-color: var(--mahogany); }
.status-draft     { background: rgba(122,108,96,0.10); color: var(--muted);  border-color: var(--line); }
.status-withdrawn { background: rgba(161,74,42,0.10); color: var(--rust);    border-color: var(--rust); }
.status-new       { background: rgba(181,138,63,0.14); color: var(--gold);   border-color: var(--gold); }
.status-reviewing { background: rgba(74,93,58,0.12); color: var(--moss);     border-color: var(--moss); }
.status-accepted  { background: rgba(74,93,58,0.18); color: #2f3d24;         border-color: var(--moss); }
.status-countered { background: rgba(216,185,119,0.18); color: #6b4f1f;      border-color: var(--gold); }
.status-declined  { background: rgba(161,74,42,0.10); color: var(--rust);    border-color: var(--rust); }
.status-withdrawn { background: rgba(122,108,96,0.10); color: var(--muted);  border-color: var(--line); }

/* ---------- Admin layout ---------- */

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 80px); }
@media (max-width: 760px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  background: #1f1813;
  color: rgba(255,253,248,0.78);
  padding: 28px 22px;
}
.admin-side .brand { color: var(--cream); font-size: 1.15rem; margin-bottom: 26px; }
.admin-side .brand .brand-mark { background: var(--gold); color: #1f1813; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(255,253,248,0.78);
  font-size: 0.94rem;
  font-weight: 500;
}
.admin-side nav a:hover { background: rgba(255,253,248,0.06); color: #fff; text-decoration: none; }
.admin-side nav a.active { background: var(--mahogany); color: #fff; }
.admin-side .admin-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,253,248,0.10);
  font-size: 0.82rem;
  color: rgba(255,253,248,0.55);
}
.admin-side .admin-foot a { color: var(--gold-soft); }

.admin-main { padding: 36px 40px; background: var(--cream-soft); }
@media (max-width: 760px) { .admin-main { padding: 24px; } }

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 18px;
  flex-wrap: wrap;
}
.admin-head h1 { font-size: 1.7rem; margin: 0; }

.admin-table {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.94rem;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  background: var(--cream-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--cream-soft); }
.admin-table td .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .admin-kpis { grid-template-columns: repeat(2, 1fr); } }
.admin-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.admin-kpi .num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--mahogany);
  font-weight: 600;
  line-height: 1.1;
}
.admin-kpi .label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Account page ---------- */

.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.account-tabs a {
  padding: 12px 18px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.account-tabs a:hover { color: var(--mahogany); text-decoration: none; }
.account-tabs a.active { color: var(--mahogany); border-bottom-color: var(--mahogany); }

.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 0;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
}
.pager a:hover { border-color: var(--gold); color: var(--mahogany); }
.pager .current { background: var(--mahogany); color: var(--cream); border-color: var(--mahogany); }
.pager .disabled { color: var(--muted); cursor: not-allowed; }


/* =========================================================
   Marketable Titles v4 — additions
   ========================================================= */

/* Hero with built-in search bar (home page) */
.hero.hero-search { min-height: 540px; }
.hero.hero-search .container { padding-top: 70px; padding-bottom: 70px; }
.hero.hero-search h1 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3rem); }
.hero.hero-search .lede { max-width: 50ch; margin-bottom: 26px; }

.hero-search-bar {
  display: flex;
  gap: 10px;
  background: rgba(255, 253, 248, 0.97);
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 8px 0 18px;
}
.hero-search-bar input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.02rem;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.hero-search-bar input[type="search"]::placeholder { color: var(--muted); }
.hero-search-bar button { flex-shrink: 0; }
@media (max-width: 620px) {
  .hero-search-bar { flex-direction: column; }
  .hero-search-bar button { width: 100%; }
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.92rem;
}
.hero-quick-links a {
  color: rgba(255, 253, 248, 0.85);
  font-weight: 500;
  border-bottom: 1px dashed rgba(216, 185, 119, 0.5);
  padding-bottom: 2px;
}
.hero-quick-links a:hover {
  color: var(--gold-soft);
  border-bottom-style: solid;
  text-decoration: none;
}

/* Leaflet popup theming to match the site */
.leaflet-popup-content { margin: 12px 14px; min-width: 200px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }

/* =========================================================
   Marketable Titles — mobile polish
   ========================================================= */

/* ---- Header: keep nav usable on mobile ---- */
@media (max-width: 760px) {
  .site-header .nav { flex-wrap: wrap; gap: 10px 14px; padding: 14px 0; }
  .nav-links { gap: 12px 16px; flex-wrap: wrap; }
  .nav-links a:not(.btn) { display: inline-flex !important; font-size: 0.86rem; }
  .nav-links .btn-sm { padding: 7px 12px; font-size: 0.8rem; }
  .brand { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .site-header .nav { padding: 12px 0; }
  .nav-links a[href="/about.html"],
  .nav-links a[href="/how-it-works.html"] { display: none !important; }
  .nav-links a { font-size: 0.82rem; }
}

/* ---- Hero ---- */
@media (max-width: 760px) {
  .hero.hero-search { min-height: 460px; }
  .hero.hero-search .container { padding-top: 50px; padding-bottom: 50px; }
  .hero.hero-search h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); max-width: 100%; line-height: 1.15; }
  .hero.hero-search .lede { font-size: 1rem; margin-bottom: 18px; }
  .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; margin-bottom: 12px; }
  .hero-search-bar { padding: 8px; gap: 8px; }
  .hero-search-bar input[type="search"] { font-size: 0.95rem; padding: 10px 12px; }
  .hero-search-bar .btn { padding: 12px 16px; font-size: 0.92rem; }
  .hero-quick-links {
    gap: 14px 20px; font-size: 0.88rem;
    margin-top: 18px;
    background: rgba(31, 24, 19, 0.55);
    padding: 12px 14px; border-radius: 6px;
    backdrop-filter: blur(4px);
  }
  .hero-quick-links a { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
}
@media (max-width: 480px) {
  .hero.hero-search { min-height: 420px; }
  .hero.hero-search h1 { font-size: clamp(1.4rem, 8vw, 1.9rem); }
  .hero.hero-search .lede { font-size: 0.94rem; }
}

/* ---- Sections / spacing ---- */
@media (max-width: 620px) {
  section { padding: 48px 0; }
  section.tight { padding: 32px 0; }
  .container { padding: 0 18px; }
}

/* ---- Stats ---- */
@media (max-width: 760px) {
  .stat { padding: 20px 14px; }
  .stat .num { font-size: 1.7rem; }
  .stat .label { font-size: 0.72rem; letter-spacing: 0.06em; }
}

/* ---- Listing cards ---- */
@media (max-width: 620px) {
  .listing-body { padding: 18px 18px 20px; }
  .listing-title { font-size: 1.05rem; line-height: 1.3; }
  .listing-price { font-size: 1.15rem; }
  .listing-meta { font-size: 0.8rem; gap: 6px 12px; }
  .listing-image { aspect-ratio: 16 / 11; }
}

/* ---- Map ---- */
@media (max-width: 760px) { #mt-map { height: 380px !important; } }
@media (max-width: 480px) { #mt-map { height: 320px !important; } }

/* ---- Section headings ---- */
@media (max-width: 620px) {
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-head p { font-size: 0.98rem; }
}

/* ---- "How it works" cards padding ---- */
@media (max-width: 760px) {
  .card[style*="padding: 36px"] { padding: 26px !important; }
}

/* ---- CTA strip ---- */
@media (max-width: 760px) {
  .cta-strip { padding: 44px 0; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
  .cta-strip h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-strip .flex-actions { width: 100%; }
  .cta-strip .btn { flex: 1 1 auto; text-align: center; }
}

/* ---- Footer ---- */
@media (max-width: 760px) {
  .site-footer { padding: 40px 0 24px; }
  .site-footer .grid-4 { gap: 24px; margin-bottom: 28px; }
  .site-footer h4 { font-size: 0.74rem; margin-bottom: 10px; }
  .site-footer .legal { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.78rem; }
}

/* ---- Marketplace filters bar ---- */
@media (max-width: 620px) {
  .filters { padding: 16px; gap: 12px; }
  .filter { min-width: 100%; flex: 1 1 100%; }
  .filter input, .filter select { font-size: 0.92rem; padding: 9px 11px; }
}

/* ---- Listing detail sidebar ---- */
@media (max-width: 880px) {
  .detail-grid { gap: 24px; }
  .facts { position: static; padding: 22px; }
  .facts .price-block .price { font-size: 1.7rem; }
}

/* ---- Forms ---- */
@media (max-width: 620px) {
  .form { padding: 24px 18px; }
  .auth-wrap { margin: 32px auto; }
  .auth-wrap h1 { font-size: 1.5rem; }
}