:root {
  color-scheme: light;
  --navy: #101a33;
  --navy-2: #172342;
  --brand: #ff4d2d;
  --brand-dark: #d83a20;
  --brand-soft: #fff3ee;
  --page: #f7f8fa;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d8dde6;
  --shadow: 0 18px 44px rgba(16, 26, 51, 0.11);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding: 11px clamp(18px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(255, 77, 45, 0.16), transparent 26%),
    var(--navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(16, 26, 51, 0.2);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 77, 45, 0.22), 0 10px 22px rgba(255, 77, 45, 0.32);
}

.brand-wordmark {
  width: 142px;
  max-height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.desktop-nav {
  display: none;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(168px, 214px) auto;
  gap: 8px;
  min-width: 0;
  width: min(100%, 820px);
  justify-self: center;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 77, 45, 0.12), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.header-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 800;
}

.location-search {
  position: relative;
  isolation: isolate;
  min-width: 156px;
  display: grid;
  align-items: center;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 26, 51, 0.025), 0 4px 12px rgba(16, 26, 51, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.location-picker {
  width: 100%;
  min-width: 156px;
  height: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  outline: 0;
  padding: 10px 34px 10px 38px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.header-search .location-picker {
  padding: 10px 34px 10px 38px;
}

.location-picker:focus {
  background: transparent;
}

.location-search:hover {
  background: #fff7f4;
  border-color: rgba(255, 77, 45, 0.32);
}

.location-search:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.12);
}

.mobile-location-trigger {
  display: none;
}

.mobile-location-label {
  display: none;
}

.location-pin,
.location-clear {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--brand);
  transform: translateY(-50%);
}

.location-pin {
  left: 12px;
  width: 18px;
  height: 18px;
}

.location-pin svg,
.suggestion-pin svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-clear {
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.location-clear:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.location-clear[hidden] {
  display: none;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  display: grid;
  width: min(360px, 84vw);
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 42px rgba(16, 26, 51, 0.14);
}

.location-suggestions[hidden] {
  display: none;
}

.location-suggestions button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
}

.location-suggestions button:hover {
  background: #fff7f4;
}

.location-suggestions button:focus-visible {
  outline: 3px solid rgba(255, 77, 45, 0.2);
  outline-offset: -3px;
  background: var(--brand-soft);
}

.location-suggestions button:last-child {
  border-bottom: 0;
}

.suggestion-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f9fafb;
  color: var(--brand);
}

.location-suggestions button:hover .suggestion-pin {
  background: var(--brand-soft);
}

.suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.suggestion-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.header-search > button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  min-width: 102px;
  padding: 12px 20px;
  font-weight: 900;
}

