/* Williams Property Connect UI */
:root {
  --primary: #1B3B6F;
  --primary-deep: #0D1F3D;
  --primary-hover: #122B52;
  --secondary: #496184;
  --accent: #B8E132;
  --accent-strong: #9ABB28;
  --status-available: #22C55E;
  --status-unavailable: #9CA3AF;

  --text-primary: #1A1F2E;
  --text-secondary: #52627C;
  --bg-main: #F6F7FB;
  --bg-soft: #EDF0F7;
  --bg-filter: rgba(255, 255, 255, 0.95);
  --border-color: rgba(27, 59, 111, 0.12);

  --header-height: 86px;
  --sidebar-width: 360px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top right, rgba(184, 225, 50, 0.12), transparent 24%),
    linear-gradient(180deg, #EEF2F8 0%, #F6F7FB 34%, #F6F7FB 100%);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Manrope', sans-serif; }

/* Guided onboarding */
.guided-onboarding[hidden] { display: none !important; }
/* `guided-entry` is set synchronously in <head>, before this stylesheet can
   paint. It bridges the first frame until app.js installs the runtime body
   state, preventing the static legacy shell from flashing on V2 entry. */
html.guided-entry .guided-onboarding[hidden] { display: grid !important; }
.guided-onboarding {
  --guided-panel-width: clamp(420px, 42vw, 720px);
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  grid-template-columns: var(--guided-panel-width) 1fr;
  pointer-events: none;
}
.guided-panel {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(24px, 4vh, 48px) clamp(28px, 4vw, 56px) 24px;
  color: var(--primary-deep);
  background:
    radial-gradient(circle at 14% 4%, rgba(184, 225, 50, 0.16), transparent 22%),
    linear-gradient(150deg, #F9FAF5 0%, #F2F5F8 55%, #E9EEF5 100%);
  box-shadow: 28px 0 80px rgba(13, 31, 61, 0.18);
  pointer-events: auto;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.7, 0, 0.84, 0);
}
.guided-onboarding.exiting .guided-panel { transform: translateX(-104%); opacity: 0; }
.guided-onboarding.support-handoff .guided-panel,
.guided-onboarding.support-journey .guided-panel {
  transform: translateX(-104%);
  opacity: 0;
  pointer-events: none;
}
.guided-onboarding.support-journey .guided-map-shield {
  opacity: 1;
  pointer-events: auto;
}
.guided-map-shield {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: linear-gradient(90deg, rgba(13, 31, 61, 0.08), transparent 24%);
  pointer-events: auto;
  transition: opacity 300ms cubic-bezier(0.7, 0, 0.84, 0);
}
.guided-onboarding.exiting .guided-map-shield { opacity: 0; }
.guided-map-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(27, 59, 111, 0.1);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(249, 250, 245, 0.9);
  box-shadow: 0 12px 32px rgba(13, 31, 61, 0.12);
  font-size: 12px;
  font-weight: 800;
}
.guided-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px rgba(184, 225, 50, 0.2);
}
.guided-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guided-brand img { display: block; width: 128px; height: auto; }
.guided-brand-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}
.guided-auth-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.guided-auth-links[hidden] { display: none; }
.guided-auth-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}
.guided-auth-link:hover { color: var(--primary-deep); background: rgba(27, 59, 111, 0.06); }
.guided-auth-link-primary {
  border: 1px solid rgba(27, 59, 111, 0.22);
  background: rgba(249, 250, 245, 0.72);
}
.guided-auth-link-primary:hover { border-color: rgba(27, 59, 111, 0.42); background: rgba(249, 250, 245, 0.96); }
.guided-auth-link:focus-visible {
  outline: 3px solid rgba(184, 225, 50, 0.48);
  outline-offset: 2px;
}
.guided-member-points {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(142, 178, 30, 0.42);
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(184, 225, 50, 0.16);
  font-size: 0.625rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.guided-member-points[hidden] { display: none; }
.guided-member-points[data-loading="true"] { color: var(--secondary); }
.guided-member-points-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: var(--accent);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.guided-member-points strong { font-size: 0.75rem; font-weight: 900; }
.guided-member-points-copy { display: grid; gap: 2px; }
.guided-member-points-pending {
  color: #587516;
  font-size: 0.5rem;
  font-weight: 850;
}
.guided-member-points-pending[hidden] { display: none; }
.guided-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  gap: 10px;
  margin: clamp(28px, 5vh, 52px) 0 clamp(32px, 6vh, 64px);
}
.guided-progress-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 58px;
  color: rgba(73, 97, 132, 0.72);
}
.guided-progress-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(27, 59, 111, 0.18);
  border-radius: 50%;
  background: rgba(249, 250, 245, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), background 180ms ease-out;
}
.guided-progress-step strong { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.035em; }
.guided-progress-step.active,
.guided-progress-step.complete { color: var(--primary); }
.guided-progress-step.active span {
  color: var(--primary-deep);
  border-color: var(--accent-strong);
  background: var(--accent);
  transform: scale(1.08);
}
.guided-progress-step.complete span { color: #F9FAF5; border-color: var(--primary); background: var(--primary); }
.guided-progress-line { height: 1px; margin-top: 14px; background: rgba(27, 59, 111, 0.14); }
.guided-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  animation: guided-step-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guided-step[hidden] { display: none !important; }
@keyframes guided-step-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.guided-kicker {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.guided-step h1 {
  max-width: 12ch;
  color: var(--primary-deep);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.guided-step h1:focus { outline: none; }
.guided-intro {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
.guided-concept-note {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(142, 178, 30, 0.34);
  border-radius: 16px;
  background: rgba(184, 225, 50, 0.14);
}
.guided-concept-note strong {
  color: #344E13;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guided-concept-note p {
  max-width: 62ch;
  color: var(--primary-deep);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
}
.guided-field { display: grid; gap: 9px; margin-top: clamp(28px, 5vh, 48px); }
.guided-field label {
  color: var(--primary-deep);
  font-size: 0.875rem;
  font-weight: 800;
}
.guided-field label span { color: var(--text-secondary); font-weight: 600; }
.guided-address-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(27, 59, 111, 0.16);
  border-radius: 16px;
  color: var(--primary);
  background: rgba(249, 250, 245, 0.84);
  box-shadow: 0 16px 34px -28px rgba(13, 31, 61, 0.46);
}
.guided-address-control:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(184, 225, 50, 0.2); }
.guided-address-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font: inherit;
  font-size: 1rem;
}
.guided-field textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid rgba(27, 59, 111, 0.14);
  border-radius: 15px;
  outline: 0;
  color: var(--text-primary);
  background: rgba(249, 250, 245, 0.78);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.guided-field textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(184, 225, 50, 0.18); }
