/* prestaMe — design tokens from newdesign.html (Inter; forest ink, sage, peach). No purple anywhere. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #172E29;          /* primary text, icons */
  --ink-2: #263B36;        /* logo, headings, strong labels */
  --muted: #6B7770;        /* secondary text, idle icons */
  --line: #DFE3DA;         /* borders, dividers */
  --sage: #9BC2B2;         /* trust / location accents */
  --sage-tint: rgba(155, 194, 178, .36);
  --sage-soft: #EEF4F1;
  --peach: #F5A982;        /* primary action */
  --peach-hover: #EE9670;
  --peach-tint: rgba(245, 169, 130, .14);
  --paper: #F7F6F2;
  --forest: #175E49;       /* "you are here" */
  --forest-tint: rgba(23, 94, 73, .12);
  --white: #fff;
  --danger: #C2543D;
  --danger-tint: #FBEAE5;
  --shadow: 0 4px 18px rgba(18, 36, 28, .13);
  --shadow-sm: 0 3px 9px rgba(18, 36, 28, .13);
  --r-card: 15px;
  --r-field: 12px;
  --r-pill: 14px;
  --header-h: 64px;
  --catbar-h: 41px;
  --tabbar-h: 0px;
  --page-x: 50px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; padding-bottom: var(--tabbar-h); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink-2); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { flex: none; display: block; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 5000; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================ header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); }
.topbar {
  height: var(--header-h); display: grid; grid-template-columns: 1fr minmax(260px, 342px) 1fr; align-items: center;
  gap: 16px; padding: 0 21px 0 23px; border-bottom: 1px solid #000;
}
.top-left { display: flex; align-items: center; gap: 33px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 32px; line-height: 32px; font-weight: 700; color: var(--ink-2); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-logo { width: 40px; height: 40px; flex: none; display: block; }
.golocal {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 8px 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  font-size: 10px; font-weight: 600; letter-spacing: .02em; cursor: pointer; white-space: nowrap;
}
.golocal .ico { width: 14px; height: 14px; }
.golocal[aria-pressed="true"] { background: var(--sage-tint); border-color: var(--sage); color: var(--ink-2); }
.golocal[aria-pressed="true"] .ico { color: var(--ink-2); }

.searchbar {
  position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white);
}
.searchbar:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.type-chip {
  flex: none; height: 31px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white);
  color: var(--muted); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.type-chip:hover { border-color: var(--sage); }
.searchbar > .ico { color: var(--ink); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 13px; color: var(--ink); }
.searchbar input::placeholder { color: var(--muted); }
.icon-plain { flex: none; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--ink); border-radius: 8px; display: grid; place-items: center; }
.icon-plain:hover { background: var(--paper); }

.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav-icons { display: flex; align-items: center; gap: 12px; margin-right: 10px; }
.nav-icon {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted);
  border: 0; background: none; cursor: pointer; text-decoration: none; padding: 0;
}
.nav-icon:hover { background: var(--paper); color: var(--ink-2); }
.nav-icon[aria-current="page"] { color: var(--muted); }
.nav-icon .avatar { width: 26px; height: 26px; font-size: 10px; }
.badge-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--peach); color: var(--white); font-size: 10px; font-weight: 700; line-height: 1;
}
.nav-icon .badge-count { position: absolute; top: 3px; right: 1px; box-shadow: 0 0 0 2px var(--white); }
.lang-switch { display: inline-flex; align-items: center; height: 28px; margin-right: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch button { border: 0; background: none; height: 100%; padding: 0 8px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink-2); color: var(--white); }
.start-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 7px; border-radius: 11px;
  border: 1px solid var(--peach); background: var(--white); color: var(--peach); font-size: 16px; line-height: 20px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.start-btn:hover { background: var(--peach-tint); }

