@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.f6d31671339d.woff2") format("woff2 supports variations"),
    url("../fonts/Vazirmatn-wght.f6d31671339d.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /*
   * Theme palette. A theme overrides values in this first group only.
   * Colors used with transparency are stored as "R G B" channels (--x-rgb)
   * and read as rgb(var(--x-rgb) / alpha); their solid form is derived below.
   */

  /* Neutrals */
  --bg: #f6f8fb;
  --surface-rgb: 255 255 255;
  --surface-muted: #eef5f4;
  --surface-accent: #e1f3f0;
  --ink-rgb: 19 36 44;
  --muted: #5d6b76;
  --line: #dce5e8;
  --line-strong: #c8d7db;
  --line-hover: #c9c9c9;
  --shadow-rgb: 0 0 0;

  /* Brand */
  --primary-rgb: 15 118 110;
  --primary-dark: #115e59;
  --primary-soft: #e1f3f0;
  --on-primary-rgb: 255 255 255;

  /* Accents and status */
  --amber-rgb: 184 121 0;
  --amber-soft: #fff3d4;
  --amber-ink: #8a3700;
  --amber-line: #ffc287;
  --link: #255e91;
  --green: #0f766e;
  --green-soft: #e6f6ef;
  --red: #b42318;
  --red-soft: #fee4e2;
  --gold-ink: #aa7415; /* "featured" emblem and online badge */
  --gold-soft: #fff5d9;
  --gold-line: #ead5a5;
  --violet-ink: #6552a0; /* language badge */
  --violet-soft: #f2eefb;

  /* Dark homepage hero (also the transparent home header and its mobile menu) */
  --hero-from: #08252b;
  --hero-via: #0f4f4d;
  --hero-to: #16484f;
  --hero-rgb: 8 30 36;
  --hero-deep-rgb: 6 22 28;
  --hero-grid-rgb: 225 243 240;
  --hero-route-rgb: 219 246 242;
  --hero-glow-rgb: 255 243 212;
  --on-dark-rgb: 255 255 255;

  /* Component details */
  --sponsored-line: #f3c19d;
  --sponsored-tint: #fffaf6;
  --map-grid-rgb: 0 115 187;
  --pin-shadow-rgb: 45 46 47;
  --upload-glow-rgb: 17 113 88;
  --locked-bg: #f4f0e8;
  --lock-badge-rgb: 32 27 18;

  /* Category icons: ink, border, background gradient stops */
  --cat-default-tint: #e2f4f0, #f9fffd;
  --cat-lawyers-ink: #9d3f12;
  --cat-lawyers-line: rgb(157 63 18 / 0.18);
  --cat-lawyers-tint: #fff1d8, #fffaf1;
  --cat-doctors-ink: #0f766e;
  --cat-doctors-line: rgb(15 118 110 / 0.2);
  --cat-doctors-tint: #dff7f3, #f7fffd;
  --cat-restaurants-ink: #b42318;
  --cat-restaurants-line: rgb(180 35 24 / 0.18);
  --cat-restaurants-tint: #ffe5df, #fff8f5;
  --cat-barbershops-ink: #255e91;
  --cat-barbershops-line: rgb(37 94 145 / 0.18);
  --cat-barbershops-tint: #e4effb, #f8fbff;
  --cat-shopping-ink: #7a4b00;
  --cat-shopping-line: rgb(184 121 0 / 0.2);
  --cat-shopping-tint: #fff2c7, #fffaf0;
  --cat-auto-ink: #155e75;
  --cat-auto-line: rgb(21 94 117 / 0.2);
  --cat-auto-tint: #dff5fb, #f6fcff;
  --cat-financial-ink: #26734d;
  --cat-financial-line: rgb(38 115 77 / 0.2);
  --cat-financial-tint: #e1f6e9, #f7fff9;
  --cat-real-estate-ink: #6b4e16;
  --cat-real-estate-line: rgb(107 78 22 / 0.2);
  --cat-real-estate-tint: #f4ead3, #fffaf0;
  --cat-translators-ink: #3949ab;
  --cat-translators-line: rgb(57 73 171 / 0.18);
  --cat-translators-tint: #e8eaf8, #f8f9ff;
  --cat-immigration-ink: #6d3fa6;
  --cat-immigration-line: rgb(109 63 166 / 0.18);
  --cat-immigration-tint: #efe6fa, #fbf8ff;
  --cat-accountants-ink: #3b5563;
  --cat-accountants-line: rgb(59 85 99 / 0.2);
  --cat-accountants-tint: #e6edf0, #f9fbfc;
  --cat-psychologists-ink: #a3195b;
  --cat-psychologists-line: rgb(163 25 91 / 0.18);
  --cat-psychologists-tint: #fde6f0, #fff8fb;
  --cat-beauty-ink: #8e3a8a;
  --cat-beauty-line: rgb(142 58 138 / 0.18);
  --cat-beauty-tint: #f8e6f6, #fffaff;

  /* Derived from the palette above; themes don't need to set these */
  --surface: rgb(var(--surface-rgb));
  --ink: rgb(var(--ink-rgb));
  --primary: rgb(var(--primary-rgb));
  --on-primary: rgb(var(--on-primary-rgb));
  --on-dark: rgb(var(--on-dark-rgb));
  --amber: rgb(var(--amber-rgb));
  --shadow-sm: 0 1px 2px rgb(var(--ink-rgb) / 0.06);
  --shadow: 0 12px 34px rgb(var(--ink-rgb) / 0.1);
  --shadow-soft: 0 6px 18px rgb(var(--ink-rgb) / 0.06); /* editor cards (.editor-step-nav, .editor-section) */

  --radius: 8px;
  --shell: 1180px;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.is-ltr {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

a:hover {
  color: var(--primary-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(var(--primary-rgb) / 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(var(--surface-rgb) / 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

body.is-home .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  color: var(--on-dark);
  background: linear-gradient(180deg, rgb(var(--hero-rgb) / 0.66), rgb(var(--hero-rgb) / 0));
  border-bottom-color: rgb(var(--on-dark-rgb) / 0.14);
}

body.is-home.has-solid-header .site-header {
  color: var(--ink);
  background: rgb(var(--surface-rgb) / 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgb(var(--ink-rgb) / 0.08);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

/* Before launch, public pages have only this language link in the header (no menu). */
.header-language {
  justify-self: end;
}

.header-menu {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(var(--surface-rgb) / 0.96);
  color: var(--ink);
  padding: 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

body.is-home .menu-toggle {
  background: rgb(var(--on-dark-rgb) / 0.12);
  border-color: rgb(var(--on-dark-rgb) / 0.26);
  color: var(--on-dark);
  backdrop-filter: blur(12px);
}

body.is-home.has-solid-header .menu-toggle {
  background: rgb(var(--surface-rgb) / 0.96);
  border-color: var(--line-strong);
  color: var(--ink);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

/* The wordmark (partials/brand_logo.html). Sized by height; each header sets its own.
   The pin above the "i" fills the top third of the image (rows 0-40 of 120), so centring the image put
   the letters 1/6 of its height below the middle. Optical centring: shift it up by that much, the letters
   sit on the line and the pin rises above it, like the dot of an "i". */
.brand-logo {
  display: block;
  width: auto;
  height: 32px;
  transform: translateY(-16.7%);
}

.brand-logo-light {
  display: none;
}

.footer-brand .brand-logo {
  height: 28px;
}

.coming-soon-brand .brand-logo {
  height: 46px;
}

@media (max-width: 720px) {
  .brand-logo {
    height: 26px;
  }
}

.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  transition: color 180ms ease;
}

body.is-home .brand small {
  color: rgb(var(--on-dark-rgb) / 0.74);
}

body.is-home.has-solid-header .brand small {
  color: var(--muted);
}

.main-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav {
  justify-content: center;
}

.main-nav a,
.site-footer nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius);
  transition: background 180ms ease, color 180ms ease;
}

body.is-home .main-nav a {
  color: rgb(var(--on-dark-rgb) / 0.9);
}

body.is-home.has-solid-header .main-nav a {
  color: var(--ink);
}

.main-nav a:hover,
.site-footer nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

body.is-home .main-nav a:hover {
  background: rgb(var(--on-dark-rgb) / 0.14);
  color: var(--on-dark);
}

body.is-home.has-solid-header .main-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.header-actions {
  justify-content: end;
}

.utility-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(var(--surface-rgb) / 0.96);
  color: var(--ink);
  padding-inline: 0.75rem;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.utility-link:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.utility-link-strong {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.utility-link-strong:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--on-primary);
}

.utility-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

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

body.is-home .utility-link {
  background: rgb(var(--on-dark-rgb) / 0.12);
  border-color: rgb(var(--on-dark-rgb) / 0.26);
  color: var(--on-dark);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.is-home.has-solid-header .utility-link {
  background: rgb(var(--surface-rgb) / 0.96);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

body.is-home .utility-link:hover {
  background: rgb(var(--on-dark-rgb) / 0.2);
  color: var(--on-dark);
}

body.is-home.has-solid-header .utility-link:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

body.is-home .utility-link-strong {
  background: rgb(var(--on-dark-rgb) / 0.96);
  border-color: transparent;
  color: var(--primary-dark);
}

body.is-home.has-solid-header .utility-link-strong {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

body.is-home .utility-link-strong:hover {
  background: var(--on-dark);
  color: var(--primary-dark);
}

body.is-home.has-solid-header .utility-link-strong:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--on-primary);
}

.primary-button,
.ghost-button,
.icon-button,
.text-button,
.contact-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.primary-button {
  background: var(--primary);
  color: var(--on-primary);
  padding-inline: 1.05rem;
  box-shadow: 0 8px 18px rgb(var(--primary-rgb) / 0.18);
}

.primary-button:hover {
  background: var(--primary-dark);
  color: var(--on-primary);
}

.ghost-button,
.icon-button {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  padding-inline: 0.9rem;
}

.ghost-button:hover,
.icon-button:hover {
  background: var(--surface-muted);
  border-color: var(--line-hover);
}

.text-button,
.contact-link {
  min-height: 36px;
  color: var(--link);
  padding-inline: 0.15rem;
}

.compact-button {
  min-height: 36px;
  padding-inline: 0.9rem;
  font-size: 0.88rem;
}

.inverse-button {
  background: var(--on-primary);
  color: var(--primary-dark);
  box-shadow: none;
}

.inverse-button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.message-stack {
  padding-block-start: 1rem;
}

.message {
  margin: 0 0 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.message.success {
  border-color: rgb(var(--primary-rgb) / 0.3);
  background: var(--primary-soft);
}

.hero-band,
.page-band,
.section-band,
.cta-band {
  padding-block: clamp(2rem, 5vw, 4.4rem);
}

.discovery-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 52%, var(--hero-to) 100%);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line);
  min-height: min(760px, 92vh);
  padding-block-start: clamp(7rem, 13vw, 10.5rem);
  padding-block-end: clamp(3.2rem, 7vw, 6rem);
  display: grid;
  align-items: center;
}

.discovery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(var(--hero-deep-rgb) / 0.18), rgb(var(--hero-deep-rgb) / 0.68)),
    linear-gradient(90deg, rgb(var(--hero-deep-rgb) / 0.3), rgb(var(--hero-deep-rgb) / 0.04) 45%, rgb(var(--hero-deep-rgb) / 0.3));
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

/* Static hero artwork avoids continuous painting while visitors search. */
.hero-map-grid {
  position: absolute;
  inset: -12% -6%;
  background:
    radial-gradient(circle at 50% 50%, rgb(var(--hero-grid-rgb) / 0.1), transparent 43%),
    linear-gradient(rgb(var(--on-dark-rgb) / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--on-dark-rgb) / 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
}

.earth-map-stage {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(1680px, 158vw);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 43%, #000 0 48%, rgba(0, 0, 0, 0.74) 64%, transparent 92%);
  mask-image: radial-gradient(ellipse at 50% 43%, #000 0 48%, rgba(0, 0, 0, 0.74) 64%, transparent 92%);
}

.earth-map,
.route-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.earth-map {
  object-fit: contain;
  opacity: 0.66;
}

.route-lines {
  opacity: 0.74;
  overflow: visible;
}

.route-lines path {
  fill: none;
  stroke: rgb(var(--hero-route-rgb) / 0.58);
  stroke-width: 2.1;
  stroke-dasharray: 11 16;
  stroke-linecap: round;
}

.route-lines path:nth-of-type(2) {
  opacity: 0.7;
}

.route-lines path:nth-of-type(3) {
  opacity: 0.62;
}

.route-lines path:nth-of-type(4) {
  opacity: 0.56;
}

.route-lines path:nth-of-type(5) {
  opacity: 0.64;
}

.route-lines path:nth-of-type(6) {
  opacity: 0.6;
}

.map-city-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  color: rgb(var(--on-dark-rgb) / 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(var(--hero-rgb) / 0.7), 0 0 14px rgb(var(--hero-rgb) / 0.58);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.map-label-london {
  --x: 48.7%;
  --y: 18.6%;
}

.map-label-moscow {
  --x: 62.2%;
  --y: 16.4%;
}

.hero-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(var(--on-dark-rgb) / 0.94);
  border-radius: 50% 50% 50% 0;
  background: var(--primary-soft);
  color: var(--on-dark);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 8px rgb(var(--hero-grid-rgb) / 0.1), 0 12px 28px rgb(var(--shadow-rgb) / 0.22);
}

.pin-label {
  position: absolute;
  left: var(--label-x, 20px);
  top: var(--label-y, -38px);
  min-width: max-content;
  display: grid;
  gap: 0;
  padding: 0.22rem 0.44rem;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.16);
  border-radius: 6px;
  background: rgb(var(--hero-rgb) / 0.36);
  box-shadow: 0 12px 28px rgb(var(--shadow-rgb) / 0.16);
  transform: rotate(-45deg);
  backdrop-filter: blur(10px);
  text-align: start;
}

.is-rtl .pin-label {
  direction: rtl;
}

.pin-label strong,
.pin-label small {
  min-width: max-content;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgb(var(--shadow-rgb) / 0.38);
}

.pin-label strong {
  color: rgb(var(--on-dark-rgb) / 0.92);
  font-size: 0.76rem;
  font-weight: 900;
}

.pin-label small {
  color: rgb(var(--on-dark-rgb) / 0.68);
  font-size: 11px;
  font-weight: 760;
}

/* Pin positions use equirectangular lon/lat projection matching the 1200x600 SVG map. */
.pin-vancouver {
  --x: 15.8%;
  --y: 22.6%;
  --label-x: 18px;
  --label-y: -48px;
}

.pin-toronto {
  --x: 28%;
  --y: 25.8%;
  --label-x: 22px;
  --label-y: -12px;
}

.pin-la {
  --x: 17.2%;
  --y: 31.1%;
  --label-x: 18px;
  --label-y: 14px;
}

.pin-london {
  --x: 50%;
  --y: 21.4%;
  --label-x: -116px;
  --label-y: -46px;
}

.pin-moscow {
  --x: 60.5%;
  --y: 19%;
  --label-x: -104px;
  --label-y: -50px;
}

.pin-london .pin-label,
.pin-moscow .pin-label {
  display: none;
}

.pin-tehran {
  --x: 64.3%;
  --y: 30.2%;
  --label-x: 20px;
  --label-y: -42px;
  background: var(--amber-soft);
  box-shadow: 0 0 0 10px rgb(var(--hero-glow-rgb) / 0.1), 0 12px 28px rgb(var(--shadow-rgb) / 0.22);
}

.pin-seoul {
  --x: 85.3%;
  --y: 29.1%;
  --label-x: -88px;
  --label-y: 12px;
}

.service-node {
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  column-gap: 0.65rem;
  align-items: center;
  min-width: 184px;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.18);
  border-radius: var(--radius);
  background: rgb(var(--on-dark-rgb) / 0.12);
  color: var(--on-dark);
  box-shadow: 0 18px 38px rgb(var(--shadow-rgb) / 0.16);
  backdrop-filter: blur(16px);
}

.service-node strong {
  grid-area: title;
  font-size: 1rem;
  line-height: 1.2;
}

.service-node small {
  grid-area: meta;
  color: rgb(var(--on-dark-rgb) / 0.7);
  font-size: 0.78rem;
}

.node-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgb(var(--on-dark-rgb) / 0.92);
  color: var(--primary-dark);
}

.node-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-law {
  inset-inline-start: 10%;
  top: 25%;
}

.node-health {
  inset-inline-end: 10%;
  top: 22%;
}

.node-food {
  inset-inline-start: 13%;
  bottom: 13%;
}

.node-groom {
  inset-inline-end: 12%;
  bottom: 14%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  min-width: 0;
}

.hero-center {
  margin-inline: auto;
  text-align: center;
  min-width: 0;
}

.hero-copy h1,
.page-intro h1,
.section-heading h1,
.profile-main h1,
.prose-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4.65vw, 3.8rem);
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-statement {
  max-width: 740px;
  margin: 0.72rem auto 0;
  color: rgb(var(--on-dark-rgb) / 0.9);
  font-size: clamp(1.04rem, 2.1vw, 1.34rem);
  font-weight: 760;
  line-height: 1.7;
}

.hero-center .search-panel {
  margin-block-start: 1.15rem;
  margin-inline: auto;
}

.hero-lead,
.profile-lead,
.section-heading p,
.page-intro p,
.cta-inner p,
.onboarding-panel p {
  color: var(--muted);
  max-width: 68ch;
}

.discovery-hero .eyebrow,
.discovery-hero .hero-lead {
  color: rgb(var(--on-dark-rgb) / 0.86);
}

.discovery-hero .hero-lead {
  margin: 0.7rem auto 1.2rem;
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1.12fr) minmax(230px, 1fr) 156px;
  gap: 0;
  align-items: stretch;
  width: min(100%, 900px);
  min-width: 0;
  min-height: 66px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-panel > * {
  min-width: 0;
}

.field-shell,
.form-field {
  display: grid;
  gap: 0.32rem;
}

.search-panel .field-shell {
  gap: 0;
  min-width: 0;
  text-align: start;
  border-inline-end: 1px solid var(--line);
}

.is-rtl .search-panel .field-shell {
  border-inline-end: 0;
  border-inline-start: 1px solid var(--line);
}

.search-panel .field-shell:last-of-type {
  border-inline-end: 0;
  border-inline-start: 0;
}

.field-label,
.field-shell > span:first-child,
.form-field label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.search-panel .field-label,
.search-panel .field-shell > span:first-child {
  display: block;
  min-width: 0;
  padding: 0.58rem 1rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-field {
  position: relative;
}

.location-control {
  display: block;
}

.search-input,
.field-control,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0.68rem 0.78rem;
}

.search-panel .search-input {
  border: 0;
  border-radius: 0;
  min-width: 0;
  min-height: 46px;
  padding: 0.34rem 1rem 0.74rem;
  line-height: 1.25;
}

.location-suggestions {
  position: absolute;
  z-index: 35;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline: 0.55rem;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.location-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.48rem;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.62rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.is-rtl .location-option {
  justify-content: end;
}

.location-option:hover,
.location-option.is-located {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.location-option:disabled {
  cursor: wait;
  opacity: 0.72;
}

.location-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

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

.search-input:focus,
.field-control:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.search-panel .search-input:focus {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 100%;
  border-radius: 0;
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
  padding-inline: 1rem;
  font-size: 0.98rem;
  white-space: nowrap;
}

.search-submit-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.search-submit-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

textarea.field-control,
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem;
}

.form-field li label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.62rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
}

.form-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.popular-row,
.chip-row,
.card-actions,
.contact-grid,
.owner-actions,
.detail-list,
.badge-row,
.badge-stack,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.popular-row {
  margin-block-start: 0.85rem;
  justify-content: center;
}

.section-band {
  background: var(--surface);
}

.alt-band,
.page-band {
  background: var(--bg);
}

.compact-page {
  padding-block-end: 1rem;
}

.section-heading,
.page-intro {
  margin-block-end: 1.15rem;
}

.search-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.search-heading > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
}

