:root {
  --primary: #087c7c;
  --primary-dark: #075e61;
  --blue: #2563eb;
  --green: #16834a;
  --amber: #b56a04;
  --red: #c92a2a;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --soft: #f7fafc;
  --surface: #ffffff;
  --teal-soft: #e4f6f3;
  --blue-soft: #e8f0ff;
  --green-soft: #e8f7ee;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  --shadow-soft: 0 8px 24px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
a {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links a,
.nav-cta {
  color: var(--ink);
  text-decoration: none;
}

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

.brand img {
  display: block;
  width: 210px;
  height: auto;
}

.trust-strip span,
.results-toolbar span,
footer span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  color: #344054;
  font-weight: 700;
}

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

.nav-cta,
.search-panel button,
.primary-action,
.admin-board button,
.compare-panel button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(8, 124, 124, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 56px) 36px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 46%, rgba(228, 246, 243, 0.8) 100%);
}

.hero-commercial {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 52%, rgba(232, 240, 255, 0.62) 100%),
    radial-gradient(circle at 8% 18%, rgba(8, 124, 124, 0.10), transparent 34%);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--primary-dark);
  background: var(--teal-soft);
  border: 1px solid #b8e5dc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  color: #344054;
  font-size: 1.2rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
}

.hero-copy > p {
  max-width: 760px;
  color: #475467;
  font-size: 1.16rem;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.95fr auto;
  gap: 12px;
  max-width: 980px;
  margin-top: 28px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.commercial-search {
  grid-template-columns: 1.05fr 1fr 1fr auto;
  border: 1px solid rgba(8, 124, 124, 0.18);
  box-shadow: 0 18px 48px rgba(8, 124, 124, 0.14);
}

.search-panel label,
.filters label,
dialog label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 800;
}

.search-panel input,
.search-panel select,
.filters input,
.filters select,
dialog input,
dialog textarea,
.results-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.search-panel button {
  align-self: end;
  min-height: 48px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-actions button,
.provider-tags span,
.card-meta span,
.match-badge,
.sponsor-label,
.verify-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 8px 12px;
  font-weight: 800;
}

.quick-actions button {
  cursor: pointer;
}

.quick-actions button.active {
  color: var(--primary-dark);
  background: var(--teal-soft);
  border-color: #9ad8ce;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 20px;
}

.hero-proof div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-proof strong {
  display: block;
  font-size: 1.35rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 440px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.18);
}

.floating-card strong {
  display: block;
  color: var(--green);
  font-size: 1.55rem;
}

.premium-card {
  width: min(350px, calc(100% - 36px));
}

.card-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--line);
}

.trust-strip div {
  padding: 22px;
  background: #fff;
}

.trust-strip strong {
  display: block;
  font-size: 1.55rem;
}

section:not(.hero) {
  padding: 72px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.72fr);
  gap: 24px;
  align-items: end;
  max-width: none;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters,
.results-area,
.dashboard,
.admin-board article,
.workflow article,
dialog form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.filter-header,
.results-toolbar,
.provider-top,
.card-actions,
.compare-panel,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-header h3 {
  margin-bottom: 0;
}

.filter-header button,
.card-actions button,
.dash-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
}

fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: #344054;
  font-weight: 900;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.results-area {
  padding: 18px;
}

.results-area,
.filters {
  box-shadow: var(--shadow-soft);
}

.results-toolbar {
  margin-bottom: 16px;
}

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

.provider-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.provider-card:hover {
  border-color: rgba(8, 124, 124, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.provider-card.featured {
  border-color: #99d4cb;
  box-shadow: 0 12px 30px rgba(8, 124, 124, 0.12);
}

.provider-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.provider-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.provider-name h3 {
  margin-bottom: 0;
}

.provider-name small {
  color: var(--muted);
}

.match-badge {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b8e7c9;
}

.sponsor-label {
  color: #7a4a00;
  background: #fff7e8;
  border-color: #f5cf8c;
}

.verify-label {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c8d8ff;
}

.card-meta,
.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.provider-tags span {
  font-size: 0.84rem;
}

.provider-card p {
  color: #475467;
  margin-bottom: 0;
}

.provider-card p + p {
  margin-top: -8px;
}

.card-actions button:first-child {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.card-actions button.saved {
  color: var(--primary-dark);
  background: var(--teal-soft);
  border-color: #9ad8ce;
}

.database-table-shell {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.database-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.database-table-heading h3 {
  margin-bottom: 2px;
}

.database-table-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.provider-data-table {
  min-width: 920px;
  font-size: 0.92rem;
}

.provider-data-table th {
  color: #344054;
  background: #f7fafc;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.provider-data-table td {
  color: #475467;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.pagination-controls button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-controls span {
  color: var(--muted);
  font-weight: 800;
}

.commercial-band {
  background: #fff;
}

.compare-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9;
  width: min(520px, calc(100vw - 44px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(150%);
}

.compare-panel.visible {
  transform: translateY(0);
}

.workflow,
.admin-board,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow article,
.admin-board article,
.pricing-grid article {
  padding: 22px;
}

.workflow span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
  margin-bottom: 16px;
}

.provider-section {
  background: #eef7f6;
}

.dashboard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #f2f7fb;
  border-right: 1px solid var(--line);
}

.dash-tab.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.dashboard-main {
  padding: 20px;
  min-height: 330px;
}

.dash-content {
  display: none;
}

.dash-content.active {
  display: block;
}

.dash-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dash-summary div {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dash-summary strong {
  display: block;
  font-size: 1.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 900;
}

.status-green {
  color: var(--green);
  background: var(--green-soft);
}

.status-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-amber {
  color: var(--amber);
  background: #fff7e8;
}

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

.check-list label {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 10px;
}

.capacity-grid button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.analytics-bars {
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 220px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-bars span {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 90px;
  height: var(--height);
  min-height: 64px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px 8px 0 0;
}

.pricing-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pricing-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
}

.pricing-grid .highlight {
  border-color: #9ad8ce;
  background: var(--teal-soft);
}

.admin-section {
  background: #fff;
}

.admin-board button {
  margin-top: 8px;
}

dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 32, 51, 0.5);
}

dialog form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  box-shadow: none;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: start;
  gap: 10px;
}

footer {
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
  flex-wrap: wrap;
}

footer span {
  color: #d0d5dd;
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .hero,
  .search-panel,
  .app-shell,
  .dashboard,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .filters {
    position: static;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: auto;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .trust-strip,
  .hero-proof,
  .workflow,
  .admin-board,
  .pricing-grid,
  .dash-summary {
    grid-template-columns: 1fr;
  }

  .results-toolbar,
  .provider-top,
  .card-actions,
  .compare-panel,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-sidebar {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capacity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Commercial redesign v2 */
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px clamp(18px, 4vw, 56px);
  color: #e6fffb;
  background: #075e61;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
}

.hero-commercial {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  min-height: calc(100vh - 108px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(7, 32, 45, 0.96) 0%, rgba(8, 94, 97, 0.92) 48%, rgba(23, 32, 51, 0.12) 100%),
    url("assets/hero-support.png") center right / cover no-repeat;
}

.hero-commercial::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(247, 250, 252, 0.98));
  pointer-events: none;
}

.hero-commercial .hero-copy,
.hero-commercial .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-commercial .hero-visual {
  min-height: 520px;
}

.hero-commercial .hero-visual img {
  opacity: 0;
}

.hero-commercial h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 6.4rem);
  line-height: 0.96;
}

.hero-commercial .hero-lead {
  max-width: 760px;
  color: #d9f7f4;
  font-size: 1.26rem;
}

.hero-commercial .eyebrow {
  color: #d9f7f4;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.commercial-search {
  max-width: 1060px;
  padding: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.commercial-search label {
  color: #172033;
}

.commercial-search button {
  background: #16a34a;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.28);
}

.hero-commercial .quick-actions button {
  color: #e6fffb;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-proof div {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-proof span {
  color: #d9f7f4;
}

.attention-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: #d9e8ed;
}

.attention-strip article {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 3px solid transparent;
}

.attention-strip article:nth-child(1) {
  border-bottom-color: var(--primary);
}

.attention-strip article:nth-child(2) {
  border-bottom-color: var(--blue);
}

.attention-strip article:nth-child(3) {
  border-bottom-color: var(--green);
}