.search-button-icon {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search > button:hover,
.primary-button:hover,
.post-button:hover {
  background: var(--brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}

.header-link {
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.header-link:hover {
  border-color: rgba(255, 77, 45, 0.35);
  background: rgba(255, 77, 45, 0.14);
  color: #fff;
}

.account-auth-button,
.account-link,
.account-menu summary,
.notification-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 77, 45, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.account-auth-button {
  background: #fff;
  color: var(--navy);
}

.account-auth-button:hover,
.account-link:hover,
.account-menu summary:hover,
.notification-bell:hover {
  border-color: rgba(255, 77, 45, 0.78);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.notification-bell {
  position: relative;
  width: 42px;
  padding: 0;
  text-decoration: none;
}

.notification-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.avatar-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 95;
  display: grid;
  min-width: 248px;
  max-width: min(92vw, 300px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 42px rgba(16, 26, 51, 0.18);
}

.account-menu-user {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.account-menu-user strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
}

.account-menu-user span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-menu-panel a,
.account-menu-panel button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.primary-button,
.ghost-button,
.pill-button,
.white-button,
.soft-button,
.store-button,
.danger-button,
.post-link,
.filter-submit {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-button {
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 77, 45, 0.24);
}

.ghost-button,
.pill-button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.white-button {
  padding: 13px 18px;
  background: #fff;
  color: var(--brand-dark);
}

.soft-button {
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.danger-button {
  padding: 12px 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.danger-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #b91c1c;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 950;
}

.danger-outline-button:hover {
  border-color: rgba(185, 28, 28, 0.34);
  background: #fef2f2;
}

.post-link {
  padding: 12px 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.full-width {
  width: 100%;
}

.market-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
}

.post-button {
  min-width: 76px;
}

.site-header .header-actions > .download-link,
.site-header .header-actions > .account-auth-button,
.site-header .header-actions > .post-button.guest-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.site-header .header-actions > .post-button.guest-only {
  min-width: 76px;
  box-shadow: 0 10px 20px rgba(255, 77, 45, 0.18);
}

.home-shell {
  padding-top: 30px;
}

.category-rail {
  position: sticky;
  top: 62px;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(16, 26, 51, 0.04);
  scrollbar-width: none;
}

.market-nav {
  position: sticky;
  top: 62px;
  z-index: 41;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(16, 26, 51, 0.04);
  backdrop-filter: blur(16px);
}

.vertical-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(16px, 4vw, 52px) 0;
  scrollbar-width: none;
}

.vertical-tabs::-webkit-scrollbar {
  display: none;
}

.vertical-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.vertical-tab:hover,
.vertical-tab[aria-pressed="true"] {
  border-color: rgba(255, 77, 45, 0.36);
  background: var(--brand);
  color: #fff;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.market-nav .category-rail {
  position: static;
  border-bottom: 0;
  box-shadow: none;
  background: transparent;
}

.home-category-rail {
  justify-content: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.home-category-rail .rail-item {
  min-width: 106px;
  padding: 9px 15px 9px 10px;
}

.home-category-rail .rail-icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
}

.home-category-rail .rail-icon svg {
  width: 18px;
  height: 18px;
}

.rail-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid rgba(229, 231, 235, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 8px 13px 8px 9px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 26, 51, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rail-item:hover,
.rail-item[aria-pressed="true"] {
  border-color: rgba(255, 77, 45, 0.38);
  background: var(--brand-soft);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.rail-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.rail-item:hover .rail-icon,
.rail-item[aria-pressed="true"] .rail-icon {
  background: var(--brand);
  color: #fff;
}

.rail-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.88fr);
  min-height: 372px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 48%, var(--navy) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy-block {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(30px, 5vw, 60px);
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.hero-copy-block p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
}

.hero-actions,
.store-row,
.chip-row,
.mobile-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 4px;
}

.hero-collage {
  position: relative;
  min-height: 372px;
  padding: 26px;
}

.collage-empty {
  position: absolute;
  inset: 26px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.collage-empty img {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.22);
}

.collage-empty strong {
  font-size: 24px;
}

.collage-empty span {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.collage-tile {
  position: absolute;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 26, 51, 0.24);
}

.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-tile span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(16, 26, 51, 0.78);
  color: #fff;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 950;
}

.hero-ad-media {
  display: grid;
  place-items: center;
}

.hero-ad-media > img {
  width: min(100%, 520px);
  height: min(82%, 320px);
  border: 5px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(16, 26, 51, 0.24);
}

.tile-0 {
  top: 34px;
  left: 20px;
  width: 46%;
  height: 45%;
}

.tile-1 {
  top: 74px;
  right: 26px;
  width: 42%;
  height: 36%;
}

.tile-2 {
  bottom: 34px;
  left: 56px;
  width: 38%;
  height: 34%;
}

.tile-3 {
  right: 58px;
  bottom: 28px;
  width: 42%;
  height: 40%;
}

.home-section {
  margin-top: 32px;
}

.company-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.company-section > div {
  max-width: 760px;
}

.company-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.65;
}

.company-section h2 {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head p,
.browse-head p,
.profile-card p,
.seller-hero p,
.doc-card p {
  color: var(--muted);
  font-weight: 650;
}

.section-head a {
  color: var(--brand-dark);
  font-weight: 900;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 77, 45, 0.14), transparent 30%),
    #fff;
  padding: 18px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover {
  border-color: rgba(255, 77, 45, 0.38);
  box-shadow: 0 18px 38px rgba(16, 26, 51, 0.11);
  transform: translateY(-2px);
}

.category-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}

.category-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card > span:last-child {
  display: grid;
  color: var(--navy);
}

.category-card strong {
  font-size: 17px;
}

.category-card small {
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 26, 51, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: rgba(255, 77, 45, 0.28);
  box-shadow: 0 16px 34px rgba(16, 26, 51, 0.1);
  transform: translateY(-2px);
}

.product-card a {
  display: block;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--brand-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.sponsored-ad-card {
  overflow: hidden;
  border: 1px solid rgba(255, 77, 45, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff7f4 100%);
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.075);
}

.sponsored-ad-link {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  min-height: 168px;
  color: inherit;
}

.sponsored-ad-grid {
  grid-column: span 2;
}

.sponsored-ad-detail,
.sponsored-ad-wide {
  margin: 18px 0;
}

.sponsored-ad-media {
  min-height: 168px;
  background: var(--brand-soft);
}

.sponsored-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sponsored-ad-copy {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
}

.sponsored-label {
  width: fit-content;
  border: 1px solid rgba(255, 77, 45, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sponsored-ad-copy strong {
  color: var(--navy);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.sponsored-ad-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sponsored-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sponsored-ad-footer em {
  color: var(--brand);
  font-style: normal;
}

.vertical-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 77, 45, 0.94);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(16, 26, 51, 0.16);
}

.product-info {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.product-price {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.product-title {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-location,
.product-foot {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-category {
  overflow: hidden;
  max-width: 58%;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 3px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heart-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 77, 45, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: 19px;
  backdrop-filter: blur(12px);
}

.heart-button.saved {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.app-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 77, 45, 0.12), transparent 30%),
    #fff;
  box-shadow: var(--shadow);
}

.app-download-panel h1,
.app-download-panel h2 {
  color: var(--navy);
}

.phone-stack {
  position: relative;
  min-height: 270px;
}

.mini-card {
  position: absolute;
  display: grid;
  gap: 5px;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 26, 51, 0.13);
}

.mini-card:nth-child(1) {
  top: 0;
  left: 12px;
  transform: rotate(-5deg);
}

.mini-card:nth-child(2) {
  top: 54px;
  right: 16px;
  transform: rotate(4deg);
}

.mini-card:nth-child(3) {
  bottom: 4px;
  left: 72px;
  transform: rotate(-1deg);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: 12px;
  object-fit: cover;
}

.app-feature-card img {
  background: #111;
  object-fit: contain;
  padding: 10px;
}

.mini-card strong {
  color: var(--brand-dark);
}

.mini-card span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-button {
  display: inline-grid;
  min-width: 182px;
  border: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  line-height: 1.1;
  text-align: left;
}

.store-button:not(:disabled):hover {
  background: #17254a;
  transform: translateY(-1px);
}

.store-button:disabled,
.store-button.is-disabled {
  cursor: default;
  opacity: 0.76;
}

.store-button span {
  font-size: 12px;
  font-weight: 700;
}

.store-button strong {
  font-size: 20px;
}

.browse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.browse-head h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 5vw, 54px);
}

.sort-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sort-form select,
.filter-stack input,
.filter-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  outline: 0;
}

.filter-stack input:focus,
.filter-stack select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.12);
}

.filter-submit {
  padding: 11px 14px;
  background: var(--brand);
  color: #fff;
}

.filter-submit:hover {
  background: var(--brand-dark);
}

.browse-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 20px;
}

.filter-sidebar,
.contact-card,
.detail-description,
.doc-card,
.profile-card,
.seller-hero,
.empty-state,
.saved-search-row,
.inbox-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.filter-sidebar {
  position: sticky;
  top: 134px;
  align-self: start;
  padding: 16px;
}

.filter-stack {
  display: grid;
  gap: 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-stack label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-section-title {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.amenity-filter {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 0;
}

.amenity-filter legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.amenity-filter-grid {
  display: grid;
  gap: 8px;
}

.amenity-filter-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  text-transform: none;
  font-size: 13px;
}

.amenity-filter-grid input {
  width: auto;
  accent-color: var(--brand);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 22px;
}

.recent-searches-section {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.recent-searches-section.full {
  margin-top: 18px;
}

.recent-search-list {
  display: grid;
  gap: 8px;
}

.recent-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
}

.recent-search-row a {
  display: grid;
  min-width: 0;
  text-decoration: none;
}

.recent-search-row strong,
.recent-search-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-search-row strong {
  color: var(--text);
  font-size: 14px;
}

.recent-search-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.icon-text-button:hover {
  border-color: rgba(255, 77, 45, 0.32);
  background: var(--soft);
  color: var(--brand);
}

.saved-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 950;
}