.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.page-intro h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.intro-query {
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-heading h2,
.trust-panel h2,
.profile-contact h2,
.profile-sections h2,
.country-group h2,
.dashboard-nav h1,
.compact-heading h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: 0;
}

.compact-heading {
  margin-block-end: 0.8rem;
}

.inline-heading,
.cta-inner,
.listing-card-top,
.owner-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.two-column,
.profile-grid,
.profile-sections,
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1rem, 3vw, 1.6rem);
}

.align-start {
  align-items: start;
}

.category-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 0.8rem;
}

.shortcut-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.wide-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-tile,
.listing-card,
.trust-panel,
.filter-panel,
.profile-contact,
.trust-box,
.form-surface,
.metric,
.owner-listing,
.history-item,
.country-group,
.onboarding-panel,
.timeline-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  min-height: 142px;
  display: grid;
  align-content: start;
  justify-items: stretch;
  text-align: start;
  gap: 0.55rem;
  padding: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-tile:hover,
.location-strip a:hover,
.listing-card:hover,
.owner-listing:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.category-tile:hover {
  transform: translateY(-2px);
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
}

/* Bottom of city and city x category pages: questions answered from the data, and links to neighbouring pages. */
.landing-more { border-top: 1px solid var(--line); }
.landing-more-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: start; }
.landing-faq h2, .landing-neighbours h2 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.landing-neighbours h2 + .chip-row { margin-block-end: 1.4rem; }
.landing-faq dl { display: grid; gap: 1rem; margin: 0; }
.landing-faq dt { font-weight: 800; }
.landing-faq dd { margin: 0.25rem 0 0; color: var(--muted); line-height: 1.8; }
@media (max-width: 720px) { .landing-more-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.city-starting { display: grid; justify-items: start; gap: 0.9rem; max-width: 640px; padding: 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.city-starting h2 { margin: 0; font-size: 1.35rem; }
.city-starting h3 { margin: 0.6rem 0 0; font-size: 1rem; color: var(--muted); }
.city-starting p { margin: 0; color: var(--muted); line-height: 1.8; }

/* A category with no profiles yet: a calm "Coming soon" instead of a lone zero (reads as a dot in Persian). */
.category-card-top small.category-soon {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.category-icon {
  --icon-ink: var(--primary);
  --icon-line: rgb(var(--primary-rgb) / 0.16);
  --icon-tint: var(--cat-default-tint);
  --icon-shine: 0.92;
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--icon-line);
  border-radius: 19px;
  color: var(--icon-ink);
  background:
    radial-gradient(circle at 26% 20%, rgb(var(--surface-rgb) / var(--icon-shine)), rgb(var(--surface-rgb) / 0) 42%),
    linear-gradient(145deg, var(--icon-tint));
  box-shadow:
    inset 0 -10px 22px rgb(var(--primary-rgb) / 0.08),
    0 8px 22px rgb(var(--ink-rgb) / 0.06);
}

.category-icon svg {
  width: 35px;
  height: 35px;
  overflow: visible;
}

.category-icon--lawyers {
  --icon-ink: var(--cat-lawyers-ink);
  --icon-line: var(--cat-lawyers-line);
  --icon-tint: var(--cat-lawyers-tint);
  --icon-shine: 0.94;
}

.category-icon--doctors {
  --icon-ink: var(--cat-doctors-ink);
  --icon-line: var(--cat-doctors-line);
  --icon-tint: var(--cat-doctors-tint);
  --icon-shine: 0.94;
}

.category-icon--restaurants {
  --icon-ink: var(--cat-restaurants-ink);
  --icon-line: var(--cat-restaurants-line);
  --icon-tint: var(--cat-restaurants-tint);
  --icon-shine: 0.94;
}

.category-icon--barbershops {
  --icon-ink: var(--cat-barbershops-ink);
  --icon-line: var(--cat-barbershops-line);
  --icon-tint: var(--cat-barbershops-tint);
  --icon-shine: 0.94;
}

.category-icon--shopping {
  --icon-ink: var(--cat-shopping-ink);
  --icon-line: var(--cat-shopping-line);
  --icon-tint: var(--cat-shopping-tint);
  --icon-shine: 0.94;
}

.category-icon--auto {
  --icon-ink: var(--cat-auto-ink);
  --icon-line: var(--cat-auto-line);
  --icon-tint: var(--cat-auto-tint);
  --icon-shine: 0.94;
}

.category-icon--financial-advisors {
  --icon-ink: var(--cat-financial-ink);
  --icon-line: var(--cat-financial-line);
  --icon-tint: var(--cat-financial-tint);
  --icon-shine: 0.94;
}

.category-icon--real-estate {
  --icon-ink: var(--cat-real-estate-ink);
  --icon-line: var(--cat-real-estate-line);
  --icon-tint: var(--cat-real-estate-tint);
  --icon-shine: 0.94;
}

.category-icon--translators {
  --icon-ink: var(--cat-translators-ink);
  --icon-line: var(--cat-translators-line);
  --icon-tint: var(--cat-translators-tint);
  --icon-shine: 0.94;
}

.category-icon--immigration {
  --icon-ink: var(--cat-immigration-ink);
  --icon-line: var(--cat-immigration-line);
  --icon-tint: var(--cat-immigration-tint);
  --icon-shine: 0.94;
}

.category-icon--accountants {
  --icon-ink: var(--cat-accountants-ink);
  --icon-line: var(--cat-accountants-line);
  --icon-tint: var(--cat-accountants-tint);
  --icon-shine: 0.94;
}

.category-icon--psychologists {
  --icon-ink: var(--cat-psychologists-ink);
  --icon-line: var(--cat-psychologists-line);
  --icon-tint: var(--cat-psychologists-tint);
  --icon-shine: 0.94;
}

.category-icon--beauty {
  --icon-ink: var(--cat-beauty-ink);
  --icon-line: var(--cat-beauty-line);
  --icon-tint: var(--cat-beauty-tint);
  --icon-shine: 0.94;
}

.category-tile strong,
.listing-card h3,
.owner-listing h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.34;
}

.category-tile > span:not(.category-card-top),
.listing-summary,
.trust-line,
.detail-list,
.owner-listing p,
.history-item p,
.listing-meta,
.country-group p {
  color: var(--muted);
}

.category-tile small,
.location-strip small {
  width: max-content;
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-accent);
  color: var(--primary);
  font-weight: 900;
  padding-inline: 0.55rem;
}