.guided-field-message {
  min-height: 20px;
  color: #A13D32;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.guided-category-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.guided-category-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 59, 111, 0.13);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(249, 250, 245, 0.8);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1), color 160ms ease-out, background 160ms ease-out;
}
.guided-category-chip-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--guided-chip-accent, var(--secondary));
  background: color-mix(in srgb, var(--guided-chip-accent, var(--secondary)) 15%, #F9FAF5);
  transition: color 160ms ease-out, background 160ms ease-out;
}
.guided-category-chip-icon svg { display: block; width: 15px; height: 15px; }
.guided-category-chip-label { white-space: nowrap; }
.guided-category-chip:hover { transform: translateY(-1px); }
.guided-category-chip.active { color: #F9FAF5; border-color: var(--primary); background: var(--primary); }
.guided-category-chip.active .guided-category-chip-icon {
  color: #F9FAF5;
  background: color-mix(in srgb, var(--guided-chip-accent, var(--accent)) 55%, var(--primary));
}
.guided-category-chip.inferred::after {
  content: 'Matched';
  margin-left: 6px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guided-description-field { margin-top: 22px; }
.guided-actions {
  display: grid;
  flex-shrink: 0;
  align-content: end;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.guided-step[data-step="1"] .guided-actions {
  grid-template-rows: minmax(120px, 1fr) auto auto;
  flex: 1 1 auto;
  margin-top: 0;
}
.guided-step[data-step="1"] .guided-actions::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background-image: url('../assets/connect-plus-bg-v6-flat-service-illustration.svg?v=2');
  background-repeat: no-repeat;
  background-position: center 52%;
  background-size: cover;
  opacity: 0.78;
  pointer-events: none;
}
.guided-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 15px;
  color: var(--primary-deep);
  background: var(--accent);
  box-shadow: 0 18px 34px -20px rgba(109, 137, 26, 0.7);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), background 180ms ease-out;
}
.guided-primary:hover:not(:disabled) { background: #C8EA56; transform: translateY(-1px); }
.guided-primary:disabled { cursor: not-allowed; opacity: 0.46; }
.guided-back,
.guided-edit-summary {
  width: fit-content;
  min-height: 44px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.guided-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.guided-edit-summary {
  min-height: auto;
  margin-top: 18px;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(27, 59, 111, 0.28);
  text-underline-offset: 4px;
}
.guided-network-proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(27, 59, 111, 0.12);
  border-bottom: 1px solid rgba(27, 59, 111, 0.12);
}
.guided-proof-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: var(--accent);
}
.guided-network-proof h2 { color: var(--primary-deep); font-size: 22px; line-height: 1.2; letter-spacing: -0.035em; }
.guided-network-proof p { margin-top: 8px; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.55; }
.guided-review-carousel {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 24px;
}
.guided-review-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guided-review-heading > span {
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guided-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guided-google-review-card {
  display: flex;
  min-width: 0;
  aspect-ratio: 1;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(27, 59, 111, 0.11);
  border-radius: 13px;
  background: rgba(249, 250, 245, 0.94);
  box-shadow: 0 12px 24px -24px rgba(13, 31, 61, 0.48);
}
.guided-google-review-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.guided-review-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #F9FAF5;
  background: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.guided-review-person {
  min-width: 0;
}
.guided-review-person strong {
  color: var(--primary);
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-review-controls { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.guided-review-controls button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(27, 59, 111, 0.13);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.guided-review-controls span {
  min-width: 25px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}
.guided-google-mark {
  color: #8A8F98;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.guided-review-stars {
  height: 12px;
  color: #F2A33B;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
}
.guided-google-review-card blockquote {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}
.guided-offer {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(154, 187, 40, 0.34);
  border-radius: 15px;
  color: #31480D;
  background: rgba(184, 225, 50, 0.15);
}
.guided-value-promise-copy { display: grid; }
.guided-value-promise-copy strong {
  color: #20380A;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.guided-offer ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guided-offer li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 5px;
  color: #31480D;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.35;
}
.guided-offer li svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  color: #6E8E13;
}
.guided-final-actions { gap: 18px; }
.guided-final-actions .guided-offer { margin-top: 0; }
.guided-trust-note { max-width: 54ch; flex-shrink: 0; margin-top: 20px; color: rgba(73, 97, 132, 0.82); font-size: 10px; line-height: 1.5; }
.guided-property-pin { display: grid; place-items: center; }
.guided-property-pin span {
  width: 18px;
  height: 18px;
  border: 4px solid #F9FAF5;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(184, 225, 50, 0.35), 0 8px 22px rgba(13, 31, 61, 0.3);
}
.custom-pin.onboarding-muted { filter: grayscale(0.8); }
html.guided-entry .site-links-banner,
html.guided-entry .app-header,
html.guided-entry .quick-filter-bar,
html.guided-entry .sidebar-filters,
html.guided-entry .floating-radius-control,
html.guided-entry .map-results-card,
html.guided-entry .state-overlay,
html.guided-entry .marker-onboarding,
html.guided-entry .mobile-filter-fab,
html.guided-entry .mobile-search-chip,
.guided-onboarding-active .site-links-banner,
.guided-onboarding-active .app-header,
.guided-onboarding-active .quick-filter-bar,
.guided-onboarding-active .sidebar-filters,
.guided-onboarding-active .floating-radius-control,
.guided-onboarding-active .map-results-card,
.guided-onboarding-active .state-overlay,
.guided-onboarding-active .marker-onboarding,
.guided-onboarding-active .mobile-filter-fab,
.guided-onboarding-active .mobile-search-chip { visibility: hidden; }
.guided-primary:focus-visible,
.guided-back:focus-visible,
.guided-edit-summary:focus-visible,
.guided-category-chip:focus-visible,
.guided-review-controls button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.pac-container { z-index: 2200 !important; }

@media (min-width: 768px) {
  .guided-panel {
    overflow-y: hidden;
    padding-block: clamp(18px, 3vh, 36px) clamp(14px, 2.2vh, 24px);
  }
  .guided-progress { margin: clamp(20px, 3.5vh, 40px) 0 clamp(40px, 6vh, 64px); }
  .guided-step { min-height: 0; overflow: hidden; }
  .guided-step[data-step="2"] .guided-step-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .guided-step[data-step="2"] .guided-actions {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(237, 242, 247, 0), rgba(237, 242, 247, 0.96) 22px);
  }
  .guided-step h1 {
    max-width: 100%;
    font-size: clamp(34px, min(3.2vw, 6.2vh), 52px);
  }
  .guided-intro {
    max-width: 100%;
    margin-top: clamp(12px, 1.8vh, 18px);
    font-size: 1rem;
    line-height: 1.6;
  }
  .guided-concept-note {
    margin-top: 0;
  }
  .guided-actions {
    min-height: 0;
    align-content: end;
  }
  .guided-trust-note { max-width: 100%; }
  .guided-step[data-step="2"] .guided-back { margin-bottom: clamp(12px, 2vh, 20px); }
  .guided-step[data-step="2"] .guided-category-chips {
    gap: clamp(6px, 1vh, 9px);
    margin-top: clamp(16px, 2.5vh, 28px);
  }
  .guided-step[data-step="2"] .guided-description-field { margin-top: clamp(16px, 2.4vh, 24px); }
  .guided-step[data-step="2"] textarea {
    min-height: clamp(104px, 14vh, 136px);
    max-height: clamp(104px, 14vh, 136px);
    resize: none;
  }
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) {
    padding-block: clamp(16px, 2vh, 24px) clamp(10px, 1.4vh, 16px);
  }
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) .guided-progress {
    margin: clamp(8px, 1.6vh, 20px) 0 clamp(20px, 3vh, 36px);
  }
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) .guided-trust-note {
    margin-top: 8px;
  }
  .guided-step[data-step="3"] .guided-back {
    min-height: 36px;
    margin-bottom: 8px;
  }
  .guided-step[data-step="3"] h1 {
    font-size: clamp(34px, min(2.8vw, 5.2vh), 44px);
  }
  .guided-step[data-step="3"] .guided-network-proof {
    gap: 16px;
    margin-top: 22px;
    padding: 18px 0;
  }
  .guided-step[data-step="3"] .guided-proof-mark {
    width: 42px;
    height: 42px;
  }
  .guided-step[data-step="3"] .guided-network-proof h2 { font-size: 20px; }
  .guided-step[data-step="3"] .guided-network-proof p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }
  .guided-step[data-step="3"] .guided-review-carousel { margin-top: 16px; }
  .guided-step[data-step="3"] .guided-actions {
    min-height: 0;
    padding-top: 32px;
  }
}