.alert-toggle.is-on {
  border-color: rgba(255, 77, 45, 0.32);
  background: var(--soft);
  color: var(--brand-dark);
}

.saved-search-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.saved-search-chips span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.recent-activity-card {
  grid-column: 1 / -1;
}

.results-panel {
  min-width: 0;
}

.mobile-filter-strip {
  display: none;
  margin-bottom: 12px;
}

.wide-empty-state {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  justify-self: center;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-modal {
  display: grid;
  gap: 14px;
}

.chip-row {
  margin-bottom: 14px;
}

.category-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
}

.category-chip[aria-pressed="true"] {
  border-color: rgba(255, 77, 45, 0.32);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.universal-detail-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.product-detail-shell {
  width: min(100%, 1320px);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
}

.product-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.product-gallery {
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.12);
}

.product-main-image-button {
  background: #f8fafc;
}

.product-main-image {
  aspect-ratio: 1.18 / 1;
  object-fit: contain;
  background: #f8fafc;
}

.product-thumb-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.product-thumb-row button {
  position: relative;
  border-radius: 14px;
}

.product-thumb-row button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.14);
}

.product-info-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.06);
}

.product-info-panel h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.product-copy-section {
  display: grid;
  gap: 10px;
}

.product-copy-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.product-copy-section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.product-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.neutral-badge {
  background: #f3f4f6;
  color: var(--text);
}

.product-safety-note {
  margin-top: 0;
  border: 1px solid rgba(255, 77, 45, 0.18);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
}

.product-safety-note ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.product-safety-note li {
  color: var(--muted);
}

.product-contact-card {
  top: 128px;
  gap: 16px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.11);
}

.product-contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.product-contact-card .detail-price {
  font-size: 34px;
}

.product-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-seller-price {
  color: var(--navy);
  font-size: 24px;
  font-weight: 950;
}

.product-trust-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 16px;
  background: #f8fafc;
}

.product-trust-card strong {
  color: var(--navy);
}

.product-trust-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.detail-safety-actions,
.safety-action-stack {
  display: grid;
  gap: 8px;
}

.detail-safety-actions {
  padding: 12px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 16px;
  background: #f8fafc;
}

.safety-link-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 0;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.safety-link-button:hover {
  color: var(--brand);
}

.safety-link-button.danger:hover {
  color: #b91c1c;
}

.blocked-user-note {
  margin: 0;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
}

.collapsible-copy {
  position: relative;
}

.detail-toggle-button {
  justify-self: start;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.detail-toggle-button:hover {
  background: rgba(255, 77, 45, 0.16);
}

.detail-discovery-sections {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-discovery-sections .home-section {
  margin: 0;
}

.product-grid.detail-discovery-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 240px));
  align-items: start;
  gap: 14px;
  justify-content: start;
}

.detail-discovery-grid .product-card {
  width: 100%;
  max-width: 240px;
}

.detail-discovery-grid .product-media {
  height: 184px;
  aspect-ratio: auto;
}

.detail-discovery-grid .product-info {
  gap: 6px;
  min-height: 138px;
  padding: 12px;
}

.detail-discovery-grid .product-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-discovery-grid .product-title,
.detail-discovery-grid .product-location {
  text-overflow: clip;
}

.detail-discovery-grid .product-location {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-discovery-grid .product-foot {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  min-height: 42px;
}

.detail-discovery-grid .product-date {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-discovery-grid .product-category {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding-inline: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-detail-shell {
  width: min(100%, 1320px);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.service-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.service-hero-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.11);
}

.service-gallery {
  border-radius: 0;
  box-shadow: none;
}

.service-main-image-button {
  background: linear-gradient(135deg, #fff7f3, #f8fafc);
}

.service-main-image {
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  background: #f8fafc;
}

.service-thumb-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service-thumb-row button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.14);
}

.service-summary-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 77, 45, 0.12), transparent 34%),
    #fff;
}

.service-summary-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.service-business-name {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.service-mobile-actions {
  display: none;
  gap: 10px;
}

.service-content-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.06);
}

.service-content-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.service-content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.service-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.service-contact-card {
  top: 128px;
  gap: 15px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.11);
}

.service-contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.14;
}

.service-rate-label {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 950;
}

.service-trust-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 16px;
  background: var(--brand-soft);
}

.service-trust-card strong {
  color: var(--navy);
}

.service-trust-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.service-safety-note {
  margin-top: 0;
  border: 1px solid rgba(16, 26, 51, 0.07);
  background: #f8fafc;
}

.service-safety-note ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.service-safety-note li {
  color: var(--muted);
}

.service-image-fallback {
  min-height: 100%;
  background: linear-gradient(135deg, #fff7f3, #f8fafc);
}

.job-detail-shell {
  width: min(100%, 1320px);
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.job-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.job-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  overflow: hidden;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.1);
}

.job-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(26px, 4.5vw, 46px);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 77, 45, 0.12), transparent 34%),
    linear-gradient(135deg, #fff, #f8fafc);
}

.job-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
}

.job-company-name,
.job-sidebar-company {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.job-pay-label,
.job-sidebar-pay {
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 950;
}

.job-mobile-actions {
  display: none;
  gap: 10px;
}

.job-gallery {
  border-radius: 0;
  box-shadow: none;
}

.job-main-image-button {
  background: linear-gradient(135deg, #f8fafc, #fff7f3);
}

.job-main-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8fafc;
}

.job-thumb-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.job-thumb-row button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.14);
}

.job-content-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.06);
}

.job-content-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.job-content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.job-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.job-contact-card {
  top: 128px;
  gap: 15px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.11);
}

.job-contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.14;
}

.job-trust-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 16px;
  background: var(--brand-soft);
}

.job-trust-card strong {
  color: var(--navy);
}

