/*
Theme Name: Landapalooza
Theme URI: https://landapaloozas.com
Author: ArcLand Media
Description: Custom theme for the Landapalooza owner-financed land platform. Works with the Landapalooza data plugin. Single property template built first.
Version: 0.2.0
Requires PHP: 7.4
Text Domain: landapalooza
*/

:root {
  --blue: #2271b1;
  --blue-dark: #1a5a8f;
  --blue-darker: #134870;
  --blue-soft: #e8f1f8;
  --blue-tint: #f4f8fb;
  --ink: #1a2332;
  --ink-soft: #2d3a4d;
  --text: #4a5568;
  --muted: #718096;
  --light: #a0aec0;
  --line: #e5e9ee;
  --line-soft: #f0f3f6;
  --paper: #ffffff;
  --bg: #ffffff;
  --ok: #10b981;
  --star: #f5a623;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit; font-weight: 600; font-size: 0.94rem;
  padding: 10px 22px; border-radius: 6px; border: 1px solid var(--blue);
  background: transparent; color: var(--blue); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-primary { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); color: var(--paper); border-color: var(--blue-dark); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: flex-start; gap: 36px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }

/* ---------- Footer ---------- */
footer { background: #14202d; color: #b8c3d1; padding: 64px 28px 28px; }
.foot-inner { max-width: 1240px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand .logo img { height: 48px; filter: brightness(0) invert(1); }
.foot-brand p { font-size: 0.94rem; margin: 16px 0 22px; max-width: 36ch; color: #94a3b8; line-height: 1.6; }
.foot-col h4 { color: var(--paper); font-size: 0.92rem; font-weight: 700; margin-bottom: 18px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: #94a3b8; font-size: 0.92rem; }
.foot-col a:hover { color: var(--paper); }
.foot-contact { font-size: 0.9rem; line-height: 1.7; color: #94a3b8; }
.foot-contact a { color: #94a3b8; }
.foot-bot { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; color: #6b7889; flex-wrap: wrap; gap: 14px; }
.foot-bot a { color: #6b7889; margin-left: 18px; }

/* =========================================================
   SINGLE PROPERTY (PDP)
   ========================================================= */
.pdp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* Breadcrumb */
.pdp-crumb { font-size: 0.85rem; color: var(--muted); padding: 18px 0; }
.pdp-crumb a { color: var(--muted); }
.pdp-crumb a:hover { color: var(--blue); }
.pdp-crumb span { color: var(--ink-soft); }

/* Title row */
.pdp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.pdp-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.pdp-loc { color: var(--muted); font-size: 0.98rem; display: flex; align-items: center; gap: 7px; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-badge { font-size: 0.74rem; font-weight: 600; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--blue); color: var(--paper); }
.pdp-badge.alt { background: var(--star); }
.pdp-badge.sold { background: var(--ink); }

/* Gallery */
.pdp-gallery { margin-bottom: 32px; }
.pdp-main-img { position: relative; aspect-ratio: 16/9; background: #cbd5dc; border-radius: 12px; overflow: hidden; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp-thumb { width: 88px; height: 64px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #cbd5dc; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--blue); }

/* Two-column body */
.pdp-grid { display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding-bottom: 80px; align-items: start; }
.pdp-main { min-width: 0; }

/* Quick facts */
.pdp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.pdp-fact { border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; text-align: center; }
.pdp-fact .lbl { font-size: 0.74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pdp-fact .val { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

/* Section blocks */
.pdp-block { margin-bottom: 36px; }
.pdp-block h2 { font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 16px; }
.pdp-desc { color: var(--text); font-size: 1rem; line-height: 1.75; }
.pdp-desc p { margin-bottom: 14px; }

/* Land features */
.pdp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.pdp-feat { display: flex; align-items: center; gap: 9px; font-size: 0.94rem; color: var(--ink-soft); }
.pdp-feat .chk { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }

/* Additional features table */
.pdp-addl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pdp-addl .row { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem; }
.pdp-addl .row:last-child { border-bottom: 0; }
.pdp-addl .k { color: var(--muted); font-weight: 600; }
.pdp-addl .v { color: var(--ink); }

/* Map */
.pdp-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.pdp-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Attachments / video */
.pdp-files { display: flex; flex-direction: column; gap: 10px; }
.pdp-file { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.94rem; font-weight: 600; color: var(--ink-soft); }
.pdp-video iframe, .pdp-video video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 0; }
.pdp-disclaimer { font-size: 0.84rem; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Sidebar ---------- */
.pdp-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

/* Financing card — the conversion hook */
.fin-card { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--paper); border-radius: 14px; padding: 26px 24px; }
.fin-card .price { font-weight: 800; font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1; }
.fin-card .price small { font-size: 0.9rem; font-weight: 600; opacity: 0.85; }
.fin-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 18px; }
.fin-term { background: rgba(255,255,255,0.12); border-radius: 9px; padding: 13px 14px; }
.fin-term .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.82; font-weight: 600; margin-bottom: 4px; }
.fin-term .val { font-size: 1.2rem; font-weight: 800; }
.fin-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; background: rgba(255,255,255,0.15); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.fin-card .btn-white { background: var(--paper); color: var(--blue); border-color: var(--paper); width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }
.fin-card .btn-white:hover { background: var(--blue-soft); }

/* Seller card */
.seller-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.seller-card .who { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.seller-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-card .name { font-weight: 700; color: var(--ink); }
.seller-card .role { font-size: 0.84rem; color: var(--muted); }

/* Inquiry form */
.inq-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.inq-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.inq-field { margin-bottom: 11px; }
.inq-field input, .inq-field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; font-size: 0.94rem; color: var(--ink); }
.inq-field input:focus, .inq-field textarea:focus { outline: none; border-color: var(--blue); }
.inq-field textarea { resize: vertical; min-height: 92px; }
.inq-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; text-align: center; }
.inq-ok { background: var(--blue-soft); color: var(--blue-darker); border-radius: 8px; padding: 14px; font-size: 0.92rem; text-align: center; }
.inq-flash { border-radius: 8px; padding: 14px; font-size: 0.92rem; text-align: center; margin-bottom: 14px; }
.inq-flash.inq-error { background: #fde8e8; color: #9b2c2c; }
.inq-flash.inq-ok { background: var(--blue-soft); color: var(--blue-darker); margin-bottom: 0; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-side { position: static; }
  .pdp-facts { grid-template-columns: repeat(2, 1fr); }
  .pdp-feats { grid-template-columns: repeat(2, 1fr); }
  .pdp-thumb { width: 70px; height: 52px; }
  .nav-links { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .pdp-facts, .pdp-feats { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}

/* =========================================================
   PAYMENT CALCULATOR (ported from LM365)
   ========================================================= */
.calc-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.calc-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.calc-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.calc-badge { border-radius: 9px; padding: 11px 14px; margin-bottom: 14px; font-size: 0.84rem; line-height: 1.4; }
.calc-badge strong { display: block; margin-bottom: 2px; }
.calc-badge.premium { background: #fff7e6; color: #92600a; border: 1px solid #fde8c0; }
.calc-badge.builder { background: var(--blue-soft); color: var(--blue-darker); border: 1px solid #cfe2f1; }
.calc-slider-wrap { margin-bottom: 18px; }
.calc-slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc-dp { font-size: 1.5rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.calc-dp-pct { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 999px;
  background: linear-gradient(to right, var(--blue) 10%, var(--blue-soft) 10%); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--blue); cursor: pointer; }
.calc-slider-ends { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--light); margin-top: 6px; }
.calc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-opt { text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 14px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.calc-opt:hover { border-color: var(--blue); }
.calc-opt.active { border-color: var(--blue); background: var(--blue-tint); }
.calc-opt-name { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.calc-save { display: inline-block; background: var(--ok); color: #fff; font-size: 0.62rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; letter-spacing: 0; text-transform: none; }
.calc-opt-monthly { font-size: 1.45rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; line-height: 1; }
.calc-opt-monthly small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.calc-opt-meta { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }
.calc-selected { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; background: var(--blue-tint); border-radius: 10px; margin-bottom: 14px; }
.calc-selected .lbl { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.calc-selected .val { font-size: 1.15rem; font-weight: 800; color: var(--ink); }

/* =========================================================
   LISTINGS ARCHIVE (grid + sidebar filters)
   ========================================================= */
.archive-wrap { max-width: 1240px; margin: 0 auto; padding: 28px; }
.archive-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.archive-head h1 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); letter-spacing: -0.02em; }
.archive-tools { display: flex; align-items: center; gap: 16px; }
.archive-count { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.archive-sort { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 0.9rem; color: var(--ink); background: var(--paper); cursor: pointer; }

.archive-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }

/* Sidebar */
.lp-filters { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.lp-filter-grp { margin-bottom: 18px; }
.lp-filter-grp > label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.lp-filter-grp select, .lp-filter-grp input[type=number] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; font-size: 0.92rem; color: var(--ink); background: var(--paper); }
.lp-filter-grp select:focus, .lp-filter-grp input:focus { outline: none; border-color: var(--blue); }
.lp-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-feat-list { display: flex; flex-direction: column; gap: 9px; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.lp-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.lp-check input { accent-color: var(--blue); width: 16px; height: 16px; }
.lp-reset { display: block; text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.lp-reset:hover { color: var(--blue); }

/* Card grid (from mockup) */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(26,35,50,0.25); border-color: var(--blue); }
.card-img-wrap { position: relative; aspect-ratio: 16/10; background: #cbd5dc; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: var(--paper); font-size: 0.72rem; font-weight: 600; padding: 5px 11px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; z-index: 2; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-county { font-size: 0.84rem; color: var(--muted); margin-bottom: 6px; }
.card h3 { font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.3; margin-bottom: 14px; letter-spacing: -0.01em; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue); }
.card-meta { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.card-meta .lbl { color: var(--muted); font-size: 0.72rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.card-meta .val { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { font-weight: 800; font-size: 1.45rem; color: var(--blue); letter-spacing: -0.015em; }
.card-link { color: var(--blue); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--blue-dark); }

.listings-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.lp-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.lp-pagination .page-numbers { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.lp-pagination .page-numbers.current { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.lp-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 980px) {
  .archive-grid { grid-template-columns: 1fr; }
  .lp-filters { position: static; }
  .listings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .listings { grid-template-columns: 1fr; }
}

/* =========================================================
   RICH DETAIL SECTIONS (Gateway-style)
   ========================================================= */
.pdp-section { border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; }
.pdp-section h2 { font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--blue-soft); display: flex; align-items: center; gap: 9px; }
.pdp-sec-ico { font-size: 1.05rem; }
.pdp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.pdp-detail.full { grid-column: 1 / -1; }
.pdp-detail .k { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 5px; }
.pdp-detail .v { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.5; }
.pdp-detail .v a { font-weight: 600; }
@media (max-width: 560px) { .pdp-detail-grid { grid-template-columns: 1fr; } }

/* =========================================================
   LISTINGS — Gateway-style top bar + cards
   ========================================================= */
.listings-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }

.listbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.listbar-title { font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.listbar-title span { font-weight: 500; font-size: 0.85rem; color: var(--muted); margin-left: 6px; }
.listbar-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.listbar-form input, .listbar-form select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; font-size: 0.88rem; color: var(--ink); background: var(--paper); height: 40px; }
.listbar-form input:focus, .listbar-form select:focus { outline: none; border-color: var(--blue); }
.lb-search { min-width: 220px; flex: 1; }
.lb-num { width: 100px; }
.lb-go { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; cursor: pointer; }
.lb-go:hover { background: var(--blue-dark); }
.lb-reset { font-size: 0.85rem; color: var(--muted); padding: 0 6px; }
.lb-reset:hover { color: var(--blue); }

.glistings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gcard { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(26,35,50,0.25); border-color: var(--blue); }
.gcard-img { position: relative; aspect-ratio: 4/3; background: #cbd5dc; overflow: hidden; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gcard:hover .gcard-img img { transform: scale(1.04); }
.gcard-badge { position: absolute; top: 11px; left: 11px; z-index: 2; background: var(--ok); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 5px 10px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.gcard-badge.alt { background: var(--blue); }
.gcard-acre { position: absolute; bottom: 11px; right: 11px; z-index: 2; background: rgba(20,32,45,0.82); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: 5px; }
.gcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gcard-loc { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.gcard-loc:hover { color: var(--blue-dark); }
.gcard-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; display: block; }
.gcard-title:hover { color: var(--blue); }
.gcard-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--muted); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.gcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.gcard-price { font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.015em; }
.gcard-btn { border: 1px solid var(--blue); color: var(--blue); font-weight: 600; font-size: 0.82rem; padding: 8px 16px; border-radius: 7px; }
.gcard-btn:hover { background: var(--blue); color: #fff; }

.listings-empty { padding: 70px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

@media (max-width: 1100px) { .glistings { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .glistings { grid-template-columns: repeat(2, 1fr); } .lb-num { width: 84px; } }
@media (max-width: 520px)  { .glistings { grid-template-columns: 1fr; } }

/* =========================================================
   STAT TILES (LandListingsPro style)
   ========================================================= */
.pdp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pstat { background: var(--blue-tint); border: 1px solid var(--line); border-radius: 12px; padding: 18px 14px; text-align: center; }
.pstat .num { font-weight: 800; font-size: 1.5rem; color: var(--blue); letter-spacing: -0.02em; line-height: 1.05; }
.pstat .lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .pdp-stats { grid-template-columns: repeat(2, 1fr); } .pstat .num { font-size: 1.3rem; } }

/* =========================================================
   FULL-WIDTH header + search bar
   ========================================================= */
.nav-inner { max-width: none; padding-left: 32px; padding-right: 32px; }
.listings-wrap { max-width: none; padding-left: 32px; padding-right: 32px; }
.listbar { padding-left: 0; padding-right: 0; }

/* =========================================================
   HOMEPAGE
   ========================================================= */
.section-inner { max-width: 1320px; margin: 0 auto; padding: 64px 32px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); letter-spacing: -0.02em; }
.section-head .sub { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center;
  background-color: #2c4d3a;
  background-image: linear-gradient(180deg, rgba(20,32,26,0.55) 0%, rgba(20,32,26,0.45) 50%, rgba(20,32,26,0.65) 100%), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&h=1080&fit=crop');
  background-size: cover; background-position: center; color: var(--paper); text-align: center; padding: 80px 28px; }
.hero-inner { max-width: 820px; width: 100%; }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.94; max-width: 620px; margin: 0 auto 34px; line-height: 1.5; }

.search-card { background: var(--paper); border-radius: 16px; padding: 22px; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.5); max-width: 760px; margin: 0 auto; }
.search-card .title { color: var(--ink); font-weight: 700; font-size: 0.95rem; text-align: left; margin-bottom: 14px; }
.search-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 150px; text-align: left; }
.search-field label { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.search-field select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); }
.search-field select:focus { outline: none; border-color: var(--blue); }
.search-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; padding: 13px 24px; border-radius: 9px; font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap; }
.search-btn:hover { background: var(--blue-dark); }

/* Featured */
.featured { background: var(--blue-tint); }
.view-all { text-align: center; margin-top: 44px; }

/* Stats strip */
.stats { background: var(--ink); }
.stats-inner { max-width: 1100px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat .n { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--paper); letter-spacing: -0.02em; }
.stats .stat .lbl { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 6px; }

/* Browse by state */
.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.state { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; transition: all 0.2s ease; }
.state:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(26,35,50,0.25); }
.state .name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.state .ct { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.state-arrow { color: var(--blue); font-size: 1.2rem; font-weight: 700; }

/* Why */
.why { background: var(--blue-tint); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; text-align: center; }
.feat-ico { font-size: 2.2rem; margin-bottom: 14px; }
.feat h3 { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.feat p { color: var(--ink-soft); line-height: 1.6; font-size: 0.96rem; }

/* CTA */
.cta { background: var(--blue); color: #fff; }
.cta-inner { max-width: 760px; margin: 0 auto; padding: 70px 32px; text-align: center; }
.cta h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { opacity: 0.92; font-size: 1.08rem; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons used on homepage */
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-white { background: #fff; color: var(--blue); border: 0; }
.btn-white:hover { background: #f0f4f8; }
.btn-ghost-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .nav-inner, .listings-wrap { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 520px) { .states-grid { grid-template-columns: 1fr; } }

/* =========================================================
   STATIC PAGES (page band + content)
   ========================================================= */
.page-band { background: var(--blue-tint); border-bottom: 1px solid var(--line); }
.page-band-inner { max-width: 1100px; margin: 0 auto; padding: 52px 32px; }
.page-band-inner h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; }
.page-band-inner p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.page-body { max-width: 820px; margin: 0 auto; padding: 48px 32px 80px; }
.page-content { color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; }
.page-content h2 { font-weight: 700; color: var(--ink); margin: 28px 0 12px; font-size: 1.4rem; }
.page-content h3 { font-weight: 700; color: var(--ink); margin: 22px 0 10px; font-size: 1.15rem; }
.page-content p { margin-bottom: 16px; }
.page-content a { color: var(--blue); font-weight: 600; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 8px; }

/* Contact */
.contact-wrap { max-width: 1100px; margin: 0 auto; padding: 52px 32px 80px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h3 { font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: 18px; }
.contact-intro { color: var(--ink-soft); line-height: 1.7; margin-bottom: 24px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); line-height: 1.5; }
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--blue); }
.ci-ico { font-size: 1.1rem; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 0.96rem; color: var(--ink); background: var(--paper); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form button { align-self: flex-start; }
.form-flash { padding: 13px 16px; border-radius: 9px; margin-bottom: 18px; font-size: 0.95rem; font-weight: 500; }
.form-flash.ok { background: #e7f7ef; color: #0a7d4f; border: 1px solid #b7e6cd; }
.form-flash.err { background: #fdecec; color: #b3261e; border: 1px solid #f3c4c1; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; padding: 48px 32px 80px; }
.faq-intro { color: var(--ink-soft); line-height: 1.7; margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { color: var(--blue); font-weight: 700; font-size: 1.3rem; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.65; }

/* Agents */
.agents-wrap { max-width: 1240px; margin: 0 auto; padding: 52px 32px 80px; }
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: all 0.2s ease; }
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(26,35,50,0.25); border-color: var(--blue); }
.agent-photo { aspect-ratio: 1/1; background: var(--blue-tint); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.agent-initial { font-size: 3rem; font-weight: 800; color: var(--blue); opacity: 0.5; }
.agent-body { padding: 18px 20px 20px; }
.agent-name { font-weight: 700; font-size: 1.1rem; color: var(--ink); display: block; }
.agent-name:hover { color: var(--blue); }
.agent-pos { color: var(--muted); font-size: 0.86rem; margin-top: 3px; }
.agent-contact { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.agent-contact a { color: var(--blue); font-size: 0.88rem; font-weight: 500; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .cf-row { grid-template-columns: 1fr; } .agents-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PROPERTY LOCATION — Map View / 3D Parcel View toggle
   ========================================================= */
.loc-tabs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.loc-radio { position: absolute; opacity: 0; pointer-events: none; }
.loc-tabnav { display: flex; border-bottom: 1px solid var(--line); background: var(--blue-tint); }
.loc-tablabel { flex: 1; text-align: center; padding: 14px 16px; font-weight: 600; font-size: 0.92rem; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.15s ease; }
.loc-tablabel:hover { color: var(--blue); }
#loctab-map:checked ~ .loc-tabnav .lt-map,
#loctab-3d:checked ~ .loc-tabnav .lt-3d { background: var(--paper); color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.loc-panel { display: none; }
.loc-panel iframe { width: 100%; height: 460px; border: 0; display: block; }
#loctab-map:checked ~ .lp-map { display: block; }
#loctab-3d:checked ~ .lp-3d { display: block; }

/* Card "Listed by" seller line */
.gcard-seller { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; margin-top: -4px; }
.gcard-seller strong { color: var(--ink-soft); font-weight: 600; }

/* =========================================================
   LIST YOUR LAND — submission form + login gate
   ========================================================= */
.submit-wrap { max-width: 900px; margin: 0 auto; padding: 48px 32px 80px; }
.submit-gate { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 56px 32px; }
.submit-gate h2 { font-weight: 800; font-size: 1.6rem; color: var(--ink); margin-bottom: 10px; }
.submit-gate p { color: var(--muted); margin-bottom: 24px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.submit-form { display: flex; flex-direction: column; gap: 28px; }
.sf-section { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.sf-section h3 { font-weight: 700; font-size: 1.15rem; color: var(--ink); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--blue-soft); }
.profile-avatar-row { display: flex; align-items: flex-start; gap: 24px; }
.profile-avatar-preview { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--blue-tint); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-actions { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-outline-sm { display: inline-block; padding: 8px 16px; border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background .12s; }
.btn-outline-sm:hover { background: var(--blue-tint); }
.profile-avatar-remove { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.profile-avatar-remove input { accent-color: #c0392b; }
.profile-avatar-hint { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.profile-avatar-filename { font-size: 0.88rem; padding: 8px 12px; border-radius: 6px; line-height: 1.4; }
.profile-avatar-filename.is-ok { background: #e7f7ef; color: #0a7d4f; border: 1px solid #c5e8d5; }
.profile-avatar-filename.is-error { background: #fde8e8; color: #9b2c2c; border: 1px solid #f5c5c5; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.sf-grid label { display: flex; flex-direction: column; gap: 6px; }
.sf-grid label.full { grid-column: 1 / -1; }
.sf-grid label span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.sf-grid label span em { color: #d33; font-style: normal; }
.sf-grid input, .sf-grid textarea, .sf-grid select { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 0.94rem; color: var(--ink); background: var(--paper); width: 100%; }
.sf-grid input:focus, .sf-grid textarea:focus, .sf-grid select:focus { outline: none; border-color: var(--blue); }
.sf-grid input[type=file] { padding: 9px; background: var(--blue-tint); }
.sf-note { color: var(--muted); font-size: 0.9rem; }
.submit-form > button { align-self: flex-start; }
@media (max-width: 600px) { .sf-grid { grid-template-columns: 1fr; } }

/* =========================================================
   ACCOUNT — branded login / register
   ========================================================= */
.account-wrap { max-width: 480px; margin: 0 auto; padding: 48px 24px 80px; }
.account-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.account-loggedin { padding: 40px 32px; text-align: center; }
.account-loggedin h2 { font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.account-loggedin p { color: var(--muted); margin-bottom: 22px; }
.acc-radio { position: absolute; opacity: 0; pointer-events: none; }
.acc-tabnav { display: flex; border-bottom: 1px solid var(--line); }
.acc-tablabel { flex: 1; text-align: center; padding: 16px; font-weight: 700; font-size: 0.95rem; color: var(--muted); cursor: pointer; transition: all 0.15s ease; }
.acc-tablabel:hover { color: var(--blue); }
#acc-login:checked ~ .acc-tabnav .at-login,
#acc-register:checked ~ .acc-tabnav .at-register { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); background: var(--blue-tint); }
.acc-panel { display: none; padding: 32px; }
#acc-login:checked ~ .ap-login { display: block; }
#acc-register:checked ~ .ap-register { display: block; }
.acc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.acc-field span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.acc-field input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); }
.acc-field input:focus { outline: none; border-color: var(--blue); }
.acc-remember { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.acc-lost { display: block; text-align: center; margin-top: 14px; font-size: 0.87rem; color: var(--muted); }
.acc-lost:hover { color: var(--blue); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   SELLER DASHBOARD
   ========================================================= */
.dash-wrap { width: 100%; max-width: 100%; margin: 0; padding: 40px 32px 80px; box-sizing: border-box; }
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.dash-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; position: sticky; top: 92px; }
/* Collapse sidebar to stack on top whenever the side-by-side layout would be cramped */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .dash-side { position: static; top: auto; }
  .dash-nav { display: flex; flex-direction: column; }
}
@media (max-width: 720px) {
  .dash-wrap { padding: 24px 16px 60px; }
}
.dash-user { font-weight: 700; color: var(--ink); padding: 6px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: #5b6675; font-weight: 600; font-size: 0.93rem; transition: background .12s, color .12s; }
.dash-link-label { flex: 1; min-width: 0; }
.dash-link-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e53e3e; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.dash-link.active .dash-link-badge { background: #fff; color: #e53e3e; }
.dash-ico { flex: 0 0 auto; color: #9aa4b2; transition: color .12s; }
.dash-link:hover { background: var(--blue-tint); color: var(--blue); }
.dash-link:hover .dash-ico { color: var(--blue); }
.dash-link.active { background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(34,113,177,.25); }
.dash-link.active .dash-ico { color: #fff; }
.dash-nav-divider { margin: 14px 4px 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.dash-link.is-admin { color: #4a5568; }
.coupon-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin-bottom: 14px; }
.merge-row-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.merge-row-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.9rem; font-family: inherit; background: var(--paper); }
.merge-row-form .btn { padding: 7px 14px; font-size: 0.85rem; }

/* Campaigns compose */
.campaign-compose .cmp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.campaign-compose .cmp-label { display: block; font-size: 0.75rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.campaign-compose .cmp-hint { font-size: 0.78rem; color: #94a3b8; font-weight: 400; }
.campaign-compose input[type=text], .campaign-compose input[type=url], .campaign-compose textarea, .campaign-compose select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.92rem; font-family: inherit; background: var(--paper); }
.campaign-compose textarea { resize: vertical; min-height: 200px; line-height: 1.55; }
.campaign-compose .cmp-toolbar { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; margin-bottom: -1px; }
.campaign-compose .cmp-toolbar + textarea { border-radius: 0 0 7px 7px; }
.campaign-compose .cmp-token { background: #e0e7ff; color: #1d4ed8; border: 0; padding: 4px 10px; border-radius: 5px; font-size: 0.75rem; font-family: monospace; cursor: pointer; }
.campaign-compose .cmp-token:hover { background: #c7d2fe; }
.campaign-compose .cmp-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.campaign-compose .cmp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 720px) {
  .campaign-compose .cmp-row { grid-template-columns: 1fr; }
}
.coupon-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 20px; margin-bottom: 18px; }
.coupon-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.coupon-grid label.coupon-full { grid-column: 1 / -1; }
.coupon-grid input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.93rem; font-family: inherit; }
.dash-sub-small { color: #718096; font-size: 0.88rem; margin: -8px 0 14px; }
.sf-coupon-section { margin-bottom: 16px; }
@media (max-width: 720px) {
  .coupon-grid { grid-template-columns: 1fr; }
}
.dash-link.is-admin:hover { background: #fff4f1; color: #c53030; }
.dash-link.is-admin:hover .dash-ico { color: #c53030; }
.dash-link.is-admin.active { background: #c53030; color: #fff; box-shadow: 0 2px 6px rgba(197,48,48,.25); }
.dash-link.is-admin.active .dash-ico { color: #fff; }
.dash-sub { color: #718096; font-size: 0.92rem; margin: -12px 0 22px; }
.dash-h3 { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 32px 0 14px; }

/* ===== Admin Overview, performance layout ===== */
.ovw-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.ovw-period { font-size:0.85rem; color:#94a3b8; }
.ovw-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px 28px; margin-bottom:16px; }
.ovw-card-head { display:flex; align-items:center; justify-content:space-between; font-weight:700; font-size:1.02rem; color:var(--ink); margin-bottom:18px; }
.ovw-viewall { font-size:0.85rem; color:var(--blue); font-weight:600; text-decoration:none; }
.ovw-viewall:hover { text-decoration:underline; }

.ovw-headline { display:flex; align-items:flex-start; justify-content:space-between; padding-bottom:18px; border-bottom:1px solid #eef1f4; margin-bottom:18px; }
.ovw-headline-label { font-size:0.92rem; color:#64748b; font-weight:500; }
.ovw-headline-val { font-size:2.1rem; font-weight:800; color:var(--ink); margin-top:4px; letter-spacing:-0.02em; }
.ovw-headline-period { font-size:0.8rem; color:#94a3b8; }

.ovw-tri { display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
.ovw-tri-cell { padding:0; }
.ovw-tri-label { font-size:0.88rem; color:#64748b; font-weight:500; margin-bottom:4px; }
.ovw-tri-val { font-size:1.65rem; font-weight:800; color:var(--ink); letter-spacing:-0.02em; }
.ovw-tri-delta { font-size:0.78rem; color:#94a3b8; margin-top:4px; }
.ovw-tri-delta.up { color:#16a34a; font-weight:600; }

.ovw-funnel { display:flex; flex-direction:column; gap:14px; }
.ovw-funnel-row { display:grid; grid-template-columns:120px 1fr 90px; align-items:center; gap:16px; }
.ovw-funnel-label { font-size:0.9rem; color:#475569; font-weight:500; }
.ovw-funnel-track { background:#f1f5f9; border-radius:6px; height:32px; overflow:hidden; position:relative; }
.ovw-funnel-bar { height:100%; border-radius:6px; display:flex; align-items:center; padding:0 12px; color:#fff; font-weight:600; font-size:0.85rem; min-width:32px; transition:width .3s; }
.ovw-funnel-bar.imp  { background:#2271b1; }
.ovw-funnel-bar.view { background:#60a5fa; }
.ovw-funnel-bar.inq  { background:#f59e0b; }
.ovw-funnel-bar span { white-space:nowrap; }
.ovw-funnel-rate { font-size:0.82rem; color:#64748b; text-align:right; }

.ovw-perf { width:100%; border-collapse:collapse; }
.ovw-perf thead th { font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:#94a3b8; text-align:left; padding:8px 0; border-bottom:1px solid #eef1f4; }
.ovw-perf thead th:nth-child(2), .ovw-perf thead th:nth-child(3), .ovw-perf thead th:nth-child(4) { text-align:right; }
.ovw-perf tbody td { padding:14px 0; border-bottom:1px solid #f1f5f9; font-size:0.92rem; color:var(--ink); vertical-align:middle; }
.ovw-perf tbody td:nth-child(2), .ovw-perf tbody td:nth-child(3), .ovw-perf tbody td:nth-child(4) { text-align:right; }
.ovw-perf tbody tr:last-child td { border-bottom:0; }
.ovw-perf-title { font-weight:600; }
.ovw-perf-title a { color:var(--ink); text-decoration:none; }
.ovw-perf-title a:hover { color:var(--blue); }
.ovw-perf-sub { font-size:0.8rem; color:#94a3b8; margin-top:2px; }
.ovw-pill { display:inline-block; padding:2px 8px; border-radius:999px; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; margin-left:6px; vertical-align:middle; }
.ovw-pill.hot { background:#fee2e2; color:#dc2626; }

@media (max-width: 720px) {
  .ovw-tri { grid-template-columns:1fr; gap:16px; }
  .ovw-funnel-row { grid-template-columns:90px 1fr 70px; gap:10px; }
  .ovw-headline-val { font-size:1.7rem; }
}

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.admin-actions .btn-outline { background: #fff; border: 1px solid #e5e9ee; color: var(--ink); font-weight: 600; font-size: 0.88rem; padding: 8px 14px; border-radius: 8px; transition: border-color .12s, color .12s; }
.admin-actions .btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.admin-filter { font-size: 0.88rem; color: #718096; margin: -8px 0 18px; }
.admin-filter a { color: #5b6675; padding: 4px 10px; border-radius: 14px; margin-right: 4px; font-weight: 600; transition: background .12s, color .12s; }
.admin-filter a:hover { background: var(--blue-tint); color: var(--blue); }
.admin-filter a.is-active { background: var(--blue); color: #fff; }
.admin-settings-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
/* Override WordPress form-table to stack vertically inside the dashboard's narrower main area */
.admin-settings-wrap .form-table,
.admin-settings-wrap .form-table tbody { display: block; }
.admin-settings-wrap .form-table tr { display: block; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.admin-settings-wrap .form-table tr:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.admin-settings-wrap .form-table th { display: block; width: auto !important; padding: 0 0 8px; text-align: left; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.admin-settings-wrap .form-table td { display: block; width: auto; padding: 0; white-space: nowrap; }
.admin-settings-wrap .form-table td > * { white-space: normal; }
.admin-settings-wrap .form-table .description { margin: 8px 0 0; font-size: 0.85rem; color: #718096; line-height: 1.5; max-width: 640px; }
.admin-settings-wrap .form-table input[type=text],
.admin-settings-wrap .form-table input[type=password] { display: inline-block; vertical-align: middle; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.93rem; font-family: inherit; background: var(--paper); box-sizing: border-box; }
.admin-settings-wrap .form-table .large-text { display: block; width: 100%; max-width: 100%; }
.admin-settings-wrap .form-table .regular-text { width: 200px; margin-right: 10px; }
/* "Mode" section gets a 2-column grid so short fields sit side-by-side */
.admin-settings-wrap .form-table.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.admin-settings-wrap .form-table.mode-grid tbody { display: contents; }
.admin-settings-wrap .form-table.mode-grid tr { display: block; margin: 0 0 4px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.admin-settings-wrap .form-table.mode-grid tr:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 720px) {
  .admin-settings-wrap .form-table.mode-grid { grid-template-columns: 1fr; }
}
.admin-settings-wrap .form-table input[type=radio],
.admin-settings-wrap .form-table input[type=checkbox] { width: auto; accent-color: var(--blue); margin-right: 4px; vertical-align: middle; }
.admin-settings-wrap .form-table label { margin-right: 18px; font-size: 0.93rem; vertical-align: middle; }
.admin-settings-wrap h2.title { font-size: 1.1rem; margin: 28px 0 14px; color: var(--ink); padding-top: 22px; border-top: 1px solid var(--line-soft); font-weight: 700; }
.admin-settings-wrap h2.title:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.admin-settings-wrap p { margin: 8px 0; font-size: 0.93rem; color: var(--ink); }
.admin-settings-wrap p code { background: #f6f7f7; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }
.admin-settings-wrap hr { border: 0; border-top: 1px solid var(--line-soft); margin: 28px 0; }
.admin-settings-wrap p.submit { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line-soft); }
.admin-settings-wrap p.submit input[type=submit],
.admin-settings-wrap #submit { background: var(--blue); color: #fff; border: 0; padding: 11px 26px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.admin-settings-wrap p.submit input[type=submit]:hover { background: #1a5a8f; }
.dash-logout { margin-top: 6px; border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; padding-top: 14px; }
.dash-main { min-width: 0; }
.dash-h { font-weight: 800; font-size: 1.6rem; color: var(--ink); margin-bottom: 22px; letter-spacing: -0.02em; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.dstat { border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; text-align: center; }
.dstat .n { font-weight: 800; font-size: 2rem; color: var(--blue); letter-spacing: -0.02em; }
.dstat .l { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
.dash-cta { margin-top: 8px; }
.dash-empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--ink-soft); vertical-align: middle; }
.dt-listing { display: flex; align-items: center; gap: 12px; }
.dt-listing img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.dt-listing span { font-weight: 600; color: var(--ink); }
.dt-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; }
.dt-publish { background: #e7f7ef; color: #0a7d4f; }
.dt-pending, .dt-draft { background: #fff4e0; color: #9a6400; }
.dt-awaiting { background: #fde8e8; color: #9b2c2c; }
.dt-unpublished { background: #edf0f4; color: #4a5568; }
.dt-actions { display: flex; gap: 12px; }
.dt-actions a { font-size: 0.85rem; font-weight: 600; color: var(--blue); }
.dt-actions .dt-del { color: #c0392b; }
.dt-actions .dt-pay { color: #9b2c2c; }
.dt-actions .dt-unpublish { color: #5b6675; }
.dt-actions .dt-republish { color: #0a7d4f; }
.dash-searches { list-style: none; }
.dash-searches li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 880px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Submission form: land feature checkboxes */
.sf-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.sf-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.sf-check input { width: 16px; height: 16px; accent-color: var(--blue); }

/* Submission form: helper hint with link */
.sf-hint { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.sf-hint a { color: var(--blue); font-weight: 600; }
.sf-hint a:hover { text-decoration: underline; }

/* Homepage promo banner under View All Properties */
.home-banner { display: block; max-width: 1100px; margin: 40px auto 0; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(26,35,50,.12); transition: transform .15s, box-shadow .15s; }
.home-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,35,50,.18); }
.home-banner img { display: block; width: 100%; height: auto; }

/* =========================================================
   LISTINGS: GRID / MAP SPLIT VIEW
   ========================================================= */
.lb-viewtoggle { display: inline-flex; gap: 4px; background: var(--blue-tint); border-radius: 10px; padding: 4px; margin-left: auto; }
.lb-vt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; background: transparent; border-radius: 7px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.lb-vt.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(26,35,50,.12); }

.lp-layout { position: relative; }
.lp-map { display: none; }

/* Map mode: split screen */
.listings-wrap.is-map .lp-layout { display: flex; gap: 0; align-items: stretch; height: calc(100vh - 150px); min-height: 560px; }
.listings-wrap.is-map .lp-cards { width: 42%; max-width: 560px; overflow-y: auto; padding-right: 18px; }
.listings-wrap.is-map .glistings { grid-template-columns: 1fr; gap: 14px; }
.listings-wrap.is-map .gcard-img { height: 180px; }
.listings-wrap.is-map .gcard-img img { height: 100%; object-fit: cover; }
.listings-wrap.is-map .gcard-body { padding: 14px 16px; }
.listings-wrap.is-map .gcard-title { font-size: 1.02rem; }
.listings-wrap.is-map .lp-map { display: block; flex: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: sticky; top: 0; }
.listings-wrap.is-map .lp-pagination { grid-column: 1 / -1; }

/* Leaflet popup mini-card */
.lp-pop { width: 200px; }
.lp-pop img { width: 100%; height: 110px; object-fit: cover; display: block; }
.lp-pop-b { padding: 8px 2px 2px; }
.lp-pop-loc { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.lp-pop-title { display: block; font-weight: 700; color: var(--ink); font-size: 0.92rem; margin: 2px 0 4px; line-height: 1.25; }
.lp-pop-price { font-weight: 700; color: var(--blue); font-size: 0.95rem; }
.lp-pop-btn { display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.leaflet-popup-content { margin: 10px; }

@media (max-width: 900px) {
  .listings-wrap.is-map .lp-layout { flex-direction: column; height: auto; }
  .listings-wrap.is-map .lp-cards { width: 100%; max-width: none; padding-right: 0; }
  .listings-wrap.is-map .glistings { grid-template-columns: 1fr; }
  .listings-wrap.is-map .lp-map { height: 420px; position: relative; margin-top: 18px; }
}

/* Submission form: photo manager */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.ph-item { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: grab; background: #fff; aspect-ratio: 4/3; }
.ph-item.dragging { opacity: .5; }
.ph-item.is-featured { border: 2px solid var(--blue); box-shadow: 0 0 0 2px var(--blue-tint); }
.ph-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ph-star, .ph-del { position: absolute; top: 6px; border: 0; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ph-star { left: 6px; background: rgba(255,255,255,.92); color: #c9ced6; }
.ph-star.is-featured { background: var(--blue); color: #ffd34d; }
.ph-del { right: 6px; background: rgba(255,255,255,.92); color: #c0392b; font-weight: 700; }
.ph-del:hover { background: #c0392b; color: #fff; }
.ph-featured-tag { position: absolute; bottom: 6px; left: 6px; background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; display: none; text-transform: uppercase; letter-spacing: .03em; }
.ph-item.is-featured .ph-featured-tag { display: block; }

/* Map-view sync checkbox (only shown in map mode) */
.lb-mapsync { display: none; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-left: 14px; cursor: pointer; white-space: nowrap; }
.lb-mapsync input { width: 15px; height: 15px; accent-color: var(--blue); }
.listings-wrap.is-map .lb-mapsync { display: inline-flex; }