@media (min-width: 1440px) and (min-height: 901px) {
  .guided-step[data-step="3"] .guided-google-review-card {
    min-height: 148px;
    aspect-ratio: auto;
  }
}

@media (min-width: 768px) and (max-height: 900px) {
  .guided-panel { padding: 18px clamp(32px, 4vw, 52px) 12px; }
  .guided-brand img { width: 116px; }
  .guided-progress { margin: 10px 0 24px; }
  .guided-progress-step { gap: 6px; }
  .guided-progress-step span { width: 28px; height: 28px; }
  .guided-progress-line { margin-top: 14px; }
  .guided-step h1 { font-size: 2.25rem; line-height: 1.03; }
  .guided-kicker { margin-bottom: 8px; font-size: 0.6875rem; }
  .guided-intro { margin-top: 10px; font-size: 0.9375rem; line-height: 1.5; }
  .guided-concept-note {
    gap: 4px;
    margin-top: 0;
    padding: 10px 14px;
  }
  .guided-concept-note strong { font-size: 0.6875rem; }
  .guided-concept-note p { font-size: 0.9375rem; line-height: 1.5; }
  .guided-actions {
    min-height: 0;
    gap: 12px;
    padding-top: 16px;
  }
  .guided-step[data-step="1"] .guided-actions::before {
    min-height: 96px;
  }
  .guided-step[data-step="1"] .guided-actions {
    grid-template-rows: minmax(96px, 1fr) auto auto;
  }
  .guided-primary { min-height: 48px; padding-block: 11px; }
  .guided-trust-note {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .guided-step[data-step="2"] .guided-back { min-height: 36px; margin-bottom: 8px; }
  .guided-step[data-step="2"] .guided-category-chips { gap: 6px; margin-top: 14px; }
  .guided-step[data-step="2"] .guided-category-chip {
    min-height: 38px;
    gap: 7px;
    padding: 6px 11px;
    font-size: 0.75rem;
  }
  .guided-step[data-step="2"] .guided-category-chip-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .guided-step[data-step="2"] .guided-description-field { gap: 6px; margin-top: 14px; }
  .guided-step[data-step="2"] textarea {
    min-height: 104px;
    max-height: 104px;
    padding: 10px 13px;
    font-size: 0.875rem;
  }
  .guided-step[data-step="2"] .guided-field-message { min-height: 14px; font-size: 0.6875rem; line-height: 1.3; }
  .guided-step[data-step="3"] .guided-back { min-height: 32px; margin-bottom: 3px; }
  .guided-step[data-step="3"] h1 { font-size: 2.25rem; line-height: 1.03; }
  .guided-step[data-step="3"] .guided-network-proof { gap: 12px; margin-top: 16px; padding: 12px 0; }
  .guided-step[data-step="3"] .guided-proof-mark { width: 36px; height: 36px; }
  .guided-step[data-step="3"] .guided-network-proof h2 { font-size: 18px; }
  .guided-step[data-step="3"] .guided-network-proof p { margin-top: 4px; font-size: 0.75rem; line-height: 1.45; }
  .guided-step[data-step="3"] .guided-edit-summary { margin-top: 6px; }
  .guided-step[data-step="3"] .guided-review-carousel {
    gap: 8px;
    margin-top: 12px;
  }
  .guided-step[data-step="3"] .guided-review-heading > span { font-size: 0.625rem; }
  .guided-step[data-step="3"] .guided-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px;
  }
  .guided-step[data-step="3"] .guided-google-review-card { gap: 6px; padding: 10px; border-radius: 12px; }
  .guided-step[data-step="3"] .guided-google-review-profile { gap: 6px; }
  .guided-step[data-step="3"] .guided-review-avatar { width: 30px; height: 30px; font-size: 9px; }
  .guided-step[data-step="3"] .guided-review-person strong { font-size: 0.6875rem; }
  .guided-step[data-step="3"] .guided-review-controls button { width: 26px; height: 26px; }
  .guided-step[data-step="3"] .guided-google-mark { font-size: 11px; }
  .guided-step[data-step="3"] .guided-review-stars { height: 11px; font-size: 11px; }
  .guided-step[data-step="3"] .guided-google-review-card blockquote { font-size: 0.6875rem; line-height: 1.35; }
  .guided-step[data-step="3"] .guided-offer {
    grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.4fr);
    gap: 16px;
    margin-top: 0;
    padding: 14px 16px;
  }
  .guided-step[data-step="3"] .guided-value-promise-copy strong { font-size: 1.125rem; line-height: 1.05; }
  .guided-step[data-step="3"] .guided-offer ul { gap: 7px; }
  .guided-step[data-step="3"] .guided-offer li { gap: 4px; font-size: 0.6875rem; line-height: 1.3; }
  .guided-step[data-step="3"] .guided-offer li svg { width: 11px; height: 11px; }
  .guided-step[data-step="3"] .guided-actions {
    gap: 14px;
    padding-top: 20px;
  }
}

/* The completed Support view gains a multi-line availability message once a
   property and category are selected. On short laptop viewports, remove only
   the already-completed progress tracker so the confirmation and CTA remain
   visible together. */
@media (min-width: 768px) and (max-height: 820px) {
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) .guided-progress {
    display: none;
  }
}

/* Narrow desktop panels on short laptop viewports have only enough room for
   the property input and the action. Keep the illustration as a larger-screen
   accent here rather than letting it compete with the address control. */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 800px) {
  .guided-panel { padding: 16px clamp(28px, 4vw, 36px) 12px; }
  .guided-brand img { width: 112px; }
  .guided-progress { margin: 10px 0 18px; }
  .guided-step[data-step="1"] h1 { font-size: 2rem; line-height: 1.04; }
  .guided-step[data-step="1"] .guided-intro {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.42;
  }
  .guided-step[data-step="1"] .guided-field {
    gap: 6px;
    margin-top: 20px;
  }
  .guided-step[data-step="1"] .guided-actions {
    flex: 0 0 auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding-top: 16px;
  }
  .guided-step[data-step="1"] .guided-actions::before { display: none; }
  .guided-step[data-step="1"] .guided-concept-note { padding: 9px 12px; }
  .guided-step[data-step="1"] .guided-concept-note p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
}

/* Keep the full Request step visible on common laptop and desktop heights.
   Only step two adopts this denser rhythm: step one keeps its more spacious
   introduction, while very short or narrow viewports retain safe scrolling. */