.trust-panel,
.filter-panel,
.profile-contact,
.form-surface,
.onboarding-panel,
.timeline-panel {
  padding: 1rem;
}

.business-cta-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-block-end: 1rem;
}

.business-visual-mini {
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  margin-block-end: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgb(var(--primary-rgb) / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--primary-rgb) / 0.1) 1px, transparent 1px),
    var(--primary-soft);
  background-size: 34px 34px;
  color: var(--primary-dark);
  text-align: center;
}

.business-visual-mini span {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 2rem;
  font-weight: 900;
}

.business-visual-mini small {
  color: var(--muted);
  font-weight: 850;
}

.filter-head h2,
.filter-panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.filter-subsection {
  display: grid;
  gap: 0.55rem;
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.filter-subsection h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.location-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  padding-block-end: 0.25rem;
}

.location-strip.wrap {
  grid-auto-flow: initial;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  overflow: visible;
}

.location-strip a {
  min-height: 104px;
  display: grid;
  gap: 0.24rem;
  align-content: center;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.location-strip span {
  color: var(--muted);
}

.location-country,
.country-heading,
.country-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.location-country {
  min-width: 0;
}

.location-country > span:last-child {
  min-width: 0;
}

.city-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.8rem;
}

.city-search-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.city-search-card-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.city-search-card-head strong {
  display: block;
  line-height: 1.25;
}

.city-search-card-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.city-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.city-search-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  padding-inline: 0.68rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.city-search-chip:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: rgb(var(--primary-rgb) / 0.25);
}

.country-heading {
  margin-block-end: 0.75rem;
}

