@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Design tokens: white canvas, light grey surfaces, deep forest green with lime accents. */
:root {
  --ink: #111613;
  --text: #2b322e;
  --muted: #878d89;
  --line: #eceeeb;
  --surface: #f4f5f3;
  --surface-2: #e9ece8;
  --forest: #1f4d2b;
  --forest-2: #2a5d36;
  --lime: #9ddc74;
  --lime-2: #c6eeaa;
  --lime-soft: #e7f5dd;
  --online: #4cc35a;
  --font: Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
.hide-scroll { scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* Type */
.page-title { font-size: 30px; line-height: 1.08; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.page-title em, .section-title em { font-style: normal; color: inherit; padding: 0 .05em; background: linear-gradient(transparent 60%, var(--lime-2) 60%, var(--lime-2) 94%, transparent 94%); }
.section-title { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.eyebrow { font-size: 13px; color: var(--muted); }
.lead { font-size: 15px; line-height: 1.5; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--forest); font-size: 14px; font-weight: 500; }

/* Header */
.logo-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, #c6f2a2, #84cf5d); color: var(--forest); font-size: 19px; font-weight: 700; }
.logo-tile.is-large { width: 64px; height: 64px; border-radius: 18px; font-size: 34px; }
.logo-word { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.state-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; }
.state-pill svg { color: var(--forest); }
.round-button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 999px; color: var(--ink); background: transparent; }
.round-button:hover { background: var(--surface); }
.round-button.is-filled { background: var(--surface); }
.round-button.on-map { background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }

/* Search and chips */
.search-box { display: flex; align-items: center; gap: 8px; height: 56px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); }
.search-box svg { flex: none; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.search-box button { height: 44px; padding: 0 18px; border-radius: 12px; background: var(--forest); color: #fff; font-size: 14px; font-weight: 500; }
.category-pill { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.category-pill svg { width: 20px; height: 20px; color: var(--text); }
.category-pill.active { background: var(--lime-soft); color: var(--forest); box-shadow: inset 0 0 0 1px #cfe9bd; }
.category-pill.active svg { color: var(--forest); }
.filter-button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; }
.filter-button svg { width: 18px; height: 18px; color: var(--forest); }

/* Buttons */
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 16px; font-size: 16px; font-weight: 500; text-align: center; transition: transform .1s; }
.primary-button { background: var(--forest); color: #fff; }
.secondary-button { background: var(--surface); color: var(--ink); }
.primary-button:active, .secondary-button:active { transform: scale(.985); }
.primary-button:disabled { opacity: .6; }
.button-sm { min-height: 46px; padding: 0 18px; border-radius: 14px; font-size: 14px; }

/* Listing cards: open = forest card with lime figures, closed = grey card. */
.kcard { border-radius: 22px; padding: 18px; background: var(--surface); color: var(--ink); }
.kcard-open { background: var(--forest); color: #fff; }
.kcard-meta { font-size: 13px; color: var(--muted); }
.kcard-open .kcard-meta { color: rgb(255 255 255 / .78); }
.kcard-title { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.kcard-label { font-size: 13px; color: var(--muted); }
.kcard-value { margin-top: 1px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.kcard-open .kcard-label { color: var(--lime); }
.kcard-open .kcard-value { color: var(--lime); }
.kcard-open .kcard-label.is-dim { color: rgb(157 220 116 / .75); }
.kcard-offer { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--text); }
.kcard-open .kcard-offer { color: rgb(255 255 255 / .86); }
.kcard-button { display: grid; flex: 1; place-items: center; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-size: 15px; font-weight: 500; }
.kcard-open .kcard-button { background: var(--forest-2); color: #fff; }
.kcard-open .avatar { box-shadow: 0 0 0 2px var(--forest); }
.save-button { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.kcard-open .save-button { background: var(--forest-2); color: #fff; }
.save-button.saved { color: var(--forest); }
.kcard-open .save-button.saved { color: var(--lime); }
.save-button.saved svg .fill { fill: currentColor; }
.save-button.is-round { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); }

/* Avatars and badges */
.avatar { position: relative; display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: var(--forest); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar.is-xl { width: 64px; height: 64px; font-size: 18px; }
.avatar.is-tile { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.avatar.is-open::after { content: ''; position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; border: 2.5px solid #fff; border-radius: 999px; background: var(--online); }
.tone-0 { background: #c9ecb0; } .tone-1 { background: #f2dfb1; } .tone-2 { background: #c3e1ee; }
.tone-3 { background: #f0d0c2; } .tone-4 { background: #dcd5f0; } .tone-5 { background: #b6e3cf; }
.verified { display: inline-grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: var(--lime); color: var(--forest); }
.verified svg { stroke-width: 3.25; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--online); }

/* Lists: rows separated by hairlines, like the participants list. */
.list { display: grid; }
.list-row { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; }
.list-row:last-child { border-bottom: 0; }
.row-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--surface); color: var(--forest); }
.row-icon svg { width: 22px; height: 22px; }
.row-text { min-width: 0; flex: 1; }
.row-text strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.row-text small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.row-end { flex: none; margin-left: auto; font-size: 14px; color: var(--muted); text-align: right; }
.row-chevron { flex: none; width: 20px; height: 20px; color: #c3c8c4; }
.list-label { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Info grid (Date / Start / Meeting point style) */
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { margin-top: 2px; font-size: 16px; font-weight: 500; color: var(--ink); }

/* Panels */
.panel { border-radius: 22px; background: var(--surface); padding: 20px; }
.panel-forest { border-radius: 22px; background: var(--forest); padding: 20px; color: #fff; }
.panel-forest .eyebrow { color: var(--lime); }
.note { display: flex; gap: 12px; border-radius: 18px; background: var(--surface); padding: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.note svg { flex: none; width: 20px; height: 20px; color: var(--forest); }
.note strong { color: var(--ink); font-weight: 500; }

/* Maps: soft grey tiles, avatar pins with a white ring and a tail. */
.map-box { position: relative; height: 380px; overflow: hidden; border-radius: 24px; background: #eef0ec; isolation: isolate; }
.map-box.is-small { height: 170px; border-radius: 20px; }
.map-box .leaflet-tile-pane { filter: grayscale(.75) brightness(1.06) contrast(.92); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px; background: rgb(255 255 255 / .75) !important; }
.leaflet-bar { border: 0 !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 2px 10px rgb(0 0 0 / .12) !important; }
.leaflet-bar a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .15); }
.leaflet-popup-content { margin: 12px 16px; font-size: 14px; }
.leaflet-popup-content a { color: var(--forest); font-weight: 600; }
.map-pin { background: none; border: 0; }
.map-pin .pin { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 999px; color: var(--forest); font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgb(0 0 0 / .2); }
.map-pin .pin::after { content: ''; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 6px solid transparent; border-top: 7px solid #fff; }
.map-pin .pin img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }
.map-pin .pin.is-drop { background: var(--forest); color: #fff; }
.map-me { background: none; border: 0; }
.map-me span { display: block; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 8px rgb(157 220 116 / .3), 0 2px 6px rgb(0 0 0 / .2); }
.map-overlay { position: absolute; z-index: 500; }

/* Seller status */
.status-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-radius: 22px; padding: 20px; background: var(--surface); color: var(--ink); }
.status-card .status-label { font-size: 13px; color: var(--muted); }
.status-card .status-copy { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.status-card h2 { margin-top: 2px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.status-card.is-open { background: var(--forest); color: #fff; }
.status-card.is-open .status-label { color: var(--lime); }
.status-card.is-open .status-copy { color: rgb(255 255 255 / .8); }
.status-switch { flex: none; width: 60px; height: 36px; border-radius: 999px; background: #cfd5d0; padding: 3px; }
.status-switch span { display: block; width: 30px; height: 30px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
.status-card.is-open .status-switch { background: var(--lime); }
.status-card.is-open .status-switch span { transform: translateX(24px); }

/* Forms */
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.form-label input:not([type=radio]):not([type=file]), .form-label select, .form-label textarea { display: block; width: 100%; height: 54px; margin-top: 6px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 16px var(--font); outline: 0; transition: border-color .15s, background .15s; }
.form-label textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; }
.form-label select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; }
.form-label input:focus, .form-label select:focus, .form-label textarea:focus { border-color: var(--forest); background-color: #fff; }
.form-label input::placeholder, .form-label textarea::placeholder { color: #a9aeab; }
.form-label input[type=file] { display: block; width: 100%; margin-top: 6px; color: var(--muted); font-size: 14px; }
.form-label input[type=file]::file-selector-button { margin-right: 12px; border: 0; border-radius: 12px; background: var(--surface); padding: 12px 16px; color: var(--ink); font: 500 14px var(--font); }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); cursor: pointer; }
.choice input { width: 20px; height: 20px; flex: none; accent-color: var(--forest); }
.choice:has(input:checked) { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--forest); }
.choice strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Bottom tab bar with the round + in the middle */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; border-top: 1px solid var(--line); background: rgb(255 255 255 / .96); padding: 8px 8px max(10px, env(safe-area-inset-bottom)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar-inner { display: flex; max-width: 560px; margin: 0 auto; align-items: center; justify-content: space-around; }
.nav-item { display: flex; min-width: 60px; flex-direction: column; align-items: center; gap: 3px; color: #8e938f; font-size: 11px; font-weight: 500; }
.nav-item.is-active { color: var(--forest); }
.nav-item.is-active svg .fill { fill: currentColor; }
.nav-item.is-active svg .needle { fill: #fff; stroke: #fff; }
.nav-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: #edf2ec; color: var(--forest); }
.nav-plus.is-active { background: var(--forest); color: #fff; }

/* Dialogs as rounded sheets */
dialog.sheet { width: min(94vw, 460px); max-height: 92vh; border: 0; border-radius: 28px; padding: 0; box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
dialog.sheet::backdrop { background: rgb(10 22 14 / .45); }
.sheet-body { background: #fff; padding: 24px; }
.sheet-title { margin-top: 2px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }

/* Toast */
.toast { pointer-events: none; position: fixed; z-index: 50; bottom: 100px; left: 50%; width: min(calc(100% - 32px), 480px); transform: translate(-50%, 16px); border-radius: 14px; background: var(--forest); padding: 13px 16px; color: #fff; opacity: 0; box-shadow: 0 10px 24px rgb(0 0 0 / .2); font-size: 13px; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.map-pin .pin.is-drop::before { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--lime); }