@media (min-width: 1200px) and (min-height: 820px) and (max-height: 1100px) {
  .guided-panel:has(.guided-step[data-step="2"]:not([hidden])) {
    padding-block: 18px 12px;
  }

  .guided-panel:has(.guided-step[data-step="2"]:not([hidden])) .guided-brand img {
    width: 116px;
  }

  .guided-panel:has(.guided-step[data-step="2"]:not([hidden])) .guided-progress {
    margin: 12px 0 24px;
  }

  .guided-step[data-step="2"] .guided-step-scroll {
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .guided-step[data-step="2"] .guided-back {
    min-height: 36px;
    margin-bottom: 8px;
  }

  .guided-step[data-step="2"] .guided-kicker {
    margin-bottom: 6px;
    font-size: 0.6875rem;
  }

  .guided-step[data-step="2"] h1 {
    max-width: none;
    font-size: clamp(1.75rem, 2.3vw, 2.125rem);
    line-height: 1.02;
    white-space: nowrap;
  }

  .guided-step[data-step="2"] .guided-intro {
    margin-top: 10px;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .guided-step[data-step="2"] .guided-category-chips {
    gap: 6px;
    margin-top: 12px;
  }

  .guided-step[data-step="2"] .guided-category-chip {
    min-height: 38px;
    gap: 7px;
    padding: 6px 10px;
    font-size: 0.6875rem;
  }

  .guided-step[data-step="2"] .guided-category-chip-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .guided-step[data-step="2"] .guided-description-field {
    gap: 4px;
    margin-top: 12px;
  }

  .guided-step[data-step="2"] .guided-description-field label {
    font-size: 0.75rem;
  }

  .guided-step[data-step="2"] textarea {
    min-height: 88px;
    max-height: 88px;
    padding: 10px 13px;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .guided-step[data-step="2"] .guided-field-message {
    min-height: 14px;
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  .guided-step[data-step="2"] .guided-field-message:empty {
    display: none;
  }

  .guided-step[data-step="2"] .guided-actions {
    gap: 8px;
    padding-top: 12px;
  }

  .guided-step[data-step="2"] .guided-concept-note {
    gap: 4px;
    padding: 10px 14px;
  }

  .guided-step[data-step="2"] .guided-concept-note strong {
    font-size: 0.625rem;
  }

  .guided-step[data-step="2"] .guided-concept-note p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .guided-step[data-step="2"] .guided-primary {
    min-height: 48px;
    padding-block: 11px;
  }

  .guided-panel:has(.guided-step[data-step="2"]:not([hidden])) .guided-trust-note {
    margin-top: 4px;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) {
    padding-block: 12px 8px;
  }
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) .guided-brand img {
    width: 104px;
  }
  .guided-panel:has(.guided-step[data-step="3"]:not([hidden])) .guided-progress {
    display: none;
  }
  .guided-step[data-step="3"] .guided-back { margin-top: 8px; }
  .guided-step[data-step="3"] .guided-kicker { margin-bottom: 4px; }
  .guided-step[data-step="3"] h1 { font-size: 2rem; }
  .guided-step[data-step="3"] .guided-edit-summary { margin-top: 4px; }
  .guided-step[data-step="3"] .guided-network-proof {
    gap: 8px;
    margin-top: 8px;
    padding: 8px 0;
  }
  .guided-step[data-step="3"] .guided-proof-mark { width: 32px; height: 32px; }
  .guided-step[data-step="3"] .guided-proof-mark svg { width: 20px; height: 20px; }
  .guided-step[data-step="3"] .guided-network-proof h2 { font-size: 1rem; }
  .guided-step[data-step="3"] .guided-network-proof p {
    margin-top: 2px;
    font-size: 0.6875rem;
    line-height: 1.35;
  }
  .guided-step[data-step="3"] .guided-review-carousel {
    gap: 4px;
    margin-top: 8px;
  }
  .guided-step[data-step="3"] .guided-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .guided-step[data-step="3"] .guided-google-review-card {
    height: 88px;
    min-height: 0;
    aspect-ratio: auto;
    gap: 3px;
    padding: 6px;
    border-radius: 10px;
  }
  .guided-step[data-step="3"] .guided-google-review-profile { gap: 4px; }
  .guided-step[data-step="3"] .guided-review-avatar { width: 24px; height: 24px; }
  .guided-step[data-step="3"] .guided-review-person strong { font-size: 9px; }
  .guided-step[data-step="3"] .guided-review-stars { height: 10px; font-size: 10px; }
  .guided-step[data-step="3"] .guided-google-review-card blockquote {
    font-size: 8px;
    line-height: 1.25;
    -webkit-line-clamp: 3;
  }
  .guided-step[data-step="3"] .guided-offer {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 12px;
  }
  .guided-step[data-step="3"] .guided-value-promise-copy {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .guided-step[data-step="3"] .guided-value-promise-copy strong { font-size: 11px; }
  .guided-step[data-step="3"] .guided-value-promise-copy strong br { display: none; }
  .guided-step[data-step="3"] .guided-offer ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }
  .guided-step[data-step="3"] .guided-offer li { font-size: 7px; }
  .guided-step[data-step="3"] .guided-actions {
    gap: 8px;
    padding-top: 8px;
  }
  .guided-step[data-step="3"] .guided-primary { min-height: 44px; padding-block: 8px; }
}

@media (max-width: 767px) {
  .guided-onboarding { display: block; background: #F2F5F8; }
  .guided-panel {
    min-height: 100dvh;
    width: 100%;
    overflow-y: auto;
    padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    box-shadow: none;
  }
  .guided-map-shield { display: none; }
  html.guided-entry .map-container,
  .guided-onboarding-active .map-container { visibility: hidden; }
  .guided-brand { align-items: flex-start; gap: 12px; }
  .guided-brand img { width: clamp(104px, 30vw, 120px); }
  .guided-brand-actions { gap: 0; }
  .guided-auth-links { gap: 2px; }
  .guided-auth-link { min-height: 36px; padding-inline: 7px; font-size: 0.625rem; }
  .guided-auth-link-primary { padding-inline: 10px; }
  .guided-signed-in-links { gap: 4px; }
  .guided-signed-in-links .guided-auth-link-primary { padding-inline: 7px; font-size: 0.5625rem; }
  .guided-member-points { min-height: 32px; gap: 4px; padding-right: 7px; font-size: 0.5625rem; }
  .guided-member-points-mark { width: 21px; height: 21px; font-size: 0.4375rem; }
  .guided-member-points strong { font-size: 0.6875rem; }
  .guided-member-points-pending { font-size: 0.4375rem; }
  .guided-progress { margin: 26px 0 34px; }
  .guided-step h1 { max-width: 13ch; font-size: clamp(32px, 10vw, 44px); }
  .guided-intro { margin-top: 14px; }
  .guided-concept-note {
    gap: 6px;
    margin-top: 0;
    padding: 14px 16px;
  }
  .guided-concept-note strong { font-size: 0.6875rem; }
  .guided-concept-note p { font-size: 0.9375rem; line-height: 1.55; }
  .guided-field { margin-top: 28px; }
  .guided-step[data-step="1"] .guided-actions {
    grid-template-rows: minmax(160px, 1fr) auto auto;
  }
  .guided-step[data-step="1"] .guided-actions::before {
    min-height: 160px;
  }
  .guided-category-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guided-category-chip { width: 100%; justify-content: flex-start; padding-inline: 10px; font-size: 10.5px; }
  .guided-category-chip-label { white-space: normal; line-height: 1.2; text-align: left; }
  .guided-network-proof { padding-block: 24px; }
  .guided-review-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .guided-google-review-card {
    width: min(76vw, 240px);
    flex: 0 0 min(76vw, 240px);
    scroll-snap-align: start;
  }
  .guided-google-review-card blockquote {
    font-size: 11px;
    -webkit-line-clamp: 8;
  }
  .guided-offer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .guided-value-promise-copy strong { font-size: 22px; }
  .guided-offer ul { grid-template-columns: 1fr; gap: 7px; }
  .guided-offer li { font-size: 10px; }
}

@media (max-width: 370px) {
  .guided-panel { padding-inline: 16px; }
  .guided-brand:has(.guided-signed-in-links:not([hidden])) { gap: 6px; }
  .guided-brand:has(.guided-signed-in-links:not([hidden])) img { width: 96px; }
  .guided-progress-step { min-width: 52px; }
  .guided-progress-step strong { font-size: 9px; }
  .guided-step[data-step="1"] .guided-actions {
    grid-template-rows: minmax(120px, 1fr) auto auto;
  }
  .guided-step[data-step="1"] .guided-actions::before { min-height: 120px; }
}

/* Tablet-width touch browsers often expose a short CSS viewport once their
   address and tab bars are accounted for. Recompose the guided journey for
   that context so the primary action stays visible without shrinking touch
   targets or hiding any customer input. */
@media (min-width: 480px) and (max-width: 767px) and (min-height: 650px) {
  .guided-panel {
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 12px 22px 8px;
  }

  .guided-brand img { width: 100px; }

  .guided-progress {
    margin: 8px 0 12px;
  }

  .guided-progress-step {
    min-width: 52px;
    gap: 3px;
  }

  .guided-progress-step span {
    width: 24px;
    height: 24px;
    font-size: 0.6875rem;
  }

  .guided-progress-step strong { font-size: 0.625rem; }
  .guided-progress-line { margin-top: 12px; }

  .guided-step h1 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.04;
  }

  .guided-kicker {
    margin-bottom: 5px;
    font-size: 0.625rem;
  }

  .guided-intro {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .guided-field {
    gap: 4px;
    margin-top: 12px;
  }

  .guided-address-control {
    min-height: 52px;
    border-radius: 14px;
  }

  .guided-field-message:empty { display: none; }

  .guided-actions {
    gap: 6px;
    padding-top: 8px;
  }

  .guided-step[data-step="1"] .guided-actions {
    grid-template-rows: minmax(88px, 1fr) auto auto;
  }

  .guided-step[data-step="1"] .guided-actions::before {
    min-height: 88px;
    background-size: contain;
  }

  .guided-concept-note {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .guided-concept-note strong {
    font-size: 0.5625rem;
    line-height: 1.25;
  }

  .guided-concept-note p {
    font-size: 0.71875rem;
    line-height: 1.35;
  }

  .guided-primary {
    min-height: 48px;
    padding-block: 10px;
  }

  .guided-trust-note {
    margin-top: 4px;
    font-size: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .guided-step[data-step="2"] .guided-step-scroll {
    min-height: 0;
    overflow-y: visible;
  }

  .guided-step[data-step="2"] .guided-back {
    min-height: 44px;
    margin-bottom: 2px;
  }

  .guided-step[data-step="2"] .guided-kicker { display: none; }

  .guided-step[data-step="2"] .guided-category-chips {
    gap: 4px;
    margin-top: 8px;
  }

  .guided-step[data-step="2"] .guided-category-chip {
    min-height: 44px;
    gap: 6px;
    padding: 6px 9px;
    font-size: 0.625rem;
  }

  .guided-step[data-step="2"] .guided-category-chip-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .guided-step[data-step="2"] .guided-description-field {
    gap: 4px;
    margin-top: 8px;
  }

  .guided-step[data-step="2"] textarea {
    min-height: 56px;
    max-height: 56px;
    padding: 8px 10px;
    font-size: 0.8125rem;
    line-height: 1.3;
    resize: none;
  }

  .guided-step[data-step="2"] .guided-field-message {
    min-height: 0;
    font-size: 0.625rem;
  }

  .guided-step[data-step="2"] .guided-actions {
    gap: 6px;
    padding-top: 6px;
  }

  .guided-step[data-step="2"] .guided-concept-note {
    gap: 8px;
    padding-block: 7px;
  }

  .guided-step[data-step="3"] .guided-back {
    min-height: 44px;
    margin-bottom: 2px;
  }

  .guided-step[data-step="3"] .guided-edit-summary { margin-top: 6px; }

  .guided-step[data-step="3"] .guided-network-proof {
    gap: 10px;
    margin-top: 8px;
    padding: 9px 0;
  }

  .guided-step[data-step="3"] .guided-proof-mark {
    width: 36px;
    height: 36px;
  }

  .guided-step[data-step="3"] .guided-proof-mark svg {
    width: 22px;
    height: 22px;
  }

  .guided-step[data-step="3"] .guided-network-proof h2 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .guided-step[data-step="3"] .guided-network-proof p {
    margin-top: 3px;
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .guided-step[data-step="3"] .guided-review-carousel {
    gap: 6px;
    margin-top: 8px;
  }

  .guided-step[data-step="3"] .guided-review-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .guided-step[data-step="3"] .guided-review-grid::-webkit-scrollbar { display: none; }

  .guided-step[data-step="3"] .guided-google-review-card {
    width: calc((100% - 8px) / 2);
    height: 112px;
    min-height: 112px;
    aspect-ratio: auto;
    flex: 0 0 calc((100% - 8px) / 2);
    gap: 4px;
    padding: 8px;
    border-radius: 11px;
  }

  .guided-step[data-step="3"] .guided-google-review-profile { gap: 5px; }
  .guided-step[data-step="3"] .guided-review-avatar { width: 26px; height: 26px; }
  .guided-step[data-step="3"] .guided-review-person strong { font-size: 0.625rem; }
  .guided-step[data-step="3"] .guided-review-stars { height: 10px; font-size: 10px; }
  .guided-step[data-step="3"] .guided-google-mark { font-size: 10px; }

  .guided-step[data-step="3"] .guided-google-review-card blockquote {
    font-size: 0.59375rem;
    line-height: 1.3;
    -webkit-line-clamp: 4;
  }

  .guided-step[data-step="3"] .guided-actions {
    gap: 6px;
    padding-top: 6px;
  }

  .guided-step[data-step="3"] .guided-offer {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.7fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .guided-step[data-step="3"] .guided-value-promise-copy strong {
    font-size: 0.9375rem;
    line-height: 1.05;
  }

  .guided-step[data-step="3"] .guided-offer ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .guided-step[data-step="3"] .guided-offer li {
    gap: 3px;
    font-size: 0.5625rem;
    line-height: 1.25;
  }

  .guided-step[data-step="3"] .guided-offer li svg {
    width: 10px;
    height: 10px;
  }
}

/* Use the extra height on taller touch viewports to keep the Pathway proof
   comfortably readable instead of leaving a large unstructured gap. */
@media (min-width: 480px) and (max-width: 767px) and (min-height: 720px) {
  .guided-step[data-step="3"] .guided-network-proof {
    padding-block: 11px;
  }

  .guided-step[data-step="3"] .guided-google-review-card {
    height: 136px;
    min-height: 136px;
    padding: 10px;
  }

  .guided-step[data-step="3"] .guided-google-review-card blockquote {
    font-size: 0.65625rem;
    line-height: 1.35;
    -webkit-line-clamp: 5;
  }

  .guided-step[data-step="3"] .guided-offer {
    padding: 11px 12px;
  }

  .guided-step[data-step="3"] .guided-value-promise-copy strong {
    font-size: 1rem;
  }

  .guided-step[data-step="3"] .guided-offer li {
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guided-panel,
  .guided-map-shield,
  .guided-step,
  .guided-progress-step span,
  .guided-category-chip,
  .guided-primary {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Map Area (Full Bleed) */
.app-main { width: 100%; height: 100%; }
.map-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
#map { width: 100%; height: 100%; }

/* Header - Branded Overlay */
.app-header {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1400px; min-height: var(--header-height);
  background: linear-gradient(135deg, rgba(13, 31, 61, 0.96), rgba(27, 59, 111, 0.94));
  border-radius: 28px;
  box-shadow: 0 24px 60px -24px rgba(13, 31, 61, 0.58);
  border: 1px solid rgba(255,255,255,0.08);
  color: white; padding: 14px 28px; display: flex; align-items: center; z-index: 1001;
}
.header-content { display: grid; grid-template-columns: minmax(240px, 320px) minmax(280px, 1fr) auto; align-items: center; width: 100%; gap: 20px; }
.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
}
.brand-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: transparent;
}

/* Search Bar */
.search-container { display: flex; max-width: 520px; width: 100%; position: relative; margin: 0; justify-self: center; }
.search-container input {
  width: 100%; padding: 14px 48px 14px 20px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.1); color: white;
  font-size: 15px; outline: none; font-family: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-container input::placeholder { color: rgba(255,255,255,0.58); }
.search-container input:focus {
  background: rgba(255,255,255,0.14); border-color: rgba(184,225,50,0.4);
  box-shadow: 0 0 0 4px rgba(184,225,50,0.12);
}
.search-container button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.68); cursor: pointer; transition: color 0.2s;
}
.search-container button:hover { color: var(--accent); }
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Quick filter row */
.quick-filter-bar {
  position: absolute;
  top: 146px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  z-index: 1000;
}
.quick-filter-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}
.quick-filter-copy {
  width: 320px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 59, 111, 0.08);
  box-shadow: 0 14px 28px -18px rgba(27, 59, 111, 0.22);
}
.quick-filter-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.quick-filter-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 34ch;
}
.quick-filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 8px;
  scrollbar-width: none;
}
.quick-filter-chips::-webkit-scrollbar { display: none; }
.quick-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 59, 111, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 24px -18px rgba(27, 59, 111, 0.22);
}
.quick-filter-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--chip-accent, var(--primary));
}
.quick-filter-chip-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}
.quick-filter-chip-label {
  white-space: nowrap;
}
.quick-filter-chip:hover {
  transform: translateY(-1px);
  background: white;
  border-color: rgba(27, 59, 111, 0.18);
}
.quick-filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 12px 24px -14px rgba(13, 31, 61, 0.5);
}
.quick-filter-chip.active .quick-filter-chip-icon {
  color: currentColor;
}

