:root {
  --cream: #f6f6f5;
  --paper: #ffffff;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #e4e2de;
  --lime: #9dc159;
  --lime-deep: #3f5616;
  --terra: #c45c26;
  --terra-deep: #8d3e16;
  --shadow: 0 16px 40px rgba(70, 48, 16, 0.06);
  --font: Montserrat, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(157, 193, 89, 0.28), transparent 60%),
    var(--cream);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--lime-deep); text-underline-offset: 0.16em; }
a:hover { color: #2c3d0e; }
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.85rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.8rem; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 246, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.6rem 0;
}
.brand { flex: 0 0 auto; }
.brand img { display: block; height: 34px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.nav a, .linkish {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover, .linkish:hover { color: var(--lime-deep); }
.nav-join {
  background: var(--lime);
  color: var(--ink) !important;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.site-footer { margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 0.8rem; align-items: center; color: var(--muted); }
.footer-inner p { margin: 0; }
.flash {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--lime);
  border-left: 6px solid var(--lime);
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.hero { padding: 3.2rem 0 1rem; }
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terra-deep);
  margin-bottom: 0.7rem;
}
.lime { color: var(--lime-deep); }
.lede { font-size: 1.2rem; max-width: 38rem; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0; }
.places { display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; color: var(--muted); }
.places a { font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b0d36a; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { color: white; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem auto; }
.split article, .panel, .form-card, .booking-card, .auth {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.stamp.do { background: var(--lime); color: var(--ink); }
.stamp.rent { background: transparent; color: var(--terra-deep); border: 1.5px solid var(--terra); }

.band { padding-bottom: 1rem; }
.band-head, .dash-head, .page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin: 1.5rem 0 1rem; }
.page-head { align-items: start; flex-direction: column; }
.page-head.narrow, .form-card, .auth { width: min(720px, calc(100% - 2rem)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.05rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.card:hover { border-color: #c9d7a4; color: inherit; }
.card.do { box-shadow: inset 4px 0 0 var(--lime), var(--shadow); }
.card.rent { box-shadow: inset 4px 0 0 var(--terra), var(--shadow); }
.card-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.card .summary { color: var(--muted); flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.95rem; }
.who { font-size: 0.98rem; }
.who a { font-weight: 600; }
.muted, .count, .hint, .cal-key { color: var(--muted); }
.card h3 { font-size: 1.22rem; font-weight: 600; }

.search { display: flex; gap: 0.5rem; width: 100%; }
.search input { flex: 1; }
.kind-switch, .pills { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }
.kind-switch a, .pill {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.kind-switch a.on, .pill.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.empty { padding: 1.5rem 0 2rem; }
.empty-inline { margin-bottom: 1rem; }

.listing-intro { max-width: 46rem; margin-bottom: 1rem; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr); gap: 1.2rem; align-items: start; }
.booking-card { position: sticky; top: 5.2rem; }
.price { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.3rem; }
.prose { font-size: 1.05rem; }
.callout {
  background: #f3f6ea;
  border-left: 4px solid var(--lime);
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  margin: 1rem 0;
}
.callout.area { background: #fbf6f1; border-left-color: var(--terra); }
.stars { color: var(--lime-deep); letter-spacing: 0.08em; }
.review, .review-form { margin: 0.8rem 0 1rem; }
.review { border-left: 3px solid var(--line); padding-left: 0.8rem; }
.review footer { color: var(--muted); font-size: 0.92rem; }

.stack, .field, .split-fields { display: flex; flex-direction: column; gap: 0.35rem; }
.stack { gap: 0.7rem; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
label, legend { font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d9d0c4;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(157, 193, 89, 0.45);
  border-color: var(--lime-deep);
}
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; margin: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choice-card {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  background: #fff;
}
.choice-card small { display: block; font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; min-height: 0; }
.field-error, .form-error { color: var(--terra-deep); font-weight: 600; }
.form-error {
  background: #fbf3ee;
  border: 1px solid #efd2c2;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
}
.area-result.ok { color: var(--lime-deep); }
.area-result.bad { color: var(--terra-deep); font-weight: 600; }
[hidden] { display: none !important; }

.calendar { margin: 0.6rem 0 1.2rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.cal-nav a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.dow { font-size: 0.75rem; color: var(--muted); text-align: center; }
.day {
  min-height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.day i { font-style: normal; font-size: 0.62rem; }
.day.blocked { background: #f8ebe3; color: var(--terra-deep); }
.day.booked { background: #eceae6; color: var(--muted); text-decoration: line-through; }
.swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; margin: 0 0.2rem 0 0.5rem; vertical-align: middle; }
.swatch.blocked { background: #f8ebe3; }
.swatch.booked { background: #eceae6; }

.dash { margin-top: 0.5rem; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.4rem; align-items: start; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.row-actions { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.panel { margin-bottom: 0.8rem; }
.status { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.status.confirmed { color: var(--lime-deep); }
.status.declined, .status.cancelled { color: var(--terra-deep); }
.detail-list { margin: 0.3rem 0 0.6rem; padding: 0; list-style: none; }
.detail-list li { margin: 0.2rem 0; }
.detail-list span { color: var(--muted); display: inline-block; min-width: 8rem; }
.block-list { list-style: none; padding: 0; }
.block-list li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.auth { margin: 2rem auto; }
.missing { padding: 3rem 0 4rem; }
.crumb { color: var(--muted); }

@media (max-width: 900px) {
  .cards, .split, .listing-layout, .dash-grid, .choice, .split-fields { grid-template-columns: 1fr; }
  .listing-layout { display: flex; flex-direction: column; }
  .booking-card { position: static; order: -1; }
  .brand img { height: 26px; }
}
.directory { padding: 2.2rem 0 3rem; }
.directory .page-head { margin: 0 0 1.15rem; width: 100%; }
.filters { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; margin-top: 0.35rem; }
.filters .kind-switch, .filters .pills { margin: 0; width: 100%; }
.area-map {
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 1.1rem;
  background: #e8e8e6;
  position: relative;
  z-index: 0;
}
.map-note { margin: -0.4rem 0 1rem; }
.map-popup { min-width: 180px; }
.map-popup a { font-weight: 600; display: block; margin-bottom: 0.2rem; }
.map-popup p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.avatar, .avatar-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  flex: 0 0 auto;
}
.profile-head, .profile-edit {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.profile-head {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0 1.2rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; margin-top: 0.6rem; }
.admin-actions form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0; }
.admin-actions select { width: auto; min-width: 14rem; }
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .area-map { height: 280px; }
  .profile-head, .profile-edit { align-items: flex-start; }
  .header-inner { align-items: flex-start; }
  .cta-row .btn, .search { width: 100%; }
  .search { flex-direction: column; }
  h1 { font-size: 2.05rem; }
  .lede { font-size: 1.05rem; }
  .day { min-height: 40px; }
  .day i { display: none; }
  .suggest-row { flex-direction: column; align-items: flex-start; }
}

.works-with { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.4rem 0 1.6rem; }
.works-manage { margin-bottom: 1.5rem; }
.works-manage details { margin-top: 1rem; }
.works-manage summary { cursor: pointer; font-weight: 600; }
.partner-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
}
a.partner-row:hover { border-color: var(--lime-deep); color: inherit; }
.partner-row .avatar,
.partner-row .avatar-initials {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}
.partner-copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.partner-copy strong { font-weight: 600; }
.partner-fields {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.35rem 0 0.9rem;
  background: var(--cream);
}
.suggest-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.suggest-row form { margin: 0; }
.suggest-row p { margin: 0.15rem 0 0; }
.bundle-line { margin: 0.35rem 0; }
.claim-banner {
  background: #fbf6f1;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terra);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.1rem;
}
.claim-banner strong { display: block; margin-bottom: 0.35rem; }
.claim-banner form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-top: 0.6rem; }
.claim-banner input[type="text"] { flex: 1 1 12rem; }
.flag { display: block; color: var(--terra-deep); font-weight: 600; }
.import-ready { color: var(--lime-deep); font-weight: 600; }
.stats-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.stats-page h2 { margin-top: 1.6rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem 0.75rem;
}
.stat-card h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.stat-kicker { margin: 0; color: var(--muted); font-size: 0.82rem; }
.stat-num {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }
.stat-change { margin: 0.1rem 0 0; font-weight: 600; }
.stat-change.up { color: var(--lime-deep); }
.stat-change.down { color: var(--terra-deep); }
.stat-change.flat { color: var(--muted); }
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: 0.65rem;
}
.stat-bars span {
  flex: 1;
  background: var(--lime);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.stat-note { margin-top: 0.35rem; }
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1rem auto 0;
  width: min(1100px, calc(100% - 2rem));
}
.notice p { margin: 0 0 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 1rem; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
}
.chip span { padding: 0.45rem 0.8rem; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip:has(input:checked) { background: rgba(157, 193, 89, 0.35); border-color: var(--lime-deep); }
.chip:has(input:focus-visible) { outline: 2px solid var(--lime-deep); }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