.attention-strip strong {
  color: #0f172a;
  font-size: 1rem;
}

.attention-strip span {
  color: #475467;
  font-size: 0.9rem;
  line-height: 1.45;
}

.premium-card {
  right: auto;
  left: 20px;
  bottom: 36px;
  background: rgba(255, 255, 255, 0.96);
}

.trust-strip-commercial {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  background: transparent;
}

.trust-strip-commercial div {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.search-experience {
  background: #f7fafc;
}

.app-shell {
  grid-template-columns: 340px minmax(0, 1fr);
}

.filters {
  border-top: 4px solid var(--primary);
}

.results-toolbar {
  padding: 4px 0 18px;
}

.provider-card {
  border-top: 4px solid transparent;
}

.provider-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.provider-card:nth-child(3n + 1) {
  border-top-color: var(--primary);
}

.provider-card:nth-child(3n + 2) {
  border-top-color: var(--blue);
}

.provider-card:nth-child(3n + 3) {
  border-top-color: var(--green);
}

.provider-logo {
  background: linear-gradient(135deg, var(--primary), var(--blue));
}

.provider-commercial {
  background:
    linear-gradient(120deg, #eef7f6 0%, #ffffff 55%, #e8f0ff 100%);
}

.dashboard {
  border: 0;
  box-shadow: 0 22px 60px rgba(23, 32, 51, 0.12);
}

.pricing-grid .highlight {
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 124, 124, 0.14);
}

.admin-section {
  background: #fbfdff;
}

.admin-board article {
  border-top: 4px solid var(--primary);
}

footer {
  align-items: flex-start;
  background: #0f172a;
}

@media (max-width: 1100px) {
  .hero-commercial {
    background:
      linear-gradient(110deg, rgba(7, 32, 45, 0.96), rgba(8, 94, 97, 0.9)),
      url("assets/hero-support.png") center / cover no-repeat;
  }

  .hero-commercial .hero-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    gap: 2px;
  }

  .hero-commercial h1 {
    font-size: clamp(2.45rem, 13vw, 4.4rem);
  }
}

/* Cards-only marketplace update */
.provider-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.provider-card {
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.attention-badges,
.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attention-badges span {
  padding: 5px 8px;
  color: #064e3b;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.attention-badges span:first-child {
  color: #0f172a;
  background: #fef9c3;
  border-color: #fde68a;
}

.contact-highlights span {
  padding: 5px 8px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.provider-logo {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.provider-name h3 {
  font-size: 1rem;
  line-height: 1.22;
}

.provider-name small,
.provider-card p,
.card-meta span,
.provider-tags span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.card-meta,
.provider-tags {
  gap: 6px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.card-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-pagination button {
  min-width: 118px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.card-pagination button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #eef2f6;
  border-color: #e4e7ec;
}

.card-pagination span {
  min-width: 120px;
  text-align: center;
  color: #344054;
  font-weight: 900;
}

.hidden-api-hooks {
  display: none !important;
}

.filters fieldset {
  padding-top: 12px;
}

.filters legend {
  color: #0f172a;
  font-weight: 900;
}

/* Premium search options box */
.premium-filters {
  gap: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
}

.premium-filter-header {
  align-items: flex-start;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, #0f766e 0%, #155e75 55%, #1d4ed8 100%);
}

.premium-filter-header h3 {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.premium-filter-header p {
  max-width: 240px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.42;
}

.filter-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-filter-header button {
  color: #0f172a;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.filter-card {
  margin: 0 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.filter-card:last-child {
  margin-bottom: 14px;
}

.filter-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-row-title span,
.state-card > span {
  color: #344054;
  font-size: 0.84rem;
  font-weight: 900;
}

.filter-row-title strong {
  padding: 4px 8px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.82rem;
}

.distance-card input[type="range"] {
  accent-color: var(--primary);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
}

.state-card {
  gap: 9px;
}

.state-card select {
  min-height: 42px;
  background-color: #f8fafc;
  font-weight: 800;
}

.filter-group {
  display: grid;
  gap: 11px;
}

.filter-group legend {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 0.88rem;
}

.filter-group legend::after {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 10px;
  background: #e4e7ec;
}

.filter-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-group .filter-chips {
  grid-template-columns: 1fr;
}

.filter-chips label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  cursor: pointer;
}

.filter-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.filter-chips span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.filter-chips span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-right: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.filter-chips input:checked + span {
  color: #064e3b;
  background: #ecfdf5;
  border-color: #7dd3bc;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
}

.filter-chips input:checked + span::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.filter-chips input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .premium-filters {
    position: static;
  }

  .attention-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .filter-chips {
    grid-template-columns: 1fr;
  }

  .premium-filter-header {
    flex-direction: column;
  }

  .premium-filter-header button {
    width: 100%;
  }
}

/* Search mode tabs */
.search-tabs {
  display: flex;
  align-items: stretch;
  width: min(860px, calc(100% - clamp(36px, 8vw, 112px)));
  margin: 0 auto 0;
  padding: 5px;
  background: #edf4f6;
  border: 1px solid #d8e5ea;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.search-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search-tab:hover {
  background: rgba(255, 255, 255, 0.72);
}

.search-tab span:last-child {
  display: grid;
  gap: 0;
}

.search-tab strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.search-tab small {
  display: none;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.tab-index {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #667085;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  font-size: 0.72rem;
}

.search-tab.active {
  color: #fff;
  background: #0f766e;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(8, 89, 97, 0.22);
}

.search-tab.active strong,
.search-tab.active small {
  color: #fff;
}

.search-tab.active .tab-index {
  color: #0f172a;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.tabbed-search-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.search-panels {
  min-width: 0;
}

.search-mode-panel {
  display: none;
}

.search-mode-panel.active {
  display: block;
}

.simple-search-card,
.plan-match-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
}

.search-panels {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
}

.search-panels .simple-search-card,
.search-panels .plan-match-card,
.search-panels .premium-filters {
  border: 0;
  box-shadow: none;
}

.simple-search-heading {
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 55%, #1d4ed8 100%);
}

.simple-search-heading h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.simple-search-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.simple-search-form,
.plan-match-card .plan-upload-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.commercial-simple-form {
  grid-template-columns: minmax(220px, 1.7fr) minmax(120px, 0.7fr) minmax(160px, 1fr) minmax(120px, 0.7fr) auto;
  align-items: end;
}

.simple-search-form label,
.plan-match-card label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 900;
}

.simple-search-form input,
.simple-search-form select,
.plan-match-card input,
.plan-match-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #101828;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.simple-search-form button,
.plan-actions button:first-child {
  min-height: 44px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.search-panel-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.search-panel-proof span {
  padding: 7px 10px;
  color: #075985;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

#panel-advanced .premium-filters {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 14px;
  border-top: 0;
}

#panel-advanced .premium-filter-header {
  grid-column: 1 / -1;
  min-height: auto;
}

#panel-advanced .filter-card {
  margin: 0;
}

#panel-advanced .filter-group {
  align-content: start;
}

#panel-advanced .filter-chips {
  grid-template-columns: 1fr;
}

.plan-upload-box {
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #9cc9d3;
  border-radius: 8px;
}

.plan-upload-box span {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.4;
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.plan-actions button {
  min-height: 42px;
}

.plan-insights {
  display: grid;
  gap: 5px;
  margin: 0 16px 16px;
  padding: 12px;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
}

.plan-insights strong {
  color: #064e3b;
}

.plan-insights span {
  color: #166534;
  font-size: 0.84rem;
  line-height: 1.4;
}

.plan-disclaimer {
  display: grid;
  gap: 4px;
  margin: 0 16px 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.plan-disclaimer span {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-disclaimer p {
  margin: 0;
  color: #475467;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .search-tabs {
    width: calc(100% - clamp(36px, 8vw, 112px));
  }

  .commercial-simple-form,
  #panel-advanced .premium-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .search-tabs {
    flex-direction: column;
    border-bottom: 1px solid #d8e5ea;
    border-radius: 8px;
  }

  .search-tab {
    justify-content: flex-start;
  }

  .commercial-simple-form,
  #panel-advanced .premium-filters,
  .plan-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }

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

  .card-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .card-pagination button,
  .card-pagination span {
    width: 100%;
  }
}