.job-trust-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.job-safety-note {
  margin-top: 0;
  border: 1px solid rgba(16, 26, 51, 0.07);
  background: #f8fafc;
}

.job-safety-note ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.job-safety-note li {
  color: var(--muted);
}

.job-image-fallback {
  min-height: 100%;
  background: linear-gradient(135deg, #f8fafc, #fff7f3);
}

.property-detail-shell {
  width: min(100%, 1320px);
}

.property-gallery-card {
  margin-bottom: 16px;
}

.property-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 8px;
  height: clamp(320px, 28vw, 365px);
  max-height: 365px;
  padding: 8px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(16, 26, 51, 0.12);
}

.property-main-photo {
  position: relative;
  min-height: 0;
  height: 100%;
}

.property-main-image-button {
  overflow: hidden;
  height: 100%;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(135deg, #f8fafc, #fff7f3);
}

.property-main-image {
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  background: #f8fafc;
}

.property-gallery-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(16, 26, 51, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.property-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.property-photo-grid button {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 0;
  padding: 0;
  background: #eef2f7;
  cursor: pointer;
}

.property-photo-grid button:nth-child(2) {
  border-radius: 0 18px 0 0;
}

.property-photo-grid button:nth-child(4),
.property-photo-grid button:last-child {
  border-radius: 0 0 18px 0;
}

.property-photo-grid button:hover img,
.property-main-image-button:hover img {
  transform: scale(1.025);
}

.property-photo-grid img,
.property-main-image {
  transition: transform 180ms ease;
}

.property-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.property-see-photos {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #fff;
  font-weight: 950;
}

.property-see-photos::before {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 51, 0.55);
  content: "";
}

.property-see-photos span,
.property-see-photos small {
  position: relative;
  z-index: 1;
}

.property-see-photos small {
  font-size: 12px;
  opacity: 0.86;
}

.property-thumb-row button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.14);
}

.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.property-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.property-summary-card,
.property-content-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(16, 26, 51, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.06);
}

.property-summary-card {
  gap: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 45, 0.1), transparent 30%),
    #fff;
}

.property-price-label,
.property-sidebar-price {
  color: var(--brand-dark);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1;
  font-weight: 950;
}

.property-sidebar-price {
  font-size: 30px;
}

.property-summary-card h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.06;
}

.property-location-line {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.property-mobile-actions {
  display: none;
  gap: 10px;
}

.property-key-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.property-key-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 16px;
  background: #f8fafc;
}

.property-key-facts strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-key-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.property-content-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.property-content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.property-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  box-shadow: none;
}

.property-amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-amenity-list span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.property-location-card {
  background:
    linear-gradient(135deg, rgba(255, 77, 45, 0.05), transparent),
    #fff;
}

.property-contact-card {
  top: 128px;
  gap: 15px;
  border: 1px solid rgba(16, 26, 51, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(16, 26, 51, 0.11);
}

.property-contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.14;
}

.property-trust-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 16px;
  background: var(--brand-soft);
}

.property-trust-card strong {
  color: var(--navy);
}

.property-trust-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.property-safety-note {
  margin-top: 0;
  border: 1px solid rgba(16, 26, 51, 0.07);
  background: #f8fafc;
}

.property-safety-note ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.property-safety-note li {
  color: var(--muted);
}

.property-image-fallback {
  grid-column: 1 / -1;
  min-height: 420px;
  background: linear-gradient(135deg, #f8fafc, #fff7f3);
}

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-gallery {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-main-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.detail-thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.detail-thumb-row button {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.detail-thumb-row button:hover {
  border-color: var(--brand);
}

.detail-thumb-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.detail-image-fallback {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.detail-image-fallback img {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  object-fit: cover;
}

.detail-image-fallback strong {
  color: var(--navy);
  font-size: 18px;
}

.detail-description {
  padding: 22px;
}

.detail-description h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4.8vw, 52px);
}

.detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
}

.mobile-price {
  display: none;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.detail-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 13px;
}

.category-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
}