/* Sidebar - Floating Panel */
.sidebar-filters {
  position: absolute; top: 224px; left: calc(50% - 700px);
  width: 320px;
  background: var(--bg-filter); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 26px; box-shadow: 0 28px 60px -28px rgba(27, 59, 111, 0.28);
  border: 1px solid rgba(27, 59, 111, 0.1); overflow: hidden; padding: 20px;
  display: flex; flex-direction: column; gap: 18px; z-index: 1000;
}
@media (max-width: 1448px) { .sidebar-filters { left: 24px; } }

.filter-header-mobile { display: none; }
.sidebar-intro {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(237, 240, 247, 0.95), rgba(246, 247, 251, 0.95));
  border: 1px solid rgba(27, 59, 111, 0.08);
}
.sidebar-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.sidebar-intro h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.sidebar-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sidebar-trust-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(27, 59, 111, 0.06);
  color: var(--primary);
  border: 1px solid rgba(27, 59, 111, 0.08);
  font-size: 10px;
  font-weight: 800;
}
.mobile-results-count {
  display: none;
}
.filter-group h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; color: var(--primary-deep); letter-spacing: -0.02em; }
.filter-helper-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.checkbox-label {
  display: flex; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; gap: 10px;
  padding: 9px 12px; border-radius: 14px; transition: all 0.2s; border: 1px solid transparent;
  background: rgba(255,255,255,0.78); color: var(--text-primary);
}
.checkbox-label:hover { background: white; border-color: rgba(27, 59, 111, 0.12); }
.checkbox-label input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