.country-flag {
  width: 28px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgb(var(--ink-rgb) / 0.14);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 5px 14px rgb(var(--ink-rgb) / 0.08);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag-code {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.listing-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.listing-card.sponsored-card {
  border-color: var(--sponsored-line);
  background: linear-gradient(180deg, var(--surface), var(--sponsored-tint));
}

.listing-thumb {
  display: block;
  width: 148px;
  height: 148px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-accent);
}

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

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(var(--primary-rgb) / 0.08), rgb(var(--primary-rgb) / 0.18)),
    var(--surface);
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
}

.listing-body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.listing-card-title {
  min-width: 0;
}

.listing-card h3 a {
  display: inline-block;
}

/* Business-name and review-count links on cards sit close to other links: at least 24px tall
   (WCAG 2.5.8 target size; test_browser_quality checks every phone page). */
.listing-card h3 a,
.search-card h2 a,
.search-card-rating a,
.discovery-title-row h2 a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;  /* flex drops the space between "1." and the name */
  min-height: 24px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
}

.listing-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-inline: 0.25rem 0.45rem;
  border-radius: 999px;
  background: var(--line-strong);
  vertical-align: middle;
}

.badge-stack {
  justify-content: end;
  align-self: start;
}

.sponsored-badge,
.trust-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding-inline: 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.sponsored-badge {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border: 1px solid var(--amber-line);
}

.trust-badge.checked {
  background: var(--green-soft);
  color: var(--green);
}

.trust-badge.neutral {
  background: var(--surface-muted);
  color: var(--muted);
}

.trust-badge.pending {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.chip,
.detail-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding-inline: 0.68rem;
  color: var(--ink);
  font-weight: 760;
  font-size: 0.88rem;
}

.chip.is-selected {
  color: var(--on-primary);
  border-color: var(--primary);
  background: var(--primary);
}

.trust-line {
  margin: 0;
  font-size: 0.9rem;
}

.listing-stack,
.dashboard-list,
.country-stack,
.history-list {
  display: grid;
  gap: 0.8rem;
}

/* Cities page: countries side by side (most have one or two cities), each city with its count or "Coming soon". */
.country-stack {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  align-items: start;
}

.country-stack .location-strip a {
  min-height: 76px;
}

.location-strip .city-count {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.location-strip .city-soon {
  color: var(--muted);
  font-weight: 600;
}

/* A category card's search link can be long ("Search psychologists and counsellors"): let it wrap
   inside the card instead of pushing the card's content out. */
.category-tile .text-button {
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.disclosure-actions {
  display: flex;
  justify-content: center;
  margin-block-start: 0.95rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0.8rem;
}

.activity-item {
  min-width: 0;
}

.activity-item .listing-card {
  height: 100%;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.78rem;
}

.activity-item .listing-thumb {
  width: 96px;
  height: 96px;
}

.activity-item .listing-body {
  gap: 0.42rem;
}

.activity-item .listing-card-top {
  align-items: start;
  gap: 0.55rem;
}

.activity-item .listing-card h3,
.activity-item .listing-card h3 a {
  font-size: 1rem;
  line-height: 1.28;
}

.activity-item .listing-meta {
  font-size: 0.82rem;
}

.activity-item .listing-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.activity-item .chip-row,
.activity-item .trust-line,
.activity-item .card-actions .contact-link {
  display: none;
}

.activity-item .card-actions {
  margin-block-start: auto;
}

.activity-item .card-actions .text-button {
  min-height: 28px;
  font-size: 0.82rem;
}

.activity-item .sponsored-badge,
.activity-item .trust-badge {
  min-height: 24px;
  padding-inline: 0.48rem;
  font-size: 11px;
}

.compact-stack .listing-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.75rem;
  box-shadow: none;
}

.compact-stack .listing-thumb {
  width: 92px;
  height: 92px;
}

.results-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.filter-panel,
.profile-contact,
.dashboard-nav,
.results-map {
  position: sticky;
  top: 88px;
}

.map-panel {
  margin-block-end: 1rem;
}

.address-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  align-items: stretch;
  gap: 0.8rem;
  margin-block-end: 0.65rem;
}

.address-copy {
  align-self: center;
}

.address-copy p {
  margin: 0;
}