.safety-note {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f4f6fb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.safety-note strong {
  color: var(--navy);
}

.contact-card {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.app-cta-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 16px;
  background: var(--brand-soft);
}

.app-cta-card strong {
  color: var(--navy);
}

.app-cta-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.app-cta-card .primary-button,
.app-cta-card .ghost-button,
.app-cta-card .post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.detail-price {
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 950;
}

.detail-meta {
  color: var(--muted);
  font-weight: 750;
}

.seller-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.actor-card {
  border: 1px solid var(--line);
  background: #fff;
}

.seller-row span:last-child {
  display: grid;
  min-width: 0;
}

.seller-row strong {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.seller-row small {
  color: var(--muted);
  font-weight: 700;
}

.seller-row .actor-trust-line {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.seller-avatar {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(16, 26, 51, 0.08);
  color: #fff;
  font-weight: 950;
  line-height: 1;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  display: block;
  border-radius: inherit;
  object-position: center center;
}

.seller-avatar .actor-avatar-photo {
  object-fit: cover;
  padding: 0;
}

.seller-avatar .actor-avatar-logo,
.seller-avatar.logo-photo img {
  object-fit: contain;
  object-position: center center;
  padding: 8px;
  background: #fff;
}

.seller-avatar.has-photo {
  background: #fff;
}

.seller-avatar.avatar-fallback {
  background: var(--navy);
  color: #fff;
}

.seller-avatar.large {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
  font-size: 24px;
}

.verified-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-0.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.saved-action {
  border-color: rgba(255, 77, 45, 0.34);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.message-form {
  display: grid;
  gap: 12px;
}

.message-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.message-form textarea:focus {
  outline: 3px solid rgba(255, 77, 45, 0.16);
  border-color: var(--brand);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 64px 72px;
  background: rgba(7, 12, 24, 0.94);
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 22px;
}

.lightbox-nav.next {
  right: 22px;
}

.lightbox-counter {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
}

.seller-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 24px;
}

.public-seller-hero {
  align-items: start;
}

.seller-profile-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.seller-profile-copy h1 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.seller-username,
.seller-bio {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.seller-meta-row,
.seller-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.seller-meta-row span,
.seller-social-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 7px 10px;
}

.seller-social-stats strong {
  color: var(--ink);
}

.seller-profile-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.seller-trust-section {
  display: grid;
  gap: 14px;
  margin: -6px 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.06);
}

.trust-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.trust-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.trust-metric > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-metric strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.trust-metric small,
.trust-review-note {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.seller-trust-rating span {
  color: #f59e0b;
}

.trust-inline-badge {
  width: 17px;
  height: 17px;
}

.trust-compliments {
  display: grid;
  gap: 10px;
}

.trust-compliments h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.trust-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 77, 45, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.trust-review-note {
  margin: 0;
  max-width: 760px;
  font-size: 13px;
}

.following-button {
  border-color: rgba(255, 77, 45, 0.34);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.seller-self-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 950;
  padding: 9px 13px;
}

.blocked-pill {
  border-color: rgba(185, 28, 28, 0.16);
  background: #fef2f2;
  color: #b91c1c;
}

.seller-storefront {
  display: grid;
  gap: 16px;
}

.seller-profile-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.seller-profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  white-space: nowrap;
  text-decoration: none;
}

.seller-profile-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.seller-profile-tab[aria-current="page"] {
  border-color: rgba(255, 77, 45, 0.42);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.seller-profile-tab[aria-current="page"] span {
  background: var(--brand);
  color: #fff;
}

.seller-profile-grid .empty-state {
  grid-column: 1 / -1;
}

.doc-card,
.profile-card,
.empty-state {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  justify-self: center;
  padding: 24px;
  text-align: center;
}

.app-first-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.app-first-panel h1,
.profile-card h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.app-first-panel p,
.profile-card p {
  max-width: 560px;
  margin-inline: auto;
}

.inbox-shell {
  gap: 18px;
}

.inbox-heading {
  align-items: center;
}

.inline-alert {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid #fed7cc;
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
}

.inbox-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 620px;
}

.conversation-list-panel,
.thread-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.conversation-list-panel {
  overflow: hidden;
}

.conversation-list {
  display: grid;
  align-content: start;
  max-height: 720px;
  overflow: auto;
}

.conversation-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.conversation-card:hover,
.conversation-card.active {
  background: var(--soft);
}

.conversation-card.active {
  box-shadow: inset 4px 0 0 var(--brand);
}

.conversation-card.unread strong,
.conversation-card.unread .conversation-preview {
  font-weight: 900;
}

.conversation-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.conversation-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.conversation-topline strong,
.conversation-item,
.conversation-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-topline small,
.conversation-item,
.conversation-preview {
  color: var(--muted);
  font-size: 12px;
}

.conversation-item {
  color: var(--text);
  font-weight: 800;
}

.unread-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.thread-panel {
  min-width: 0;
}

.thread-card {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  min-height: 620px;
  overflow: hidden;
}

.thread-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.thread-header h2 {
  margin: 0;
  font-size: 20px;
}

.thread-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ghost-icon-button {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.thread-item-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 14px 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
}

.thread-item-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}

.thread-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-item-card strong,
.thread-item-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-item-card small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}

.thread-empty,
.thread-unavailable {
  align-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.message-row {
  display: flex;
}

.message-row.own {
  justify-content: flex-end;
}

.message-row.other {
  justify-content: flex-start;
}

.message-bubble {
  max-width: min(72%, 520px);
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(16, 26, 51, 0.08);
}

.message-row.own .message-bubble {
  border-bottom-right-radius: 6px;
  background: var(--brand);
  color: #fff;
}

.message-row.other .message-bubble {
  border-bottom-left-radius: 6px;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-bubble small {
  display: block;
  margin-top: 5px;
  color: currentColor;
  opacity: 0.7;
  font-size: 11px;
  font-weight: 800;
}

.message-bubble.deleted {
  opacity: 0.65;
  font-style: italic;
}

.message-image {
  display: block;
  width: min(260px, 100%);
  max-height: 280px;
  margin-bottom: 8px;
  border-radius: 12px;
  object-fit: cover;
}

.thread-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.thread-compose textarea {
  width: 100%;
  min-height: 48px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.thread-compose textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 77, 45, 0.12);
}

.thread-compose .auth-error {
  grid-column: 1 / -1;
  margin: 0;
}

.blocked-compose {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.profile-dashboard {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  width: min(100%, 980px);
  justify-self: center;
}

.account-summary-card {
  width: 100%;
}

.panel-brand-mark,
.modal-brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 77, 45, 0.18), 0 12px 24px rgba(255, 77, 45, 0.2);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 720px);
  margin-inline: auto;
}

.profile-meta {
  display: grid;
  gap: 5px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  text-align: left;
}

.profile-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-meta strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 13px;
}

.account-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-shortcut {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 26, 51, 0.05);
}

.account-shortcut:hover {
  border-color: rgba(255, 77, 45, 0.38);
  background: var(--brand-soft);
}

.account-shortcut strong {
  color: var(--navy);
  font-weight: 950;
}

.account-shortcut span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-empty {
  width: min(100%, 520px);
  padding: 18px;
  box-shadow: none;
}

.empty-state .primary-button {
  margin-top: 8px;
}

.doc-card {
  max-width: 860px;
}

.doc-card h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.doc-card h2 {
  margin-top: 26px;
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-search-row,
.inbox-row {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.saved-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.saved-search-row a {
  display: grid;
  gap: 5px;
}

.saved-search-row span,
.inbox-row span {
  color: var(--muted);
  font-weight: 700;
}

.saved-search-row small {
  color: var(--muted);
  font-weight: 800;
}

.notifications-shell {
  max-width: 960px;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 26, 51, 0.05);
  overflow: hidden;
}

.notification-card.unread {
  border-color: rgba(255, 77, 45, 0.34);
  box-shadow: 0 16px 36px rgba(255, 77, 45, 0.08);
}

.notification-open {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px;
  color: var(--text);
  text-align: left;
}

.notification-open:hover {
  background: var(--brand-soft);
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 950;
}

.notification-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notification-title-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-body,
.notification-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.notification-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--brand);
}

.notification-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f8fafc;
}

.notification-chevron {
  color: var(--muted);
  font-size: 28px;
  font-weight: 700;
}

.notification-empty {
  margin-top: 14px;
}

.text-danger-button {
  border: 0;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
}