.catbar {
  height: var(--catbar-h); display: flex; justify-content: center; align-items: center; gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .25); overflow-x: auto; scrollbar-width: none; padding: 0 16px;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar a {
  font-size: 13px; line-height: 16.25px; color: #000; text-decoration: none; padding: 12px 0; margin: 0 42px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.catbar a:hover { color: var(--ink-2); }
.catbar a[aria-current="true"] { border-bottom-color: var(--peach); font-weight: 600; }

/* menus (profile, type chip, chat options) */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1800; min-width: 230px; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow);
}
.menu.left { left: 0; right: auto; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none;
  border-radius: 10px; text-align: left; text-decoration: none; color: var(--ink); font-size: 13px; cursor: pointer;
}
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--paper); }
.menu .ico { color: var(--muted); width: 18px; height: 18px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head div { display: grid; min-width: 0; }
.menu-head strong { font-size: 13px; }
.menu-head small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.menu [aria-checked="true"] { font-weight: 600; color: var(--ink-2); }
.danger-text, .menu .danger-text, .menu .danger-text .ico { color: var(--danger); }

/* ============================================================ page frame */
.page { min-height: calc(100vh - var(--header-h) - var(--catbar-h)); }
.page-inner { max-width: 1440px; margin: 0 auto; padding: 28px var(--page-x) 64px; }
.page-narrow { max-width: 1100px; margin: 0 auto; padding: 28px var(--page-x) 64px; }
.page-title { margin: 0 0 30px; font-size: 40px; line-height: 50px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.section-title { margin: 0 0 18px; font-size: 18px; line-height: 24.3px; font-weight: 600; color: var(--ink); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.title-row .page-title { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================ buttons & controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--peach); border-color: var(--peach); color: var(--white); }
.btn-primary:hover { background: var(--peach-hover); border-color: var(--peach-hover); }
.btn-lg { height: 49px; padding: 0 22px; font-size: 14px; justify-content: space-between; min-width: 206px; }
.btn-outline { background: var(--white); border-color: var(--peach); color: var(--peach); border-radius: 11px; }
.btn-outline:hover { background: var(--peach-tint); }
.btn-quiet { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--sage); background: var(--sage-soft); }
.btn-ghost { background: none; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-danger { background: var(--white); border-color: var(--danger-tint); color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-danger-solid { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { border-color: var(--sage); }

/* segmented switch (Thing / Service / Request) */
.switch3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 3px; height: 42px; background: var(--peach-tint); border-radius: 12px; }
.switch3 button, .switch3 a {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; background: none; border-radius: 10px;
  font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; text-decoration: none; padding: 0 14px; white-space: nowrap;
}
.switch3 .ico { width: 18px; height: 18px; }
.switch3 [aria-pressed="true"], .switch3 [aria-selected="true"] { background: var(--white); color: var(--ink-2); font-weight: 600; }
.switch3 [aria-pressed="true"] .ico, .switch3 [aria-selected="true"] .ico { color: var(--peach); }

/* form fields (frame "Service title / Category / Your rate") */
.form { display: grid; gap: 17px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 8px; font-size: 12px; line-height: 15.6px; font-weight: 600; color: var(--ink); }
.field .note { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 10px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--white); font-size: 13px; font-weight: 400; color: var(--ink);
}
.field textarea { height: auto; min-height: 84px; padding: 12px 14px; line-height: 16.9px; resize: vertical; }
.field select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236B7770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: 13px; font-weight: 400; }
.money-input input { padding-left: 35px !important; font-size: 14px !important; font-weight: 500 !important; }

/* option cards (In person / Online) */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--white); cursor: pointer; font-size: 12px; font-weight: 500; color: var(--muted); text-align: left;
}
.choice-card .ico { width: 21px; height: 21px; }
.choice-card .tick { margin-left: auto; visibility: hidden; color: var(--ink-2); }
.choice-card[aria-pressed="true"] { background: var(--peach-tint); border-color: var(--peach); color: var(--ink-2); font-weight: 600; }
.choice-card[aria-pressed="true"] .tick { visibility: visible; }

/* sage trust chips (Great condition / Verified owner) */
.chip-check {
  display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 12px 0 9px; border: 1px solid var(--sage); border-radius: 8px;
  font-size: 11px; font-weight: 500; color: var(--ink-2); background: var(--white); white-space: nowrap;
}
.chip-check .ico { width: 13px; height: 13px; color: var(--sage); }

/* filter chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 12px;
  cursor: pointer; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed="true"] { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }

/* switch toggle */
.switch { appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: left .15s; }
.switch:checked { background: var(--peach); }
.switch:checked::after { left: 21px; }

