/* Layout: a marketplace home. Sticky white bar, a search pill as the hero's instrument, horizontal categories,
   a card grid where the total price is the headline, a host calculator, a transparency ledger, questions. */
:root {
  --bg: #f6f7f6;
  --surface: #ffffff;
  --ink: #17201f;
  --muted: #5e6a68;
  --line: #e3e7e5;
  --teal: #0f766e;
  --teal-ink: #0a4f4a;
  --teal-soft: #dcf1ed;
  --sun: #f59e0b;
  --sun-soft: #fff1d6;
  --on-teal: #ffffff;
  --band: #0a4f4a;
  --shadow: 0 10px 30px rgba(23, 32, 31, 0.08);
  --display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1513;
    --surface: #161d1b;
    --ink: #eef2f0;
    --muted: #9eaba7;
    --line: #26302d;
    --teal: #2dd4bf;
    --teal-ink: #a7efe3;
    --teal-soft: #11332f;
    --sun: #fbbf24;
    --sun-soft: #3a2c10;
    --on-teal: #0f1513;
    --band: #0c3b37;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1513;
  --surface: #161d1b;
  --ink: #eef2f0;
  --muted: #9eaba7;
  --line: #26302d;
  --teal: #2dd4bf;
  --teal-ink: #a7efe3;
  --teal-soft: #11332f;
  --sun: #fbbf24;
  --sun-soft: #3a2c10;
  --on-teal: #0f1513;
  --band: #0c3b37;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--surface);
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted {
  color: var(--muted);
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* header */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.15rem var(--display);
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover {
  background: var(--bg);
  color: var(--ink);
}
.pill-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
}
.pill-btn.primary:hover {
  filter: brightness(1.07);
}
.pill-btn:focus-visible,
.nav a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 2px;
}

/* hero */
.hero {
  padding-block: 44px 28px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  max-width: 15ch;
}
.hero h1 span {
  color: var(--teal);
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 16px 0 26px;
}
.ask {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 10px 10px 10px 20px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ask textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1.05rem/1.4 var(--body);
  padding: 10px 0;
  resize: none;
  overflow-y: auto;
  max-height: 9.5em;
  display: block;
  field-sizing: content;
  min-height: 2.8em;
}
.ask textarea::placeholder {
  color: var(--muted);
}
.ask button {
  border: 0;
  background: var(--teal);
  color: var(--on-teal);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ask button:hover {
  filter: brightness(1.07);
}
.ask button:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 2px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.answer {
  display: none;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.answer.on {
  display: flex;
}
.answer .av {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  font: 800 0.8rem var(--display);
}
.answer p {
  margin: 0;
  line-height: 1.5;
}
.answer p + p {
  margin-top: 8px;
}
.answer b {
  color: var(--teal-ink);
}
.answer .demo {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sun-soft);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
  color: var(--ink);
}
.thinking {
  display: inline-flex;
  gap: 4px;
}
.thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking i {
    animation: none;
  }
}
.trust {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

/* categories */
.cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 18px 4px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar {
  display: none;
}
.cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}
.cat[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cat svg {
  width: 20px;
  height: 20px;
}

/* sections */
section {
  padding-block: 40px;
}
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sec-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.sec-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.link {
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}
.sec-head .link {
  white-space: nowrap;
}
.split > *,
.host > *,
.trans > *,
.ai > *,
.chat > * {
  min-width: 0;
}
.link:hover {
  text-decoration: underline;
}

/* listing cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  display: block;
  text-decoration: none;
  min-width: 0;
}
.cover {
  position: relative;
  aspect-ratio: 20 / 19;
  max-width: 100%;
  border-radius: var(--r);
  overflow: hidden;
}
.cover svg {
  width: 100%;
  height: 100%;
  display: block;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #17201f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
}
.heart svg {
  width: 18px;
  height: 18px;
  color: #17201f;
}
.card .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.rate svg {
  width: 14px;
  height: 14px;
  color: var(--sun);
}
.card .sub {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 2px 0 6px;
}
.price {
  font-size: 0.95rem;
}
.price b {
  font-size: 1.05rem;
}
.price .total {
  display: block;
  color: var(--teal-ink);
  font-weight: 600;
}

/* promise split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
}
.split h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.split p {
  color: var(--muted);
  max-width: 48ch;
}
.ledger {
  background: var(--bg);
  border-radius: var(--r);
  padding: 20px 22px;
}
.ledger h4 {
  margin: 0 0 10px;
  font: 600 0.75rem var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.ledger td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.ledger td:last-child {
  text-align: right;
}
.ledger tr.zero td:last-child {
  color: var(--teal);
  font-weight: 800;
}
.ledger tr.total td {
  border: 0;
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 12px;
}
.checks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: start;
}
.checks svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--teal);
  margin-top: 2px;
}

/* host */
.host {
  background: var(--band);
  color: #f3fbf9;
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.host h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: #fff;
}
.host p {
  color: #cfe8e3;
  max-width: 46ch;
}
.host .pill-btn {
  background: #fff;
  color: #0a4f4a;
  border-color: #fff;
}
.calc {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
  padding: 22px;
}
.calc label {
  display: block;
  font-size: 0.85rem;
  color: #cfe8e3;
  margin-bottom: 6px;
}
.calc input[type='range'] {
  width: 100%;
  accent-color: #fff;
}
.calc .out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.calc .out div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}
.calc .out small {
  display: block;
  color: #cfe8e3;
  font-size: 0.78rem;
}
.calc .out b {
  font: 800 1.5rem var(--display);
  color: #fff;
}
.calc .out b.zero {
  color: #ffd98a;
}
.calc .note {
  font-size: 0.82rem;
  color: #cfe8e3;
  margin: 12px 0 0;
}

