:root {
  --ink: #102418;
  --mute: #4d6b58;
  --line: #dceee3;
  --field: #1b8a4d;
  --field-2: #147a43;
  --mint: #e8f7ee;
  --foam: #f6fbf8;
  --white: #ffffff;
  --sun: #ffe08a;
  --shadow: 0 20px 50px rgba(16, 36, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.left-cluster { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 10px 4px 4px; font-weight: 700; cursor: pointer;
}
.acct-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--field); color: #fff; display: grid; place-items: center; font-size: .85rem;
}
.acct-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-drop {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; display: grid; z-index: 40;
}
.acct-drop a, .acct-drop button {
  text-align: left; border: 0; background: none; padding: 10px 12px;
  border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.acct-drop a:hover, .acct-drop button:hover { background: var(--mint); }
.app-form { gap: 8px; }
.app-form .tight { display: flex; justify-content: space-between; }
.photo-drop {
  display: grid; place-items: center; position: relative;
  height: 160px; border-radius: 18px; border: 1.5px dashed var(--line);
  background: var(--foam); cursor: pointer; overflow: hidden; font-weight: 700; color: var(--mute);
}
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { display: none; width: 100%; height: 160px; object-fit: cover; }
.photo-drop.has-pic img { display: block; }
.photo-drop.has-pic span { display: none; }
.deal-pills { display: flex; gap: 6px; }
.deal-pills button {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px; font-weight: 700; cursor: pointer;
}
.deal-pills button.on { background: var(--field); color: #fff; border-color: var(--field); }
.cta.wide { width: 100%; text-align: center; }
details.more { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--mute); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--field); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.brand strong { font-family: Fraunces, Georgia, serif; font-size: 1.22rem; letter-spacing: -.03em; }
.brand em { display: block; font-style: normal; font-size: .72rem; color: var(--mute); margin-top: -2px; }
nav { display: flex; gap: 18px; font-weight: 600; font-size: .95rem; }
nav a { text-decoration: none; }
nav a:hover { color: var(--field); }
.cta, button.cta {
  background: var(--field); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 16px; text-decoration: none; font-weight: 700; cursor: pointer;
}
.cta:hover { background: var(--field-2); }
.ghost, button.ghost {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 10px 16px; text-decoration: none; font-weight: 700; cursor: pointer;
}
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.home-aisle { padding: 8px 0 28px; }
.leaflet-popup-content { margin: 12px 14px; }
.pin-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.pin-card ul { margin: 8px 0; padding: 0; list-style: none; font-size: .86rem; }
.pin-card li { display: flex; gap: 8px; }
.pin-card li b { min-width: 72px; color: var(--mute); font-weight: 700; }
.pin-card button { margin: 4px 4px 0 0; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 90% -20%, #fff4c2 0%, transparent 55%),
    linear-gradient(180deg, var(--mint) 0%, var(--white) 72%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px;
  padding: 56px 0 28px; align-items: center;
}
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: .94; letter-spacing: -.045em; margin: 0 0 16px;
}
.lede { font-size: 1.18rem; color: var(--mute); max-width: 40ch; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 11px; font-size: .82rem; color: var(--mute);
}

.dream {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); padding: 10px;
  min-width: 0;
}
.hero-photo {
  width: 100%; height: 230px; object-fit: cover; object-position: 20% 55%;
  border-radius: 20px;
}

.statrow { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--foam); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-family: Fraunces, serif; font-size: 1.2rem; color: var(--field); }
.stat span { font-size: .76rem; color: var(--mute); }

.panel { padding: 42px 0 20px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; flex-wrap: wrap; }
h2 { font-family: Fraunces, serif; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; letter-spacing: -.03em; }
.sub { margin: 6px 0 0; color: var(--mute); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select, form input, form select, form textarea {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px;
  width: 100%; max-width: 100%; min-width: 0;
}
.filters { width: 100%; }
.filters input, .filters select { flex: 1 1 140px; min-width: 0; }

.layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
#map {
  height: min(64vh, 580px); border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
}
.list {
  max-height: min(64vh, 580px); overflow: auto; background: var(--foam);
  border: 1px solid var(--line); border-radius: 24px;
}
.sale { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; }
.sale:hover, .sale.active { background: var(--mint); }
.sale b { display: block; }
.meta { font-size: .84rem; color: var(--mute); }
.badge {
  display: inline-block; background: var(--mint); color: var(--field-2);
  border-radius: 999px; padding: 2px 8px; font-size: .72rem; margin: 4px 4px 0 0;
}
.sale-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sale-actions button { padding: 6px 10px; font-size: .78rem; }

