/* =====================================================================
   Lotus Properties — Design System
   DKwebArt | Ref: DKW-PROP-2026-016
   Palette drawn from the Lotus Properties mark: deep forest green + gold,
   set on a warm ivory ground. Display serif for headings (echoes the
   "LOTUS" wordmark), geometric sans for body/UI (echoes "PROPERTIES"
   tracked small caps). Signature element: the "petal corner" — an
   asymmetric rounded corner used sparingly on cards, image frames and
   primary buttons, plus a scalloped petal divider between sections.
   ===================================================================== */

:root {
  --forest: #123524;
  --forest-light: #1f5a40;
  --forest-tint: #eaf0ec;
  --gold: #b8863b;
  --gold-deep: #96682a;
  --gold-light: #e4c368;
  --cream: #faf7f0;
  --cream-deep: #f2ecdd;
  --ink: #1a1a1a;
  --ink-soft: #4a4a46;
  --white: #ffffff;
  --line: #e6e0d2;
  --danger: #b3261e;
  --success: #2e7d32;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius-petal: 42px 10px 42px 10px;
  --radius-petal-sm: 22px 6px 22px 6px;
  --shadow-soft: 0 10px 30px rgba(18, 53, 36, 0.08);
  --shadow-card: 0 6px 20px rgba(18, 53, 36, 0.10);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--gold-deep);
}
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--radius-petal-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(184, 134, 59, .30);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: var(--white); color: var(--forest); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Sticky header (transparent on hero -> solid on scroll) + gold underline
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(18,53,36,.08);
  height: 70px;
}
.site-header.force-solid { background: rgba(250, 247, 240, 0.98); box-shadow: 0 4px 18px rgba(18,53,36,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: 46px; object-fit: contain; transition: height .35s ease, width .35s ease; }
.site-header.is-scrolled .brand img { height: 38px; width: 38px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--forest); }
.site-header:not(.is-scrolled):not(.force-solid) .brand-text,
.site-header:not(.is-scrolled):not(.force-solid) .brand-tag { color: var(--white); }
.brand-tag { display: block; font-family: var(--font-body); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--forest);
  padding: 6px 0;
}
.site-header:not(.is-scrolled):not(.force-solid) .main-nav a { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-outline { border-color: currentColor; }
.site-header:not(.is-scrolled):not(.force-solid) .header-cta .btn-outline { color: var(--white); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.15);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: all .25s ease;
}
.site-header:not(.is-scrolled):not(.force-solid) .nav-toggle { color: var(--white); }
.site-header.is-scrolled .nav-toggle, .site-header.force-solid .nav-toggle { color: var(--forest); }