/* ============================================================ avatars, badges */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--sage-tint); color: var(--ink-2); font-weight: 700; font-size: 13px;
}
.avatar-img { border-radius: 50%; object-fit: cover; display: block; background: var(--sage-tint); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--sage-tint); color: var(--ink-2); }
.badge.req { background: var(--ink-2); color: var(--white); }
.badge.service { background: var(--peach-tint); color: var(--ink-2); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.status.confirmed { background: var(--sage-tint); color: var(--ink-2); }
.status.pending_payment { background: var(--peach-tint); color: #9A5634; }
.status.cancelled { background: var(--danger-tint); color: var(--danger); }

/* ============================================================ listing cards (frame "Good finds nearby") */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 46px; }
.pcard { position: relative; display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.pcard-media {
  position: relative; display: block; aspect-ratio: 298 / 210; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(135deg, var(--sage-soft), var(--sage-tint));
}
.pcard-media.service { background: linear-gradient(135deg, #FDF4EE, var(--peach-tint)); }
.pcard-media.req { background: linear-gradient(135deg, var(--paper), #E7ECE6); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.pcard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; }
.pcard-tag {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2);
}
.pcard-tag.req { background: var(--ink-2); color: var(--white); }
.pcard-tag .ico { width: 11px; height: 11px; }
.fav-btn {
  position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 15px; border: 0; background: var(--white);
  display: grid; place-items: center; color: var(--ink); cursor: pointer; padding: 0;
}
.fav-btn .ico { width: 16px; height: 16px; }
.fav-btn:hover { box-shadow: var(--shadow-sm); }
.fav-btn[aria-pressed="true"] { color: var(--peach); }
.fav-btn[aria-pressed="true"] path { fill: currentColor; }
.pcard-body { display: grid; padding-top: 10px; }
.pcard-title { margin: 0 0 4px 3px; font-size: 13px; line-height: 16.25px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price { font-size: 15px; line-height: 18.75px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcard-price small, .unit { font-size: 11px; line-height: 13.75px; font-weight: 400; color: var(--muted); }
.pcard-price .upto { font-size: 11px; font-weight: 400; color: var(--muted); }
.pcard-meta { margin-top: 4px; font-size: 11px; line-height: 13.75px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pcard-meta .rating { color: var(--ink); font-weight: 500; }
.pcard-by { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.pcard.skeleton { pointer-events: none; }
.pcard.skeleton .pcard-media, .pcard.skeleton i { background: linear-gradient(90deg, #eef0ec 25%, #f6f7f4 50%, #eef0ec 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.pcard.skeleton i { display: block; height: 11px; border-radius: 6px; margin-top: 8px; width: 60%; }
.pcard.skeleton i + i { width: 35%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 298px); gap: 46px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.hscroll > * { scroll-snap-align: start; }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .big { display: grid; place-items: center; margin-bottom: 10px; color: var(--sage); }
.empty .big .ico { width: 40px; height: 40px; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--sage-soft); border-top-color: var(--sage); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { rotate: 360deg; } }

/* ============================================================ ad slots (house promos) */
.ad-banner {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 115px; padding: 20px 28px;
  border: 1px solid var(--ink-2); border-radius: var(--r-pill); margin: 52px 7px 0; text-decoration: none; color: var(--ink); text-align: center; flex-wrap: wrap;
}
.ad-banner strong { font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--ink-2); }
.ad-side {
  position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 24px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
  width: 226px; min-height: 560px; padding: 24px 18px; border: 1px solid #000; border-radius: var(--r-pill); text-align: center; color: var(--ink); text-decoration: none;
}
.ad-side strong { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--ink-2); }
.ad-side p, .ad-banner p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ad-label { position: absolute; top: 8px; right: 12px; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-art { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--peach-tint); color: var(--peach); }

/* ============================================================ home */
.home-section { margin-top: 64px; }
.home-section .row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.home-section h2 { margin: 0; font-size: 27px; line-height: 36px; font-weight: 600; color: var(--ink); }
.row-head a { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.row-head a:hover { color: var(--peach); }
.home-map-card { position: relative; border-radius: 30px; overflow: hidden; height: 320px; background: #e9ece7; }
.home-map-card #home-map { position: absolute; inset: 0; }
.home-map-card .btn { position: absolute; right: 18px; bottom: 18px; z-index: 500; box-shadow: var(--shadow-sm); }
.home-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cta-card {
  display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 19px; text-decoration: none; color: var(--ink);
}
.cta-card:hover { border-color: var(--peach); background: var(--peach-tint); }
.cta-card .ico { width: 26px; height: 26px; color: var(--peach); }
.cta-card strong { font-size: 16px; }
.cta-card span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.scope-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: -18px 0 26px; }
.scope-note .ico { width: 14px; height: 14px; color: var(--sage); }

/* ============================================================ detail page (frame "Fujifilm X-T30") */
.detail-page { max-width: 1200px; }
.detail-page .back { margin-bottom: 18px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; margin-top: 32px; }
.detail-main { min-width: 0; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 210px 210px; gap: 12px; }
.gallery .g-main { grid-row: 1 / span 2; }
.gallery .g-cell { position: relative; display: grid; place-items: center; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(135deg, var(--sage-soft), var(--sage-tint)); border: 0; padding: 0; cursor: pointer; }
.gallery .g-cell.service { background: linear-gradient(135deg, #FDF4EE, var(--peach-tint)); }
.gallery .g-cell.req { background: linear-gradient(135deg, var(--paper), #E7ECE6); }
.gallery .g-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-cell .pcard-ph { font-size: 96px; }
.gallery .g-cell.small .pcard-ph { font-size: 36px; opacity: .55; }
.gallery.single { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gallery.single .g-cell { cursor: default; }
.d-head .cat { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.d-head h1 { margin: 8px 0 14px; font-size: 34px; line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 13px; font-weight: 500; color: var(--ink); }
.d-rating { display: inline-flex; align-items: center; gap: 5px; }
.d-rating .ico { color: var(--peach); }
.host-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.host-link:hover { text-decoration: underline; }
.lead { margin: 24px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.d-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.place-card {
  display: flex; gap: 14px; align-items: center; max-width: 520px; padding: 16px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-card);
}
.place-card .ico { flex: none; width: 25px; height: 25px; color: var(--sage); }
.place-card strong { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.place-card span { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.detail-side { position: sticky; top: calc(var(--header-h, 64px) + var(--catbar-h, 41px) + 20px); }
.price-card { display: grid; padding: 22px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.price-big { display: flex; align-items: baseline; gap: 8px; }
.price-big strong { font-size: 36px; line-height: 44px; font-weight: 600; color: var(--ink-2); }
.price-big strong.smaller { font-size: 26px; line-height: 34px; }
.price-big .unit { font-size: 14px; color: var(--muted); }
.date-label { margin: 16px 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink); }
.date-field {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--white); cursor: pointer; text-align: left; font: inherit;
}
.date-field:hover { border-color: var(--sage); }
.date-field.static { cursor: default; }
.date-field.static:hover { border-color: var(--line); }
.date-field .ico { flex: none; color: var(--sage); }
.date-field strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.date-field span { margin-left: auto; font-size: 12px; color: var(--muted); }
.date-pop { display: grid; gap: 10px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--white); box-shadow: var(--shadow-sm); }
.price-sub { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 12px 0 14px; }
.price-warn { font-size: 12px; color: var(--danger); font-weight: 600; margin: 0 0 12px; }
.price-card > .date-field.static { margin-bottom: 16px; }
.price-card .btn-lg { width: 100%; min-width: 0; }
.price-card a.btn-lg { justify-content: center; margin-top: 14px; }
.price-foot { font-size: 11px; line-height: 1.4; color: var(--muted); margin-top: 10px; text-align: center; }
.side-note { font-size: 12px; margin: 12px 4px 0; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.detail-actions .btn { justify-content: center; }
.reviews .section-title { margin-bottom: 8px; }
.review { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }
.review .stars { color: var(--peach); font-size: 12px; letter-spacing: 1px; }
.review p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.review small { color: var(--muted); font-size: 11px; }
.report-row { margin: 32px 0 0; }

/* ============================================================ map page (frame "Nearby Rental") */
.map-page { position: relative; }
.map-stage { position: relative; height: 757px; max-height: calc(100vh - var(--header-h) - var(--catbar-h) - 140px); min-height: 480px; margin-left: 203px; border-radius: 30px; overflow: hidden; background: #e9ece7; }
#big-map { position: absolute; inset: 0; }
.leaflet-container { font-family: inherit; background: #e9ece7; }
.leaflet-tile-pane { filter: saturate(.35) brightness(1.04) contrast(.95); }
.map-float {
  position: absolute; left: -22px; top: 31px; z-index: 600; width: 285px; max-height: calc(100% - 50px); overflow-y: auto; background: var(--white);
  border-radius: 19px; box-shadow: var(--shadow); padding: 14px 12px 18px; display: grid; gap: 0;
}
.map-float .mf-media { height: 222px; border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--sage-soft), var(--sage-tint)); }
.map-float .mf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-float .mf-media .pcard-ph { font-size: 64px; }
.map-float h3 { margin: 10px 12px 0; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--ink); }
.mf-meta { margin: 7px 12px 0; font-size: 11px; line-height: 13.75px; color: var(--muted); }
.mf-rating { margin: 8px 10px 0; font-size: 11px; font-weight: 500; color: var(--ink); }
.mf-desc { margin: 20px 17px 0; font-size: 13px; line-height: 17.55px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.mf-price { margin: 22px 0 0; text-align: center; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--ink); }
.mf-price .unit { margin-left: 6px; }
.map-float .btn { margin: 10px auto 0; width: 200px; height: 39px; font-size: 12px; }
.mf-close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.map-tools { position: absolute; right: 18px; top: 18px; z-index: 600; display: flex; gap: 8px; }
.map-chip { display: inline-flex; align-items: center; gap: 6px; height: 35px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--white); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.map-chip .ico { width: 16px; height: 16px; color: var(--forest); }
.map-count { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 600; background: var(--white); border-radius: 18px; padding: 8px 14px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* price pins */
/* `translate` composes with Leaflet's own transform, centring the pill on its coordinate */
.price-pin { background: none; border: 0; width: max-content; translate: -50% -50%; border-radius: 18px; }
.price-pin:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.price-pin .pin {
  position: relative; min-width: 60px; height: 35px; padding: 0 12px; border-radius: 18px;
  display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm);
  font: 600 13px/16.25px "Inter", system-ui, sans-serif; white-space: nowrap; transition: transform .12s, background .12s;
}
.price-pin .pin small { font-weight: 400; color: var(--muted); font-size: 10px; }
.price-pin .pin.req { background: var(--ink-2); color: var(--white); }
.price-pin .pin.req small { color: var(--sage); }
.price-pin .pin .ico { display: inline; width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.price-pin.is-hover .pin, .price-pin .pin:hover, .price-pin.is-active .pin {
  background: var(--peach); color: var(--white); outline: 2px solid var(--white); transform: scale(1.06); z-index: 10;
}
.price-pin.is-hover .pin small, .price-pin.is-active .pin small, .price-pin .pin:hover small { color: var(--white); }
.me-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--forest); border: 3px solid var(--white); box-shadow: 0 0 0 23px var(--forest-tint); }

/* ============================================================ publish (frames "upload + Thing/Service/Request" and "Service title…") */
.publish { display: grid; grid-template-columns: 226px minmax(0, 663px); gap: 122px; align-items: start; }
.publish-main { display: grid; gap: 29px; justify-items: center; }
.dropzone {
  position: relative; width: 100%; min-height: 280px; border: 2px solid var(--peach); border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--white); cursor: pointer; overflow: hidden;
}
.dropzone:hover, .dropzone.drag { background: var(--peach-tint); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-empty { display: grid; justify-items: center; gap: 10px; color: var(--peach); font-size: 13px; font-weight: 600; pointer-events: none; text-align: center; }
.dropzone .dz-empty .ico { width: 105px; height: 108px; stroke-width: 1px; }
.dropzone .dz-empty small { color: var(--muted); font-weight: 400; font-size: 11px; }
.dz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; padding: 14px; align-self: start; align-content: start; }
.dz-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-thumb .cover { position: absolute; left: 6px; bottom: 6px; background: var(--white); border-radius: 6px; font-size: 9px; font-weight: 700; padding: 2px 6px; text-transform: uppercase; }
.dz-thumb button { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--white); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.dz-thumb button .ico { width: 14px; height: 14px; }
.dz-add { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px dashed var(--peach); color: var(--peach); font-size: 11px; font-weight: 600; }
.publish .switch3 { width: 510px; max-width: 100%; }
.publish-form { width: 100%; max-width: 510px; }
.picker-map { height: 210px; border-radius: var(--r-field); overflow: hidden; border: 1px solid var(--line); position: relative; }
.picker-map .leaflet-container { height: 100%; }
.picker-hint { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ============================================================ search page */
.search-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 46px; align-items: start; }
.search-filters {
  position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 20px); display: grid; gap: 18px; padding: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: 19px; max-height: calc(100vh - var(--header-h) - var(--catbar-h) - 40px); overflow-y: auto;
}
.sf-head { display: none; }
.sf-group { display: grid; gap: 8px; }
.sf-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.search-filters select, .search-filters .row2 input, .where-search input, .search-filters input[type=search] {
  height: 42px; border: 1px solid var(--line); border-radius: var(--r-field); padding: 0 12px; background: var(--white); width: 100%; min-width: 0; font-size: 13px;
}
.search-filters .field { font-weight: 600; }
.where { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.where .ico { color: var(--sage); width: 16px; height: 16px; }
.where-search { position: relative; }
.place-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 50; margin: 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-field); box-shadow: var(--shadow);
}
.place-results li button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--ink); }
.place-results li button:hover { background: var(--paper); }
.sf-actions { display: flex; justify-content: space-between; gap: 8px; }
.sf-actions .btn-primary { display: none; }
.search-top-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.search-top-right .muted { font-size: 13px; }
.sort-pick { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.sort-pick select { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--white); font-size: 12px; }
.filters-btn { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================ list rows (bookings, my listings, settings) */
.card-box { background: var(--white); border: 1px solid var(--line); border-radius: 19px; padding: 22px; scroll-margin-top: 130px; }
.card-box h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.card-box > p.muted { margin-top: 0; font-size: 13px; }
.rows { display: grid; gap: 14px; }
.row-card {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: 19px; background: var(--white);
}
.row-card.is-new { border-color: var(--peach); background: var(--peach-tint); }
.row-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, var(--sage-soft), var(--sage-tint)); text-decoration: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-main strong a, .row-main > a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.row-main .muted { font-size: 12px; }
.row-side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.row-side .amount { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stars-input { display: inline-flex; gap: 2px; }
.stars-input button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--line); }
.stars-input button .ico { width: 26px; height: 26px; }
.stars-input button.on { color: var(--peach); }
.stars-input button.on path { fill: currentColor; }
.tabs-line { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs-line a { padding: 10px 0; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs-line a[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--peach); }
.tabs-line .count { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ============================================================ messages */
.inbox-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0; height: calc(100vh - var(--header-h) - var(--catbar-h) - var(--tabbar-h) - 160px); min-height: 520px; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; }
.inbox-pane { border-right: 1px solid var(--line); overflow-y: auto; }
.thread-pane { min-width: 0; display: flex; flex-direction: column; }
.inbox { list-style: none; margin: 0; padding: 6px; }
.conv { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-pill); text-decoration: none; color: inherit; }
.conv:hover { background: var(--paper); }
.conv.active { background: var(--peach-tint); }
.conv .avatar { width: 40px; height: 40px; }
.conv-main { display: grid; gap: 2px; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.conv-top time { font-size: 11px; color: var(--muted); }
.conv-subject { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.conv-subject .ico { width: 12px; height: 12px; color: var(--sage); }
.conv-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-preview { color: var(--ink); font-weight: 600; }
.thread { display: flex; flex-direction: column; height: 100%; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head .back { display: none; margin-bottom: 8px; }
.thread-who { display: flex; gap: 12px; align-items: center; }
.thread-who > div:not(.menu-wrap) { display: grid; min-width: 0; }
.thread-who strong { font-size: 14px; }
.who-link { text-decoration: none; color: inherit; }
.thread-subject { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.thread-subject .ico { width: 13px; height: 13px; color: var(--sage); }
.thread-who .menu-wrap { margin-left: auto; }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
.day-sep { text-align: center; margin: 8px 0; }
.day-sep span { font-size: 11px; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.bubble { position: relative; max-width: 75%; padding: 9px 13px 6px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: 10px; margin-top: 2px; opacity: .7; }
.bubble.mine { align-self: flex-end; background: var(--ink-2); color: var(--white); border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-flag { position: absolute; right: -30px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.bubble:hover .bubble-flag, .bubble-flag:focus-visible { opacity: 1; }
.bubble-flag:hover { color: var(--danger); border-color: var(--danger); }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); line-height: 1.35; font-size: 13px; }
.composer textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.composer .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: none; }
.blocked-bar { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--danger-tint); color: var(--danger); font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.thread-empty { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 24px; }
.inbox-head { padding: 16px 18px 6px; }
.inbox-head h2 { margin: 0; font-size: 18px; }

/* ============================================================ profile & settings */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 19px; }
.profile-info h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 600; }
.profile-info p { margin: 4px 0 0; font-size: 13px; }
.profile-bio { margin-top: 10px !important; max-width: 640px; line-height: 1.5; white-space: pre-line; color: var(--ink); }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stat { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); }
.stat strong { color: var(--ink); }
.profile-actions { display: grid; gap: 8px; align-self: start; }
.notice { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-field); background: var(--danger-tint); color: var(--danger); font-weight: 600; font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 20px); display: grid; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 13px; }
.settings-nav a:hover { background: var(--paper); color: var(--ink); }
.settings-nav .btn { justify-content: flex-start; margin-top: 10px; }
.settings-body { display: grid; gap: 18px; max-width: 720px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.avatar-edit { display: flex; gap: 18px; align-items: center; }
.avatar-edit p { margin: 6px 0 0; }
.file-btn { position: relative; cursor: pointer; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-size: 12px; }
.blocked-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.blocked-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.blocked-list li a { flex: 1; font-weight: 600; text-decoration: none; }
.segmented { display: inline-flex; padding: 3px; background: var(--peach-tint); border-radius: 12px; }
.segmented button, .segmented a { border: 0; background: none; padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; }
.segmented [aria-pressed="true"] { background: var(--white); color: var(--ink-2); font-weight: 600; }

/* ============================================================ modal, toasts */
.modal-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(23, 46, 41, .42); display: grid; place-items: center; padding: 16px; }
.modal { width: min(440px, 100%); background: var(--white); border-radius: 19px; box-shadow: var(--shadow); padding: 24px; max-height: 90vh; overflow: auto; }
.modal.wide { width: min(840px, 100%); }
.modal h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.modal h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.modal .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.close { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.toasts { position: fixed; bottom: calc(var(--tabbar-h) + 20px); right: 20px; z-index: 3000; display: grid; gap: 8px; }
.toast { background: var(--ink-2); color: var(--white); padding: 12px 16px; border-radius: var(--r-field); box-shadow: var(--shadow); font-size: 13px; max-width: 360px; animation: pop .18s ease-out; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--forest); }
@keyframes pop { from { opacity: 0; translate: 0 8px; } }

/* auth */
.demo-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-accounts h3 { margin: 0 0 2px; }
.demo-grid { display: grid; gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.demo-acc { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-field); padding: 7px 10px; cursor: pointer; }
.demo-acc:hover { border-color: var(--sage); background: var(--sage-soft); }
.demo-acc .avatar { width: 32px; height: 32px; font-size: 11px; }
.demo-acc .who { display: grid; min-width: 0; font-size: 13px; }
.demo-acc small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.role.owner { background: var(--peach-tint); color: #9A5634; }
.role.renter { background: var(--sage-tint); color: var(--ink-2); }

/* report */
.reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.reasons legend { font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.reason { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-field); cursor: pointer; font-size: 13px; font-weight: 400; }
.reason:has(input:checked) { border-color: var(--peach); background: var(--peach-tint); }
.reason input { margin-top: 3px; accent-color: var(--peach); }
.reason span { display: grid; }
.reason small { color: var(--muted); font-size: 11px; }

/* checkout */
.test-banner { background: var(--peach-tint); color: #8A4B2C; padding: 10px 12px; border-radius: var(--r-field); font-size: 12px; margin-bottom: 16px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.co-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 16px; }
.co-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; margin-bottom: 14px; font-size: 13px; }
.co-item .muted { font-size: 12px; }
.thumb { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: var(--sage-tint); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; font-size: 13px; }
.quote div { display: flex; justify-content: space-between; padding: 3px 0; }
.quote .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.pm { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--peach); background: var(--peach-tint); border-radius: var(--r-field); cursor: pointer; font-weight: 600; font-size: 13px; }
.pm input { accent-color: var(--peach); margin: 0; }
.pm-name { flex: 1; }
.pm-brands { display: flex; gap: 4px; }
.brand-mark-sm { display: inline-grid; place-items: center; height: 20px; min-width: 32px; padding: 0 4px; border-radius: 4px; font: 800 9px/1 system-ui, sans-serif; letter-spacing: .03em; border: 1px solid var(--line); background: var(--white); }
.brand-mark-sm.visa { color: #1a3d8f; font-style: italic; }
.brand-mark-sm.amex { color: var(--white); background: #2e77bb; border-color: #2e77bb; }
.brand-mark-sm.mc { position: relative; }
.brand-mark-sm.mc i { position: absolute; top: 4px; width: 12px; height: 12px; border-radius: 50%; }
.brand-mark-sm.mc i:first-child { left: 6px; background: #eb001b; }
.brand-mark-sm.mc i:last-child { left: 13px; background: #f79e1b; mix-blend-mode: multiply; }
.card-form { gap: 12px; }
.input-icon { position: relative; display: block; }
.input-icon input { padding-right: 130px !important; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.brand-badge { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--sage-tint); border-radius: 6px; padding: 2px 8px; }
.brand-badge:empty { display: none; }
.card-error { background: var(--danger-tint); color: var(--danger); border-radius: var(--r-field); padding: 10px 12px; font-size: 12px; font-weight: 600; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / .35); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
.test-cards { margin-top: 12px; font-size: 12px; }
.test-cards summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.test-cards ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.test-cards button { width: 100%; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.test-cards button:hover { border-color: var(--sage); background: var(--sage-soft); }
.test-cards span { color: var(--muted); }
.co-success { text-align: center; padding: 12px 8px; max-width: 380px; margin: 0 auto; }
.co-success .check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--white); font-size: 2rem; font-weight: 800; animation: pop .25s ease-out; }
.co-success .amount { font-size: 32px; font-weight: 600; color: var(--ink-2); margin: 4px 0; }
.amount { font-size: 32px; font-weight: 600; color: var(--ink-2); margin: 8px 0 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* very narrow phones: GO LOCAL shrinks to its icon (label kept for screen readers) */
@media (max-width: 370px) {
  .golocal { padding: 0 7px; }
  .golocal span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* mobile tab bar */
.tabbar { display: none; }

/* ============================================================ responsive */
@media (max-width: 1280px) {
  .catbar a { margin: 0 24px; }
  .detail { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
  .publish { gap: 48px; }
}
@media (max-width: 1100px) {
  :root { --page-x: 28px; }
  .topbar { grid-template-columns: auto minmax(200px, 1fr) auto; }
  .top-left { gap: 14px; }
  .nav-icons { gap: 4px; margin-right: 4px; }
  .publish { grid-template-columns: minmax(0, 1fr); }
  .publish .ad-side { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .detail-side { position: static; order: -1; margin-top: 24px; max-width: 520px; }
  .detail-main { display: contents; }
  .d-head { order: -3; } .detail-main > .lead { order: -2; }
  .publish-main { justify-items: stretch; }
  .publish .switch3 { width: 100%; }
  .publish-form { max-width: none; }
  .map-stage { margin-left: 0; }
  .map-float { left: 16px !important; top: 16px; }
  .home-cta { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 108px; --tabbar-h: 64px; --page-x: 16px; }
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 54px 46px; height: auto; row-gap: 0; padding: 0 12px 8px; }
  .top-left { gap: 8px; }
  .brand { font-size: 23px; line-height: 26px; gap: 5px; }
  .brand-logo { width: 28px; height: 28px; }
  .top-right { gap: 4px; }
  .lang-switch { margin-right: 2px; }
  .searchbar { grid-column: 1 / -1; grid-row: 2; }
  .nav-icons, .lang-switch .ico { display: none; }
  .start-btn span { display: none; }
  .start-btn { padding: 0 7px; }
  .catbar { justify-content: flex-start; }
  .catbar a { margin: 0 14px; }
  .page-title { font-size: 28px; line-height: 36px; margin-bottom: 18px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pcard-ph { font-size: 38px; }
  .hscroll { grid-auto-columns: 62%; gap: 14px; }
  .home-section { margin-top: 40px; }
  .home-section h2 { font-size: 21px; line-height: 28px; }
  .ad-banner { margin: 36px 0 0; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 260px 72px; gap: 8px; }
  .gallery .g-main { grid-column: 1 / -1; grid-row: 1; }
  .gallery.single { grid-template-rows: 260px; }
  .gallery .g-cell .pcard-ph { font-size: 72px; }
  .gallery .g-cell.small .pcard-ph { font-size: 24px; }
  .detail { margin-top: 20px; }
  .d-head h1 { font-size: 26px; }
  .lead { font-size: 14px; }
  .map-stage { height: calc(100svh - var(--header-h) - var(--catbar-h) - var(--tabbar-h) - 190px); min-height: 380px; border-radius: 19px; }
  .map-page .title-row { margin-bottom: 14px; }
  .map-float { width: calc(100% - 32px); top: auto; bottom: 16px; max-height: none; overflow: visible; left: 16px !important; display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; padding: 10px; }
  .map-stage .leaflet-control-zoom { display: none; }
  .map-float .mf-media { height: 96px; grid-row: 1 / span 4; }
  .map-float h3, .mf-meta, .mf-rating { margin-left: 0; }
  .map-float h3 { margin-top: 2px; font-size: 14px; padding-right: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mf-desc { display: none; }
  .mf-price { text-align: left; margin: 6px 0 0; font-size: 14px; }
  .map-float .btn { grid-column: 1 / -1; width: 100%; }
  .search-body { grid-template-columns: minmax(0, 1fr); }
  .filters-btn { display: inline-flex; }
  .search-filters { position: fixed; inset: 0; z-index: 2100; border-radius: 0; max-height: none; transform: translateY(100%); transition: transform .2s ease-out; visibility: hidden; align-content: start; }
  .search-filters.open { transform: none; visibility: visible; }
  .sf-head { display: flex; justify-content: space-between; align-items: center; }
  .sf-actions { position: sticky; bottom: -20px; background: var(--white); padding: 12px 0; }
  .sf-actions .btn-primary { display: inline-flex; flex: 1; }
  .row-card { grid-template-columns: 84px minmax(0, 1fr); }
  .row-side { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .inbox-layout { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - var(--catbar-h) - var(--tabbar-h) - 110px); }
  .inbox-layout.has-thread .inbox-pane { display: none; }
  .inbox-layout:not(.has-thread) .thread-pane { display: none; }
  .thread-head .back { display: inline-flex; }
  .bubble-flag { right: auto; left: calc(100% + 4px); opacity: .6; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stat-row { justify-content: center; }
  .profile-actions { grid-auto-flow: column; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .co-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { order: 2; }
  .dz-grid { grid-template-columns: repeat(3, 1fr); }
  .toasts { left: 12px; right: 12px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1600;
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none;
    text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 500; cursor: pointer;
  }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
  .tabbar .badge-count { position: absolute; top: 6px; left: calc(50% + 6px); }
  .tabbar .avatar, .tabbar .avatar-img { width: 22px; height: 22px; font-size: 9px; }
}