/* Left search / right results layout */
.tabbed-search-shell {
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  align-items: start;
}

.search-side {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.search-side .search-tabs {
  width: 100%;
  margin: 0;
}

.search-side .search-tab {
  min-height: 44px;
  padding: 8px 10px;
}

.search-side .search-tab strong {
  font-size: 0.86rem;
}

.search-side .tab-index {
  display: none;
}

.search-side .search-panels {
  border-radius: 0 0 8px 8px;
}

.search-side .simple-search-heading,
.search-side .premium-filter-header {
  padding: 15px;
}

.search-side .commercial-simple-form,
.search-side #panel-advanced .premium-filters,
.search-side .plan-match-card .plan-upload-grid {
  grid-template-columns: 1fr;
}

.search-side #panel-advanced .premium-filters {
  gap: 10px;
  padding-bottom: 12px;
}

.search-side .filter-card {
  padding: 12px;
}

.search-side .filter-chips {
  grid-template-columns: 1fr;
}

.search-side .simple-search-form,
.search-side .plan-match-card .plan-upload-grid {
  padding: 14px;
}

.search-side .search-panel-proof {
  padding: 0 14px 14px;
}

.search-side .plan-actions {
  padding: 0 14px 14px;
}

.search-side .plan-insights,
.search-side .plan-disclaimer {
  margin-inline: 14px;
}

.tabbed-search-shell .results-area {
  min-width: 0;
}

@media (max-width: 760px) {
  .tabbed-search-shell {
    grid-template-columns: 1fr;
  }

  .search-side {
    position: static;
  }
}