.mobile-nav {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: var(--forest); z-index: 1100;
  padding: 90px 28px 28px;
  transition: right .35s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.25);
}
.mobile-nav.is-open { right: 0; }
.mobile-nav a {
  display: block; color: var(--cream); font-size: 17px; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateX(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-nav.is-open a { opacity: 1; transform: translateX(0); }
.mobile-nav-close { position: absolute; top: 26px; right: 24px; color: var(--gold-light); font-size: 26px; cursor: pointer; background:none;border:none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(18,53,36,.45); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.nav-overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 920px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(228,195,104,.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(228,195,104,.10), transparent 50%),
    linear-gradient(155deg, #0d2618 0%, #123524 45%, #1f5a40 100%);
  color: var(--white);
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.hero-eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: 46px; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { color: rgba(255,255,255,.85); max-width: 540px; font-size: 16.5px; }

/* Search / filter card */
.search-card {
  background: var(--white);
  border-radius: var(--radius-petal);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  margin-top: 34px;
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.search-tab {
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--cream-deep); color: var(--forest); cursor: pointer; border: none;
}
.search-tab.active { background: var(--forest); color: var(--white); }
.search-grid {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end;
}
@media (max-width: 900px) { .search-grid { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.field select, .field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14px; background: var(--cream);
}
.field select:focus, .field input:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }

/* Scalloped petal divider signature element */
.petal-divider { position: relative; height: 46px; background: var(--cream); margin-top: -1px; }
.petal-divider svg { position: absolute; bottom: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------------
   Category / stat strip
   --------------------------------------------------------------------- */
.cat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 760px) { .cat-strip { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--white); border-radius: var(--radius-petal); padding: 30px 26px;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18,53,36,.14); }
.cat-card .icon { width: 52px; height: 52px; border-radius: 16px 4px 16px 4px; background: var(--forest-tint); display:flex;align-items:center;justify-content:center; margin-bottom: 16px; color: var(--forest); }
.cat-card h3 { margin-bottom: 6px; font-size: 20px; }
.cat-card a.cat-link { color: var(--gold-deep); font-weight: 600; font-size: 13.5px; }

/* ---------------------------------------------------------------------
   Property cards
   --------------------------------------------------------------------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  background: var(--white);
  border-radius: var(--radius-petal);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(18,53,36,.15); }
.property-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--forest-tint); }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--forest); color: var(--white);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
}
.badge-rent { background: var(--gold-deep); }
.badge-featured { position: absolute; top: 14px; right: 14px; background: var(--gold-light); color: var(--forest); padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.property-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-price { font-family: var(--font-display); font-size: 21px; color: var(--forest); font-weight: 700; }
.property-title { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0; }
.property-loc { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.property-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 12px; }
.property-meta span { display: flex; align-items: center; gap: 5px; }

/* ---------------------------------------------------------------------
   Cards / panels / forms (general)
   --------------------------------------------------------------------- */
.panel {
  background: var(--white); border-radius: 20px; border: 1px solid var(--line);
  padding: 30px; box-shadow: var(--shadow-card);
}
.panel-petal { border-radius: var(--radius-petal); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--forest); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14.5px; background: var(--cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream-deep); padding: 120px 20px 60px; }
.auth-card { max-width: 440px; width: 100%; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e7f4e8; color: var(--success); border: 1px solid #c3e2c5; }
.alert-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f2c6c1; }
.alert-info { background: var(--forest-tint); color: var(--forest); border: 1px solid #d3e2d9; }

/* Status pills */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-pending { background: #fdf1d8; color: #8a5f00; }
.pill-approved { background: #e2f3e3; color: var(--success); }
.pill-rejected { background: #fbe4e2; color: var(--danger); }
.pill-draft { background: #ececec; color: #555; }

/* Tables (portal/admin) */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; background: var(--forest-tint); color: var(--forest); padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data-table tr:hover td { background: #fbfaf5; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.82); padding: 64px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; }
.footer-brand-text { font-family: var(--font-display); font-size: 19px; color: var(--white); }
.site-footer h4 { color: var(--gold-light); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links li { margin-bottom: 10px; list-style: none; }
.footer-links { padding: 0; margin: 0; }
.footer-contact li { list-style: none; margin-bottom: 12px; font-size: 14px; display: flex; gap: 10px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--gold); color: var(--forest); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a.credit { color: var(--gold-light); font-weight: 600; }

/* ---------------------------------------------------------------------
   Misc
   --------------------------------------------------------------------- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.map-admin-only { background: var(--forest-tint); border: 1px dashed var(--gold); border-radius: 14px; padding: 16px; font-size: 13px; color: var(--forest); }
.dot-sep::before { content: '•'; margin: 0 8px; color: var(--gold); }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .dash-shell { grid-template-columns: 1fr; } }
.dash-sidebar { background: var(--forest); color: var(--cream); padding: 26px 18px; }
.dash-sidebar .brand-text, .dash-sidebar .brand-tag { color: var(--white); }
.dash-nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 4px; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.dash-nav a.active { border-left: 3px solid var(--gold); }
.dash-main { padding: 34px; background: var(--cream); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--white); border-radius: var(--radius-petal-sm); padding: 22px; border: 1px solid var(--line); }
.stat-card .num { font-family: var(--font-display); font-size: 30px; color: var(--forest); font-weight: 700; }
.stat-card .label { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