.address-copy p + p {
  margin-block-start: 0.22rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-surface {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgb(var(--map-grid-rgb) / 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgb(var(--map-grid-rgb) / 0.1) 1px, transparent 1px),
    radial-gradient(circle at 27% 32%, rgb(var(--primary-rgb) / 0.18), transparent 18%),
    radial-gradient(circle at 70% 66%, rgb(var(--amber-rgb) / 0.14), transparent 16%),
    var(--surface-muted);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.profile-map .map-surface,
.google-map-canvas {
  min-height: 132px;
  height: 100%;
}

.google-map-canvas {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.map-pin {
  position: absolute;
  inset-inline-start: var(--x, 50%);
  top: var(--y, 50%);
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 50% 50% 50% 0;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 4px 14px rgb(var(--pin-shadow-rgb) / 0.24);
}

.is-rtl .map-pin {
  transform: translate(50%, -50%) rotate(45deg);
}

.sponsored-pin {
  background: var(--amber);
}

.single-pin .map-pin {
  --x: 50%;
  --y: 50%;
}

.profile-hero {
  padding-block: clamp(1.5rem, 4vw, 2.7rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.profile-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: start;
}

.profile-main .badge-row {
  margin-block-end: 0.7rem;
}

.profile-heading-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid var(--surface);
  border-radius: var(--radius);
  background: var(--surface-accent);
  box-shadow: var(--shadow);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 950;
}

.profile-mini-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-block-start: 0.72rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-mini-links > span {
  font-weight: 850;
}

.mini-link-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(var(--primary-rgb) / 0.2);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding-inline: 0.58rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.mini-link-badge:hover {
  color: var(--on-primary);
  border-color: var(--primary);
  background: var(--primary);
}

.badge-row .eyebrow {
  margin: 0;
}

.profile-contact h2 {
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-block: 0.7rem;
}

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

.profile-sections > section {
  min-height: 180px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-sections > .profile-section-wide {
  grid-column: 1 / -1;
}

.profile-bio {
  display: grid;
  gap: 0.8rem;
}

.profile-bio p {
  margin: 0;
  color: var(--muted);
}

.profile-bio summary {
  width: max-content;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 900;
}

.profile-bio-more {
  display: grid;
  gap: 1rem;
  margin-block-start: 0.8rem;
}

.profile-fact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.profile-fact-list div {
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.profile-fact-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.profile-fact-list dd {
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-weight: 850;
}

.profile-owner-stats {
  display: grid;
  gap: 0.55rem;
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.profile-stat-grid div {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.profile-stat-grid strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.2rem;
  line-height: 1.15;
}

.profile-stat-grid span {
  display: block;
  margin-block-start: 0.15rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.7rem;
}

.insights-grid article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 0.22rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.insights-grid strong {
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.insights-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.insights-grid strong {
  color: var(--primary-dark);
  font-size: 1.6rem;
}

.media-section {
  min-height: 0;
}

.media-count {
  color: var(--muted);
  font-weight: 900;
}

.media-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-block-end: 0.15rem;
  scroll-snap-type: inline mandatory;
}

.media-tile {
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  scroll-snap-align: start;
}

.media-tile img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.media-video-tile,
.media-empty-tile,
.media-upgrade-tile {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 0.8rem;
  text-align: center;
}

.media-video-tile span,
.media-empty-tile span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 950;
}

.media-upgrade-tile {
  border-style: dashed;
  color: var(--muted);
}

.media-upgrade-tile strong {
  color: var(--ink);
}

.trust-box {
  padding: 0.9rem;
  background: var(--surface-muted);
  border: 0;
  box-shadow: none;
}

.review-grid,
.related-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.8rem;
}

.review-card,
.empty-review-state {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.review-stars,
.rating-pill {
  color: var(--amber);
  font-weight: 950;
}

.review-card p,
.empty-review-state p {
  margin: 0;
  color: var(--muted);
}

.review-form {
  display: grid;
  gap: 0.8rem;
  margin-block-start: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-form h3 {
  margin: 0;
  font-size: 1.05rem;
}

.review-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 0.7rem;
}

.review-form .primary-button {
  width: max-content;
}

.review-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.related-profile-band {
  padding-block-start: 0;
}

.related-profile-card .listing-card {
  height: 100%;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.related-profile-card .listing-thumb {
  width: 88px;
  height: 88px;
}

.related-profile-card .listing-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-profile-card .chip-row,
.related-profile-card .trust-line,
.related-profile-card .card-actions .contact-link {
  display: none;
}

.mobile-contact-bar {
  display: none;
}

.form-page {
  max-width: 760px;
}

.form-surface {
  display: grid;
  gap: 0.9rem;
}

.editor-surface,
.verification-surface {
  gap: 1rem;
}

.field-error {
  color: var(--red);
  background: var(--red-soft);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
  margin: 0;
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.onboarding-panel {
  align-self: stretch;
}

.step-row {
  display: grid;
  gap: 0.65rem;
  margin-block-start: 1rem;
}

.step-row div {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.step-row span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
}

.form-actions {
  justify-content: end;
}

.sticky-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  padding: 0.65rem;
  margin-inline: -0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(var(--surface-rgb) / 0.94);
  backdrop-filter: blur(14px);
}

.editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.profile-editor {
  display: grid;
  gap: 1rem;
}

.editor-step-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(var(--surface-rgb) / 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.editor-step-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.editor-step-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.editor-step-nav span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-primary);
  font-size: 0.78rem;
  font-weight: 950;
}

.editor-section {
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 5.5rem;
}

.editor-section-heading {
  max-width: 760px;
}

.editor-section-heading h2 {
  margin: 0.12rem 0;
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
}

.editor-section-heading p {
  margin: 0;
  color: var(--muted);
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.editor-field-grid-compact {
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
}

.editor-field-grid .form-field:has(textarea),
.editor-field-grid .form-field:has(ul) {
  grid-column: 1 / -1;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.editor-media-heading {
  max-width: none;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.plan-pill {
  min-width: 150px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 0.1rem 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  text-align: end;
}

.plan-pill span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-pill strong {
  font-size: 1.4rem;
  line-height: 1;
}

.plan-pill small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.media-editor-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.featured-upload-panel,
.media-side-panel,
.gallery-upload-panel {
  min-width: 0;
}

.media-side-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.upload-card {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.upload-card:hover,
.upload-card.is-dragging {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgb(var(--upload-glow-rgb) / 0.12);
}

.upload-card-featured {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  padding: 0.85rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.upload-card-avatar {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.upload-card-gallery {
  min-height: 180px;
  padding: 0.58rem;
}

.upload-card.is-locked {
  cursor: default;
  border-style: solid;
  background: var(--locked-bg);
  color: var(--muted);
}

.upload-card.is-locked:hover {
  border-color: var(--line-strong);
  background: var(--locked-bg);
  box-shadow: none;
}

.upload-preview {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.upload-preview-featured {
  width: 112px;
  min-height: 0;
  aspect-ratio: 1;
}

.upload-preview-avatar {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.upload-preview-gallery {
  aspect-ratio: 1;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.7rem;
  font-weight: 600;
}

.upload-copy {
  display: grid;
  gap: 0.14rem;
}

.upload-copy label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.upload-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-card .file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-card .file-input:disabled {
  cursor: default;
}

.upload-lock {
  position: absolute;
  inset-block-start: 0.58rem;
  inset-inline-end: 0.58rem;
  padding: 0.22rem 0.46rem;
  border-radius: 999px;
  background: rgb(var(--lock-badge-rgb) / 0.84);
  color: var(--on-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.gallery-upload-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.gallery-upload-panel .inline-heading {
  margin: 0;
}

.gallery-upload-panel h3 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.gallery-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.subcategory-field {
  grid-column: 1 / -1;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
}

.subcategory-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
}

.subcategory-option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.subcategory-option input {
  width: 18px;
  height: 18px;
  min-height: auto;
  flex: 0 0 auto;
}

.subcategory-empty {
  margin: 0;
  padding: 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  background: var(--primary);
  color: var(--on-primary);
}

.cta-inner {
  align-items: center;
}

.cta-inner .eyebrow {
  color: rgb(var(--on-primary-rgb) / 0.86);
}

.cta-inner p {
  color: rgb(var(--on-primary-rgb) / 0.92); /* 0.78 was 4.0:1 on --primary (WCAG AA needs 4.5) */
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.6rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-block: 1.4rem 4rem;
}

.dashboard-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-nav h1 {
  font-size: 1.25rem;
}

.dashboard-nav nav {
  display: grid;
  gap: 0.28rem;
}

.dashboard-nav a,
.dashboard-nav-button {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  padding-inline: 0.7rem;
  color: var(--ink);
  font-weight: 850;
}

.dashboard-nav-button {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: start;
}

.dashboard-nav a:hover,
.dashboard-nav-button:hover {
  background: var(--surface-accent);
  color: var(--primary);
}

.dashboard-content {
  display: grid;
  gap: 1rem;
}

.dashboard-intro {
  margin-block-end: 0;
}

.metric {
  padding: 1rem;
  border-top: 4px solid var(--primary);
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
}

.owner-listing {
  padding: 1rem;
}

.progress-track {
  width: min(260px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.data-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.9rem;
}

.history-item,
.country-group {
  padding: 1rem;
}

.history-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.empty-state {
  padding: 1.1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-muted);
}

.prose-page {
  max-width: 820px;
}

/* City x category pages: the number of profiles, as the section heading above the cards. */
.listing-count {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.listing-count strong {
  color: var(--ink);
}

/* About page (directory/about.py) */
.about-page h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.about-page p,
.about-page li,
.about-page dd {
  max-width: 62ch; /* about 75 characters per line (ch is the width of "0", wider than average letters) */
  line-height: 1.9;
}

.about-page ul {
  padding-inline-start: 1.3rem;
}

.about-intro {
  margin-block-start: 1.2rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.about-faq dt {
  margin-block-start: 1.4rem;
  font-weight: 800;
}

.about-faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.page-chips {
  margin-block-end: 1rem;
}

@media (max-width: 1180px) {
  .results-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .results-map {
    display: none;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    padding-block: 0.55rem;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.is-home .site-header {
    background: linear-gradient(180deg, rgb(var(--hero-rgb) / 0.76), rgb(var(--hero-rgb) / 0.2));
    backdrop-filter: blur(12px);
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-menu {
    flex: 0 0 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(var(--surface-rgb) / 0.98);
    box-shadow: var(--shadow);
  }

  body.is-home .header-menu {
    border-color: rgb(var(--on-dark-rgb) / 0.14);
    background: rgb(var(--hero-rgb) / 0.9);
    box-shadow: 0 18px 34px rgb(var(--shadow-rgb) / 0.22);
    backdrop-filter: blur(16px);
  }

  body.is-home.has-solid-header .header-menu {
    border-color: var(--line);
    background: rgb(var(--surface-rgb) / 0.98);
    box-shadow: var(--shadow);
  }

  body.is-menu-open .header-menu {
    display: grid;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    width: 100%;
  }

  .main-nav a,
  .header-actions a {
    min-height: 40px;
    justify-content: start;
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
  }

  .is-rtl .main-nav a,
  .is-rtl .header-actions a {
    justify-content: end;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    width: 100%;
  }

  .utility-link {
    min-width: 0;
    padding-inline: 0.6rem;
  }

  body.is-home .discovery-hero {
    min-height: 760px;
    padding-block-start: 15rem;
  }

  .earth-map-stage {
    top: 44%;
    width: min(1500px, 190vw);
  }

  .service-node {
    min-width: 156px;
    padding: 0.62rem;
  }

  .node-law,
  .node-food {
    inset-inline-start: 4%;
  }

  .node-health,
  .node-groom {
    inset-inline-end: 4%;
  }

  .main-nav,
  .header-actions {
    justify-content: start;
  }

  .is-rtl .main-nav,
  .is-rtl .header-actions {
    justify-content: end;
  }

  .two-column,
  .profile-grid,
  .results-layout,
  .dashboard-shell,
  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .profile-contact,
  .dashboard-nav,
  .results-map {
    position: static;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
    width: min(100%, 760px);
  }

  .search-panel .primary-button {
    grid-column: 1 / -1;
  }

  .search-submit {
    min-height: 50px;
    border-start-end-radius: 0;
    border-end-start-radius: var(--radius);
    border-end-end-radius: var(--radius);
  }

  .search-panel .field-shell {
    border-block-end: 1px solid var(--line);
    border-inline-end: 0;
  }

  .is-rtl .search-panel .field-shell {
    border-inline-start: 0;
  }
}

@media (max-width: 720px) {
  .editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-step-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-section {
    padding: 0.8rem;
    scroll-margin-top: 1rem;
  }

  .editor-media-heading,
  .media-editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-media-heading {
    display: grid;
  }

  .editor-field-grid,
  .editor-field-grid-compact {
    grid-template-columns: 1fr;
  }

  .upload-grid,
  .gallery-upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-preview-featured {
    min-height: 0;
  }

  .hero-band,
  .page-band,
  .section-band,
  .cta-band {
    padding-block: 1.45rem;
  }

  body.is-home .discovery-hero {
    min-height: 620px;
    padding-block-start: 5.2rem;
    padding-block-end: 1.6rem;
  }

  .hero-visual {
    opacity: 0.52;
    overflow: hidden;
    contain: paint;
    clip-path: inset(0);
  }

  .earth-map-stage {
    top: 30%;
    width: 100%;
    transform: translate(-50%, -50%) scale(1.86);
  }

  .route-lines {
    opacity: 0.46;
  }

  #route-la,
  #route-vancouver,
  #route-seoul,
  #route-moscow,
  .pulse-la,
  .pulse-vancouver,
  .pulse-seoul,
  .pulse-moscow,
  .pin-la,
  .pin-vancouver,
  .pin-seoul,
  .pin-moscow {
    display: none;
  }

  .hero-pin {
    width: 7px;
    height: 7px;
    border-width: 1px;
    box-shadow: 0 0 0 3px rgb(var(--hero-grid-rgb) / 0.07), 0 5px 14px rgb(var(--shadow-rgb) / 0.16);
  }

  .map-city-label {
    display: none;
  }

  .service-node {
    display: none;
  }

  .pin-label {
    display: none;
  }

  .hero-copy h1 {
    max-width: 18rem;
    margin-inline: auto;
    font-size: clamp(1.28rem, 5.65vw, 1.64rem);
    line-height: 1.22;
    text-wrap: balance;
  }

  .hero-copy {
    width: min(calc(100% - 22px), var(--shell));
    padding-inline: 1rem;
  }

  .hero-statement {
    max-width: 17rem;
    margin-block-start: 0.56rem;
    font-size: clamp(0.86rem, 3.45vw, 0.96rem);
    line-height: 1.78;
  }

  .hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .is-rtl .hero-center {
    direction: rtl;
  }

  .hero-center .search-panel {
    position: static;
    left: auto;
    width: min(100%, 22rem);
    margin-inline: auto;
    margin-block-start: 0.82rem;
    transform: none;
  }

  .is-rtl .hero-center .search-panel {
    direction: rtl;
    transform: none;
  }

  .discovery-hero .hero-lead {
    margin-block: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .discovery-hero .eyebrow {
    font-size: 0.72rem;
    margin-block-end: 0.25rem;
  }

  .site-header {
    max-height: 100dvh;
    overflow-y: auto;
  }

  .header-inner {
    min-height: 58px;
    gap: 0.55rem;
    padding-block: 0.45rem;
  }

  .header-menu {
    gap: 0.35rem;
    padding: 0.45rem;
  }

  .main-nav a,
  .header-actions a {
    min-height: 38px;
    justify-content: start;
    padding: 0.44rem 0.55rem;
    font-size: 0.86rem;
  }

  .utility-link {
    padding-inline: 0.55rem;
    min-height: 38px;
  }

  .utility-icon {
    width: 20px;
    height: 20px;
  }

  .search-panel,
  .profile-sections,
  .metric-grid,
  .page-intro {
    grid-template-columns: 1fr;
  }

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

  .search-panel {
    display: grid;
    width: min(100%, calc(100vw - 22px));
    max-width: 100%;
    min-width: 0;
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgb(var(--ink-rgb) / 0.14);
  }

  .search-panel .field-shell {
    min-height: auto;
  }

  .search-panel .field-shell > span:first-child {
    font-size: 0.7rem;
  }

  .search-panel .search-input {
    min-height: 42px;
    padding: 0.3rem 0.75rem 0.55rem;
    font-size: 0.92rem;
  }

  .search-submit {
    min-height: 44px;
    padding-inline: 1rem;
    font-size: 0.92rem;
  }

  .location-control {
    display: block;
  }

  .location-suggestions {
    inset-inline: 0.4rem;
  }

  .location-option {
    min-height: 40px;
    font-size: 0.86rem;
  }

  .popular-row {
    margin-block-start: 0.58rem;
    gap: 0.32rem;
  }

  .popular-row .chip {
    min-height: 28px;
    padding-inline: 0.52rem;
    font-size: 0.78rem;
  }

  .inline-heading,
  .search-heading,
  .cta-inner,
  .listing-card-top,
  .owner-listing,
  .footer-grid,
  .page-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .page-intro {
    display: grid;
  }

  .listing-card,
  .compact-stack .listing-card,
  .activity-item .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-thumb,
  .compact-stack .listing-thumb,
  .activity-item .listing-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .owner-actions,
  .card-actions,
  .contact-grid,
  .review-form-grid,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .badge-stack {
    justify-content: start;
  }

  .primary-button,
  .ghost-button,
  .icon-button,
  .text-button,
  .contact-link {
    width: 100%;
  }

  .review-form .primary-button {
    width: 100%;
  }

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

  .profile-hero {
    padding-block: 1.05rem 1.2rem;
  }

  .profile-main {
    min-width: 0;
  }

  .profile-heading-row {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }

  .profile-avatar span {
    font-size: 1.8rem;
  }

  .profile-heading-row > div:last-child {
    min-width: 0;
  }

  .profile-main h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.18;
  }

  .profile-lead {
    margin-block-start: 0.72rem;
    font-size: 0.94rem;
  }

  .profile-mini-links {
    align-items: flex-start;
    gap: 0.34rem;
    font-size: 0.82rem;
  }

  .mini-link-badge {
    min-height: 26px;
    padding-inline: 0.5rem;
    font-size: 0.76rem;
  }

  .profile-sections {
    gap: 0.75rem;
  }

  .profile-sections > section {
    min-height: auto;
    padding: 0.85rem;
  }

  .profile-sections h2 {
    font-size: 1.18rem;
  }

  .profile-bio summary {
    width: auto;
  }

  .profile-fact-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .media-strip {
    grid-auto-columns: minmax(145px, 72vw);
    gap: 0.58rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .media-tile,
  .media-video-tile,
  .media-empty-tile,
  .media-upgrade-tile {
    min-height: 112px;
  }

  .media-tile img {
    height: 112px;
  }

  .media-upgrade-tile {
    padding-inline: 0.65rem;
  }

  .profile-map .map-surface,
  .google-map-canvas {
    min-height: 150px;
  }

  .review-card,
  .empty-review-state,
  .review-form {
    padding: 0.8rem;
  }

  .related-profile-card .listing-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .related-profile-card .listing-thumb {
    width: 82px;
    height: 82px;
  }

  .profile-contact {
    display: none;
  }

  .mobile-contact-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
    padding: 0.65rem;
    border-top: 1px solid var(--line);
    background: rgb(var(--surface-rgb) / 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-contact-bar:empty {
    display: none;
  }
}

/* Dashboard overview and first-party account security. */
.dashboard-shell { gap: 1.5rem; padding-block-start: 2rem; }
.dashboard-nav { padding: 1.4rem 1rem; border-radius: 18px; position: sticky; top: 1rem; }
.dashboard-nav h1 { margin-block: .4rem 1.5rem; }
.dashboard-nav a, .dashboard-nav-button { min-height: 48px; border-radius: 10px; }
.dashboard-nav a[aria-current="page"] { color: var(--primary); background: var(--surface-accent); box-shadow: inset 3px 0 var(--primary); }
.dashboard-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin-block: .25rem .5rem; }
.dashboard-lead { color: var(--muted); margin: 0; line-height: 1.8; }
.dashboard-period { margin: .5rem 0 -.4rem; color: var(--muted); font-size: .85rem; }
.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.dashboard-metrics .metric { border-top: 0; border-radius: 15px; padding: 1.2rem; min-height: 135px; box-shadow: var(--shadow-sm); }
.dashboard-metrics .metric:first-child { background: var(--primary); color: white; }
.dashboard-metrics .metric:first-child span, .dashboard-metrics .metric:first-child small { color: white; opacity: .85; }
.dashboard-metrics .metric strong { margin-block: .55rem; font-size: 2.1rem; }
.dashboard-metrics .metric span, .dashboard-metrics .metric small { font-size: .85rem; }
.dashboard-charts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
.visit-chart, .security-panel { min-width: 0; background: var(--surface); padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.visit-chart header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.visit-chart h2 { font-size: 1.1rem; margin: .3rem 0 1rem; }
.visit-chart .eyebrow { font-size: .75rem; color: var(--muted); }
.chart-total { display: grid; text-align: end; }
.chart-total strong { font-size: 1.8rem; color: var(--primary); }
.chart-total span { font-size: .8rem; color: var(--muted); }
.visit-plot { width: 100%; display: block; overflow: visible; direction: ltr; margin-block: 1rem; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--primary); opacity: .09; }
.chart-bar, .chart-point { fill: var(--primary); }
.chart-axis { fill: var(--muted); font-size: 13px; }
.chart-details { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-block-start: .8rem; }
.chart-details summary { cursor: pointer; }
.chart-details .table-wrap { margin-block-start: .8rem; max-height: 220px; overflow: auto; }
.chart-details .data-table { min-width: 0; font-size: .85rem; }
.chart-empty { color: var(--muted); font-size: .85rem; }
.dashboard-section-title { font-size: 1.25rem; margin-block: .5rem 0; }
.dashboard-list .owner-listing { border-radius: 16px; padding: 1.4rem; }
.dashboard-requests { display: grid; gap: 1rem; min-width: 0; }
.dashboard-requests .table-wrap { border-radius: 16px; }
.dashboard-requests-table { min-width: 600px; font-size: .9rem; }
.dashboard-requests-table th { white-space: nowrap; }
.dashboard-requests-table td:first-child { min-width: 10rem; max-width: 22rem; font-weight: 700; overflow-wrap: anywhere; }
.dashboard-requests-table time { white-space: nowrap; }
.dashboard-requests-table tbody tr:last-child td { border-bottom: 0; }
.request-date-empty { color: var(--muted); }
.request-admin-comment { min-width: 12rem; max-width: 24rem; overflow-wrap: anywhere; }
.request-comment-button { display: grid; gap: .3rem; padding: .4rem 0; border: 0; background: transparent; color: var(--link); text-align: start; cursor: pointer; }
.request-comment-button small { text-decoration: underline; text-underline-offset: .2em; }
.request-comment-dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); text-align: start; }
.request-comment-dialog::backdrop { background: rgb(var(--ink-rgb) / .5); }
.request-comment-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.request-comment-dialog h2 { margin: 0; font-size: 1.25rem; }
.request-comment-business { color: var(--muted); overflow-wrap: anywhere; }
.request-comment-body { line-height: 1.8; overflow-wrap: anywhere; }
.request-pagination { display: grid; justify-items: center; gap: .6rem; padding-block: .25rem; }
.request-pagination p { margin: 0; color: var(--muted); font-size: .8rem; text-align: center; }
.request-pagination-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; max-width: 100%; }
.request-page-select { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; white-space: nowrap; }
.request-page-select select { min-height: 42px; padding: .4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.request-page-total { color: var(--muted); }
.request-pagination .ghost-button { width: auto; min-height: 42px; padding: .55rem .65rem; gap: .4rem; font-size: .85rem; }
.request-pagination-controls > .ghost-button { width: 100%; }
.request-pagination .ghost-button:disabled { opacity: .4; cursor: default; }
.request-page-arrow { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: 1.25rem; line-height: 1; }
[dir="rtl"] .request-page-arrow { transform: rotate(180deg); }
.request-page-select button[hidden] { display: none; }
.request-status { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.request-status--in_review { background: var(--amber-soft); color: var(--amber-ink); }
.request-status--approved { background: var(--green-soft); color: var(--green); }
.request-status--rejected { background: var(--red-soft); color: var(--red); }
.request-expected { display: block; margin-block-start: .35rem; color: var(--muted); font-size: .85rem; }
.owner-listing-pending .request-status { margin-block: .2rem .1rem; }

/* Phones: the request table has no room for six columns (the status column was cut off), so each
   row becomes a card: the business name as its title, then label + value lines, the status first. */
@media (max-width: 720px) {
  .dashboard-requests .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .dashboard-requests-table { min-width: 0; }
  .dashboard-requests-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dashboard-requests-table,
  .dashboard-requests-table tbody { display: grid; gap: .75rem; }
  .dashboard-requests-table tr { display: grid; gap: .45rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .dashboard-requests-table td { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; padding: 0; border: 0; min-width: 0; max-width: none; }
  .dashboard-requests-table td[data-label]::before { content: attr(data-label); min-width: 7.5rem; color: var(--muted); font-size: .85rem; }
  .dashboard-requests-table td.request-name { font-size: 1rem; }
  .dashboard-requests-table td.request-status-cell { order: -1; }
  .dashboard-requests-table td.request-name { order: -2; }
  .dashboard-requests-table .request-expected { flex-basis: 100%; margin: 0; }
}
.security-panel { max-width: 680px; }
.security-panel h2 { font-size: 1.3rem; }
.security-panel .form-surface { padding: 0; border: 0; box-shadow: none; }
.security-panel .field { display: grid; gap: .5rem; }
.security-panel input { width: 100%; direction: ltr; }
.security-panel .errorlist { color: var(--red); }
@media (max-width: 1100px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-charts { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dashboard-shell { grid-template-columns: 1fr; } .dashboard-nav { position: static; } .dashboard-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-nav h1 { margin-block-end: .8rem; } .dashboard-metrics .metric { padding: 1rem; } }

.profile-editor .editor-step-nav {
  position: sticky;
  top: var(--editor-nav-top, 100px);
  z-index: 10;
  align-self: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.editor-step-nav a[aria-current="step"] {
  background: var(--surface-accent);
  color: var(--primary);
  box-shadow: inset 0 -3px var(--primary);
}
.editor-step-nav a[aria-current="step"] span { background: var(--primary); }
.profile-editor .editor-section { scroll-margin-top: var(--editor-section-offset, 180px); }
@media (max-width: 720px) {
  .profile-editor .editor-step-nav { gap: .15rem; padding: .35rem; }
  .profile-editor .editor-step-nav a { padding: .4rem .2rem; gap: .3rem; font-size: .78rem; }
  .profile-editor .editor-step-nav span { width: 20px; height: 20px; font-size: .7rem; }
}


.editor-heading h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.4;
  margin-block: 0;
}
.editor-heading { margin-block-end: .25rem; }

.dashboard-overview-intro h1 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  line-height: 1.5;
  margin-block: 0;
}


.profile-main h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.5;
}
.profile-lead { font-size: 1rem; line-height: 1.85; }
.profile-sections h2, .profile-contact h2 { font-size: 1.2rem; line-height: 1.6; }

.business-emblem { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
.business-emblem svg { width: 27px; height: 27px; fill: currentColor; }
.verified-emblem { color: var(--primary); background: var(--surface-accent); cursor: pointer; list-style: none; }
.verified-emblem::-webkit-details-marker { display: none; }
.emblem-check { fill: none; stroke: var(--on-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.featured-emblem { color: var(--gold-ink); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.verification-emblem { position: relative; display: inline-block; }
.verification-popover { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; width: min(300px, 75vw); z-index: 25; background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); font-size: .85rem; line-height: 1.8; }
.verification-popover p { margin: .5rem 0 0; }
.verification-note { color: var(--muted); }
.profile-report-line { grid-column: 1 / -1; padding: .1rem .3rem; }
.profile-report-line a { display: inline-flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .85rem; }
.profile-report-line a:hover { color: var(--primary); }
.profile-report-line svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.business-emblem:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.listing-card:has(.verification-emblem[open]) { position: relative; z-index: 26; }

.verification-with-text { max-width: 100%; }
.verification-with-text summary { width: auto; height: auto; min-height: 40px; border-radius: 12px; padding: .4rem .6rem; gap: .5rem; flex-wrap: wrap; }
.verification-with-text svg { flex-shrink: 0; }
.verification-label { font-size: .85rem; font-weight: 800; }
.verification-details-link { font-size: .75rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-inline-start: .35rem; }
.verification-with-text .verification-popover { inset-inline-start: 0; inset-inline-end: auto; }
.service-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.2rem .8rem; padding-block: .8rem; }
.service-highlight { display: flex; flex-direction: column; align-items: center; gap: .65rem; text-align: center; font-size: .9rem; line-height: 1.7; }
.highlight-illustration { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-accent); color: var(--primary); }
.highlight-illustration svg { width: 43px; height: 43px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-accent-fill { fill: currentColor; fill-opacity: .13; stroke: none; }
.language-illustration { color: var(--violet-ink); background: var(--violet-soft); }
.online-illustration { color: var(--gold-ink); background: var(--gold-soft); }

.country-flag { font-size: 1.45rem; line-height: 1; margin-inline-end: .35rem; }

.profile-sections .location-hours-section { border: 0; border-radius: 0; box-shadow: none; border-block: 1px solid var(--line); padding: 1.5rem 0; }
.location-hours-section .inline-heading { margin-block-end: 1.25rem; }
.location-edit-link { display: inline-flex; gap: .45rem; align-items: center; font-size: .85rem; font-weight: 700; color: var(--ink); }
.location-edit-link svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.location-hours-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.location-column { min-width: 0; }
.location-hours-section .profile-map { width: 100%; height: 230px; min-height: 230px; }
.location-hours-section .map-surface, .location-hours-section .google-map-canvas { width: 100%; height: 100%; min-height: 230px; }
.location-address-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-block-start: 1rem; }
.location-address p { margin: 0 0 .3rem; font-size: .95rem; line-height: 1.7; }
.street-address { color: var(--primary); font-weight: 800; }
.location-city { font-weight: 700; }
.location-service-area { color: var(--muted); }
.location-directions { border-radius: 999px; white-space: nowrap; font-size: .85rem; }
.hours-column h3 { font-size: 1rem; margin: 0 0 1rem; }
.business-hours-list { margin: 0; }
.business-hours-list > div { display: grid; grid-template-columns: minmax(85px, .8fr) minmax(0, 1.2fr); gap: 1rem; padding-block: .6rem; font-size: .95rem; }
.business-hours-list dt { font-weight: 750; }
.business-hours-list dd { margin: 0; }
.hours-description { color: var(--muted); font-size: .95rem; line-height: 1.8; }
@media (max-width: 720px) { .location-hours-layout { grid-template-columns: 1fr; gap: 1.5rem; } .location-address-row { flex-wrap: wrap; } }

/* Compact location and hours layout. */
.profile-sections .location-hours-section { padding-block: 1rem; }
.location-hours-section .inline-heading { margin-block-end: .8rem; }
.location-hours-section h2 { font-size: 1.1rem; }
.location-hours-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; max-width: 850px; }
.location-hours-section .profile-map,
.location-hours-section .map-surface,
.location-hours-section .google-map-canvas { height: 170px; min-height: 170px; }
.location-address-row { margin-block-start: .7rem; gap: .7rem; }
.location-address p, .business-hours-list > div, .hours-description { font-size: .85rem; }
.business-hours-list > div { padding-block: .4rem; }
.hours-column h3 { font-size: .9rem; margin-block-end: .6rem; }
.location-directions { min-height: 36px; padding: .4rem .75rem; font-size: .8rem; }
@media (max-width: 720px) { .location-hours-layout { grid-template-columns: 1fr; gap: 1rem; } }

/* Keep location and services as neighboring profile cards. */
.profile-sections .location-hours-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem;
  background: var(--surface);
}
.location-hours-section .location-hours-layout { gap: 1rem; }
.location-hours-section .location-address-row { flex-wrap: wrap; }
.location-hours-section .business-hours-list > div {
  grid-template-columns: 1fr;
  gap: .15rem;
}
@media (max-width: 900px) {
  .location-hours-section .location-hours-layout { grid-template-columns: 1fr; }
  .location-hours-section .business-hours-list > div { grid-template-columns: minmax(80px, 1fr) minmax(0, 1.3fr); }
}
.weekly-hours-editor { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; min-width: 0; }
.weekly-hours-editor legend { font-weight: 800; padding-inline: .4rem; }
.weekly-hours-row { display: grid; grid-template-columns: minmax(80px, .55fr) minmax(130px, 1.2fr) repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: start; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.weekly-hours-row:last-child { border-bottom: 0; }
.weekly-hours-field { display: grid; grid-template-rows: 1.25rem 48px auto; gap: .35rem; min-width: 0; }
.weekly-hours-day { display: flex; align-items: center; min-height: 48px; margin-block-start: 1.6rem; font-weight: 700; }
.weekly-hours-row input, .weekly-hours-row select { display: block; width: 100%; min-width: 0; height: 48px; min-height: 48px; margin: 0; }
.weekly-hours-row input[type="time"] { direction: ltr; text-align: start; }
.weekly-hours-field > label { margin: 0; font-size: .75rem; line-height: 1.25rem; color: var(--muted); }
.weekly-hours-field > .errorlist { margin: 0; }
.hours-day-off { color: var(--muted); }

/* Keep each weekday and its hours on one compact row. */
.location-hours-section .business-hours-list > div {
  grid-template-columns: minmax(65px, auto) minmax(0, 1fr);
  gap: .55rem;
  align-items: baseline;
}
.location-hours-section .business-hours-list dd { white-space: nowrap; }

/* Mobile profiles and dashboards: fit narrow phone viewports. */
@media (max-width: 760px) {
  .profile-grid, .profile-hero-card, .profile-sections,
  .dashboard-shell, .dashboard-metrics, .dashboard-charts,
  .editor-field-grid, .review-grid, .related-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-sections > *, .profile-main, .profile-contact,
  .dashboard-content, .dashboard-content > *, .editor-section {
    min-width: 0;
    max-width: 100%;
  }
  .profile-sections > section { min-height: 0; padding: .85rem; }
  .profile-heading-row { flex-direction: column; gap: .85rem; }
  .profile-heading-row > div:last-child { width: 100%; }
  .profile-main h1 { font-size: 1.5rem; line-height: 1.5; }
  .profile-lead { font-size: .9rem; overflow-wrap: anywhere; }
  .profile-avatar { width: 96px; height: 96px; }
  .verification-with-text, .verification-with-text summary { max-width: 100%; }
  .verification-with-text summary { justify-content: flex-start; }
  .verification-popover { width: min(300px, calc(100vw - 56px)); }
  .location-hours-section .location-hours-layout { grid-template-columns: minmax(0, 1fr); }
  .location-hours-section .location-address-row { flex-direction: column; align-items: stretch; }
  .location-address { overflow-wrap: anywhere; }
  .location-directions { align-self: flex-start; }
  .location-hours-section .business-hours-list > div {
    grid-template-columns: minmax(75px, 1fr) minmax(0, 1.4fr);
    gap: .6rem;
  }
  .service-highlights { grid-template-columns: minmax(0, 1fr); padding-block: .3rem; }
  .service-highlight { flex-direction: row; text-align: start; gap: .85rem; }
  .highlight-illustration { width: 48px; height: 48px; flex-shrink: 0; }
  .highlight-illustration svg { width: 34px; height: 34px; }
  .profile-contact { position: static; }
  .profile-sections .inline-heading { flex-wrap: wrap; gap: .5rem; }
  .dashboard-intro h1 { font-size: 1.5rem; }
  .weekly-hours-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-hours-day, .weekly-hours-status { grid-column: 1 / -1; }
  .weekly-hours-day { min-height: 0; margin: 0; }
  .weekly-hours-row input { padding-inline: .5rem; }
}
@media (max-width: 380px) {
  .weekly-hours-row { grid-template-columns: minmax(0, 1fr); }
}

/* Coming-soon page (pre-launch gate, directory/prelaunch.py) */

.coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 16px;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 52%, var(--hero-to) 100%);
  color: var(--on-dark);
  text-align: center;
}

.coming-soon-card {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.coming-soon-brand,
.coming-soon-brand:hover {
  color: var(--on-dark);
}

.coming-soon-brand small {
  display: block; /* the site header hides the tagline on phones; this page has room for it */
  color: rgb(var(--on-dark-rgb) / 0.74);
}

.coming-soon .eyebrow {
  margin: 0;
  color: rgb(var(--on-dark-rgb) / 0.86);
}

.coming-soon h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.25;
}

.coming-soon-lead {
  margin: 0;
  max-width: 34rem;
  color: rgb(var(--on-dark-rgb) / 0.9);
  font-size: 1.08rem;
}

.countdown {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 0.75rem;
}

.countdown-unit {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0.5rem;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.18);
  border-radius: var(--radius);
  background: rgb(var(--on-dark-rgb) / 0.08);
}

.countdown-unit strong {
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit span,
.coming-soon-date {
  color: rgb(var(--on-dark-rgb) / 0.78);
}

.coming-soon-date,
.coming-soon-done {
  margin: 0;
}

.coming-soon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.coming-soon-switch {
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.26);
  border-radius: 999px;
  color: var(--on-dark);
}

.coming-soon-switch:hover {
  background: rgb(var(--on-dark-rgb) / 0.12);
  color: var(--on-dark);
}

@media (max-width: 420px) {
  .countdown {
    gap: 0.4rem;
  }

  .countdown-unit {
    padding: 0.75rem 0.25rem;
  }
}

/* Search proportions matched to the supplied desktop reference. */
.search-panel.search-panel-yelp {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) 72px;
  width: min(100%, 1000px);
  min-height: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / .12);
  overflow: visible;
}
.hero-copy:has(.search-panel-yelp) { max-width: 1040px; }
.search-panel-yelp .field-shell {
  display: flex;
  align-items: center;
  position: relative;
  border: 0;
  min-width: 0;
}
.search-panel-yelp .location-field::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  height: 30px;
  width: 1px;
  background: var(--line);
}
.search-panel-yelp .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.search-panel-yelp .location-control { width: 100%; }
.search-panel-yelp .search-input {
  height: 58px;
  min-height: 58px;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  background: transparent;
  color: var(--ink);
}
.search-panel-yelp .search-input::placeholder { color: var(--muted); opacity: 1; }
.search-panel-yelp .search-submit {
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: var(--on-primary);
}
.search-panel-yelp .search-submit:hover { background: var(--primary-dark); }
.search-panel-yelp .search-submit-icon,
.search-panel-yelp .search-submit-icon svg { width: 28px; height: 28px; }
.is-rtl .search-panel-yelp .field-shell { border: 0; }
@media (max-width: 700px) {
  .search-panel.search-panel-yelp {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 48px;
    height: 48px;
    min-height: 48px;
  }
  .search-panel-yelp .search-input {
    height: 46px;
    min-height: 46px;
    padding: 0 10px;
    font-size: 16px;
  }
  .search-panel-yelp .search-submit { min-height: 46px; }
  .search-panel-yelp .search-submit-icon,
  .search-panel-yelp .search-submit-icon svg { width: 24px; height: 24px; }
}

/* Keep desktop hero and header layers free of costly backdrop-blur rendering. */
@media (min-width: 721px) {
  body.is-home :is(.site-header, .header-menu, .menu-toggle, .utility-link, .pin-label, .service-node) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Business navigation dropdown, shared by both reading directions. */
.business-menu { position: relative; }
.business-menu summary { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .5rem .85rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; list-style: none; font-size: .92rem; font-weight: 800; }
.business-menu summary::-webkit-details-marker { display: none; }
.business-menu summary:hover, .business-menu[open] summary { border-color: currentColor; }
.business-menu summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
body.is-home:not(.has-solid-header) .business-menu summary { color: var(--on-dark); }
.business-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.business-menu[open] .business-chevron { transform: rotate(180deg); }
.business-menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .6rem); z-index: 100; width: max-content; min-width: 300px; max-width: calc(100vw - 2rem); padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.header-actions .business-menu-panel a { display: flex; gap: .85rem; padding: .85rem .65rem; color: var(--ink); border-radius: 5px; }
.header-actions .business-menu-panel a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.business-menu-panel a svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-actions .business-menu-panel .business-menu-explore { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: 1.3rem; border-radius: 0; }
@media (max-width: 980px) {
 .business-menu-panel { position: static; width: 100%; min-width: 0; margin-top: .4rem; box-sizing: border-box; }
 .business-menu-panel a { white-space: normal; }
}

.business-menu { flex: 0 0 auto; }
.business-menu summary { min-height: 42px; white-space: nowrap; border-color: var(--line-strong); background: rgb(var(--surface-rgb) / .96); color: var(--ink); }
body.is-home:not(.has-solid-header) .business-menu summary { background: rgb(var(--on-dark-rgb) / .08); border-color: rgb(var(--on-dark-rgb) / .35); }
.business-menu-panel { width: 340px; padding: .75rem; text-align: start; }
.header-actions .business-menu-panel a { justify-content: flex-start; white-space: normal; line-height: 1.5; min-height: 56px; font-size: .95rem; font-weight: 650; }
@media (min-width: 981px) {
 .header-menu { grid-template-columns: auto auto; justify-content: space-between; gap: .75rem; }
 .main-nav, .header-actions { flex-wrap: nowrap; }
 .main-nav a { white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1180px) {
 .header-inner { gap: .65rem; }
 .brand small { display: none; }
 .header-actions { gap: .3rem; }
 .utility-link { padding-inline: .55rem; font-size: .82rem; }
 .business-menu summary { padding-inline: .6rem; font-size: .84rem; }
 .main-nav a { padding-inline: .55rem; font-size: .86rem; }
}
@media (max-width: 980px) {
 .business-menu summary { justify-content: space-between; }
 .business-menu-panel { width: 100%; }
}

/* The dropdown is a light surface even when the surrounding header is dark. */
.site-header .business-menu-panel {
  background: rgb(var(--surface-rgb));
  color: var(--ink);
}
.site-header .business-menu-panel a,
body.is-home .site-header .business-menu-panel a {
  color: var(--ink);
}
.site-header .business-menu-panel a:hover,
body.is-home .site-header .business-menu-panel a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.site-header .business-menu-panel a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Search and city browsing remain available in the mobile menu. */
@media (min-width: 981px) {
  .header-menu > .main-nav { display: none; }
  .header-menu { grid-template-columns: minmax(0, 1fr); }
}