/* Final enforced desktop layout: search left, results right */
@media (min-width: 761px) {
  .tabbed-search-shell {
    display: grid !important;
    grid-template-columns: 380px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 18px !important;
  }

  .tabbed-search-shell > .search-side {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tabbed-search-shell > .results-area {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .search-side .search-tabs {
    display: flex !important;
    width: 100% !important;
  }

  .search-side .search-panels {
    width: 100% !important;
  }
}


/* Search left rail polish + independent scroll
   Keeps results on the right while the left search box scrolls inside its own panel. */
@media (min-width: 761px) {
  .tabbed-search-shell {
    grid-template-columns: 400px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .tabbed-search-shell > .search-side {
    position: sticky !important;
    top: 104px !important;
    max-height: calc(100vh - 124px) !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    padding: 0 8px 0 0 !important;
    border-radius: 14px !important;
  }

  .tabbed-search-shell > .search-side::-webkit-scrollbar {
    width: 10px;
  }

  .tabbed-search-shell > .search-side::-webkit-scrollbar-track {
    background: #eef4f7;
    border-radius: 999px;
  }

  .tabbed-search-shell > .search-side::-webkit-scrollbar-thumb {
    background: #b8cbd3;
    border: 2px solid #eef4f7;
    border-radius: 999px;
  }

  .tabbed-search-shell > .search-side::-webkit-scrollbar-thumb:hover {
    background: #8ba7b2;
  }

  .search-side .search-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: grid !important;
    gap: 8px !important;
    padding: 10px !important;
    background: #f7fafc !important;
    border: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08) !important;
  }

  .search-side .search-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 12px 14px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 12px !important;
    background: #fff !important;
    text-align: left !important;
  }

  .search-side .search-tab.active {
    color: #fff !important;
    background: linear-gradient(135deg, #087c7c 0%, #075e61 58%, #2563eb 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(8, 124, 124, 0.22) !important;
  }

  .search-side .search-tab.active strong,
  .search-side .search-tab.active small {
    color: #fff !important;
  }

  .search-side .search-tab small {
    display: block !important;
    margin-top: 2px !important;
    color: #667085 !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
  }

  .search-side .search-panels {
    overflow: visible !important;
    border: 1px solid var(--line) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 46px rgba(23, 32, 51, 0.10) !important;
  }

  .search-side .search-mode-panel.active {
    display: block !important;
  }

  .search-side .simple-search-card,
  .search-side .plan-match-card,
  .search-side .premium-filters {
    border: 0 !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: none !important;
  }

  .search-side .simple-search-heading,
  .search-side .premium-filter-header {
    padding: 18px !important;
  }

  .search-side .commercial-simple-form,
  .search-side #panel-advanced .premium-filters,
  .search-side .plan-match-card .plan-upload-grid {
    grid-template-columns: 1fr !important;
  }

  .search-side .commercial-simple-form label,
  .search-side .filter-card,
  .search-side .plan-upload-box,
  .search-side .plan-upload-grid label {
    border-radius: 12px !important;
  }

  .search-side .filter-card {
    margin: 0 14px !important;
    padding: 14px !important;
    background: #fbfdff !important;
    border: 1px solid #e4ebf1 !important;
  }

  .search-side .filter-card + .filter-card,
  .search-side .filter-card + fieldset,
  .search-side fieldset + fieldset {
    margin-top: 10px !important;
  }

  .search-side .filter-chips {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .search-side .filter-chips label {
    padding: 9px 10px !important;
    background: #fff !important;
    border: 1px solid #e4ebf1 !important;
    border-radius: 10px !important;
  }

  .search-side .simple-search-form,
  .search-side .plan-match-card .plan-upload-grid {
    padding: 16px !important;
  }

  .search-side .search-panel-proof,
  .search-side .plan-actions {
    padding: 0 16px 16px !important;
  }

  .search-side .plan-insights,
  .search-side .plan-disclaimer {
    margin: 0 16px 16px !important;
  }

  .tabbed-search-shell > .results-area {
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  .tabbed-search-shell > .search-side {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .search-side .search-tabs {
    display: grid !important;
    gap: 8px !important;
  }
}


/* Full website redesign v3: hero without search + full-height left search column */
:root {
  --search-column-width: 392px;
  --header-offset: 92px;
}

body {
  background:
    linear-gradient(180deg, #f4f8fb 0%, #eef5f7 46%, #f7fafc 100%);
}

.topbar {
  padding: 8px clamp(16px, 3vw, 44px);
  background: #063f42;
}

.site-header {
  top: 0;
  padding: 12px clamp(16px, 3vw, 44px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-commercial {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 102px);
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(48, 213, 200, 0.32), transparent 34%),
    linear-gradient(125deg, rgba(4, 31, 42, 0.98) 0%, rgba(6, 63, 66, 0.96) 52%, rgba(10, 111, 112, 0.86) 100%);
  overflow: hidden;
}

.hero-commercial::before {
  content: "";
  position: absolute;
  inset: 36px 34px auto auto;
  width: min(40vw, 520px);
  height: min(40vw, 520px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
  pointer-events: none;
}

.hero-commercial::after {
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(244, 248, 251, 0.98));
}

.hero-commercial h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-commercial .hero-lead {
  max-width: 780px;
  color: #d7fffb;
  font-size: clamp(1.14rem, 1.55vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions .primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
}

.hero-actions .primary-action {
  color: #063f42;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.secondary-action {
  color: #e6fffb;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.hero-commercial .hero-proof {
  max-width: 760px;
  margin-top: 34px;
}

.hero-commercial .hero-proof div {
  padding: 18px;
  border-radius: 18px;
}

.hero-commercial .hero-visual {
  display: grid;
  align-items: end;
  min-height: 520px;
}

.hero-commercial .hero-visual img {
  opacity: 1;
  min-height: 500px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.hero-commercial .premium-card {
  left: -18px;
  right: auto;
  bottom: 28px;
  width: min(390px, calc(100% - 22px));
  border-radius: 24px;
}

.search-experience {
  padding: 0 !important;
  background: #eef5f7;
}

.search-heading-redesign {
  margin: 0;
  padding: 46px clamp(18px, 4vw, 56px) 24px;
}

.tabbed-search-shell {
  display: grid !important;
  grid-template-columns: var(--search-column-width) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: calc(100vh - var(--header-offset));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f7fafc;
}

.search-side {
  position: sticky !important;
  top: var(--header-offset) !important;
  z-index: 8;
  align-self: start;
  width: var(--search-column-width);
  height: calc(100vh - var(--header-offset)) !important;
  max-height: calc(100vh - var(--header-offset)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 14px 0 34px rgba(15, 23, 42, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 124, 124, 0.58) #eef5f7;
}

.search-side::-webkit-scrollbar {
  width: 10px;
}

.search-side::-webkit-scrollbar-track {
  background: #eef5f7;
}

.search-side::-webkit-scrollbar-thumb {
  background: rgba(8, 124, 124, 0.58);
  border: 2px solid #eef5f7;
  border-radius: 999px;
}

.search-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.search-tab {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 72px;
  width: 100%;
  padding: 15px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  text-align: left;
}

.search-tab.active {
  color: #063f42 !important;
  background: linear-gradient(90deg, #e4f6f3 0%, #ffffff 100%) !important;
  box-shadow: inset 5px 0 0 var(--primary);
}

.search-tab .tab-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #075e61;
  background: #e4f6f3;
  font-size: 0.78rem;
  font-weight: 950;
}

.search-tab small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.25;
}

.search-panels {
  padding: 0 !important;
  background: #ffffff;
}

.search-mode-panel {
  display: none;
}

.search-mode-panel.active {
  display: block !important;
}

.simple-search-card,
.filters,
.premium-filters {
  width: 100%;
  min-height: calc(100vh - var(--header-offset) - 217px);
  margin: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.simple-search-heading,
.premium-filter-header {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfdff;
}

.simple-search-heading h3,
.premium-filter-header h3 {
  margin-bottom: 4px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.simple-search-heading p,
.premium-filter-header p {
  margin-bottom: 0;
  color: #667085;
  font-size: 0.92rem;
}

.commercial-simple-form,
.filters {
  display: grid;
  gap: 12px !important;
}

.commercial-simple-form label,
.filter-card,
.filters .filter-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 16px !important;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.filter-card-title,
.filter-card > span:first-child,
.commercial-simple-form label {
  color: #263246;
  font-size: 0.88rem;
  font-weight: 900;
}

.search-panel input,
.search-panel select,
.filters input,
.filters select,
.commercial-simple-form input,
.commercial-simple-form select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d7e1ea;
  background: #f9fbfd;
  color: #172033;
}

.commercial-simple-form button,
.filters button[type="submit"],
#clear-filters,
.location-actions button {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 900;
}

.commercial-simple-form button {
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: calc(100% + 36px);
  margin: 6px -18px -18px;
  border-radius: 0;
  padding: 16px;
  background: var(--primary);
}

.premium-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#clear-filters {
  flex: 0 0 auto;
  border: 1px solid #cfe0e7;
  background: #ffffff;
  color: #075e61;
  padding: 10px 12px;
}

.advanced-location-card {
  border-color: rgba(8, 124, 124, 0.22) !important;
  background: linear-gradient(180deg, #f1fbf9 0%, #ffffff 100%) !important;
}

.advanced-location-card label {
  display: grid;
  gap: 7px;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.location-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.location-actions button {
  border: 0;
  color: #ffffff;
  background: #087c7c;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 124, 124, 0.18);
}

.location-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#gps-status {
  display: block;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-chips {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.filter-chips label,
fieldset label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px !important;
  border: 1px solid #dbe5ed;
  border-radius: 12px;
  background: #f9fbfd;
  color: #344054;
  font-weight: 800;
}

.filter-chips input {
  width: 18px !important;
  min-height: auto !important;
  height: 18px;
  accent-color: var(--primary);
}

legend {
  margin-bottom: 8px;
  color: #172033;
  font-size: 0.94rem;
  font-weight: 950;
}

.search-panel-proof {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.search-panel-proof span {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #075e61;
  background: #e4f6f3;
  font-size: 0.84rem;
  font-weight: 900;
}

.results-area {
  min-width: 0;
  min-height: calc(100vh - var(--header-offset));
  padding: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #f7fafc;
}

.results-toolbar {
  position: sticky;
  top: var(--header-offset);
  z-index: 4;
  margin: -24px -24px 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.96);
  backdrop-filter: blur(14px);
}

.provider-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 18px !important;
}

.provider-card {
  border-radius: 22px;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.provider-logo {
  border-radius: 16px;
}

.card-actions {
  align-items: stretch;
}

.card-actions button {
  border-radius: 12px;
}

@media (max-width: 1100px) {
  :root {
    --search-column-width: 100%;
    --header-offset: 78px;
  }

  .hero-commercial {
    grid-template-columns: 1fr;
  }

  .hero-commercial .hero-visual {
    min-height: 360px;
  }

  .tabbed-search-shell {
    grid-template-columns: 1fr !important;
  }

  .search-side {
    position: relative !important;
    top: auto !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-right: 0;
  }

  .search-tabs {
    position: static;
  }

  .simple-search-card,
  .filters,
  .premium-filters {
    min-height: 0;
  }

  .results-toolbar {
    top: 0;
  }
}

@media (max-width: 760px) {
  .hero-commercial {
    padding: 42px 18px;
  }

  .hero-commercial h1 {
    font-size: clamp(2.55rem, 15vw, 4.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-action,
  .secondary-action {
    width: 100%;
  }

  .search-heading-redesign {
    padding: 34px 18px 18px;
  }

  .results-area {
    padding: 16px !important;
  }

  .results-toolbar {
    margin: -16px -16px 16px;
    padding: 16px;
  }
}


/* Update 1B: professional commercial search access layout */
:root {
  --hub-navy: #081827;
  --hub-navy-2: #102a43;
  --hub-teal: #087c7c;
  --hub-teal-bright: #10b3a3;
  --hub-green: #16a34a;
  --hub-border: #d8e3ea;
  --hub-panel: #ffffff;
  --hub-page: #f3f7fa;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-auth,
.solid-auth,
.secondary-action {
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  background: #fff;
  color: var(--hub-navy);
  cursor: pointer;
  font-weight: 900;
  padding: 11px 14px;
}

.solid-auth,
.primary-action {
  border-color: var(--hub-teal);
  color: #fff;
  background: var(--hub-teal);
}

.pro-hero {
  min-height: 640px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  background:
    radial-gradient(circle at 12% 12%, rgba(16,179,163,.24), transparent 28%),
    linear-gradient(135deg, #06131f 0%, #08273a 48%, #075e61 100%);
}

.pro-hero::after {
  display: none;
}

.pro-hero .hero-copy {
  max-width: 920px;
}

.pro-hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6.4vw, 6.8rem);
  letter-spacing: -0.06em;
}

.pro-hero .hero-lead {
  max-width: 760px;
  color: #d7eff0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.pro-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pro-hero .secondary-action {
  color: #ecfeff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
}

.hero-market-card {
  display: grid;
  align-items: center;
  min-height: 0;
}

.hero-market-card img,
.hero-market-card .floating-card {
  display: none;
}

.market-preview-card {
  padding: 30px;
  color: #fff;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}

.market-preview-card h2 {
  margin: 12px 0 18px;
  color: #fff;
  font-size: 2rem;
}

.preview-rows {
  display: grid;
  gap: 10px;
}

.preview-rows span {
  padding: 14px 16px;
  color: #e6fffb;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  font-weight: 850;
}

.search-experience {
  padding: 0 !important;
  background: var(--hub-page);
}

.search-command-heading {
  padding: 34px clamp(18px, 4vw, 56px) 22px;
  margin: 0;
}

.tabbed-search-shell {
  display: grid !important;
  grid-template-columns: 382px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  min-height: calc(100vh - 82px);
  border-top: 1px solid var(--hub-border);
  background: var(--hub-page);
}

.search-side {
  position: sticky !important;
  top: 82px !important;
  height: calc(100vh - 82px) !important;
  min-height: calc(100vh - 82px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  background: var(--hub-panel);
  border-right: 1px solid var(--hub-border);
  box-shadow: 18px 0 50px rgba(8,24,39,.08);
  scrollbar-width: thin;
  scrollbar-color: #9bb6c4 #eef4f7;
}

.search-side::-webkit-scrollbar {
  width: 9px;
}

.search-side::-webkit-scrollbar-track {
  background: #eef4f7;
}

.search-side::-webkit-scrollbar-thumb {
  background: #9bb6c4;
  border-radius: 999px;
}

.search-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--hub-border);
}

.search-tab {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 18px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  border-radius: 0;
  background: #fff;
  color: var(--hub-navy);
  text-align: left;
  cursor: pointer;
}

.search-tab.active {
  background: linear-gradient(90deg, #e7f8f6 0%, #fff 100%);
  box-shadow: inset 5px 0 0 var(--hub-teal);
}

.search-tab small {
  display: block;
  color: #607180;
  font-weight: 750;
}

.search-tab em {
  justify-self: end;
  padding: 5px 8px;
  color: #925100;
  background: #fff4de;
  border: 1px solid #ffd999;
  border-radius: 999px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.search-tab.is-unlocked em {
  color: #08723f;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.search-panels {
  padding: 0 !important;
}

.search-mode-panel {
  padding: 0;
}

.simple-search-card,
.plan-match-card,
.filters {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
}

.public-search-card,
.plan-match-card {
  padding: 22px 18px 0;
}

.simple-search-heading {
  margin-bottom: 16px;
}

.simple-search-heading h3 {
  margin: 6px 0 4px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.simple-search-heading p {
  margin: 0;
  color: #607180;
  font-weight: 650;
}

.commercial-simple-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.commercial-simple-form label,
.filters label,
.plan-match-card label {
  color: #263746;
  font-weight: 900;
}

.commercial-simple-form input,
.commercial-simple-form select,
.filters input,
.filters select,
.plan-match-card textarea {
  min-height: 52px;
  border-radius: 12px;
  border-color: #cddce5;
  background: #fbfdfe;
  font-weight: 700;
}

.commercial-simple-form button,
.plan-actions button,
.location-actions button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--hub-green);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(22,163,74,.20);
}

.unlock-strip {
  display: grid;
  gap: 8px;
  margin: 20px -18px 0;
  padding: 18px;
  background: #f1fbfa;
  border-top: 1px solid #ccefed;
}

.unlock-strip strong {
  color: var(--hub-navy);
}

.unlock-strip span {
  color: #526575;
  font-size: .92rem;
  font-weight: 700;
}

.unlock-strip button {
  margin-top: 4px;
  border: 1px solid #bfe8e4;
  border-radius: 12px;
  background: #fff;
  color: var(--hub-teal);
  cursor: pointer;
  font-weight: 950;
  padding: 12px;
}

.locked-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(8,124,124,.16), transparent 34%),
    #fff;
  border-bottom: 1px solid var(--hub-border);
}

.member-authed .locked-panel {
  display: none;
}

.member-only {
  display: none !important;
}

.member-authed .member-only {
  display: grid !important;
}

.lock-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #e7f8f6;
  font-size: 1.4rem;
}

.locked-panel h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.locked-panel p {
  margin: 0;
  color: #607180;
  font-weight: 700;
}

.locked-panel .primary-action,
.locked-panel .secondary-action {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.filters.premium-filters {
  position: static !important;
  display: grid;
  gap: 0 !important;
  padding: 0 !important;
}

.filter-header,
.filter-card {
  padding: 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f5 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.filter-group .filter-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.filter-chips label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  background: #f8fbfc;
  border: 1px solid #e2ebf0;
  border-radius: 12px;
}

.location-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.location-actions span {
  color: #607180;
  font-size: .86rem;
  font-weight: 750;
}

.results-area {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 38px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hub-page) !important;
  box-shadow: none !important;
}

.results-toolbar {
  position: sticky;
  top: 82px;
  z-index: 3;
  margin: -22px calc(clamp(18px, 3vw, 38px) * -1) 20px;
  padding: 18px clamp(18px, 3vw, 38px);
  background: rgba(243,247,250,.94);
  border-bottom: 1px solid var(--hub-border);
  backdrop-filter: blur(12px);
}

.provider-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 16px !important;
}

.public-provider-card {
  gap: 16px;
  border: 1px solid #dfe9ef;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(8,24,39,.07);
}

.provider-public-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.provider-public-top h3 {
  margin: 0;
  font-size: 1.08rem;
}

.provider-public-top small {
  color: #607180;
  font-weight: 800;
}

.public-services {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f7fbfc;
  border: 1px solid #e2ebf0;
  border-radius: 14px;
}

.public-services span {
  color: #607180;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.public-upgrade {
  min-height: 44px;
  border: 1px solid #bfe8e4;
  border-radius: 12px;
  color: var(--hub-teal);
  background: #f1fbfa;
  cursor: pointer;
  font-weight: 950;
}

.auth-form {
  max-width: 480px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-status {
  margin: 0;
  color: #b42318;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .tabbed-search-shell {
    grid-template-columns: 1fr !important;
  }

  .search-side {
    position: static !important;
    height: auto !important;
    min-height: 0;
    border-right: 0;
  }

  .results-toolbar {
    top: 0;
  }

  .pro-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ghost-auth,
  .solid-auth {
    flex: 1;
  }

  .pro-hero h1 {
    font-size: 3rem;
  }

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


/* Hotfix: use the entire left tab/search column for Simple Search.
   Removes the small-card feeling and stretches controls across the full panel. */
@media (min-width: 1101px) {
  .tabbed-search-shell {
    grid-template-columns: 410px minmax(0, 1fr) !important;
  }

  .search-side {
    top: 82px !important;
    height: calc(100vh - 82px) !important;
    min-height: calc(100vh - 82px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .search-side .search-tabs {
    flex: 0 0 auto !important;
  }

  .search-side .search-panels {
    flex: 1 1 auto !important;
    display: flex !important;
    min-height: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }

  .search-side .search-mode-panel.active {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  .search-side .public-search-card,
  .search-side .simple-search-card {
    min-height: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .search-side .simple-search-heading {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 20px 20px 18px !important;
    border-bottom: 1px solid #e5edf2 !important;
    background:
      linear-gradient(180deg, #fbfdff 0%, #ffffff 100%) !important;
  }

  .search-side .simple-search-heading .filter-kicker {
    margin-bottom: 10px !important;
  }

  .search-side .simple-search-heading h3 {
    font-size: 1.7rem !important;
    line-height: 1.05 !important;
  }

  .search-side .simple-search-heading p {
    max-width: none !important;
    font-size: .94rem !important;
    line-height: 1.45 !important;
  }

  .search-side .commercial-simple-form {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .search-side .commercial-simple-form label {
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1d2b3a !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
  }

  .search-side .commercial-simple-form input,
  .search-side .commercial-simple-form select {
    width: 100% !important;
    min-height: 56px !important;
    margin-top: 10px !important;
    border-radius: 14px !important;
    border: 1px solid #cfdde6 !important;
    background: #f7fafc !important;
    padding: 12px 14px !important;
    font-size: 1rem !important;
  }

  .search-side .commercial-simple-form button {
    margin: auto 0 0 !important;
    width: 100% !important;
    min-height: 64px !important;
    border-radius: 0 !important;
    padding: 18px 20px !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 5 !important;
    box-shadow: 0 -14px 30px rgba(8, 24, 39, .08) !important;
  }

  .search-side .unlock-strip {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 18px 20px 20px !important;
    border-top: 1px solid #ccefed !important;
    background: linear-gradient(180deg, #f1fbfa 0%, #e8f8f6 100%) !important;
  }

  .search-side .unlock-strip button {
    width: 100% !important;
    min-height: 48px !important;
  }
}

@media (max-width: 1100px) {
  .search-side .public-search-card,
  .search-side .simple-search-card {
    padding: 0 !important;
  }

  .search-side .simple-search-heading {
    margin: 0 !important;
    padding: 18px !important;
  }

  .search-side .commercial-simple-form {
    gap: 0 !important;
    padding: 0 !important;
  }

  .search-side .commercial-simple-form label {
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .search-side .commercial-simple-form button {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .search-side .unlock-strip {
    margin: 0 !important;
  }
}


/* Update 1C: make every search tab consume the full left search area */
@media (min-width: 1101px) {
  .tabbed-search-shell {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding-left: 0 !important;
    padding-right: clamp(18px, 4vw, 56px) !important;
  }

  .search-side {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.08) !important;
  }

  .search-side .search-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: #0f172a !important;
  }

  .search-side .search-tab {
    width: 100% !important;
    min-height: 72px !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 14px 18px !important;
    background: #111827 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
  }

  .search-side .search-tab + .search-tab {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }

  .search-side .search-tab.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f766e 0%, #155e75 52%, #1d4ed8 100%) !important;
  }

  .search-side .search-tab strong,
  .search-side .search-tab small {
    color: inherit !important;
  }

  .search-side .search-tab em {
    margin-left: auto !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    border-radius: 999px !important;
    padding: 4px 8px !important;
    color: #fef3c7 !important;
    font-size: 0.7rem !important;
    font-style: normal !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .search-side .search-panels {
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    scrollbar-width: thin;
  }

  .search-side .search-panels::-webkit-scrollbar {
    width: 10px;
  }

  .search-side .search-panels::-webkit-scrollbar-track {
    background: #f1f5f9;
  }

  .search-side .search-panels::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border: 2px solid #f1f5f9;
    border-radius: 999px;
  }

  .search-mode-panel,
  .search-mode-panel.active {
    min-height: 100% !important;
  }

  .search-mode-panel.active {
    display: block !important;
  }

  .search-side .simple-search-card,
  .search-side .public-search-card,
  .search-side .plan-match-card,
  .search-side .premium-filters,
  .search-side .locked-panel {
    width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .search-side .public-search-card,
  .search-side .plan-match-card,
  .search-side .premium-filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #ffffff !important;
  }

  .search-side .simple-search-heading,
  .search-side .premium-filter-header,
  .search-side .plan-match-card > .simple-search-heading {
    margin: 0 !important;
    padding: 22px 22px 18px !important;
    border-radius: 0 !important;
  }

  .search-side .commercial-simple-form,
  .search-side .plan-match-card form,
  .search-side .plan-match-card .plan-match-form {
    display: grid !important;
    gap: 14px !important;
    padding: 18px 22px !important;
    margin: 0 !important;
  }

  .search-side .commercial-simple-form label,
  .search-side .premium-filters label,
  .search-side .filter-card,
  .search-side .filter-group {
    width: 100% !important;
    margin: 0 !important;
  }

  .search-side .filter-card,
  .search-side .filter-group {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    box-shadow: none !important;
  }

  .search-side .filter-card + .filter-card,
  .search-side .filter-card + .filter-group,
  .search-side .filter-group + .filter-card,
  .search-side .filter-group + .filter-group {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .search-side input,
  .search-side select,
  .search-side textarea {
    width: 100% !important;
    min-height: 50px !important;
  }

  .search-side .commercial-simple-form button[type="submit"],
  .search-side .premium-filters button[type="submit"],
  .search-side .plan-match-card button[type="submit"] {
    width: 100% !important;
    min-height: 52px !important;
  }

  .search-side .unlock-strip,
  .search-side .locked-panel {
    margin: auto 0 0 !important;
    padding: 22px !important;
    border-radius: 0 !important;
  }

  .search-side .locked-panel {
    display: grid !important;
    align-content: center !important;
    gap: 14px !important;
    background:
      linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    text-align: left !important;
  }

  .search-side .member-only {
    margin: 0 !important;
  }

  .results-area {
    border-radius: 0 8px 8px 0 !important;
  }
}

@media (max-width: 1100px) {
  .tabbed-search-shell {
    padding-left: clamp(18px, 4vw, 56px) !important;
    padding-right: clamp(18px, 4vw, 56px) !important;
  }

  .search-side,
  .search-side .search-panels {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* v21: keep search controls on the left for desktop and laptop widths. */
@media (min-width: 761px) {
  .tabbed-search-shell {
    display: grid !important;
    grid-template-columns: 410px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    padding-left: clamp(18px, 4vw, 56px) !important;
    padding-right: clamp(18px, 4vw, 56px) !important;
  }

  .tabbed-search-shell > .search-side {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 82px !important;
    height: calc(100vh - 82px) !important;
    max-height: calc(100vh - 82px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .tabbed-search-shell > .results-area {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .tabbed-search-shell {
    grid-template-columns: 1fr !important;
  }

  .tabbed-search-shell > .search-side {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* v22: premium commercial redesign for the left search workspace. */
.search-side {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden !important;
}

.search-side-brand {
  padding: 20px 20px 18px !important;
  background:
    linear-gradient(135deg, rgba(8, 88, 91, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  color: #ffffff !important;
}

.search-brand-kicker {
  display: inline-flex !important;
  width: fit-content !important;
  margin-bottom: 10px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: #bff4ec !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.search-side-brand strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 1.3rem !important;
  line-height: 1.14 !important;
}

.search-side-brand p {
  margin: 8px 0 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

.search-brand-metrics {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

.search-brand-metrics span {
  display: grid !important;
  gap: 2px !important;
  min-height: 54px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

.search-brand-metrics b {
  color: #ffffff !important;
  font-size: 1.05rem !important;
}

.search-side .search-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 10px !important;
  background: #f3f7f8 !important;
  border-bottom: 1px solid #dfe8ec !important;
  z-index: 8 !important;
}

.search-side .search-tab {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  justify-items: center !important;
  min-height: 70px !important;
  padding: 10px 8px !important;
  border: 1px solid #d7e1e6 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #273549 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
  text-align: center !important;
}

.search-side .search-tab:hover {
  border-color: #0f766e !important;
  background: #f9fdfc !important;
}

.search-side .search-tab .tab-index {
  display: none !important;
}

.search-side .search-tab span:last-child {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.search-side .search-tab strong {
  color: inherit !important;
  font-size: 0.86rem !important;
  line-height: 1.1 !important;
}

.search-side .search-tab small {
  display: block !important;
  color: #667085 !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}

.search-side .search-tab em {
  margin: 5px 0 0 !important;
  padding: 3px 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff4d6 !important;
  color: #7a4b00 !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.search-side .search-tab.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24) !important;
}

.search-side .search-tab.active small,
.search-side .search-tab.active strong {
  color: #ffffff !important;
}

.search-side .search-tab.active em {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.search-side .search-panels {
  background: #ffffff !important;
}

.search-side .simple-search-heading,
.search-side .premium-filter-header,
.search-side .plan-match-card > .simple-search-heading {
  padding: 18px 20px !important;
  border-bottom: 1px solid #e7edf1 !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%) !important;
}

.search-side .filter-kicker,
.search-side .search-brand-kicker {
  letter-spacing: 0 !important;
}

.search-side .simple-search-heading h3,
.search-side .premium-filter-header h3,
.search-side .plan-match-card h3,
.search-side .locked-panel h3 {
  margin: 4px 0 0 !important;
  color: #111827 !important;
  font-size: 1.08rem !important;
  line-height: 1.25 !important;
}

.search-side .simple-search-heading p,
.search-side .premium-filter-header p,
.search-side .plan-match-card p,
.search-side .locked-panel p {
  margin: 6px 0 0 !important;
  color: #5f6f7f !important;
  font-size: 0.87rem !important;
  line-height: 1.48 !important;
}

.search-side .commercial-simple-form,
.search-side .plan-upload-grid,
.search-side .plan-match-card form,
.search-side .plan-match-card .plan-match-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
}

.search-side .commercial-simple-form label,
.search-side .plan-upload-box,
.search-side .plan-match-card label {
  display: grid !important;
  gap: 8px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid #edf2f5 !important;
  color: #344054 !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
}

.search-side input,
.search-side select,
.search-side textarea {
  min-height: 52px !important;
  border: 1px solid #cfd9df !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
  font-size: 0.95rem !important;
}

.search-side input:focus,
.search-side select:focus,
.search-side textarea:focus {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13) !important;
  outline: none !important;
}

.search-side .commercial-simple-form button[type="submit"],
.search-side .premium-filters button[type="submit"],
.search-side .plan-match-card button[type="submit"],
.search-side #match-plan-button {
  min-height: 54px !important;
  margin: 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22) !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.search-side .unlock-strip {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 18px !important;
  border-top: 1px solid #e7edf1 !important;
  border-radius: 0 !important;
  background: #f8fbfc !important;
}

.search-side .unlock-strip strong {
  color: #111827 !important;
  font-size: 0.95rem !important;
}

.search-side .unlock-strip span {
  color: #667085 !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.search-side .unlock-strip button,
.search-side .locked-panel button,
.search-side #clear-filters,
.search-side #find-location,
.search-side #clear-plan-button {
  min-height: 44px !important;
  border-radius: 9px !important;
  font-weight: 900 !important;
}

.search-side .premium-filters {
  background: #ffffff !important;
}

.search-side .premium-filter-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

.search-side #clear-filters {
  align-self: start !important;
  padding: 0 12px !important;
  border: 1px solid #d7e1e6 !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

.search-side .filter-card,
.search-side .filter-group {
  margin: 12px 14px 0 !important;
  padding: 15px !important;
  border: 1px solid #e2e8ee !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}

.search-side .filter-card:last-child,
.search-side .filter-group:last-child {
  margin-bottom: 14px !important;
}

.search-side .filter-card + .filter-card,
.search-side .filter-card + .filter-group,
.search-side .filter-group + .filter-card,
.search-side .filter-group + .filter-group {
  border-top: 1px solid #e2e8ee !important;
}

.search-side .filter-card-title,
.search-side .filter-card > span:first-child,
.search-side fieldset legend {
  color: #1f2937 !important;
  font-size: 0.86rem !important;
  font-weight: 950 !important;
}

.search-side .filter-chips {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.search-side .filter-chips label {
  padding: 0 !important;
  border: 0 !important;
}

.search-side .filter-chips input {
  position: absolute !important;
  opacity: 0 !important;
}

.search-side .filter-chips span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid #d7e1e6 !important;
  border-radius: 10px !important;
  background: #f9fbfc !important;
  color: #344054 !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
}

.search-side .filter-chips span::after {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #b9c6ce !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.search-side .filter-chips input:checked + span {
  border-color: rgba(15, 118, 110, 0.5) !important;
  background: #ecfdf8 !important;
  color: #075e61 !important;
}

.search-side .filter-chips input:checked + span::after {
  border-color: #0f766e !important;
  background:
    linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
  box-shadow: inset 0 0 0 4px #ffffff !important;
}

.search-side .location-actions,
.search-side .plan-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.search-side .locked-panel {
  min-height: 420px !important;
  padding: 30px 24px !important;
  background:
    linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%) !important;
  text-align: left !important;
}

.search-side .locked-panel .lock-icon {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: #fff4d6 !important;
  color: #7a4b00 !important;
  font-size: 0.7rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

@media (min-width: 761px) {
  .tabbed-search-shell > .search-side {
    scrollbar-width: thin !important;
  }
}

@media (max-width: 760px) {
  .search-side {
    border-radius: 12px !important;
  }

  .search-side-brand {
    padding: 18px !important;
  }

  .search-side .search-tabs {
    grid-template-columns: 1fr !important;
  }

  .search-side .search-tab {
    min-height: 58px !important;
  }
}

/* v23: make the left search bar use its full width without inset mini-containers. */
.search-side {
  background: #ffffff !important;
}

.search-side .search-side-brand,
.search-side .simple-search-heading,
.search-side .premium-filter-header,
.search-side .plan-match-card > .simple-search-heading,
.search-side .locked-panel,
.search-side .unlock-strip {
  border-radius: 0 !important;
}

.search-side .search-tabs {
  gap: 1px !important;
  padding: 0 !important;
  background: #dfe8ec !important;
}

.search-side .search-tab {
  min-height: 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.search-side .search-tab.active {
  box-shadow: inset 0 -4px 0 #bff4ec !important;
}

.search-side .search-panels,
.search-side .public-search-card,
.search-side .simple-search-card,
.search-side .plan-match-card,
.search-side .premium-filters,
.search-side .locked-panel {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.search-side .commercial-simple-form label,
.search-side .plan-upload-box,
.search-side .plan-match-card label,
.search-side .filter-card,
.search-side .filter-group {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7edf1 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.search-side .filter-card + .filter-card,
.search-side .filter-card + .filter-group,
.search-side .filter-group + .filter-card,
.search-side .filter-group + .filter-group {
  margin-top: 0 !important;
  border-top: 0 !important;
}

.search-side .commercial-simple-form label:hover,
.search-side .plan-upload-box:hover,
.search-side .filter-card:hover,
.search-side .filter-group:hover {
  background: #f8fbfc !important;
}

.search-side .commercial-simple-form button[type="submit"],
.search-side .premium-filters button[type="submit"],
.search-side .plan-match-card button[type="submit"],
.search-side #match-plan-button {
  width: calc(100% - 40px) !important;
  margin: 18px 20px !important;
}

.search-side .unlock-strip {
  margin: 0 !important;
  padding: 20px !important;
  border: 0 !important;
  border-top: 1px solid #e7edf1 !important;
  background: #f8fbfc !important;
}

.search-side .filter-chips {
  grid-template-columns: 1fr !important;
  gap: 1px !important;
  margin: 12px -20px -18px !important;
  background: #e7edf1 !important;
}

.search-side .filter-chips label {
  width: 100% !important;
}

.search-side .filter-chips span {
  min-height: 48px !important;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.search-side .filter-chips input:checked + span {
  background: #ecfdf8 !important;
  box-shadow: inset 4px 0 0 #0f766e !important;
}

.search-side .location-actions,
.search-side .plan-actions {
  margin-top: 10px !important;
}

.search-side .premium-filter-header {
  padding: 20px !important;
}

.search-side #clear-filters {
  border-radius: 8px !important;
}

.search-side .locked-panel {
  padding: 30px 20px !important;
}

@media (max-width: 760px) {
  .search-side .search-tabs {
    gap: 1px !important;
  }
}

/* v24: edge-to-edge left search panel and testing unlock state. */
.search-side,
.search-side * {
  box-sizing: border-box !important;
}

.search-side .search-panels,
.search-side .search-mode-panel,
.search-side .simple-search-card,
.search-side .public-search-card,
.search-side .premium-filters,
.search-side .plan-match-card,
.search-side .commercial-simple-form,
.search-side .plan-upload-grid,
.search-side .plan-match-form,
.search-side .filters {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.search-side .commercial-simple-form,
.search-side .plan-upload-grid,
.search-side .filters.premium-filters {
  display: block !important;
  gap: 0 !important;
}

.search-side .search-brand-metrics {
  grid-template-columns: 1fr !important;
  gap: 1px !important;
  margin: 16px -20px -18px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.search-side .search-brand-metrics span {
  min-height: 48px !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.search-side .commercial-simple-form label,
.search-side .premium-filters label,
.search-side .plan-match-card label,
.search-side .plan-upload-box,
.search-side .filter-card,
.search-side .filter-group,
.search-side fieldset.filter-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7edf1 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.search-side .filter-card-title,
.search-side .filter-card > span:first-child,
.search-side .premium-filters label > span,
.search-side .commercial-simple-form label {
  display: block !important;
  margin-bottom: 8px !important;
}

.search-side input,
.search-side select,
.search-side textarea,
.search-side .location-actions,
.search-side .plan-actions,
.search-side .filter-chips {
  width: 100% !important;
  max-width: none !important;
}

.search-side input,
.search-side select,
.search-side textarea {
  display: block !important;
}

.search-side .location-actions button,
.search-side .plan-actions button,
.search-side .unlock-strip button,
.search-side #clear-filters,
.search-side #find-location,
.search-side #match-plan-button,
.search-side #clear-plan-button,
.search-side .commercial-simple-form button[type="submit"],
.search-side .premium-filters button[type="submit"],
.search-side .plan-match-card button[type="submit"] {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.search-side .commercial-simple-form button[type="submit"],
.search-side .premium-filters button[type="submit"],
.search-side .plan-match-card button[type="submit"],
.search-side #match-plan-button {
  margin: 0 !important;
  border-radius: 0 !important;
}

.search-side .commercial-simple-form label + button[type="submit"],
.search-side .filter-group + button[type="submit"],
.search-side .plan-upload-grid + .plan-actions {
  margin-top: 0 !important;
}

.search-side .unlock-strip {
  padding: 20px !important;
}

.search-side .search-tab.is-unlocked em {
  background: #dcfce7 !important;
  color: #08723f !important;
}

.member-authed .locked-panel {
  display: none !important;
}

.member-authed .member-only {
  display: block !important;
}

.member-authed .filters.member-only {
  display: block !important;
}

/* v25: cleaner left panel header without stats clutter. */
.search-side .search-side-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 74px !important;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #073f42 0%, #0f172a 100%) !important;
}

.search-side .search-side-brand p,
.search-side .search-brand-metrics {
  display: none !important;
}

.search-side .search-brand-kicker {
  order: 2 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #bff4ec !important;
  white-space: nowrap !important;
}

.search-side .search-side-brand strong {
  order: 1 !important;
  font-size: 1.18rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .search-side .search-side-brand {
    align-items: flex-start !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
}

/* v26: commercial segmented selectors for advanced filter choices. */
.search-side .filter-group {
  padding: 0 !important;
  background: #ffffff !important;
}

.search-side .filter-group legend {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 15px 20px 11px !important;
  border-bottom: 1px solid #edf2f5 !important;
  color: #111827 !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.search-side .filter-group legend::after {
  content: "Select any" !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #eef8f7 !important;
  color: #0f766e !important;
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  text-transform: none !important;
}

.search-side .priority-group legend::after {
  content: "Recommended" !important;
}

.search-side .compact-group legend::after {
  content: "Optional" !important;
}

.search-side .filter-group .filter-chips {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 20px 18px !important;
  background: #ffffff !important;
}

.search-side .filter-group .filter-chips label {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.search-side .filter-group .filter-chips input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.search-side .filter-group .filter-chips span {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 54px !important;
  width: 100% !important;
  padding: 11px 11px 11px 13px !important;
  border: 1px solid #d9e3e8 !important;
  border-radius: 11px !important;
  background: #f8fbfc !important;
  color: #344054 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
}

.search-side .filter-group .filter-chips span::after {
  content: "" !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #b9c6ce !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.search-side .filter-group .filter-chips label:hover span {
  border-color: #8fcac4 !important;
  background: #f2fbf9 !important;
}

.search-side .filter-group .filter-chips input:focus + span {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13) !important;
}

.search-side .filter-group .filter-chips input:checked + span {
  border-color: #0f766e !important;
  background: linear-gradient(180deg, #ecfdf8 0%, #ffffff 100%) !important;
  color: #075e61 !important;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18), 0 8px 18px rgba(15, 118, 110, 0.1) !important;
}

.search-side .filter-group .filter-chips input:checked + span::after {
  border-color: #0f766e !important;
  background:
    radial-gradient(circle at center, #ffffff 0 29%, transparent 31%),
    linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
}

.search-side .filter-group[data-filter-param="availability"] .filter-chips {
  grid-template-columns: 1fr !important;
}

.search-side .filter-group[data-filter-param="availability"] .filter-chips span {
  min-height: 48px !important;
}

@media (max-width: 980px) {
  .search-side .filter-group .filter-chips {
    grid-template-columns: 1fr !important;
  }
}

/* v27: professional full-width selector rows with no text overflow. */
.search-side .filter-group {
  border-bottom: 1px solid #e7edf1 !important;
}

.search-side .filter-group legend {
  min-height: 44px !important;
  padding: 16px 20px 8px !important;
  border-bottom: 0 !important;
  color: #263246 !important;
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.search-side .filter-group legend::after {
  display: none !important;
}

.search-side .filter-group .filter-chips,
.search-side .filter-group[data-filter-param="availability"] .filter-chips {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 20px 18px !important;
  background: #ffffff !important;
}

.search-side .filter-group .filter-chips label {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.search-side .filter-group .filter-chips input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.search-side .filter-group .filter-chips span {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 48px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #dce6eb !important;
  border-radius: 8px !important;
  background: #f9fbfc !important;
  color: #344054 !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.search-side .filter-group .filter-chips span::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #b9c6ce !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.search-side .filter-group .filter-chips span::after {
  content: none !important;
}

.search-side .filter-group .filter-chips label:hover span {
  border-color: #96cfc8 !important;
  background: #f3fbfa !important;
}

.search-side .filter-group .filter-chips input:focus + span {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

.search-side .filter-group .filter-chips input:checked + span {
  border-color: #0f766e !important;
  background: #ecfdf8 !important;
  color: #064e4f !important;
  box-shadow: inset 4px 0 0 #0f766e !important;
}

.search-side .filter-group .filter-chips input:checked + span::before {
  border-color: #0f766e !important;
  background:
    linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
  box-shadow: inset 0 0 0 4px #ffffff !important;
}

/* v28: polished toggle-list filters for a cleaner commercial UI. */
.search-side .filter-group {
  background: #fbfdff !important;
}

.search-side .filter-group legend {
  padding: 18px 20px 9px !important;
  color: #111827 !important;
  font-size: 0.88rem !important;
  font-weight: 950 !important;
}

.search-side .filter-group .filter-chips,
.search-side .filter-group[data-filter-param="availability"] .filter-chips {
  gap: 1px !important;
  padding: 0 !important;
  border-top: 1px solid #e7edf1 !important;
  background: #e7edf1 !important;
}

.search-side .filter-group .filter-chips label {
  display: block !important;
  background: #ffffff !important;
}

.search-side .filter-group .filter-chips span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 52px !important;
  padding: 13px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #263246 !important;
  box-shadow: none !important;
  font-size: 0.91rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.search-side .filter-group .filter-chips span::before {
  content: none !important;
}

.search-side .filter-group .filter-chips span::after {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 24px !important;
  border: 1px solid #cbd5dd !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 11px 50%, #ffffff 0 7px, transparent 8px),
    #cbd5dd !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.14) !important;
}

.search-side .filter-group .filter-chips label:hover span {
  background: #f8fbfc !important;
  color: #0f172a !important;
}

.search-side .filter-group .filter-chips input:focus + span {
  background: #f8fbfc !important;
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.38) !important;
}

.search-side .filter-group .filter-chips input:checked + span {
  background: #f0fdfa !important;
  color: #064e4f !important;
  box-shadow: inset 4px 0 0 #0f766e !important;
}

.search-side .filter-group .filter-chips input:checked + span::after {
  border-color: #0f766e !important;
  background:
    radial-gradient(circle at 31px 50%, #ffffff 0 7px, transparent 8px),
    linear-gradient(135deg, #0f766e 0%, #155e75 100%) !important;
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.2) !important;
}

/* v29: intent-led presets and live match summary. */
.search-side .smart-filter-card,
.search-side .selected-filter-card {
  padding: 18px 20px !important;
  background: #ffffff !important;
}

.search-side .smart-filter-card {
  border-bottom: 1px solid #e7edf1 !important;
}

.search-side .selected-filter-card {
  border-bottom: 1px solid #dce6eb !important;
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%) !important;
}

.search-side .smart-filter-card .filter-card-title,
.search-side .selected-filter-card .filter-card-title {
  display: block !important;
  margin: 0 0 12px !important;
  color: #111827 !important;
  font-size: 0.88rem !important;
  font-weight: 950 !important;
}

.preset-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.preset-grid button {
  min-height: 44px !important;
  padding: 10px 11px !important;
  border: 1px solid #dce6eb !important;
  border-radius: 8px !important;
  background: #f8fbfc !important;
  color: #263246 !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.preset-grid button:hover,
.preset-grid button.active {
  border-color: #0f766e !important;
  background: #ecfdf8 !important;
  color: #064e4f !important;
}

.preset-grid button.active {
  box-shadow: inset 4px 0 0 #0f766e !important;
}

.selected-filter-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.selected-filter-chips span {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 6px 9px !important;
  border: 1px solid #dce6eb !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #344054 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

#match-summary {
  margin: 12px 0 0 !important;
  color: #526273 !important;
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

@media (max-width: 420px) {
  .preset-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v30: presets removed; keep the selected-match summary clean. */
.search-side .smart-filter-card,
.preset-grid {
  display: none !important;
}

.search-side .selected-filter-card {
  border-top: 0 !important;
  border-bottom: 1px solid #dce6eb !important;
}

/* v31: prevent Simple Search submit button from covering the unlock text. */
.search-side .commercial-simple-form button[type="submit"],
.search-side .commercial-simple-form button {
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.search-side .unlock-strip {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 0 !important;
  padding-top: 22px !important;
}

/* v34: structured extracted NDIS plan information display. */
.plan-insights {
  gap: 12px !important;
  background: #f8fbfc !important;
}

.plan-insight-section {
  display: grid !important;
  gap: 6px !important;
  padding: 12px !important;
  border: 1px solid #dce6eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.plan-insight-section b {
  color: #111827 !important;
  font-size: 0.82rem !important;
  font-weight: 950 !important;
}

.plan-insight-section ul {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  padding-left: 18px !important;
}

.plan-insight-section li,
.plan-insight-section span {
  color: #526273 !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}