/* Pulse Dots */
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; position: relative; }
.dot-available { background: var(--status-available); box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.dot-available::after {
  content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%; border: 2px solid var(--status-available); opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.dot-unavailable { background: var(--status-unavailable); }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Base Buttons & Inputs */
.custom-select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 12px;
  font-family: inherit; font-size: 14px; background-color: rgba(255,255,255,0.86); outline: none;
  margin-bottom: 12px; transition: all 0.2s; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.custom-select:hover, .custom-select:focus { background-color: white; border-color: rgba(15, 23, 42, 0.2); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); }

.primary-btn, .secondary-btn, .outline-btn {
  padding: 12px 20px; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
}
.btn-full { width: 100%; }
.primary-btn { background: var(--accent); color: var(--primary-deep); box-shadow: 0 10px 20px -8px rgba(184, 225, 50, 0.45); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -8px rgba(184, 225, 50, 0.55); }
.secondary-btn { background-color: white; color: var(--primary); border: 1px solid var(--border-color); box-shadow: 0 6px 12px -6px rgba(27, 59, 111, 0.14); }
.secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(27, 59, 111, 0.18); }
.outline-btn { background-color: transparent; color: var(--primary); border: 1px solid rgba(27, 59, 111, 0.18); width: 100%; padding: 11px 16px; font-size: 14px; }
.outline-btn:hover { background-color: white; color: var(--primary-deep); border-color: rgba(27, 59, 111, 0.28); }

/* Overlays */
.state-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-filter); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s; border-radius: 24px;
}
.state-overlay.hidden { display: none; opacity: 0; pointer-events: none; }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(27, 59, 111, 0.12); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state-card {
  width: min(560px, calc(100% - 48px));
  padding: 12px 8px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.empty-state-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.58);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}

.empty-state-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.empty-state-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

