@font-face { font-family: "Inter"; font-weight: 400 500; font-style: normal; font-display: swap; src: url(fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-style: normal; font-display: swap; src: url(fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600 900; font-style: normal; font-display: swap; src: url(fonts/interdisplay-700.woff) format("woff"); }

:root {
  --bg: #f3f6f5; --surface: #ffffff; --ink: #0e1b1d; --muted: #566a6d; --line: #e1e8e7; --line-strong: #cbd8d6;
  --brand: #0a6b57; --brand-hi: #12906f; --brand-ink: #ffffff; --soft: #e8f3f0; --accent: #f0a23a;
  --good: #1b8057; --warn: #a15f0c; --bad: #c23a2b;
  --good-bg: #e2f4ea; --warn-bg: #fcf0d9; --bad-bg: #fce8e5;
  --hero-a: #06382f; --hero-b: #0f8a70; --hero-ink: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 29, .05);
  --shadow: 0 1px 2px rgba(14, 27, 29, .04), 0 10px 28px -14px rgba(14, 27, 29, .18);
  --shadow-lg: 0 2px 6px rgba(14, 27, 29, .06), 0 22px 44px -18px rgba(14, 27, 29, .28);
  --brand-glow: rgba(10, 107, 87, .55); --ring: rgba(18, 144, 111, .28);
  --glass: rgba(255, 255, 255, .82); --glass-line: rgba(14, 27, 29, .08); --glass-top: rgba(243, 246, 245, .78);
  --glow-a: rgba(18, 144, 111, .11); --glow-b: rgba(240, 162, 58, .10);
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a191c; --surface: #11262a; --ink: #e9f3f1; --muted: #9bb4b1; --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
    --brand: #3ed4ae; --brand-hi: #66e6c4; --brand-ink: #04211b; --soft: #163836; --accent: #f3b04f;
    --good: #4fd09a; --warn: #f0b552; --bad: #f58a7c;
    --good-bg: #14372d; --warn-bg: #3b3016; --bad-bg: #40201d;
    --hero-a: #0a4a3f; --hero-b: #14a083; --hero-ink: #f2fbf8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 26px 50px -20px rgba(0, 0, 0, .7);
    --brand-glow: rgba(62, 212, 174, .38); --ring: rgba(62, 212, 174, .32);
    --glass: rgba(17, 38, 42, .82); --glass-line: rgba(255, 255, 255, .1); --glass-top: rgba(10, 25, 28, .74);
    --glow-a: rgba(30, 190, 160, .22); --glow-b: rgba(240, 160, 70, .09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a191c; --surface: #11262a; --ink: #e9f3f1; --muted: #9bb4b1; --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --brand: #3ed4ae; --brand-hi: #66e6c4; --brand-ink: #04211b; --soft: #163836; --accent: #f3b04f;
  --good: #4fd09a; --warn: #f0b552; --bad: #f58a7c;
  --good-bg: #14372d; --warn-bg: #3b3016; --bad-bg: #40201d;
  --hero-a: #0a4a3f; --hero-b: #14a083; --hero-ink: #f2fbf8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 26px 50px -20px rgba(0, 0, 0, .7);
  --brand-glow: rgba(62, 212, 174, .38); --ring: rgba(62, 212, 174, .32);
  --glass: rgba(17, 38, 42, .82); --glass-line: rgba(255, 255, 255, .1); --glass-top: rgba(10, 25, 28, .74);
  --glow-a: rgba(30, 190, 160, .22); --glow-b: rgba(240, 160, 70, .09);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 1rem; }
.tight { margin-bottom: .25rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { max-width: 760px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--brand); text-decoration: none; letter-spacing: -.02em; }
.logo.big { font-size: 2rem; display: block; margin-bottom: 1rem; }
main, main:focus, main:focus-visible { outline: none; }
.view { padding: 8px 16px 24px; display: block; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .right { text-align: end; }
.row { display: flex; align-items: center; } .row.between { justify-content: space-between; gap: 12px; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.stack > * + * { margin-top: 12px; }
.pad { padding: 14px; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; max-width: 760px; margin: 0 auto; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: .72rem; color: var(--muted); text-decoration: none; min-height: 56px; justify-content: center; }
.tabs a.on { color: var(--brand); font-weight: 700; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); padding: 0 8px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.icon { padding: 0; width: 44px; } .btn.icon.on { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.back { margin-bottom: 4px; }
input, select, textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; margin-bottom: 8px; display: block; }
.field { display: block; margin-bottom: 10px; } .lbl { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin: 6px 0 10px; color: var(--muted); }
.searchbar input { border: 0; background: transparent; padding-inline-start: 0; }
.seg { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.seg.small { margin: 0; } .seg.small button { min-height: 34px; padding: 0 10px; font-size: .85rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.listhead { margin: 6px 0 10px; }

/* cards */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.card:hover { border-color: var(--brand); }
.card-art { position: relative; } .card-art .art, .card-art .photo { display: block; width: 100%; height: 170px; } .card-art .photo { object-fit: cover; background: var(--soft); }
.card-body { padding: 12px 14px 14px; }
.card .price { font-size: 1.2rem; } .title { font-weight: 600; } .facts { margin-top: 4px; color: var(--muted); }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #667085; display: grid; place-items: center; cursor: pointer; }
.heart.on { color: var(--bad); }
.tag { position: absolute; inset-inline-start: 10px; top: 10px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--brand); }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.muted { background: var(--soft); color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.panel.ok { background: var(--good-bg); border-color: transparent; color: var(--ink); }
.panel summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: .9rem; color: var(--ink); }
.notice .ic { flex: none; margin-top: 2px; color: var(--brand); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.list { padding-inline-start: 1.2rem; margin: .5rem 0; } .list li { margin-bottom: 4px; } .list.big li { margin-bottom: 10px; font-size: 1.05rem; }
.flag.high { color: var(--bad); font-weight: 600; } .flag.medium { color: var(--warn); font-weight: 600; }
.flags { border-color: var(--bad); }
.dim { opacity: .55; }

/* listing */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; } .hero .art, .hero .photo { display: block; width: 100%; height: 260px; } .hero .photo { object-fit: cover; background: var(--soft); }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; } .gallery img { flex: 0 0 88%; height: 260px; object-fit: cover; scroll-snap-align: start; border-radius: var(--radius); background: var(--soft); }
.caption { position: absolute; inset-inline-start: 10px; bottom: 8px; font-size: .75rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.fact { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.facts.row { margin: 12px 0; }
.ring { flex: none; color: var(--ink); }
.actions.sticky { position: sticky; bottom: 56px; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin: 0 -16px; background: var(--bg); border-top: 1px solid var(--line); z-index: 4; }
.actions .btn { flex: 1; font-size: .92rem; padding: 0 10px; text-align: center; }

/* map */
.mapwrap { margin-top: 6px; } .map { width: 100%; height: auto; background: var(--soft); border-radius: var(--radius); border: 1px solid var(--line); }
.map .grid { stroke: var(--line); stroke-width: 1; } .map .maplabel { fill: var(--muted); font-size: 13px; font-weight: 600; }
.map .pin { cursor: pointer; stroke: var(--surface); stroke-width: 2; fill: var(--muted); } .map .pin.good { fill: var(--good); } .map .pin.warn { fill: var(--warn); } .map .pin.bad { fill: var(--bad); } .map .pin.sel { stroke: var(--ink); }
.mapcard { margin-top: 10px; }

/* deals */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--soft); border-color: transparent; }
.bubble .text { white-space: pre-wrap; }
.proposal { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.bigamount { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.verdict { border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--soft); }
.verdict.good { background: var(--good-bg); } .verdict.warn { background: var(--warn-bg); } .verdict.bad { background: var(--bad-bg); }
.verdict .list { margin: .25rem 0 0; }
.dialbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* welcome + dial */
.welcome { padding-top: 40px; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.lang { min-height: 64px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.lang.on, .lang:hover { border-color: var(--brand); color: var(--brand); }
.levels { display: grid; gap: 8px; margin: 8px 0; }
.level { text-align: start; padding: 12px 14px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; }
.level.on { border-color: var(--brand); background: var(--soft); }

/* settings */
.switch { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.switch input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.sw-text { display: grid; gap: 2px; }
.perms { width: 100%; border-collapse: collapse; } .perms td { padding: 8px 4px; border-bottom: 1px solid var(--line); } .perms td.v { text-align: end; font-weight: 700; white-space: nowrap; }
.perms .v.allow { color: var(--good); } .perms .v.needs_approval { color: var(--warn); } .perms .v.block { color: var(--bad); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; } .bar span { display: block; height: 100%; background: var(--brand); }

/* toast + sheet */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#sheet-host.open { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sheet { position: relative; background: var(--surface); width: 100%; max-width: 760px; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Right-to-left languages (Arabic, Urdu): arrows that point back or forward must flip. */
[dir="rtl"] .back svg, [dir="rtl"] .searchbar svg { transform: scaleX(-1); }
/* Writing systems with tall marks need a little more line height. */
:lang(hi), :lang(bn), :lang(ur), :lang(ar) { line-height: 1.7; }

/* first-run question: four big buttons */
.intents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.intent { min-height: 112px; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px 10px; text-align: center; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
.intent:hover, .intent:focus-visible { border-color: var(--brand); color: var(--brand); }
@media (max-width: 380px) { .intents { grid-template-columns: 1fr; } .intent { min-height: 76px; grid-auto-flow: column; justify-content: start; } }

/* explore: one quiet row for the country and the filters button */
.quickrow { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.quickrow .grow { flex: 1; min-width: 0; margin: 0; }
.quickrow select { width: 100%; }
.filterbtn { white-space: nowrap; }
.filterbtn.on { border-color: var(--brand); color: var(--brand); }
.tag.featured { background: #b7791f; color: #fff; }

/* own listings */
.mine { display: grid; gap: 10px; margin-bottom: 10px; }
.mine.dim { opacity: .75; }
details.more > summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }


/* ================= design pass 2: brand, home hero, places, cards, guide ================= */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo .mark { flex: none; }
.logo.big { font-size: 2rem; display: flex; margin-bottom: .5rem; }
.logo.big .mark { width: 40px; height: 40px; }
.tabs a.on { position: relative; }
.tabs a.on::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.btn.primary { box-shadow: 0 2px 8px rgba(14, 107, 92, .25); }

/* home hero on Explore */
.homehero { margin: 2px -16px 12px; padding: 18px 16px 14px; color: var(--hero-ink); background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); border-radius: 0 0 28px 28px; }
.homehero h1 { font-size: 1.6rem; margin: 0 0 4px; text-wrap: balance; }
.homehero p { margin: 0 0 14px; opacity: .92; }
.homehero .searchbar { margin: 0 0 12px; padding: 2px 14px; border-color: transparent; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.homehero .seg { background: rgba(255, 255, 255, .16); margin: 0; }
.homehero .seg button { color: rgba(255, 255, 255, .88); }
.homehero .seg button.on { background: var(--surface); color: var(--brand); }

/* rows you can swipe sideways */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip .n { color: var(--muted); font-weight: 500; } .chip.on .n { color: inherit; opacity: .8; }

/* "why Vatra" cards under the places */
.why { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.why::-webkit-scrollbar { display: none; }
.whycard { flex: none; width: 168px; scroll-snap-align: start; text-align: start; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; }
.whycard:hover { border-color: var(--brand); }
.whycard .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.whycard strong { font-size: .95rem; line-height: 1.25; }
.whyhead { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 2px; }
.whyhead h2 { font-size: 1rem; margin: 0; }

/* cards: picture first, price big, score on the picture */
.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 30, 40, .14); }
.card-art .art, .card-art .photo { height: 196px; }
.card-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, rgba(0, 0, 0, .38)); pointer-events: none; }
.badges { position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.badges .pill { box-shadow: 0 1px 6px rgba(0, 0, 0, .3); font-size: .8rem; }
.card .price { font-size: 1.3rem; letter-spacing: -.01em; }
.card .facts { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.card .facts span { display: inline-flex; align-items: center; gap: 5px; }
.sampleline { align-items: flex-start; margin: 0 0 8px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* the welcome guide */
.guide { display: grid; gap: 12px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.g-art { background: var(--soft); border-radius: 24px; padding: 14px 10px; }
.g-art svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.g-slide { animation: gfade .28s ease; text-align: center; }
.g-slide h2 { font-size: 1.45rem; margin: 16px 0 6px; text-wrap: balance; }
.g-slide p { color: var(--muted); font-size: 1.04rem; margin: 0 auto; max-width: 34ch; min-height: 6.3rem; }
@keyframes gfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0; }
.dots button { position: relative; width: 10px; height: 10px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dots button::before { content: ""; position: absolute; inset: -17px -6px; }
.dots button.on { width: 28px; background: var(--brand); }
.welcome .guide { margin-top: 12px; }
.tagline { color: var(--muted); font-size: 1.05rem; margin: 0 0 1rem; max-width: 36ch; text-wrap: balance; }
.sheet-body .guide { padding-top: 2px; }
@media (prefers-reduced-motion: reduce) { .g-slide { animation: none; } .card:hover { transform: none; } }
.lead { font-size: 1.02rem; line-height: 1.6; margin: 6px 0 12px; }
.listing h1 { font-size: 1.9rem; letter-spacing: -.02em; }
.sampleline .ic { flex: none; margin-top: 2px; }
.panel.row.between .btn { flex: none; white-space: nowrap; }

/* wide screens: Explore uses the width, every other page stays a comfortable reading column */
@media (min-width: 900px) {
  #app { max-width: 1060px; }
  .tabs { max-width: 1060px; }
  .view:not(.explore) { max-width: 760px; margin-inline: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .homehero { margin-inline: 0; border-radius: 0 0 32px 32px; padding-inline: 24px; }
  .homehero h1 { font-size: 2rem; }
  .chips, .why { margin-inline: 0; padding-inline: 0; }
}


/* ================= design pass 3: talking across languages, prices, wishes, trust, ads ================= */
.grow { flex: 1; min-width: 0; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
.chip.static { cursor: default; min-height: 34px; font-size: .88rem; font-weight: 500; }
.chip.static:hover { border-color: var(--line); }
.linkbtn { background: none; border: 0; padding: 4px 0; min-height: 28px; font: inherit; font-size: inherit; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.switch.compact { padding: 0; align-items: center; flex: none; }
.switch.compact input { margin-top: 0; }

/* chats: the translation bar, a note under each message, the writing box */
.langbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; background: var(--soft); border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.langbar:empty { display: none; }
.langbar > svg { flex: none; color: var(--brand); }
.langbar .grow { flex: 1 1 14rem; min-width: 14rem; }
.bubble.them { align-self: flex-start; }
.bubble .meta { margin-bottom: 2px; }
.bubble .tnote { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bubble .tnote .linkbtn { font-size: .85rem; }
.composer textarea { margin-bottom: 10px; }
.composer .row.wrap { margin-bottom: 8px; }
.suggestchips { margin: 0 0 10px; padding-block: 0; }

/* prices around here */
.panel.market h2 { display: flex; align-items: center; gap: 6px; }
.panel.market p { margin-bottom: .5rem; }
.mbar { position: relative; direction: ltr; height: 74px; margin: 6px 34px 4px; }
.mbar .track { position: absolute; inset-inline: 0; top: 30px; height: 8px; border-radius: 99px; background: var(--line); }
.mbar .band { position: absolute; top: 30px; height: 8px; border-radius: 99px; background: var(--brand); opacity: .4; }
.mbar .med { position: absolute; top: 24px; width: 3px; height: 20px; margin-inline-start: -1px; border-radius: 2px; background: var(--ink); }
.mbar .dot { position: absolute; top: 25px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.mbar .dot span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 700; color: var(--ink); }
.mbar .ends { position: absolute; inset-inline: 0; top: 50px; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

/* "Picked for you" and the next-steps list */
.picked { margin: 8px 0 14px; }
.picked.panel .ico, .nextsteps .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.picked.panel.empty { display: grid; gap: 12px; text-align: start; padding: 14px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 260px; scroll-snap-align: start; }
.pick .card-art .art, .pick .card-art .photo { height: 140px; }
.why-list { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 3px; }
.why-list li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.why-list li svg { flex: none; color: var(--good); }
.nextsteps .steps { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 4px; }
.nextsteps .steps li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.nextsteps .steps li:last-child { border-bottom: 0; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: var(--brand-ink); }
.steps li.done .tick { background: var(--good); border-color: var(--good); }
.steps li.done .grow { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.steps li.next .tick { border-color: var(--brand); }
.steps li.next .grow { font-weight: 700; }

/* trust: what the site really does, and facts about the person behind a home */
.proof { margin: 0 0 12px; }
.proof ul { list-style: none; margin: 0 -16px 6px; padding: 2px 16px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.proof ul::-webkit-scrollbar { display: none; }
.proof li { flex: none; width: 214px; scroll-snap-align: start; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.proof li > div { display: grid; gap: 1px; min-width: 0; }
.proof li strong { font-size: .9rem; line-height: 1.25; }
.proof li .muted { line-height: 1.3; }
.proof .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
@media (min-width: 900px) { .proof ul { display: grid; grid-template-columns: repeat(4, 1fr); margin-inline: 0; padding-inline: 0; } .proof li { width: auto; } }
.trustrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .82rem; font-weight: 600; }
.tchip svg { color: var(--good); flex: none; }
.sitefooter { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sitefooter a { font-weight: 600; padding: 6px 4px; }
.about .aboutblock h2 { display: flex; align-items: center; gap: 8px; }
.about .aboutblock p { margin-bottom: 0; }
.unsub { padding-top: 32px; }
.unsub .btn { margin-top: 6px; }

/* boost: what you get */
.boostwhat, .boostfacts { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.boostwhat li { display: flex; align-items: center; gap: 8px; }
.boostwhat li svg { color: var(--good); flex: none; }
.boostfacts li { padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: .92rem; }

/* the owner's page: numbers, tips and a small chart */
.dashsummary { display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.tile strong { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; }
.tile.hot { background: var(--warn-bg); } .tile.hot strong { color: var(--warn); }
.insights { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.insights h3 { margin: 4px 0 0; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.tip .ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand); }
.tip.do { background: var(--warn-bg); } .tip.do .ico { color: var(--warn); }
.tip.good { background: var(--good-bg); } .tip.good .ico { color: var(--good); }
.tip .btn { flex: none; }
.daily summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.spark { display: block; width: 100%; height: 64px; color: var(--brand); margin-top: 6px; }
.marketbox:empty { display: none; }

/* sponsored places: always labelled, calm, never louder than a home */
.adslot { margin: 14px 0; }
.adslot[hidden] { display: none; }
.grid > .adslot { grid-column: 1 / -1; margin: 0; }
.ad { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface); }
.ad.strip { grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; }
.ad.strip .adhead, .ad.strip .adtitle, .ad.strip .adbody { grid-column: 1; }
.ad.strip .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; white-space: nowrap; }
.ad.strip .adimg { display: none; }
.adhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adtag { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adimg { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.adtitle { font-size: 1.02rem; line-height: 1.3; }
.adbody { margin: 0; font-size: .92rem; }
@media (max-width: 440px) {
  .ad.strip { grid-template-columns: 1fr; }
  .ad.strip .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
.advertise .ad { margin: 6px 0 14px; }
.advertise h3 { margin-top: 14px; }
a.btn { text-decoration: none; }
.mine-head { margin-top: 22px; }
/* rows that snap while swiping keep their 16px start gap */
.proof ul, .hscroll, .why { scroll-padding-inline: 16px; }


/* ================= design pass 4: a newer, calmer look =================
   Inter and Inter Display (shipped with the app, no outside font host), a clean light theme by default, a deep green-ink dark theme
   with a soft glow instead of black, floating navigation, rounder cards with layered shadows. Same markup as before. */
html { scroll-behavior: smooth; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 520px at 10% -8%, var(--glow-a), transparent 62%), radial-gradient(900px 480px at 100% 0%, var(--glow-b), transparent 58%); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::selection { background: var(--ring); }
h1, h2, h3, .logo, .price, .bigamount, .tile strong { font-family: var(--display); }
h1, h2 { letter-spacing: -.022em; }
h1 { font-size: 1.75rem; font-weight: 750; } h2 { font-size: 1.18rem; font-weight: 700; } h3 { font-weight: 650; }
.price, .bigamount, .tile strong, .mbar .dot span { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* header: logo left, glass bar */
.top { position: sticky; top: 0; z-index: 6; padding: 12px 16px 10px; background: var(--glass-top); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.logo { color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.035em; gap: 9px; }
.logo .mark { filter: drop-shadow(0 4px 8px var(--brand-glow)); }
.pill.muted { background: var(--soft); color: var(--muted); font-weight: 600; }

/* navigation: a floating bar on phones, a pill at the top on wide screens */
#app { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.tabs { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px)); max-width: none; padding: 6px; gap: 2px;
  border: 1px solid var(--glass-line); border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--shadow-lg); z-index: 8; }
.tabs a { min-height: 54px; border-radius: 20px; font-size: .7rem; font-weight: 600; transition: background .2s ease, color .2s ease; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--brand); color: var(--brand-ink); font-weight: 650; box-shadow: 0 6px 14px -6px var(--brand-glow); }
.tabs a.on::before { display: none; }
#toast { bottom: calc(104px + env(safe-area-inset-bottom)); border-radius: 16px; background: rgba(14, 27, 29, .94); color: #fff; box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* buttons and fields */
.btn { min-height: 46px; border-radius: 14px; box-shadow: var(--shadow-sm); letter-spacing: -.005em; transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, filter .2s ease; }
.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); border-color: transparent; color: var(--brand-ink); box-shadow: 0 10px 20px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .24); }
.btn.primary:hover { filter: brightness(1.07); border-color: transparent; }
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { background: var(--soft); border-color: transparent; }
.btn.danger { border-color: var(--bad); }
.btn.small { min-height: 38px; border-radius: 12px; }
.btn.icon { border-radius: 14px; }
input, select, textarea { border-radius: 14px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.searchbar { border-radius: 18px; box-shadow: var(--shadow-sm); }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.searchbar input:focus-visible { box-shadow: none; }
.seg { border-radius: 16px; padding: 4px; }
.seg button { border-radius: 12px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.seg button.on { box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.chip { border-radius: 999px; box-shadow: var(--shadow-sm); transition: background .2s ease, border-color .2s ease, color .2s ease; }
.chip.on { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); box-shadow: 0 8px 16px -10px var(--brand-glow); }

/* the home page hero: a deep green card with soft light */
.homehero { position: relative; overflow: hidden; margin: 4px 0 16px; padding: 26px 20px 20px; border-radius: 30px;
  background: radial-gradient(480px 260px at 92% -18%, rgba(255, 255, 255, .24), transparent 62%), radial-gradient(420px 300px at -8% 118%, rgba(240, 162, 58, .30), transparent 60%), linear-gradient(145deg, var(--hero-a), var(--hero-b));
  box-shadow: 0 26px 48px -26px rgba(6, 56, 47, .7); }
.homehero::before { content: ""; position: absolute; inset-inline-end: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 0 38px rgba(255, 255, 255, .045), 0 0 0 76px rgba(255, 255, 255, .03); pointer-events: none; }
.homehero > * { position: relative; }
.homehero h1 { font-size: clamp(1.75rem, 6.2vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.07; margin-bottom: 8px; }
.homehero p { font-size: 1.04rem; opacity: .94; max-width: 46ch; }
.homehero .searchbar { min-height: 58px; padding: 2px 16px; border-radius: 20px; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .42); background: #fff; color: #566a6d; }
.homehero .searchbar input { color: #0e1b1d; }
.homehero .seg { background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.homehero .seg button { color: rgba(255, 255, 255, .9); }
.homehero .seg button.on { background: #fff; color: #0a6b57; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }

/* cards: big picture, big price, quiet details */
.card { border-radius: 22px; border-color: var(--line); box-shadow: var(--shadow); }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-art .art, .card-art .photo { height: 210px; }
.card-art::after { height: 90px; background: linear-gradient(transparent, rgba(6, 20, 18, .5)); }
.card-body { padding: 14px 16px 16px; }
.card .price { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.card .title { font-weight: 600; }
.tag { background: rgba(8, 26, 24, .62); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: .72rem; letter-spacing: .02em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag.featured { background: linear-gradient(135deg, #f7c660, #e08f1f); color: #2a1a00; box-shadow: 0 6px 14px -6px rgba(224, 143, 31, .7); }
.heart { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); transition: transform .15s ease; }
.heart:hover { transform: scale(1.08); }
.panel { border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.notice { border-radius: 16px; }
.fact { background: var(--soft); border: 1px solid transparent; font-weight: 500; }
.hero { border-radius: 26px; box-shadow: var(--shadow); }
.hero .art, .hero .photo { height: 280px; }
.gallery img { border-radius: 22px; }
.listing h1 { font-size: 2.05rem; font-weight: 800; letter-spacing: -.035em; }
.whycard, .proof li { border-radius: 20px; box-shadow: var(--shadow-sm); }
.whycard:hover { border-color: var(--line-strong); }
.whycard .ico, .proof .ico, .picked.panel .ico, .nextsteps .ico { border-radius: 14px; background: linear-gradient(145deg, var(--soft), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.tile, .tip, .boostfacts li, .langbar { border-radius: 16px; }
.tchip { background: var(--soft); border: 1px solid var(--line); }

/* listing page: the two main buttons float above the bar */
.actions.sticky { bottom: calc(86px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 62%, transparent); border-top: 0; margin: 0 -16px; padding: 26px 16px 8px; }
.actions.sticky .btn { box-shadow: var(--shadow-lg); }

/* chat */
.bubble { border-radius: 20px; box-shadow: var(--shadow-sm); padding: 11px 14px; }
.bubble.me { background: var(--soft); border-color: var(--line); border-end-end-radius: 6px; }
.bubble.them { border-end-start-radius: 6px; }
.langbar { border: 1px solid var(--line); }

/* sheets (pop-ups) */
.backdrop { background: rgba(4, 18, 16, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sheet { border-radius: 30px 30px 0 0; box-shadow: var(--shadow-lg); animation: sheetup .26s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -6px auto 12px; }
@keyframes sheetup { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* first run: language and the four questions */
.lang { border-width: 1px; border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
.lang:hover { transform: translateY(-1px); }
.lang.on { border-color: var(--brand); background: var(--soft); box-shadow: 0 0 0 3px var(--ring); }
.intent { border-width: 1px; border-radius: 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.intent:hover, .intent:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.level { border-width: 1px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.level.on { box-shadow: 0 0 0 3px var(--ring); }
.g-art { border-radius: 30px; background: linear-gradient(160deg, var(--soft), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-slide h2 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; }
.dots button.on { background: linear-gradient(90deg, var(--brand-hi), var(--brand)); }

/* ads and the rest keep their quiet look, on the same surface */
.ad { border-style: solid; border-radius: 20px; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); box-shadow: var(--shadow-sm); }
.map { border-radius: 20px; }
.sitefooter { margin-top: 36px; }

/* wide screens: navigation moves to the top, as a pill next to the logo */
@media (min-width: 900px) {
  #app { max-width: 1160px; padding-bottom: 56px; }
  .top { padding: 16px 16px 14px; min-height: 76px; }
  .tabs { top: 14px; bottom: auto; width: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
  .tabs a { flex-direction: row; gap: 8px; padding: 0 20px; min-height: 46px; font-size: .92rem; border-radius: 999px; }
  .actions.sticky { bottom: 18px; }
  #toast { bottom: 32px; }
  .homehero { margin-inline: 0; border-radius: 34px; padding: 44px 44px 32px; }
  .homehero h1 { font-size: 2.9rem; }
  .homehero .searchbar { max-width: 640px; }
  .homehero .seg { max-width: 420px; }
  .card-art .art, .card-art .photo { height: 220px; }
  .hero .art, .hero .photo { height: 360px; }
  .view:not(.explore) { max-width: 780px; }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } html { scroll-behavior: auto; } .btn:active, .heart:hover, .lang:hover, .intent:hover { transform: none; } }
.picked.panel.empty { color: var(--ink); }
@media (min-width: 900px) {
  .top { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
