:root {
  --orange: #ff5a12;
  --orange-dark: #df4300;
  --orange-soft: #fff1e9;
  --navy: #082b67;
  --navy-deep: #031c49;
  --cyan-soft: #e9f7ff;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --soft-line: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --success: #178a57;
  --success-soft: #eaf7f1;
  --danger: #c8322a;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
  --shell: 1180px;
  --radius: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  color: var(--text);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell-narrow { width: min(calc(100% - 40px), 590px); margin-inline: auto; }
.icon { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
}
.site-header__bar { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 122px; height: auto; }
.header-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 8px 10px;
  border-radius: 8px;
}
.header-location:hover { background: var(--surface-soft); }
.header-location svg { width: 20px; height: 20px; color: var(--navy); }
.header-location > span { min-width: 0; }
.header-location small, .header-location strong { display: block; }
.header-location small { margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.header-location strong { max-width: 120px; overflow: hidden; color: var(--navy-deep); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.header-location .chevron { margin-left: auto; color: #98a2b3; font-size: 14px; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.desktop-nav a { padding: 11px 13px; border-radius: 7px; color: #475467; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--navy); background: #f2f4f7; }

/* Shared top areas */
.home-top { padding-top: 44px; }
.home-top__eyebrow, .page-kicker, .business-callout__eyebrow {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-top h1, .page-top h1, .detail-info h1, .flow-card h1, .success-card h1 {
  margin: 8px 0 0;
  color: var(--navy-deep);
  letter-spacing: -0.035em;
}
.home-top h1 { font-size: clamp(31px, 4vw, 45px); line-height: 1.08; }
.page-top { padding-top: 38px; }
.page-top h1 { font-size: clamp(28px, 3.5vw, 40px); }
.page-subtitle, .page-top p { margin: 9px 0 0; max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.page-top__row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.back-link { display: inline-flex; margin-bottom: 22px; color: #475467; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--orange-dark); }

/* Search */
.search-wrap { position: relative; z-index: 18; margin-top: 24px; max-width: 780px; }
.market-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 6px 7px 6px 17px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.market-search:focus-within { border-color: #98a2b3; box-shadow: 0 0 0 3px rgba(8,43,103,.06); }
.market-search__icon { width: 22px; height: 22px; color: #667085; }
.market-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.market-search input::placeholder { color: #98a2b3; }
.market-search__submit {
  align-self: stretch;
  min-width: 92px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.market-search__submit:hover { background: var(--orange-dark); }
.market-search__submit-icon { display: none; }
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16,24,40,.14);
}
.search-suggestion {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--soft-line);
}
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover { background: #f9fafb; }
.search-suggestion__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); }
.search-suggestion__icon svg { width: 20px; height: 20px; }
.search-suggestion span { min-width: 0; }
.search-suggestion strong, .search-suggestion small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion strong { color: var(--navy-deep); font-size: 13px; }
.search-suggestion small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.search-suggestion > b { color: #98a2b3; font-size: 20px; font-weight: 400; }

/* District-like top marketplace tabs */
.market-tabs-bar { margin-top: 27px; }
.market-tabs-bar__shell { width: min(calc(100% - 40px), var(--shell)); }
.market-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--soft-line);
  scrollbar-width: none;
  white-space: nowrap;
}
.market-tabs::-webkit-scrollbar { display: none; }
.market-tabs__item { position: relative; flex: 0 0 auto; padding: 0 0 15px; color: #667085; font-size: 14px; font-weight: 600; }
.market-tabs__item.is-active { color: var(--navy-deep); }
.market-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
}

/* Sections */
.content-section { padding-top: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; color: var(--navy-deep); font-size: 22px; letter-spacing: -0.025em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.section-heading > a { flex: 0 0 auto; color: var(--orange-dark); font-size: 13px; font-weight: 700; }

/* Service rails/cards */
.card-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: none; padding: 1px 1px 4px; }
.card-rail::-webkit-scrollbar { display: none; }
.service-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #d0d5dd; box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.service-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eef1f4; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.service-card:hover .service-card__media img { transform: scale(1.02); }
.service-card__body { display: block; min-width: 0; padding: 12px 12px 13px; }
.service-card__body strong, .service-card__body small { display: block; overflow: hidden; text-overflow: ellipsis; }
.service-card__body strong { color: var(--navy-deep); font-size: 14px; line-height: 1.35; white-space: nowrap; }
.service-card__body small { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.category-grid--home { grid-template-columns: repeat(2, minmax(0,1fr)); }
.category-tile {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 14px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.category-tile:hover { border-color: #cbd1da; background: #fbfcfd; }
.category-tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; color: var(--navy); background: #f2f4f7; }
.category-tile:nth-child(4n+2) .category-tile__icon { color: var(--orange-dark); background: var(--orange-soft); }
.category-tile:nth-child(4n+3) .category-tile__icon { color: #176a54; background: #edf8f4; }
.category-tile:nth-child(4n) .category-tile__icon { color: #6941c6; background: #f4f3ff; }
.category-tile__icon svg { width: 27px; height: 27px; }
.category-tile__copy { min-width: 0; }
.category-tile__copy strong, .category-tile__copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.category-tile__copy strong { color: var(--navy-deep); font-size: 14px; white-space: nowrap; }
.category-tile__copy small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; white-space: nowrap; }
.category-tile__arrow { color: #98a2b3; font-size: 20px; }

/* How it works */
.how-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-top: 52px;
  padding: 24px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
}
.how-strip__title span { color: var(--orange-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.how-strip__title h2 { margin: 7px 0 0; color: var(--navy-deep); font-size: 20px; }
.how-strip__steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.how-strip__steps > div { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.how-strip__steps b { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; }
.how-strip__steps span { min-width: 0; }
.how-strip__steps strong, .how-strip__steps small { display: block; }
.how-strip__steps strong { color: var(--navy-deep); font-size: 13px; }
.how-strip__steps small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }


.home-page-stack { display: flex; flex-direction: column; }
.business-callout__media { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.business-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  border-radius: 10px;
  background: var(--navy-deep);
  color: #fff;
}
.business-callout__eyebrow { color: #fdb58f; }
.business-callout h2 { margin: 7px 0 0; max-width: 560px; font-size: 23px; letter-spacing: -0.02em; }
.business-callout p { margin: 8px 0 0; max-width: 620px; color: #c9d3e3; font-size: 13px; line-height: 1.5; }

/* Marketplace/category */
.marketplace-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.marketplace-intro h1, .category-hero h1 { margin: 7px 0 0; color: var(--navy-deep); font-size: clamp(29px,4vw,42px); letter-spacing: -0.035em; }
.marketplace-intro p, .category-hero p { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.marketplace-intro__icon { display: grid; place-items: center; flex: 0 0 86px; width: 86px; height: 86px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); }
.marketplace-intro__icon svg { width: 46px; height: 46px; }
.category-hero { display: flex; align-items: center; gap: 18px; }
.category-hero__icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; color: var(--navy); background: #f2f4f7; }
.category-hero__icon svg { width: 34px; height: 34px; }
.listing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.custom-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.custom-row strong, .custom-row small { display: block; }
.custom-row strong { color: var(--navy-deep); font-size: 14px; }
.custom-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Search results */
.search-results-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.search-result-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 14px; align-items: center; gap: 12px; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-result-row__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #f2f4f7; color: var(--navy); }
.search-result-row__icon svg { width: 24px; height: 24px; }
.search-result-row strong, .search-result-row small { display: block; overflow: hidden; text-overflow: ellipsis; }
.search-result-row strong { color: var(--navy-deep); font-size: 13px; white-space: nowrap; }
.search-result-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result-row > span:last-child { color: #98a2b3; font-size: 20px; }

/* Detail */
.detail-shell { padding-top: 30px; }
.detail-breadcrumbs { display: flex; align-items: center; gap: 8px; overflow-x: auto; color: #667085; font-size: 12px; white-space: nowrap; scrollbar-width: none; }
.detail-breadcrumbs::-webkit-scrollbar { display: none; }
.detail-breadcrumbs a:hover { color: var(--orange-dark); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 34px; align-items: start; margin-top: 18px; }
.detail-media { overflow: hidden; aspect-ratio: 4/3; border-radius: 10px; background: #eef1f4; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 4px; }
.detail-info h1 { font-size: clamp(31px,4vw,44px); line-height: 1.08; }
.detail-info__summary { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.detail-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.detail-points li { display: flex; align-items: center; gap: 9px; color: #344054; font-size: 13px; }
.detail-points li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 800; }
.detail-action-card { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.detail-action-card strong, .detail-action-card small { display: block; }
.detail-action-card strong { color: var(--navy-deep); font-size: 15px; }
.detail-action-card small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.detail-action-card .button { margin-top: 16px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.button--primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.button--primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button--secondary { border-color: #d0d5dd; background: #fff; color: var(--navy-deep); }
.button--secondary:hover { background: #f9fafb; }
.button--light { border-color: rgba(255,255,255,.55); background: #fff; color: var(--navy-deep); }
.button--wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .65; }

/* Flow */
.flow-main { min-height: calc(100vh - 70px); padding: 42px 0 70px; background: #f7f8fa; }
.flow-card, .success-card { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.flow-card h1, .success-card h1 { font-size: 30px; line-height: 1.12; }
.flow-lead { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.option-list { display: grid; gap: 9px; margin-top: 23px; }
.option-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 12px; min-height: 70px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.option-row:hover { border-color: #c9d0da; }
.option-row span { min-width: 0; }
.option-row strong, .option-row small { display: block; }
.option-row strong { color: var(--navy-deep); font-size: 13px; }
.option-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.option-row input { position: absolute; opacity: 0; pointer-events: none; }
.option-row i { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #b9c0ca; border-radius: 5px; }
.option-row:has(input:checked) { border-color: var(--navy); background: #f8faff; }
.option-row:has(input:checked) i { border-color: var(--navy); background: var(--navy); }
.option-row:has(input:checked) i::after { content: "✓"; color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
.option-list + .form-error, .field-meta + .form-error, .field-help + .form-error { margin-top: 10px; }
.flow-card > .button--wide { margin-top: 18px; }
.intent-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.intent-chip { min-height: 36px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #475467; font-size: 12px; font-weight: 600; cursor: pointer; }
.intent-chip.is-active { border-color: var(--navy); background: #f2f5fa; color: var(--navy); }
.field-label { display: block; margin-top: 22px; margin-bottom: 7px; color: var(--navy-deep); font-size: 12px; font-weight: 700; }
.field-textarea { width: 100%; resize: vertical; min-height: 126px; padding: 13px; border: 1px solid #d0d5dd; border-radius: 8px; outline: 0; color: var(--text); font-size: 13px; line-height: 1.5; }
.field-input { width: 100%; min-height: 52px; padding: 0 13px; border: 1px solid #d0d5dd; border-radius: 8px; outline: 0; background: #fff; color: var(--navy-deep); font-size: 16px; }
.field-textarea:focus, .field-input:focus, .pin-field:focus-within, .mobile-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,43,103,.06); }
.field-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.form-error { margin: 8px 0 0; color: var(--danger); font-size: 11px; font-weight: 600; }
.selected-requirement { display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 12px; border: 1px solid #dce3ec; border-radius: 8px; background: #f8fafc; }
.selected-requirement__icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); }
.selected-requirement__icon svg { width: 22px; height: 22px; }
.selected-requirement small, .selected-requirement strong { display: block; }
.selected-requirement small { color: var(--muted); font-size: 10px; }
.selected-requirement strong { margin-top: 2px; color: var(--navy-deep); font-size: 13px; }
.pin-field, .mobile-field { display: grid; align-items: center; min-height: 52px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.pin-field { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.pin-field.is-pin-focused { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,43,103,.06); transform: translateY(-1px); }
.ai-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.pin-field { grid-template-columns: 42px minmax(0,1fr); }
.pin-field svg { width: 20px; height: 20px; margin-inline: auto; color: #667085; }
.pin-field input, .mobile-field input { width: 100%; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--navy-deep); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.pin-field.is-geo-resolved { border-color: #bfd8cc; background: #f7fbf9; }
.pin-field.is-geo-resolved input { cursor: default; color: #176a54; }
.mobile-field { grid-template-columns: 58px minmax(0,1fr); }
.mobile-field > span { display: grid; place-items: center; height: 28px; border-right: 1px solid var(--line); color: #475467; font-size: 13px; font-weight: 700; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.otp-row { display: grid; grid-template-columns: repeat(4,50px); justify-content: center; gap: 8px; margin: 26px 0 0; }
.otp-row input { width: 50px; height: 58px; border: 1px solid #d0d5dd; border-radius: 8px; outline: 0; text-align: center; color: var(--navy-deep); font-size: 24px; font-weight: 700; }
.otp-row input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,43,103,.06); }
.prototype-note { margin: 12px 0 0; padding: 9px 11px; border-radius: 7px; background: #fff8f3; color: #7a3c20; font-size: 10px; text-align: center; }
.success-card { text-align: center; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 25px; font-weight: 800; }
.request-summary { display: grid; gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; text-align: left; overflow: hidden; }
.request-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; border-bottom: 1px solid var(--soft-line); }
.request-summary > div:last-child { border-bottom: 0; }
.request-summary small { color: var(--muted); font-size: 10px; }
.request-summary strong { color: var(--navy-deep); font-size: 12px; text-align: right; }
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* Requests */
.request-tabs { display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.request-tabs::-webkit-scrollbar { display: none; }
.request-tabs button { position: relative; flex: 0 0 auto; padding: 0 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.request-tabs button.is-active { color: var(--navy-deep); }
.request-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.request-list { display: grid; gap: 10px; margin-top: 18px; }
.request-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.request-card h2 { margin: 0; color: var(--navy-deep); font-size: 14px; }
.request-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.request-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: #667085; font-size: 10px; }
.request-status { align-self: start; padding: 6px 8px; border-radius: 6px; background: #eef7f4; color: #176a54; font-size: 10px; font-weight: 700; }
.empty-state { padding: 40px 22px; border: 1px dashed #cfd5df; border-radius: 10px; text-align: center; background: #fff; }
.empty-state--compact { margin-top: 16px; }
.empty-state__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 10px; background: #f2f4f7; color: var(--navy); }
.empty-state__icon svg { width: 23px; height: 23px; }
.empty-state h1, .empty-state h2 { margin: 0; color: var(--navy-deep); font-size: 20px; }
.empty-state p { max-width: 440px; margin: 8px auto 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Help */
.help-layout { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 26px; align-items: start; }
.help-links { display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.help-links a { display: grid; grid-template-columns: minmax(0,1fr) 14px; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--soft-line); background: #fff; }
.help-links a:last-child { border-bottom: 0; }
.help-links a:hover { background: #fafbfc; }
.help-links strong, .help-links small { display: block; }
.help-links strong { color: var(--navy-deep); font-size: 13px; }
.help-links small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.help-links b { color: #98a2b3; font-size: 20px; font-weight: 400; }
.help-answers { display: grid; gap: 12px; }
.help-answers article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.help-answers article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); font-size: 11px; font-weight: 700; }
.help-answers h2 { margin: 0; color: var(--navy-deep); font-size: 14px; }
.help-answers p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Footer */
.site-footer { margin-top: 60px; border-top: 1px solid var(--soft-line); background: #fafbfc; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 30px; padding-top: 30px; padding-bottom: 34px; }
.site-footer__logo { width: 105px; }
.site-footer p { max-width: 430px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.site-footer__links { display: flex; align-items: flex-start; gap: 22px; }
.site-footer__links a { color: #475467; font-size: 12px; font-weight: 600; }
.bottom-nav { display: none; }

@media (min-width: 1080px) {
  .card-rail--services { grid-auto-flow: initial; grid-auto-columns: initial; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: visible; }
}

@media (max-width: 980px) {
  .desktop-nav { gap: 0; }
  .desktop-nav a { padding-inline: 9px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listing-grid, .search-results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); gap: 24px; }
  .how-strip { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .shell, .shell-narrow { width: min(calc(100% - 28px), var(--shell)); }
  .site-header__bar { min-height: 60px; gap: 12px; }
  .brand img { width: 99px; }
  .desktop-nav { display: none; }
  .header-location { margin-left: auto; min-width: 0; max-width: 145px; padding: 7px 6px; gap: 6px; }
  .header-location svg { width: 18px; height: 18px; }
  .header-location small { display: none; }
  .header-location strong { max-width: 94px; font-size: 12px; }
  .header-location .chevron { font-size: 12px; }

  .home-top { padding-top: 17px; }
  .home-top__eyebrow { font-size: 10px; }
  .home-top h1 { margin-top: 4px; font-size: 26px; line-height: 1.1; }
  .page-top { padding-top: 24px; }
  .page-top h1 { font-size: 27px; }
  .page-subtitle, .page-top p { font-size: 12px; }
  .back-link { margin-bottom: 16px; font-size: 12px; }

  .search-wrap { margin-top: 17px; max-width: none; }
  .market-search { grid-template-columns: 20px minmax(0,1fr) 44px; height: 50px; gap: 8px; padding: 5px 5px 5px 13px; border-radius: 9px; box-shadow: none; }
  .market-search__icon { width: 19px; height: 19px; }
  .market-search input { font-size: 13px; }
  .market-search__submit { min-width: 44px; width: 44px; overflow: hidden; position: relative; border-radius: 7px; }
  .market-search__submit-label { display: none; }
  .market-search__submit-icon { display: block; width: 19px; height: 19px; margin: auto; }
  .search-suggestions { border-radius: 9px; }
  .search-suggestion { grid-template-columns: 34px minmax(0,1fr) 12px; min-height: 56px; padding: 9px 10px; }
  .search-suggestion__icon { width: 32px; height: 32px; }

  .market-tabs-bar {
    position: sticky;
    top: 60px;
    z-index: 46;
    margin-top: 16px;
    border-bottom: 1px solid var(--soft-line);
    background: rgba(255,255,255,.985);
    box-shadow: none;
    transition: box-shadow .16s ease, border-color .16s ease;
  }
  .market-tabs-bar.is-stuck {
    border-bottom-color: #e4e7ec;
    box-shadow: 0 7px 18px rgba(16,24,40,.07);
  }
  body[data-page="marketplace"] .market-tabs-bar { margin-top: 0; }
  .market-tabs-bar__shell { width: min(calc(100% - 28px), var(--shell)); }
  .market-tabs { gap: 22px; border-bottom: 0; overscroll-behavior-inline: contain; }
  .market-tabs__item { padding: 12px 0 11px; font-size: 12px; }
  .market-tabs__item.is-active::after { bottom: 0; }

  .content-section { padding-top: 29px; }
  [data-market-section] { scroll-margin-top: 124px; }
  body[data-page="marketplace"] .content-section { padding-top: 24px; }
  .section-heading { align-items: center; margin-bottom: 13px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading p { margin-top: 4px; font-size: 10px; }
  .section-heading > a { font-size: 11px; }

  .card-rail { grid-auto-columns: minmax(148px, 42vw); gap: 11px; width: calc(100% + 14px); padding-right: 14px; }
  .service-card { border-radius: 9px; }
  .service-card__body { padding: 10px; }
  .service-card__body strong { font-size: 12px; }
  .service-card__body small { font-size: 9px; }

  .category-grid, .category-grid--home { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .category-grid--home { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 68px); grid-auto-columns: minmax(230px, 72vw); overflow-x: auto; scroll-snap-type: inline proximity; scrollbar-width: none; width: calc(100% + 14px); padding-right: 14px; }
  .category-grid--home::-webkit-scrollbar { display: none; }
  .category-grid--home .category-tile { scroll-snap-align: start; }
  .category-tile { grid-template-columns: 38px minmax(0,1fr) 11px; gap: 9px; min-height: 68px; padding: 10px; border-radius: 8px; }
  .category-tile__icon { width: 38px; height: 38px; border-radius: 7px; }
  .category-tile__icon svg { width: 23px; height: 23px; }
  .category-tile__copy strong { font-size: 12px; }
  .category-tile__copy small { font-size: 9px; }
  .category-tile__arrow { font-size: 17px; }

  .how-strip { gap: 17px; margin-top: 34px; padding: 18px; border-radius: 9px; }
  .how-strip__title h2 { font-size: 17px; }
  .how-strip__steps { grid-template-columns: 1fr; gap: 13px; }
  .how-strip__steps b { flex-basis: 25px; width: 25px; height: 25px; }
  .business-callout { display: block; padding: 20px; border-radius: 9px; }
  .business-callout__media { width: 100%; height: 150px; margin-top: 14px; }
  .business-callout h2 { font-size: 19px; }
  .business-callout .button { margin-top: 16px; width: 100%; }

  .marketplace-page-top { display: none; }
  .marketplace-intro { align-items: flex-start; }
  .marketplace-intro h1, .category-hero h1 { font-size: 28px; }
  .marketplace-intro p, .category-hero p { font-size: 11px; }
  .marketplace-intro__icon { flex-basis: 58px; width: 58px; height: 58px; border-radius: 9px; }
  .marketplace-intro__icon svg { width: 31px; height: 31px; }
  .category-hero { align-items: flex-start; gap: 13px; }
  .category-hero__icon { flex-basis: 50px; width: 50px; height: 50px; }
  .category-hero__icon svg { width: 28px; height: 28px; }

  .listing-grid, .search-results-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .custom-row { display: block; padding: 14px; }
  .custom-row .button { margin-top: 12px; width: 100%; }
  .search-result-row { grid-column: span 2; min-height: 66px; }

  .detail-shell { padding-top: 18px; }
  .detail-layout { grid-template-columns: 1fr; gap: 17px; margin-top: 14px; }
  .detail-media { aspect-ratio: 16/10; border-radius: 9px; }
  .detail-info h1 { font-size: 28px; }
  .detail-info__summary { font-size: 12px; }
  .detail-action-card { margin-top: 20px; padding: 14px; }

  .flow-main { min-height: calc(100vh - 60px); padding: 20px 0 32px; background: #fff; }
  .flow-card, .success-card { padding: 4px 0 0; border: 0; border-radius: 0; box-shadow: none; }
  .flow-card h1, .success-card h1 { font-size: 27px; }
  .flow-lead { font-size: 12px; }
  .option-row { min-height: 66px; }
  .otp-row { grid-template-columns: repeat(4,44px); gap: 7px; }
  .otp-row input { width: 44px; height: 54px; }
  .success-actions { grid-template-columns: 1fr; }

  .request-card { grid-template-columns: minmax(0,1fr); }
  .request-status { justify-self: start; grid-row: 1; }
  .help-layout { gap: 17px; }

  .site-footer { display: none; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #e4e7ec;
    background: rgba(255,255,255,.98);
  }
  .bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; color: #7a8494; font-size: 9px; font-weight: 600; }
  .bottom-nav__glyph { display: grid; place-items: center; width: 24px; height: 24px; color: #667085; line-height: 1; }
  .bottom-nav__glyph svg { width: 20px; height: 20px; }
  .bottom-nav a.is-active { color: var(--orange-dark); }
  .bottom-nav a.is-active .bottom-nav__glyph { color: var(--orange); }
}

@media (max-width: 390px) {
  .shell, .shell-narrow { width: min(calc(100% - 24px), var(--shell)); }
  .market-tabs-bar__shell { width: min(calc(100% - 24px), var(--shell)); }
  .home-top h1, .page-top h1 { font-size: 26px; }
  .card-rail { grid-auto-columns: minmax(142px, 43vw); width: calc(100% + 12px); padding-right: 12px; }
  .category-grid--home { grid-auto-columns: minmax(220px, 74vw); width: calc(100% + 12px); padding-right: 12px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid--home { grid-template-columns: none; }
  .listing-grid, .search-results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 340px) {
  .brand img { width: 91px; }
  .header-location strong { max-width: 78px; }
  .listing-grid, .search-results-grid { grid-template-columns: 1fr; }
  .search-result-row { grid-column: span 1; }
  .otp-row { grid-template-columns: repeat(4,40px); gap: 6px; }
  .otp-row input { width: 40px; height: 52px; }
}

/* Flow heading rhythm: keep navigation and section labels on separate lines. */
.flow-card > .back-link,
.success-card > .back-link { display: flex; width: max-content; }
.flow-card > .page-kicker,
.success-card > .page-kicker { display: block; }

/* V4 smart requirement search + Google Places */
.smart-search-feedback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}
.smart-search-feedback.is-error { color: var(--danger); }
.smart-search-feedback__spinner,
.ai-understanding__spinner {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid #d0d5dd;
  border-top-color: var(--orange);
  border-radius: 50%;
}
.smart-search-feedback.is-loading .smart-search-feedback__spinner,
.ai-understanding__spinner { animation: findoly-spin .75s linear infinite; }
.smart-search-feedback:not(.is-loading) .smart-search-feedback__spinner { display: none; }
.smart-search-fallback,
.flow-secondary-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-understanding {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}
.places-block { margin-top: 20px; }
.findoly-location-search { position: relative; width: 100%; min-width: 0; color-scheme: light; }
.findoly-location-search__bar { display: flex; align-items: center; gap: 8px; }
.findoly-location-search__back { display: none; }
.findoly-location-search__field {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr) 32px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 8px 0 13px;
  border: 1px solid #cfd6e0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,24,40,.04);
}
.findoly-location-search__field > svg { width: 18px; height: 18px; color: #667085; }
.findoly-location-search__field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--navy-deep);
  font: inherit;
}
.findoly-location-search__field input::placeholder { color: #98a2b3; opacity: 1; }
.findoly-location-search__field:focus-within { border-color: #f27a44; box-shadow: 0 0 0 3px rgba(242,122,68,.12); }
.findoly-location-search__clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.findoly-location-search__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  overflow: hidden;
  max-height: min(420px, 62vh);
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16,24,40,.14);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.findoly-location-search.is-open .findoly-location-search__panel { opacity: 1; transform: translateY(0); }
.findoly-location-search__status { margin: 0; padding: 14px 15px; color: #667085; font-size: 11px; line-height: 1.45; }
.findoly-location-search__status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border: 2px solid #e4e7ec;
  border-top-color: var(--orange);
  border-radius: 50%;
  vertical-align: -2px;
  animation: findoly-spin .7s linear infinite;
}
.findoly-location-search__status[data-state="error"] { color: #b42318; }
.findoly-location-search__results { overflow-y: auto; max-height: 320px; overscroll-behavior: contain; }
.findoly-location-search__result {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid #f0f2f5;
  background: #fff;
  color: #26364d;
  text-align: left;
  cursor: pointer;
}
.findoly-location-search__result:hover,
.findoly-location-search__result.is-active { background: #fff8f5; }
.findoly-location-search__result-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff1eb;
  color: var(--orange-dark);
  font-size: 16px;
}
.findoly-location-search__result-text { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.findoly-location-search__attribution {
  padding: 8px 14px 9px;
  border-top: 1px solid #f0f2f5;
  background: #fafbfc;
  color: #7c8798;
  font-size: 9px;
  font-weight: 600;
  text-align: right;
}
.selected-place {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #f8fafc;
}
.selected-place > svg { width: 20px; height: 20px; color: var(--orange-dark); }
.selected-place span { min-width: 0; }
.selected-place strong,
.selected-place small { display: block; overflow: hidden; text-overflow: ellipsis; }
.selected-place strong { color: var(--navy-deep); font-size: 12px; white-space: nowrap; }
.selected-place small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }

/* Keep location search surfaces in a consistent light theme on mobile/desktop, regardless of device theme. */
body[data-page="location"],
body[data-page="location"] .flow-main,
body[data-page="location"] .flow-card,
.mobile-location-panel,
.mobile-location-panel .mobile-overlay__panel,
body[data-page="location"] .findoly-location-search,
.mobile-location-panel .findoly-location-search,
body[data-page="location"] .findoly-location-search__field,
.mobile-location-panel .findoly-location-search__field,
body[data-page="location"] .findoly-location-search__panel,
.mobile-location-panel .findoly-location-search__panel {
  color-scheme: light;
  background: #fff;
}

body[data-page="location"] .field-label,
body[data-page="location"] .field-help,
body[data-page="location"] h1,
body[data-page="location"] .flow-lead,
.mobile-location-panel .field-label,
.mobile-location-panel .field-help,
.mobile-location-panel strong,
.mobile-location-panel .mobile-overlay__lead {
  color: inherit;
}

body[data-page="location"] .pin-field,
body[data-page="location"] .selected-place,
.mobile-location-panel .pin-field,
.mobile-location-panel .selected-place,
.mobile-location-panel .mobile-overlay__topbar,
.mobile-location-panel .mobile-overlay__content,
.mobile-location-panel .mobile-overlay__panel {
  background: #fff;
}

body[data-page="location"] .pin-field input,
.mobile-location-panel .pin-field input {
  background: #fff;
  color: #12203a;
}
.field-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 4px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field-divider::before,
.field-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--soft-line); }
@keyframes findoly-spin { to { transform: rotate(360deg); } }
@keyframes findoly-location-search-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .home-search { display: none; }
  .home-top { padding-top: 17px; }
  .flow-main { min-height: calc(100vh - 116px); }
  .places-block { margin-top: 17px; }
}

/* Mobile native-style search/location overlays and compact header actions */
.mobile-search-trigger { display: none; }
.mobile-overlay { display: none; }

@media (max-width: 767px) {
  body.is-mobile-overlay-open,
  body.is-findoly-location-search-open { overflow: hidden; }
  .findoly-location-search.is-open {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: flex;
    flex-direction: column;
    padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    animation: findoly-location-search-in .18s ease both;
  }
  .findoly-location-search.is-open .findoly-location-search__bar {
    flex: 0 0 auto;
    gap: 7px;
  }
  .findoly-location-search.is-open .findoly-location-search__back {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--navy-deep);
    cursor: pointer;
  }
  .findoly-location-search__back svg { width: 20px; height: 20px; }
  .findoly-location-search.is-open .findoly-location-search__field { flex: 1 1 auto; min-width: 0; box-shadow: none; }
  .findoly-location-search.is-open .findoly-location-search__panel {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    margin-top: 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .findoly-location-search.is-open .findoly-location-search__results { flex: 1 1 auto; max-height: none; }
  .findoly-location-search.is-open .findoly-location-search__status { padding-inline: 8px; }
  .findoly-location-search.is-open .findoly-location-search__result { padding-inline: 8px; min-height: 62px; }
  .findoly-location-search.is-open .findoly-location-search__attribution { margin-top: auto; padding-right: 8px; background: #fff; }
  .site-header__bar { gap: 8px; }
  .header-location { max-width: 132px; padding-inline: 5px; }
  .header-location strong { max-width: 82px; }
  .header-location .chevron { display: none; }
  .header-location > svg { color: var(--orange-dark); }
  .mobile-search-trigger {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ffd8c8;
    border-radius: 50%;
    background: #fff8f5;
    color: var(--orange-dark);
    cursor: pointer;
  }
  .mobile-search-trigger svg { width: 19px; height: 19px; }
  .mobile-search-trigger:active { transform: scale(.96); background: var(--orange-soft); }

  .home-search,
  .marketplace-page-search,
  .explore-page-search { display: none; }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    overflow: hidden;
    background: rgba(3, 28, 73, .12);
    opacity: 0;
    transition: opacity .18s ease;
  }
  .mobile-overlay__panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    transform: translateY(12px);
    transition: transform .2s ease;
  }
  .mobile-overlay.is-open { opacity: 1; }
  .mobile-overlay.is-open .mobile-overlay__panel { transform: translateY(0); }
  .mobile-overlay__topbar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 42px;
    align-items: center;
    min-height: 60px;
    padding: env(safe-area-inset-top) 14px 0;
    border-bottom: 1px solid var(--soft-line);
    background: rgba(255,255,255,.98);
  }
  .mobile-overlay__topbar strong {
    color: var(--navy-deep);
    font-size: 15px;
    text-align: center;
  }
  .mobile-overlay__back {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--navy-deep);
    font-size: 22px;
    cursor: pointer;
  }
  .mobile-overlay__back svg { width: 20px; height: 20px; }
  .mobile-overlay__back:active { background: #f2f4f7; }
  .mobile-overlay__content { padding: 22px 18px 28px; }
  .mobile-overlay__lead {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }
  .overlay-search { margin-top: 16px; z-index: 2; }
  .overlay-search .market-search {
    grid-template-columns: 20px minmax(0,1fr) 46px;
    height: 54px;
    padding-left: 13px;
    border-color: #cfd6e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(16,24,40,.05);
  }
  .overlay-search .market-search__submit { min-width: 46px; width: 46px; }
  .overlay-search .search-suggestions {
    position: static;
    margin-top: 10px;
    box-shadow: none;
  }
  .mobile-search-shortcuts { display: grid; gap: 20px; margin-top: 24px; transition: opacity .14s ease; }
  .mobile-search-shortcuts.is-hidden { display: none; }
  .mobile-search-shortcut-group { display: grid; gap: 10px; }
  .mobile-search-shortcut-title,
  .mobile-search-shortcut-heading strong { color: var(--navy-deep); font-size: 12px; }
  .mobile-search-shortcut-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-search-shortcut-heading button { padding: 4px 0; border: 0; background: transparent; color: var(--orange-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
  .mobile-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-search-chips button {
    max-width: 100%;
    padding: 9px 12px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-search-chips button:active { border-color: #ffc6ad; background: var(--orange-soft); color: var(--orange-dark); }
  .mobile-current-location {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #ffd8c8;
    border-radius: 9px;
    background: #fff8f5;
    color: var(--navy-deep);
    text-align: left;
    cursor: pointer;
  }
  .mobile-current-location > svg { width: 23px; height: 23px; margin: auto; color: var(--orange-dark); }
  .mobile-current-location strong, .mobile-current-location small { display: block; }
  .mobile-current-location strong { font-size: 12px; }
  .mobile-current-location small { margin-top: 2px; color: var(--muted); font-size: 9px; }
  .mobile-current-location:active { background: var(--orange-soft); }
  .mobile-current-location:disabled { opacity: .65; cursor: wait; }
  .mobile-location-search { margin-top: 18px; }
  .mobile-location-save { margin-top: 20px; }
  .mobile-location-full-page {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
  }

  /* Manual PIN entry stays inline and uses a light, smooth native-style focus treatment. */

  body[data-page="listing"] { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body[data-page="listing"] .bottom-nav { display: none; }
  body[data-page="listing"] .detail-action-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    margin: 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -7px 22px rgba(16,24,40,.08);
  }
  body[data-page="listing"] .detail-action-card > div { display: none; }
  body[data-page="listing"] .detail-action-card .button { height: 48px; margin: 0; }

  .market-tabs { scroll-behavior: smooth; }
  .market-tabs__item { transition: color .15s ease; }
  .category-tile:active, .service-card:active { transform: scale(.985); }
  body[data-page="marketplace"] main { overscroll-behavior-x: contain; }

  body.market-swipe-moving main { transition: none; will-change: transform; }
  body.market-swipe-settling main { transition: transform .14s ease, opacity .14s ease; }

  /* Mobile Safari: text controls at 16px prevent focus-triggered viewport zoom without disabling pinch zoom. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea,
  select { font-size: 16px; }
  .otp-row input { font-size: 24px; }

  /* Swiper owns the sticky marketplace rail on mobile; native overflow remains the graceful fallback. */
  .market-tabs-swiper { width: 100%; overflow: hidden; }
  .market-tabs-swiper .market-tabs { gap: 0; width: 100%; overflow-x: auto; }
  .market-tabs-swiper .market-tabs__item { width: auto; margin-right: 22px; }
  .market-tabs-swiper .market-tabs__item:last-child { margin-right: 0; }
  .market-tabs-swiper.swiper-initialized .market-tabs { overflow: visible; scroll-behavior: auto; }
  .market-tabs-swiper.swiper-initialized .market-tabs__item { flex-shrink: 0; }

  /* The submit action itself owns the physical bottom edge, including the safe area. */
  body[data-page="listing"] { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body[data-page="listing"] .detail-action-card {
    padding: 0;
    border-top: 0;
    background: var(--orange);
    box-shadow: 0 -6px 20px rgba(16,24,40,.10);
  }
  body[data-page="listing"] .detail-action-card .button {
    min-height: calc(56px + env(safe-area-inset-bottom));
    height: auto;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 340px) {
  .header-location { max-width: 116px; }
  .header-location strong { max-width: 68px; }
  .mobile-search-trigger { flex-basis: 40px; width: 40px; height: 40px; }
  .mobile-overlay__content { padding-inline: 14px; }
}


/* Customer account/profile */
.account-switch-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.account-switch-copy a { color: var(--orange-dark); font-weight: 700; }
.profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 700;
}
.profile-card__identity { min-width: 0; }
.profile-card__identity h2 { margin: 0; color: var(--navy-deep); font-size: 18px; }
.profile-card__identity p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.profile-verified {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eefbf3;
  color: #15723a;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.profile-links {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  color: var(--navy-deep);
}
.profile-links a + a { border-top: 1px solid var(--soft-line); }
.profile-links strong,
.profile-links small { display: block; }
.profile-links strong { font-size: 12px; }
.profile-links small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-links a > span:last-child { color: #98a2b3; font-size: 22px; }
.profile-logout { margin-top: 18px; }

@media (max-width: 767px) {
  .profile-card { grid-template-columns: 48px minmax(0,1fr) auto; padding: 14px; }
  .profile-avatar { width: 48px; height: 48px; font-size: 18px; }
  .profile-card__identity h2 { font-size: 16px; }
  .profile-verified { padding: 5px 7px; font-size: 8px; }
}