.empty-state-text {
  margin: 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* Floating Radius Control */
.floating-radius-control { position: absolute; top: 212px; right: calc(50% - 700px); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 18px; box-shadow: 0 18px 42px -20px rgba(27, 59, 111, 0.32); border: 1px solid rgba(27, 59, 111, 0.12); display: flex; align-items: center; padding: 6px; z-index: 1000; }
@media (max-width: 1448px) { .floating-radius-control { right: 24px; } }
@media (max-width: 1024px) { .floating-radius-control { top: 196px; right: 20px; } }
@media (max-width: 768px) { .floating-radius-control { top: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 16px; right: auto; } }

/* Floating Filters FAB — mobile only */
.mobile-filter-fab { display: none; }

/* Mobile search result chip — hidden on desktop, slides in below header on mobile */
.mobile-search-chip {
    display: none; /* shown only on mobile via media query + JS .visible class */
}
@media (max-width: 768px) {
    .mobile-search-chip {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-60px);
        z-index: 1200;
        background: rgba(15, 23, 42, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: white;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        padding: 8px 18px;
        border-radius: 50px;
        white-space: nowrap;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
        opacity: 0;
    }
    .mobile-search-chip.visible {
        /* header: top 16px + ~56px auto height + 8px gap = ~80px; +24px for iPhone status bar env */
        transform: translateX(-50%) translateY(104px);
        opacity: 1;
    }
    .mobile-search-chip.found  { background: rgba(27, 59, 111, 0.92); }
    .mobile-search-chip.empty  { background: rgba(180, 83, 9, 0.92); }
}
.floating-icon-btn { background: transparent; border: none; padding: 10px; cursor: pointer; color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: all 0.2s; }
.floating-icon-btn:hover { background: rgba(27, 59, 111, 0.05); color: var(--primary-deep); }
.vertical-divider { width: 1px; height: 24px; background: var(--border-color); margin: 0 4px; }
.floating-select { background: transparent; border: none; padding: 10px 32px 10px 12px; font-weight: 700; color: var(--primary); font-family: inherit; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B3B6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; border-radius: 12px; transition: all 0.2s; }
.floating-select:hover { background-color: rgba(27, 59, 111, 0.05); }

/* Leaflet Overrides for 100k Look */
.leaflet-popup-content-wrapper { background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-radius: 22px; box-shadow: 0 24px 48px -12px rgba(27, 59, 111, 0.2); padding: 4px; border: 1px solid rgba(27, 59, 111, 0.08); }
.leaflet-popup-tip { background: rgba(255,255,255,0.95); }
.leaflet-popup-content { margin: 16px; line-height: 1.5; }
.popup-header { margin-bottom: 12px; }
.popup-header h3 { font-size: 18px; color: var(--primary); margin: 0 0 4px 0; }
.popup-services { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.popup-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; background: rgba(27, 59, 111, 0.06); border-radius: 12px; margin-bottom: 16px; color: var(--primary-deep); }
.popup-actions { display: flex; gap: 8px; }
.popup-btn { flex: 1; padding: 10px; font-size: 14px; border-radius: 10px; cursor: pointer; border: none; font-weight: 600; text-align: center; transition: all 0.2s; }
.popup-btn-primary { background: var(--accent); color: var(--primary-deep); box-shadow: 0 8px 16px rgba(184, 225, 50, 0.26); }
.popup-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(184, 225, 50, 0.32); }
.popup-btn-secondary { background: rgba(27, 59, 111, 0.08); color: var(--primary); }
.popup-btn-secondary:hover { background: rgba(27, 59, 111, 0.12); }

/* Custom Map Markers */
.custom-pin {
  position: relative !important;
  overflow: visible !important;
}
.custom-pin svg { filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.25)); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.custom-pin:hover svg, .custom-pin.leaflet-marker-icon:focus svg { transform: scale(1.1) translateY(-3px); filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.35)); z-index: 1000 !important; }
.custom-pin.onboarding-pulse,
.custom-pin.onboarding-pulse-secondary {
  z-index: 950 !important;
}
.custom-pin.onboarding-pulse::after,
.custom-pin.onboarding-pulse-secondary::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(23, 50, 95, 0.8);
  box-shadow: 0 0 0 8px rgba(23, 50, 95, 0.14);
  transform: translate(-50%, -62%);
  pointer-events: none;
}
.custom-pin.onboarding-pulse::after {
  animation: map-marker-pulse 1.9s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.custom-pin.onboarding-pulse-secondary::after {
  animation: map-marker-pulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.35s;
}
.custom-pin.onboarding-pulse svg,
.custom-pin.onboarding-pulse-secondary svg {
  animation: map-marker-attention 2s ease-in-out infinite;
}
.user-location-pin svg { filter: drop-shadow(0 8px 12px rgba(59, 130, 246, 0.4)); animation: gently-bob 3s ease-in-out infinite; }
@keyframes gently-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes map-marker-attention {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.25));
  }
  40% {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 14px 20px rgba(23, 50, 95, 0.34));
  }
  60% {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 12px 18px rgba(23, 50, 95, 0.26));
  }
}
@keyframes map-marker-pulse {
  0% { transform: translate(-50%, -62%) scale(0.76); opacity: 0.85; }
  100% { transform: translate(-50%, -62%) scale(1.8); opacity: 0; }
}

.marker-onboarding {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 8px));
  z-index: 1010;
  display: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(23, 50, 95, 0.94);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px -20px rgba(16, 34, 67, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.marker-onboarding.visible {
  display: block;
  transform: translate(-50%, -50%);
}
.marker-onboarding::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, rgba(23, 50, 95, 0.65), transparent);
  transform: translateX(-50%);
}
.marker-onboarding-text {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: white;
}

/* Leaflet Zoom Control Position Adjustment */
.leaflet-control-zoom { border: none !important; box-shadow: 0 8px 16px rgba(27, 59, 111, 0.12) !important; margin-bottom: 24px !important; margin-right: 24px !important;}
.leaflet-control-zoom-in, .leaflet-control-zoom-out { background: rgba(255,255,255,0.94) !important; backdrop-filter: blur(8px); border-color: rgba(27,59,111,0.1) !important; color: var(--primary) !important;  }
.leaflet-control-zoom-in { border-top-left-radius: 12px !important; border-top-right-radius: 12px !important; }
.leaflet-control-zoom-out { border-bottom-left-radius: 12px !important; border-bottom-right-radius: 12px !important; }