.social { padding: 28px 0 56px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px;
}
.card h3 { margin: 0 0 8px; font-family: Fraunces, serif; }
.feed { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.chip {
  background: var(--foam); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  overflow-wrap: anywhere; word-break: break-word;
}
.chip b { color: var(--field); }
.kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }

form { display: grid; gap: 10px; }
label { font-size: .82rem; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { font-size: .82rem; color: var(--mute); margin: 0; }
.hidden { position: absolute; left: -9999px; }

.frame-box canvas {
  width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff;
}
.pitch {
  background: var(--mint);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.pitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.how .card p { color: var(--mute); margin: 0; }

footer {
  padding: 28px 0 40px; color: var(--mute); font-size: .88rem;
  border-top: 1px solid var(--line);
}
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 18px; left: 18px; right: auto; background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 14px; display: none; z-index: 40;
}
.steward { position: fixed; right: 16px; bottom: 16px; z-index: 50; }
.steward-btn {
  display: flex; align-items: center; gap: 8px;
  background: #e7ff3a; color: #102418; border: 0; border-radius: 999px;
  padding: 8px 12px 8px 8px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 28px rgba(16,36,24,.18);
}
.steward-btn .vis {
  width: 36px; height: 36px; border-radius: 50%;
  background: #111; color: #e7ff3a; display: grid; place-items: center;
}
.steward-lab i { font-style: normal; font-size: .68rem; color: #4d6b58; margin-left: 4px; }
.steward-panel {
  position: absolute; right: 0; bottom: 58px; width: min(360px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.steward-panel header {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; background: #e7ff3a; color: #102418;
}
.steward-panel header em { font-style: normal; font-size: .75rem; color: #4d6b58; flex: 1; }
.steward-panel header .ghost { padding: 4px 10px; font-size: .78rem; }
.steward-log { max-height: 280px; overflow: auto; padding: 12px; display: grid; gap: 8px; }
.steward-log p { margin: 0; padding: 10px 12px; border-radius: 14px; font-size: .92rem; }
.steward-log .him { background: var(--foam); }
.steward-log .me { background: var(--mint); justify-self: end; }
.steward-panel form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.steward-panel form input { flex: 1; min-width: 0; }
.toast.show { display: block; }

.card, .list, .layout, .social-grid, form, .row2 { min-width: 0; }

.hidden-block { display: none; }
.market-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.market-filters { margin-bottom: 10px; }
.deals { display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.deal {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 0;
}
.deal img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--mint);
}
.deal .txt {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.deal .who { display: block; font-weight: 500; font-size: .72rem; color: var(--mute); }
.deal .px { font-family: Fraunces, serif; color: var(--field); font-weight: 700; white-space: nowrap; }
.deal .loc { color: var(--mute); font-size: .8rem; white-space: nowrap; max-width: 28vw; overflow: hidden; text-overflow: ellipsis; }
.deal .tag {
  background: var(--mint); color: var(--field-2);
  border-radius: 999px; padding: 3px 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
a.deal { text-decoration: none; color: inherit; }
a.deal:hover { border-color: var(--field); }
.back { font-weight: 700; text-decoration: none; color: var(--field); }
.item-page img.hero-shot {
  width: 100%; height: min(52vw, 360px); object-fit: cover; border-radius: 18px; background: var(--mint);
}
.item-page .item-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.item-page .px { font-size: 1.6rem; }
.talk { display: grid; gap: 8px; margin-top: 16px; }

@media (max-width: 860px) {
  nav, .hide-phone { display: none; }
  .brand em { display: none; }
  .acct-name { max-width: 72px; }
  .wrap { width: calc(100% - 24px); }
  .hero-grid, .layout, .social-grid, .pitch-grid, .how, .row2, .market-grid { grid-template-columns: 1fr; }
  .deal { grid-template-columns: 48px minmax(0,1fr) auto; grid-template-areas: "img txt px" "img loc tag"; }
  .deal img { grid-area: img; width: 48px; height: 48px; }
  .deal .txt { grid-area: txt; }
  .deal .px { grid-area: px; }
  .deal .loc { grid-area: loc; max-width: none; }
  .deal .tag { grid-area: tag; }
  .hero-grid { padding: 22px 0 18px; gap: 16px; }
  h1 { font-size: 2.15rem; }
  .lede { font-size: 1.02rem; }
  .hero-photo { height: 200px; }
  .cta, button.cta, .ghost, button.ghost { padding: 9px 12px; font-size: .9rem; }
  .share-bar { justify-content: flex-end; }
  .stat { padding: 8px; }
  .stat b { font-size: 1.05rem; }
  .stat span { font-size: .7rem; }
  #map, .list { height: 52vh; max-height: 420px; }
  .frame-box canvas { max-height: 70vw; }
  .toast { left: 12px; right: 12px; }
}