/* how */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  min-width: 0;
}
.step .n {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  font: 800 1rem var(--display);
  margin-bottom: 12px;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.seg button[aria-selected='true'] {
  background: var(--ink);
  color: var(--bg);
}

/* transparency */
.trans {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}
.bars {
  display: grid;
  gap: 10px;
}
.barrow {
  display: grid;
  grid-template-columns: 170px 1fr 70px;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
}
.barrow .track {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.barrow .fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}
.barrow .fill.alt {
  background: var(--sun);
}
.barrow span:last-child {
  text-align: right;
  font-weight: 600;
}

/* assistant */
.ai {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.chat {
  display: grid;
  gap: 10px;
}
.msg {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.msg.me {
  justify-self: end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 6px;
}
.msg.bot {
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.msg.bot b {
  color: var(--teal-ink);
}

/* faq */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
details + details {
  margin-top: 10px;
}
summary {
  font-weight: 600;
  cursor: pointer;
  font-family: var(--display);
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 44px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: inherit;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .split,
  .host,
  .trans,
  .ai {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .split,
  .host,
  .ai {
    padding: 24px;
  }
  .barrow {
    grid-template-columns: 120px 1fr 60px;
  }
  .sec-head {
    flex-wrap: wrap;
    align-items: start;
  }
  .sec-head .link {
    white-space: normal;
  }
  .ask {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 6px 16px 8px;
  }
  .ask textarea {
    flex: none;
    width: 100%;
  }
  .ask button {
    justify-content: center;
    padding: 13px 20px;
  }
  .bar .pill-btn:not(.primary) {
    display: none;
  }
  .hero h1 {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card .cover {
    transition: transform 0.25s ease;
  }
  .card:hover .cover {
    transform: translateY(-3px);
  }
}
.cover .cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Maps (map.js): a place on a listing's or a room's page, the results of a search, a host's picker. */
.place-map,
.results-map,
.map-box {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line, #e3e7e6);
  z-index: 0;
}
.place-map {
  height: 260px;
  margin: 8px 0;
}
.results-map {
  height: 360px;
  margin: 0 0 20px;
}
.map-box {
  height: 300px;
  margin: 8px 0;
}
.map-find input {
  flex: 1;
  min-width: 0;
}
.price-pin span {
  display: inline-block;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #17201f;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.map-search {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
@media (max-width: 640px) {
  .results-map {
    height: 280px;
  }
}