/* Modal 100k Aesthetics */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 3200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in 0.3s ease-out; }
.modal-overlay.hidden { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-container { background: white; border-radius: 32px; width: 100%; max-width: 540px; max-height: 90vh; box-shadow: 0 40px 80px -20px rgba(13, 31, 61, 0.3); position: relative; display: flex; flex-direction: column; overflow: hidden; animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slide-up { from { transform: translateY(40px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.site-links-button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.site-links-button:hover { opacity: 0.8; }
.site-links-button:focus-visible { outline: 2px solid rgba(255,255,255,0.85); outline-offset: 4px; border-radius: 6px; }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(15, 23, 42, 0.05); border: none; font-size: 24px; color: var(--text-secondary); cursor: pointer; z-index: 10; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: rgba(15, 23, 42, 0.1); color: var(--primary); transform: scale(1.05); }
.modal-content { display: flex; flex: 1 1 auto; min-height: 0; }
.modal-content-scroll { flex: 1 1 auto; min-height: 0; padding: 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.terms-modal-container { max-width: 640px; }
.terms-modal-content { padding-right: 56px; }
.terms-modal-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #2f6fed; }
.terms-modal-title { margin: 0 0 18px; font-size: clamp(1.8rem, 2.2vw, 2.3rem); line-height: 1.05; color: #172033; }
.terms-modal-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: #334155; line-height: 1.65; }
.terms-modal-note { margin: 24px 0 0; padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(47,111,237,0.08), rgba(47,111,237,0.03)); border: 1px solid rgba(47,111,237,0.12); color: #243248; line-height: 1.7; }

/* Map results summary */
.map-results-card {
  position: absolute;
  left: calc(50% - 700px);
  bottom: 24px;
  z-index: 1000;
  width: 320px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(27, 59, 111, 0.1);
  box-shadow: 0 20px 44px -26px rgba(27, 59, 111, 0.28);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.results-count { font-weight: 800; color: var(--primary-deep); }

/* Modal Inner Classes */
.modal-hero { display: flex; gap: 24px; margin-bottom: 28px; align-items: center; }
.modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.modal-trade-icon {
  width: 80px; height: 80px; border-radius: 24px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -6px rgba(13, 31, 61, 0.3);
  color: white;
}
.modal-title { font-size: 26px; color: var(--primary); margin-bottom: 6px; letter-spacing: -0.5px; }
.modal-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 10px; }
.modal-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #F59E0B; background: rgba(245, 158, 11, 0.1); padding: 4px 10px; border-radius: 10px; font-size: 14px; }
.modal-info-card { background: linear-gradient(180deg, rgba(237, 240, 247, 0.88), rgba(255, 255, 255, 0.95)); padding: 20px; border-radius: 20px; margin-bottom: 24px; border: 1px solid rgba(27, 59, 111, 0.08); }
.modal-status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 16px; color: var(--primary); }
.modal-services { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.modal-services strong, .modal-zones strong { color: var(--primary); display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
.modal-zones { font-size: 14px; color: var(--text-secondary); }

/* Tag chips — trade sub-category labels on profile card */
.tag-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag-chip {
  background: rgba(27, 59, 111, 0.08); color: var(--primary);
  border: 1px solid rgba(27, 59, 111, 0.15);
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
}

/* Zone badges — service area labels on profile card */
.zone-badges-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.zone-badge {
  background: rgba(15, 23, 42, 0.05); color: var(--secondary);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500;
}

.modal-bio { margin-top: 0; font-size: 15px; color: var(--text-secondary); line-height: 1.6; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.modal-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .app-header { width: calc(100% - 32px); top: 16px; border-radius: 22px; padding: 18px 20px; }
  .header-content { grid-template-columns: 1fr; }
  .search-container { max-width: 100%; width: 100%; justify-self: stretch; }
  .mobile-toggle { display: none !important; }
  .quick-filter-bar { top: 206px; width: calc(100% - 32px); }
  .quick-filter-inner { grid-template-columns: 1fr; }
  .sidebar-filters { top: 336px; left: 16px; }
  .map-results-card { left: 16px; bottom: 24px; }
}
@media (max-width: 768px) {
  .app-main { padding-top: 0; }
  .app-header { width: calc(100% - 24px); top: 12px; padding: 16px; min-height: 0; }
  .header-content {
    grid-template-columns: minmax(128px, 158px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .brand-lockup { align-items: center; }
  .brand-logo { width: 96px; }
  .search-container {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }
  .quick-filter-bar {
    top: 128px;
    width: calc(100% - 24px);
  }
  .quick-filter-copy { display: none; }
  .quick-filter-inner { grid-template-columns: 1fr; }
  .quick-filter-chips { padding: 4px 6px 10px 0; gap: 8px; }
  .mobile-filter-fab {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: 1100;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 26px -10px rgba(13, 31, 61, 0.55);
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
  }
  .mobile-filter-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(13, 31, 61, 0.62); }
  .sidebar-filters { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-height: 100vh; overflow-y: auto; border-radius: 0; border-top-right-radius: 32px; border-bottom-right-radius: 32px; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 20px 0 40px rgba(13, 31, 61, 0.24); z-index: 2000; }
  .sidebar-filters.open { transform: translateX(0); }
  .filter-header-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
  .filter-header-mobile h2 { font-size: 20px; color: var(--primary-deep); }
  #close-mobile-filters { background: rgba(27, 59, 111, 0.05); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .mobile-results-count {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(27, 59, 111, 0.08);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--primary-deep);
  }
  .floating-radius-control {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: auto;
    z-index: 1100;
  }
  .map-results-card { display: none; }
  .marker-onboarding {
    top: 50%;
    max-width: calc(100% - 32px);
  }
  .marker-onboarding-text {
    white-space: nowrap;
    text-align: center;
  }
  .leaflet-control-zoom {
    margin-right: 16px !important;
    margin-bottom: 144px !important;
  }
  .site-links-banner {
    padding: 0 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
  }
  .site-links-pill {
    width: min(100%, 420px);
    padding: 8px 14px;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .header-content {
    grid-template-columns: minmax(108px, 138px) minmax(0, 1fr);
    gap: 10px;
  }
  .brand-logo { width: 88px; }
  .search-container input {
    padding: 12px 40px 12px 14px;
    font-size: 12px;
  }
  .search-container button { right: 10px; }
  .quick-filter-bar { top: 116px; width: calc(100% - 16px); }
  .quick-filter-chip { padding: 9px 12px; font-size: 12px; }
  .search-container { margin: 0; max-width: 100%; }
  .floating-radius-control {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 12px;
  }
  .marker-onboarding {
    top: 50%;
    max-width: calc(100% - 24px);
  }
  .mobile-filter-fab {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    padding: 12px 18px;
  }
  .site-links-banner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-links-pill {
    width: 100%;
    justify-content: center;
  }
  .leaflet-control-zoom { margin-right: 12px !important; margin-bottom: 132px !important; }
  .modal-overlay {
    align-items: flex-end;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .modal-container {
    width: 100%;
    max-width: none;
    height: min(88dvh, 820px);
    max-height: min(88dvh, 820px);
    border-radius: 28px 28px 0 0;
  }
  .modal-close {
    top: 14px;
    right: 14px;
  }
  .modal-content-scroll {
    padding: 22px 20px 28px;
  }
  .modal-hero {
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .modal-trade-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
  .modal-title {
    font-size: 22px;
    line-height: 1.02;
  }
  .modal-subtitle {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .modal-info-card {
    padding: 16px;
    margin-bottom: 18px;
  }
  .modal-bio {
    font-size: 14px;
    line-height: 1.55;
    padding-bottom: 18px;
  }
  .modal-actions {
    margin-top: 18px;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.92) 24%, rgba(255,255,255,1) 48%);
  }
}

/* Accessibility */
:focus-visible { outline: 3px solid rgba(184, 225, 50, 0.5); outline-offset: 4px; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* Bottom Links Bar */
.site-links-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px 12px;
  background: transparent;
  pointer-events: none;
}
.site-links-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background-color: rgba(243, 247, 228, 0.96);
  color: #3F5112;
  text-align: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 130, 0.08);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
}
.site-links-banner a {
  color: #234982;
  text-decoration: none;
}
.site-links-banner a:hover,
.site-links-banner a:focus-visible {
  text-decoration: underline;
}
