/* =========================================================
   Origin Business Park — Fresh responsive stylesheet
   Palette: deep burgundy brand / warm off-white / charcoal
   ========================================================= */

:root {
  --brand:        #7a1b1b;
  --brand-dark:   #4a1010;
  --brand-light:  #a03333;
  --ink:          #1c1a19;
  --ink-soft:     #494441;
  --bg:           #fbfaf7;
  --bg-alt:       #f2ede6;
  --line:         #e3dcd2;
  --accent:       #b8894d;
  --ok:           #3d8b3d;
  --warn:         #d2a037;
  --sold:         #7a1b1b;
  --none:         #365874;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow:       0 10px 30px rgba(28,26,25,0.08);
  --shadow-lg:    0 20px 60px rgba(28,26,25,0.18);
  --max:          1200px;
  --font-sans:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--brand-dark);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: .6em; }
h3 { font-size: 1.3rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.small { font-size: .85rem; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary   { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); }
.btn-outline   { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* =========== Header =========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,250,247,0);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(251,250,247,0.97);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}
.brand em { font-style: normal; font-weight: 400; opacity: .85; }
.brand-icon { width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.site-header.scrolled .brand { color: var(--brand-dark); }

.nav ul {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav a {
  color: #fff;
  font-size: .95rem; font-weight: 500;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav a:hover { border-bottom-color: #fff; }
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
#loginLink { color: var(--accent) !important; font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; margin: 4px 0; transition: all .3s;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* =========== Hero =========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,10,10,.45) 0%, rgba(28,10,10,.25) 40%, rgba(28,10,10,.75) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 8rem 1.25rem 4rem;
  max-width: 900px;
}
.hero-logo {
  width: 220px; max-width: 55%;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  margin-bottom: .6em;
}
.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 36em;
  opacity: .95;
}
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========== About =========== */
.about { padding: 5rem 0; background: var(--bg); }
.about-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.about-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.about-video video {
  width: 100%; height: 100%; object-fit: cover;
}

/* =========== Features stripe =========== */
.features {
  background: var(--brand-dark);
  color: #fff;
  padding: 2.5rem 0;
}
.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.feature-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.feature-label { opacity: .85; font-size: .95rem; margin-top: .25rem; }

/* =========== Lots / Map =========== */
.lots { padding: 5rem 0; background: var(--bg-alt); }
.section-lede { font-size: 1.05rem; max-width: 48em; color: var(--ink-soft); margin-bottom: 2rem; }

.lots-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
}
.lot-map {
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}
.lot-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  min-height: 360px;
}
.lot-empty { color: var(--ink-soft); text-align: center; padding: 3rem 1rem; }

.lot-detail h3 { margin: 0 0 1rem; color: var(--brand-dark); }
.lot-row {
  display: flex; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.lot-row .label { color: var(--ink-soft); }
.lot-row .val { font-weight: 600; text-align: right; }
.status-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}
.status-Available     { background: var(--ok); }
.status-Pending       { background: var(--warn); color: #4a3b0e; }
.status-Sold          { background: var(--sold); }
.status-NotForSale    { background: var(--none); }

.lot-edit { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.lot-edit h4 { margin: 0 0 .6rem; color: var(--brand); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-sans); }
.lot-edit label {
  display: block;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}
.lot-edit input, .lot-edit select, .lot-edit textarea {
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  margin-top: .25rem;
  background: #fff;
}
.lot-edit button { width: 100%; margin-top: .5rem; }
.save-status { font-size: .85rem; margin-top: .5rem; min-height: 1.2em; }
.save-status.ok { color: var(--ok); }
.save-status.err { color: var(--brand); }

.legend {
  margin-top: 1.25rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-soft);
}
.legend .sw {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 3px; margin-right: .4rem; vertical-align: middle;
  border: 1px solid rgba(0,0,0,.1);
}
.sw-avail   { background: var(--ok); }
.sw-pending { background: var(--warn); }
.sw-sold    { background: var(--sold); }
.sw-none    { background: var(--none); }

/* =========== Location =========== */
.location { padding: 5rem 0; background: var(--bg); }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.facts li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.facts strong { color: var(--brand-dark); min-width: 6em; display: inline-block; }
.location-map img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =========== Advantage =========== */
.advantage { padding: 5rem 0; background: var(--bg-alt); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.compare {
  width: 100%; border-collapse: collapse; min-width: 560px;
}
.compare th, .compare td {
  padding: 1rem 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-soft); }
.compare thead th { background: var(--brand-dark); color: #fff; font-weight: 600; text-align: right; }
.compare thead th:first-child { background: var(--brand-dark); }
.compare tr.subtotal td { background: var(--bg-alt); font-weight: 600; }
.compare tr.total td { background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; }
.compare tr.total td:first-child { color: #fff; }
.compare tr.best td { color: var(--ok); font-weight: 700; }

/* =========== Contact =========== */
.contact { padding: 5rem 0; background: var(--brand-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,.85); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.advisors { margin-top: 2rem; max-width: 480px; width: 100%; padding: 0; background: transparent; }
.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 1rem;
}
.contact-form label {
  display: block;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: .3rem;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.contact-form label.inline {
  display: flex; align-items: center; gap: .5rem;
}
.contact-form label.inline input { width: auto; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ffb4b4; }

/* =========== Footer =========== */
.site-footer {
  background: #1a0707;
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-grid h4 { color: #fff; font-family: var(--font-sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: .2rem 0; }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: #fff; }
.footer-logo { width: 180px; margin-bottom: .75rem; }
.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* =========== Modal =========== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,10,10,.65);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: .5rem; right: .75rem;
  background: none; border: 0;
  font-size: 1.75rem; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-card h3 { margin-top: 0; }
.modal-card form { display: grid; gap: .75rem; margin-top: 1rem; }
.modal-card label { font-size: .85rem; color: var(--ink-soft); }
.modal-card input {
  width: 100%; padding: .7rem .9rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); margin-top: .3rem;
}
.form-error { color: var(--brand); font-size: .9rem; min-height: 1.2em; }

/* Broker toolbar when authed */
.broker-bar {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: var(--brand-dark); color: #fff;
  padding: .6rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 90;
  font-size: .9rem;
  align-items: center; gap: 1rem;
}
.broker-bar.show { display: flex; }
.broker-bar button {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4);
  padding: .3rem .8rem; border-radius: 999px; cursor: pointer; font-size: .85rem;
}
.broker-bar button:hover { background: #fff; color: var(--brand-dark); }

/* Leaflet polish */
.leaflet-container { font-family: var(--font-sans); }
.lot-tooltip {
  font-size: .85rem; font-weight: 600;
  background: #fff; padding: .2rem .5rem; border: 0;
  border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* =========== Responsive =========== */
@media (max-width: 900px) {
  .about-grid, .location-grid, .contact-grid, .lots-layout { grid-template-columns: 1fr; }
  .lot-map { height: 420px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-top: 7rem; }

  .nav-toggle { display: block; z-index: 5; }
  .nav ul {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: 70%; max-width: 300px;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav ul.open { transform: translateX(0); }
  .nav a { color: var(--ink) !important; font-size: 1.1rem; }
  .site-header.scrolled .nav a { color: var(--ink); }
}
@media (max-width: 520px) {
  .hero { min-height: 88vh; }
  .about, .lots, .location, .advantage, .contact { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 1.25rem; }
  .brand-text { display: none; }
}