.text-danger-button:hover {
  background: #fee2e2;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(130px, 1fr));
  gap: 30px;
  margin-top: 32px;
  padding: 40px clamp(18px, 4vw, 52px) 112px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col strong {
  color: #fff;
}

.footer-col a,
.footer-col button,
.site-footer button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  padding: 0;
  text-align: left;
  font-weight: 750;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 77, 45, 0.34);
  border-radius: 999px;
  background: rgba(255, 77, 45, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.mobile-tabs {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-tabs a,
.mobile-tabs button {
  display: grid;
  min-width: 0;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-tabs [aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 26, 51, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(100%, 470px);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(16, 26, 51, 0.28);
}

.modal #modal-content {
  display: grid;
  gap: 12px;
}

.modal h2 {
  font-size: 30px;
  line-height: 1.06;
  margin-bottom: 0;
}

.modal p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-panel {
  display: grid;
  gap: 13px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.auth-tabs button.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 77, 45, 0.22);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.report-form {
  display: grid;
  gap: 13px;
}

.report-context {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 11px 12px;
  color: var(--ink) !important;
}

.report-reason-list {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.report-reason-list legend,
.report-details-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.report-reason-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 9px 11px;
  color: var(--ink);
  font-weight: 850;
}

.report-reason-list input {
  accent-color: var(--brand);
}

.report-details-label {
  display: grid;
  gap: 7px;
}

.report-details-label textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  outline: 0;
}

.report-details-label textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.11);
}

.auth-form[hidden] {
  display: none !important;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-phone-grid {
  grid-template-columns: minmax(128px, 0.55fr) minmax(0, 1fr);
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input,
.auth-form select,
.auth-input-prefix {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: 0;
  padding: 12px 13px;
  font-weight: 800;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-input-prefix:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.11);
}

.auth-input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
}

.auth-input-prefix span {
  color: var(--muted);
  font-weight: 950;
}

.auth-input-prefix input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 0;
  padding-left: 0;
}

.auth-help {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-error {
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c !important;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 850 !important;
}

.auth-error[data-tone="success"] {
  background: #ecfdf5;
  color: #047857 !important;
}

.auth-text-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.auth-text-button:hover {
  color: var(--brand);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 24px;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 77, 45, 0.14), transparent 28%),
    var(--bg);
}

.not-found-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.not-found-card img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 77, 45, 0.18), 0 16px 32px rgba(255, 77, 45, 0.2);
}

.not-found-card h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 7vw, 62px);
}

.not-found-card p:not(.eyebrow) {
  max-width: 410px;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .header-actions > .account-link.auth-only {
    display: none;
  }

  .product-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sponsored-ad-grid {
    grid-column: 1 / -1;
  }

  .product-grid.detail-discovery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 220px));
  }

  .detail-discovery-grid .product-card {
    max-width: 220px;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .inbox-layout {
    display: block;
    min-height: 0;
  }

  .inbox-layout.has-thread .conversation-list-panel {
    display: none;
  }

  .inbox-layout:not(.has-thread) .thread-panel {
    display: none;
  }

  .conversation-list-panel,
  .thread-card {
    border-radius: 18px;
  }

  .conversation-list {
    max-height: none;
  }

  .thread-card {
    min-height: calc(100vh - 180px);
  }

  .thread-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .thread-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .thread-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .thread-item-card {
    grid-template-columns: 58px minmax(0, 1fr);
    margin: 12px;
  }

  .message-list {
    padding: 12px;
  }

  .message-bubble {
    max-width: 86%;
  }

  .thread-compose {
    grid-template-columns: 1fr;
  }

  .thread-compose .primary-button {
    width: 100%;
  }

  .blocked-compose {
    display: grid;
    gap: 10px;
    justify-items: stretch;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px 12px;
  }

  .brand-link {
    min-width: 0;
  }

  .brand-wordmark {
    width: 118px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-self: stretch;
    width: auto;
    max-width: 100%;
  }

  .location-picker {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .location-search {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .header-search > button[data-action="header-search"] {
    grid-column: 2;
    grid-row: 2;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .download-link {
    display: inline-flex;
  }

  .header-actions > .account-link.auth-only {
    display: none;
  }

  .market-nav {
    top: 106px;
  }

  .category-rail {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .vertical-tabs {
    justify-content: flex-start;
    padding: 10px 12px 0;
  }

  .home-category-rail {
    gap: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .home-category-rail .rail-item {
    min-width: auto;
    padding: 8px 12px 8px 8px;
  }

  .home-category-rail .rail-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .market-shell {
    padding: 16px 12px 28px;
  }

  .home-shell {
    padding-top: 16px;
  }

  .hero-banner,
  .app-download-panel,
  .detail-layout,
  .product-detail-layout,
  .service-detail-layout,
  .service-hero-card,
  .job-detail-layout,
  .job-hero-card,
  .property-detail-layout,
  .browse-layout,
  .seller-hero {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-copy-block {
    padding: 28px 22px 18px;
  }

  .hero-collage {
    min-height: 280px;
    padding: 18px;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .mobile-filter-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .browse-head {
    align-items: start;
    flex-direction: column;
  }

  .sort-form {
    width: 100%;
  }

  .sort-form select {
    flex: 1;
  }

  .filter-modal .filter-stack {
    max-height: min(64vh, 620px);
    overflow: auto;
    padding-right: 2px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
  }

  .recent-searches-section {
    padding: 12px;
  }

  .recent-search-row {
    padding: 10px;
  }

  .saved-search-actions {
    width: 100%;
  }

  .contact-card {
    position: static;
  }

  .product-contact-card {
    position: static;
  }

  .service-contact-card {
    position: static;
  }

  .job-contact-card {
    position: static;
  }

  .property-contact-card {
    position: static;
  }

  .service-summary-panel {
    padding: 22px;
  }

  .service-summary-panel h1 {
    font-size: 34px;
  }

  .service-mobile-actions {
    display: grid;
  }

  .service-contact-card > .primary-button,
  .service-contact-card > .ghost-button {
    display: none;
  }

  .service-main-image {
    aspect-ratio: 1.15 / 1;
  }

  .job-hero-copy {
    padding: 24px 22px;
  }

  .job-hero-copy h1 {
    font-size: 34px;
  }

  .job-mobile-actions {
    display: grid;
  }

  .job-contact-card > .primary-button,
  .job-contact-card > .ghost-button {
    display: none;
  }

  .job-main-image {
    aspect-ratio: 1.2 / 1;
  }

  .property-gallery-card {
    margin-bottom: 18px;
  }

  .property-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
    max-height: none;
    padding: 8px;
  }

  .property-main-photo {
    min-height: 0;
  }

  .property-main-image-button {
    border-radius: 16px;
  }

  .property-main-image {
    height: auto;
    min-height: 0;
    max-height: 320px;
    aspect-ratio: 4 / 3;
  }

  .property-gallery-count {
    right: 14px;
    bottom: 14px;
  }

  .property-photo-grid {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .property-photo-grid button {
    flex: 0 0 76px;
    height: 76px;
    border-radius: 14px;
  }

  .property-photo-grid button:nth-child(2),
  .property-photo-grid button:nth-child(4),
  .property-photo-grid button:last-child {
    border-radius: 14px;
  }

  .property-see-photos {
    flex-basis: 118px;
  }

  .property-mobile-actions {
    display: grid;
  }

  .property-contact-card > .primary-button,
  .property-contact-card > .ghost-button {
    display: none;
  }

  .service-thumb-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .job-thumb-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .property-thumb-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .service-thumb-row button {
    flex: 0 0 70px;
  }

  .job-thumb-row button {
    flex: 0 0 70px;
  }

  .property-thumb-row button {
    flex: 0 0 72px;
  }

  .product-main-image {
    aspect-ratio: 1 / 1;
  }

  .product-thumb-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-thumb-row button {
    flex: 0 0 70px;
  }

  .product-info-panel {
    padding: 20px;
  }

  .product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-key-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-price {
    display: block;
    font-size: 25px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 56px 14px;
  }

  .lightbox img {
    max-height: calc(100vh - 120px);
    border-radius: 14px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-counter {
    top: 18px;
  }

  .profile-info-grid,
  .account-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .account-menu-panel {
    right: 0;
    max-width: calc(100vw - 24px);
  }

  .notification-open {
    grid-template-columns: auto 1fr auto;
  }

  .notification-thumb {
    display: none;
  }

  .notification-bell {
    width: 40px;
    min-height: 38px;
  }

  .phone-stack {
    min-height: 250px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 110px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .mobile-tabs {
    display: grid;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
  }

  .modal {
    width: min(100%, 430px);
    padding: 24px 18px;
  }

  .auth-grid,
  .auth-phone-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: sticky;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: visible;
    min-height: 58px;
    padding: 10px;
    transition: padding 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  body.is-mobile-scrolled .site-header {
    padding-block: 8px;
    box-shadow: 0 8px 22px rgba(16, 26, 51, 0.2);
  }

  .brand-mark {
    display: none;
  }

  .brand-wordmark {
    display: block;
    width: 108px;
    max-height: 27px;
    transition: width 180ms ease, opacity 180ms ease;
  }

  .brand-link {
    min-width: 0;
  }

  .brand-link {
    flex: 1 1 auto;
    align-self: center;
    max-width: 118px;
    overflow: hidden;
  }

  body.is-mobile-scrolled .brand-mark {
    display: none;
  }

  body.is-mobile-scrolled .brand-wordmark {
    display: block;
    width: 108px;
  }

  .product-info-panel,
  .product-contact-card,
  .service-content-card,
  .service-contact-card,
  .job-content-card,
  .job-contact-card,
  .property-summary-card,
  .property-content-card,
  .property-contact-card {
    border-radius: 18px;
    padding: 18px;
  }

  .product-info-panel h1 {
    font-size: 28px;
  }

  .service-summary-panel h1 {
    font-size: 30px;
  }

  .job-hero-copy h1 {
    font-size: 30px;
  }

  .property-summary-card h1 {
    font-size: 30px;
  }

  .property-price-label {
    font-size: 32px;
  }

  .property-sidebar-price {
    font-size: 26px;
  }

  .property-key-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-facts {
    grid-template-columns: 1fr;
  }

  .property-main-image {
    aspect-ratio: 4 / 3;
  }

  .product-thumb-row button {
    flex-basis: 64px;
  }

  .service-thumb-row button {
    flex-basis: 64px;
  }

  .job-thumb-row button {
    flex-basis: 64px;
  }

  .product-contact-card .detail-price {
    font-size: 30px;
  }

  .service-rate-label {
    font-size: 24px;
  }

  .job-pay-label,
  .job-sidebar-pay {
    font-size: 24px;
  }

  .header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: end;
    min-width: 0;
    width: auto;
    gap: 4px;
  }

  .site-header .header-actions > .download-link {
    display: none;
  }

  .site-header .header-actions > .account-auth-button,
  .site-header .header-actions > .post-button,
  .account-menu summary,
  .notification-bell {
    width: auto;
    height: 30px;
    min-width: 0;
    min-height: 30px;
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1;
  }

  .site-header .header-actions > .account-auth-button {
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .header-actions > .account-auth-button.guest-only {
    font-size: 0;
  }

  .site-header .header-actions > .account-auth-button.guest-only::after {
    content: "Log in";
    font-size: 11px;
  }

  .header-actions .post-button.auth-only {
    display: none;
  }

  .site-header .header-actions > .post-button.guest-only {
    height: 30px;
    min-height: 30px;
    min-width: 38px;
    max-width: 42px;
    padding: 0 8px;
  }

  body.is-mobile-scrolled .site-header .header-actions > .account-auth-button {
    display: inline-flex;
  }

  .account-menu-panel {
    right: 0;
    left: auto;
    width: min(92vw, 260px);
  }

  .header-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 3px;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-search > input[name="q"] {
    grid-area: search;
    display: none;
  }

  .header-search > input[name="q"]::placeholder {
    color: rgba(255, 255, 255, 0.76);
  }

  body.is-mobile-scrolled .header-search > input[name="q"] {
    display: none;
  }

  .header-search > button[data-action="header-search"] {
    order: 1;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand);
    box-shadow: none;
  }

  .header-search > button[data-action="header-search"]:hover,
  .header-search > button[data-action="header-search"]:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ff6f55;
  }

  .header-search > .mobile-location-trigger {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .header-search > .mobile-location-trigger:hover,
  .header-search > .mobile-location-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .header-search > .mobile-location-trigger .location-pin {
    position: static;
    width: 18px;
    height: 18px;
    color: currentColor;
  }

  .search-button-full {
    display: none;
  }

  .search-button-icon {
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .search-button-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-location-label {
    display: none;
  }

  body.is-mobile-scrolled .header-search > button[data-action="header-search"] {
    grid-area: search;
  }

  .header-search > .location-search {
    display: none;
  }

  .mobile-search-modal {
    display: grid;
    gap: 14px;
  }

  .mobile-search-modal .section-heading-row {
    align-items: center;
  }

  .mobile-search-modal h2 {
    margin: 0;
    font-size: 22px;
  }

  .mobile-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .mobile-search-form label {
    display: block;
  }

  .mobile-search-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .mobile-search-form .primary-button {
    min-height: 44px;
    padding: 10px 16px;
  }

  .mobile-search-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
  }

  .mobile-location-modal {
    display: grid;
    gap: 12px;
    max-height: min(78vh, 620px);
    overflow: visible;
  }

  .modal:has(.mobile-location-modal) {
    width: min(calc(100vw - 36px), 430px);
    padding: 28px 18px 22px;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(16, 26, 51, 0.24);
  }

  .modal:has(.mobile-location-modal) > .modal-close {
    width: 32px;
    height: 32px;
    background: var(--soft);
    color: var(--brand);
    box-shadow: 0 8px 18px rgba(16, 26, 51, 0.1);
  }

  .mobile-location-modal .section-heading-row {
    align-items: center;
  }

  .mobile-location-modal h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: 0;
  }

  .mobile-location-modal .icon-text-button {
    width: 30px;
    height: 30px;
    border-color: rgba(16, 26, 51, 0.08);
    background: var(--page);
    color: var(--muted);
  }

  .mobile-location-search {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(16, 26, 51, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 26, 51, 0.06);
  }

  .mobile-location-search:focus-within {
    border-color: rgba(255, 77, 45, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 77, 45, 0.08), 0 12px 28px rgba(16, 26, 51, 0.06);
  }

  .mobile-location-search .location-picker {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 36px 10px 42px;
    font-size: 15px;
  }

  .mobile-location-search .location-pin {
    left: 15px;
    width: 17px;
    height: 17px;
    color: var(--brand);
  }

  .mobile-location-search .location-clear {
    right: 10px;
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .mobile-location-search .location-suggestions {
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(48vh, 300px);
    overflow-y: auto;
    border: 1px solid rgba(16, 26, 51, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(16, 26, 51, 0.14);
  }

  .mobile-location-search .location-suggestions button {
    gap: 12px;
    padding: 12px 14px;
  }

  .mobile-location-search .suggestion-pin {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }

  .mobile-location-search .suggestion-copy strong {
    font-size: 14px;
  }

  .mobile-location-search .suggestion-copy small {
    font-size: 12px;
  }

  .market-nav {
    top: 58px;
  }

  body.is-mobile-scrolled .market-nav {
    top: 54px;
  }

  .post-button {
    min-width: 64px;
    padding: 10px 12px;
  }

  .site-header {
    display: flex;
  }

  .site-header .header-search {
    display: flex;
    width: auto;
    max-width: none;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header .header-search > .location-search {
    display: none !important;
  }

  .site-header .header-search > button[data-action="header-search"] {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    box-shadow: none;
  }

  .site-header .header-search > .mobile-location-trigger {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .site-header .header-actions > .account-auth-button {
    min-width: 0;
    max-width: 52px;
  }

  .site-header .header-actions > .post-button.guest-only {
    min-width: 38px;
    max-width: 42px;
    padding: 0 8px;
  }

  .browse-head {
    gap: 10px;
    padding: 0;
  }

  .browse-head .eyebrow {
    display: none;
  }

  .browse-head h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
  }

  .browse-head p {
    margin-top: 3px;
    font-size: 12px;
  }

  .sort-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .sort-form select,
  .sort-form .filter-submit {
    min-height: 36px;
    border-radius: 999px;
    font-size: 12px;
  }

  .sort-form .filter-submit {
    padding: 8px 12px;
  }

  .results-panel > .recent-searches-section:not(.full) {
    display: none;
  }

  .results-panel > .chip-row {
    display: none;
  }

  .mobile-filter-strip {
    align-items: center;
    margin-bottom: 10px;
  }

  .mobile-filter-strip .pill-button {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .market-shell {
    padding-bottom: 70px;
  }

  .mobile-tabs {
    right: 0;
    bottom: 0;
    left: 0;
    gap: 2px;
    padding: 3px 6px calc(3px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 18px rgba(16, 26, 51, 0.1);
  }

  .mobile-tabs a,
  .mobile-tabs button {
    min-height: 36px;
    border-radius: 10px;
    font-size: 10.5px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .home-category-rail .rail-icon svg {
    width: 17px;
    height: 17px;
  }

  .hero-banner {
    border-radius: 24px;
  }

  .hero-copy-block {
    padding: 26px 20px 18px;
  }

  .product-grid,
  .compact-grid,
  .fresh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sponsored-ad-link {
    grid-template-columns: 1fr;
  }

  .sponsored-ad-media {
    min-height: 150px;
  }

  .sponsored-ad-copy {
    padding: 15px;
  }

  .sponsored-ad-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-grid.detail-discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .detail-discovery-grid .product-card {
    max-width: none;
  }

  .detail-discovery-grid .product-media {
    height: 150px;
  }

  .detail-discovery-grid .product-info {
    min-height: 124px;
    padding: 9px;
  }

  .product-info {
    padding: 8px;
  }

  .product-price {
    font-size: 15px;
  }

  .product-title {
    font-size: 12px;
  }

  .product-foot {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .product-category {
    max-width: 100%;
  }

  .hero-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-height: auto;
    overflow: hidden;
  }

  .collage-tile {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    border-width: 3px;
  }

  .phone-stack {
    min-height: 224px;
  }

  .mini-card {
    width: 178px;
  }

  .mini-card:nth-child(3) {
    left: 38px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
