:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #63706b;
  --line: #d9e3df;
  --paper: #ffffff;
  --wash: #f4f9f7;
  --mint: #2f9d83;
  --mint-dark: #1e6e5b;
  --coral: #e85d5a;
  --gold: #b98408;
  --aqua: #dff5ef;
  --rose: #ffe8e6;
  --shadow: 0 18px 42px rgba(23, 32, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

@media (min-width: 1101px) {
  .mega-item:hover .mega-menu {
    display: grid;
  }

  .mega-item:hover .mega-trigger::after {
    transform: rotate(225deg) translateY(-1px);
  }
}

.brand,
.nav-links,
.urgent-link,
.top-actions {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  min-height: 38px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: var(--aqua);
  border: 1px solid #b7e6de;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.emergency-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px clamp(18px, 5vw, 64px);
  color: #8f251d;
  background: #fff1ef;
  border-bottom: 1px solid #f4c6c1;
}

.emergency-banner span {
  color: #66312c;
  font-weight: 700;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--mint);
  border-radius: 8px;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.mega-trigger:hover,
.urgent-link:hover {
  color: var(--mint-dark);
}

.mega-nav {
  position: static;
}

.mega-item {
  position: static;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mega-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mega-item.mega-open .mega-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: clamp(16px, 18vw, 340px);
  right: clamp(16px, 18vw, 340px);
  z-index: 30;
  display: none;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 30px 30px;
  background: #fff7f0;
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(23, 32, 29, 0.12);
}

.mega-item.mega-open .mega-menu {
  display: grid;
}

.compact-mega {
  left: auto;
  right: clamp(16px, 28vw, 520px);
  width: min(560px, calc(100vw - 32px));
  grid-template-columns: 1fr;
}

.health-mega {
  left: clamp(16px, 18vw, 340px);
  right: clamp(16px, 18vw, 340px);
}

.mega-side,
.mega-links {
  display: grid;
  align-content: start;
  gap: 4px;
}

.mega-side {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

.mega-side a,
.mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.mega-side a {
  color: #006b83;
  font-weight: 900;
}

.mega-side a::after {
  content: ">";
  color: #007d96;
}

.mega-links {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  column-gap: 36px;
}

.mega-links.three-col {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.urgent-link {
  min-height: 42px;
  padding: 0 16px;
  color: var(--coral);
  border: 1px solid #f3b8b5;
  border-radius: 8px;
  font-weight: 800;
}

.top-actions {
  gap: 10px;
}

.language-switcher {
  display: grid;
  gap: 4px;
}

.language-switcher span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.language-switcher select {
  min-height: 42px;
  min-width: 118px;
  padding: 0 10px;
}

.login-button,
.primary-button,
.icon-button {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.login-button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--mint);
  border: 1px solid var(--mint);
}

.search-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px) 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.36) 100%),
    url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.search-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 11ch;
}

.search-copy p:last-child {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link {
  color: #fff;
  background: var(--mint);
  border: 1px solid var(--mint);
}

.secondary-link {
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.finder {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-searches {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  grid-column: 2;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.quick-searches button,
.near-me-button,
.detail-button {
  min-height: 36px;
  padding: 0 11px;
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.quick-searches button:hover,
.near-me-button:hover,
.detail-button:hover {
  background: var(--aqua);
  border-color: var(--mint);
}

.button-link {
  font: inherit;
}

.search-suggestions {
  position: absolute;
  z-index: 5;
  right: 14px;
  left: 14px;
  top: calc(100% - 18px);
  display: grid;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-suggestions button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.search-suggestions span {
  color: var(--muted);
}

.wizard-section {
  order: 1;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px);
  background: #fff;
}

.wizard-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field span,
.sort-control span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--mint);
  outline: 3px solid rgba(47, 157, 131, 0.18);
  outline-offset: 2px;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px);
  transform: translateY(18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.insights article {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: var(--paper);
}

.insights strong {
  font-size: 1.7rem;
}

.insights span {
  color: var(--muted);
  font-weight: 700;
}

.feature-band,
.specialty-showcase,
.trust-section,
.trust-cards,
.browse-section,
.symptom-section,
.faq-section {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.feature-band {
  order: 4;
  background: var(--wash);
}

.trust-cards {
  order: 5;
  background: #fff;
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.trust-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-copy p,
.trust-section p {
  color: var(--muted);
  line-height: 1.7;
}

.steps,
.specialty-grid,
.trust-card-grid,
.symptom-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.steps article,
.specialty-grid article,
.trust-card-grid article,
.symptom-grid button,
.faq-grid details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.symptom-section,
.faq-section {
  background: var(--wash);
}

.symptom-section {
  order: 3;
}

.faq-section {
  order: 9;
}

.symptom-grid button {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.symptom-grid button:hover {
  border-color: var(--mint);
  background: var(--aqua);
}

.symptom-grid span {
  color: var(--muted);
  font-weight: 800;
}

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

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps article {
  padding: 22px;
}

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

.trust-card-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.trust-card-grid strong {
  color: var(--ink);
}

.trust-card-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.steps h3,
.specialty-grid h3 {
  margin-bottom: 8px;
}

.steps p,
.specialty-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.specialty-showcase {
  order: 6;
  background: #fff;
}

.specialty-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.specialty-grid h3,
.specialty-grid p {
  margin-left: 18px;
  margin-right: 18px;
}

.specialty-grid h3 {
  margin-top: 18px;
}

.specialty-grid p {
  margin-bottom: 18px;
}

.trust-section {
  order: 7;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background: #eef8f4;
}

.trust-section img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.browse-section {
  order: 8;
  background: #fff;
}

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

.browse-grid article {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-links button,
.filter-toggle,
#closeFilters {
  min-height: 38px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: var(--aqua);
  border: 1px solid #b7e6de;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.filter-toggle,
#closeFilters {
  display: none;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-list span {
  padding: 9px 11px;
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.content-grid {
  order: 2;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 38px;
  padding: 64px clamp(18px, 5vw, 64px) 70px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel,
.care-note,
.doctor-card,
.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 0;
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.panel-heading,
.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.panel-heading {
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.panel h2,
.results-bar h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.results-bar h2 em {
  font-style: italic;
  font-weight: 900;
}

#resetFilters {
  min-height: 36px;
  padding: 0 12px;
  color: #007d96;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.near-me-button {
  width: calc(100% - 40px);
  margin: 18px 20px 0;
  background: var(--aqua);
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 0;
}

.active-filter-list p {
  color: var(--muted);
  font-size: 0.9rem;
}

.active-filter-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.active-filter-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.filter-group {
  display: grid;
  gap: 11px;
  margin: 0 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hospital-filter-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.filter-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-group h3::after {
  content: "-";
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-group.collapsed h3::after {
  content: "+";
}

.filter-group.collapsed > *:not(h3) {
  display: none;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

#categoryFilters {
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

#categoryFilters.collapsed {
  max-height: none;
}

.filter-group input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mint);
}

.filter-group input[type="range"] {
  padding: 0;
  accent-color: var(--mint);
}

output {
  width: max-content;
  padding: 6px 10px;
  background: var(--aqua);
  border-radius: 8px;
  color: var(--mint-dark);
  font-weight: 800;
}

.care-note {
  overflow: hidden;
}

.care-note img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.care-note h2,
.care-note p,
.care-note a {
  margin-left: 18px;
  margin-right: 18px;
}

.care-note h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.care-note p {
  color: var(--muted);
  line-height: 1.55;
}

.care-note a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.results {
  min-width: 0;
}

.results-bar {
  margin-bottom: 16px;
  align-items: end;
}

.results-bar p {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 750;
}

.sort-control {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.listing-search {
  position: relative;
  display: grid;
  min-width: min(100%, 330px);
}

.listing-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.listing-search input {
  min-height: 44px;
  padding-right: 56px;
}

.listing-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  min-height: 30px;
  overflow: hidden;
  color: transparent;
  background: #007d96;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.listing-search button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
}

.listing-search button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.doctor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 16px;
}

.doctor-card {
  display: grid;
  grid-template-columns: minmax(180px, 44%) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.06);
}

.hospital-list {
  display: grid;
  gap: 16px;
}

.hospital-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.06);
}

.hospital-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.hospital-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.hospital-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.doctor-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 0;
  background: var(--aqua);
}

.doctor-main {
  min-width: 0;
  padding: 18px 18px 16px;
}

.doctor-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.doctor-main h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.verified-badge,
.verified-profile-line {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  color: #16724f;
  background: #e4f8eb;
  border: 1px solid #b9e9ca;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.specialty-line,
.affiliation-line,
.meta-line,
.bio {
  color: var(--muted);
  line-height: 1.55;
}

.affiliation-line {
  margin-bottom: 8px;
  color: var(--mint-dark);
  font-weight: 850;
}

.bio {
  margin-bottom: 12px;
}

.doctor-credential {
  margin: 12px 0;
  color: var(--ink);
  font-weight: 900;
}

.doctor-card-divider {
  width: 46px;
  height: 2px;
  margin-bottom: 12px;
  background: #007d96;
}

.location-line {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.location-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid #007d96;
  border-radius: 999px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.trust-badges span {
  padding: 5px 8px;
  color: var(--mint-dark);
  background: var(--aqua);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.chip {
  padding: 6px 9px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.doctor-action {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-content: stretch;
  justify-items: stretch;
  text-align: center;
  border-top: 1px solid #007d96;
}

.doctor-action > * {
  min-height: 50px;
  border-radius: 0;
}

.doctor-action > * + * {
  border-left: 1px solid #007d96;
}

.doctor-action .book-button {
  color: #00617a;
  background: #ffd45a;
  border: 0;
}

.doctor-action .call-button,
.doctor-action .detail-button {
  color: #00617a;
  background: #fff;
  border: 0;
}

.doctor-action .whatsapp-button {
  color: #16724f;
  background: #e4f8eb;
  border: 0;
}

.rating {
  color: var(--gold);
  font-weight: 900;
}

.fee {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--mint-dark);
}

.availability {
  width: max-content;
  justify-self: end;
  padding: 8px 10px;
  color: var(--mint-dark);
  background: var(--aqua);
  border-radius: 8px;
  font-weight: 900;
}

.actions {
  display: grid;
  gap: 8px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chips button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.choice-chips button.active {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.success-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: var(--mint-dark);
  background: #e4f8eb;
  border: 1px solid #b9e9ca;
  border-radius: 8px;
}

.success-card span {
  color: #16724f;
  line-height: 1.5;
}

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

.saved-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.saved-item div {
  display: grid;
  gap: 4px;
}

.saved-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-button,
.save-button,
.detail-button {
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.book-button:disabled,
.save-button:disabled,
.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.book-button {
  color: #fff;
  background: var(--mint);
  border: 1px solid var(--mint);
}

.book-button:hover {
  background: var(--mint-dark);
}

.save-button {
  color: var(--coral);
  background: var(--rose);
  border: 1px solid #fac6c3;
}

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

.detail-button {
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
}

.empty-state {
  padding: 34px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

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

.nearby-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.nearby-suggestions button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(23, 32, 29, 0.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.modal-heading h2,
.modal-copy,
.form-note {
  margin-bottom: 0;
}

.modal-copy,
.form-note {
  color: var(--muted);
  line-height: 1.55;
}

.form-note.success {
  color: var(--mint-dark);
  font-weight: 800;
}

.form-note.error {
  color: var(--coral);
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
}

.primary-button {
  min-height: 46px;
  color: #fff;
  background: var(--mint);
  border: 1px solid var(--mint);
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  color: var(--coral);
  background: var(--rose);
  border: 1px solid #fac6c3;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  color: #16724f;
  background: #e4f8eb;
  border: 1px solid #b9e9ca;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.primary-button:hover,
.login-button:hover {
  background: var(--mint-dark);
}

.call-button:hover {
  color: #fff;
  background: var(--coral);
}

.whatsapp-button:hover {
  color: #fff;
  background: #1f8f62;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
}

.consent-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--mint);
}

.detail-modal {
  width: min(760px, calc(100vw - 28px));
}

.doctor-detail-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.doctor-detail-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

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

.detail-facts span {
  padding: 10px;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.seo-link {
  color: var(--mint-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.58)),
    url("https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 20px;
  width: min(460px, 100%);
  padding: clamp(22px, 5vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.login-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-body {
  min-height: 100vh;
  background: #f3f6f5;
}

.wp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 248px;
  padding: 22px;
  color: #fff;
  background: #1f2a27;
}

.wp-sidebar .brand-mark {
  background: var(--coral);
}

.wp-sidebar nav {
  display: grid;
  gap: 8px;
}

.wp-sidebar nav a,
.public-link {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.wp-sidebar nav a:hover,
.wp-sidebar nav a.active,
.public-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.public-link {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.wp-admin-main {
  min-height: 100vh;
  margin-left: 248px;
  padding: 24px clamp(18px, 4vw, 42px) 70px;
}

.admin-enhanced .wp-admin-main > section[id] {
  display: none;
}

.admin-enhanced .wp-admin-main > section[id].active-admin-panel {
  display: grid;
}

.admin-enhanced #doctorEditor.active-admin-panel {
  display: grid;
}

.wp-admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wp-admin-bar h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-dashboard article,
.admin-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.05);
}

.admin-dashboard article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

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

.attention-summary article,
.attention-card,
.kanban-card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.attention-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.attention-summary span,
.attention-card span,
.kanban-card span,
.kanban-card small {
  color: var(--muted);
}

.attention-summary strong {
  font-size: 1.5rem;
}

.attention-list {
  display: grid;
  gap: 10px;
}

.attention-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.attention-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.attention-card strong {
  display: block;
  margin-bottom: 4px;
}

.attention-card p {
  margin: 0;
}

.attention-card button,
.kanban-card button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--mint-dark);
  background: var(--aqua);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.attention-card.priority-high {
  border-color: #fac6c3;
  background: #fff1ef;
}

.admin-dashboard span {
  color: var(--muted);
  font-weight: 800;
}

.admin-dashboard strong {
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  word-break: break-word;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-list-panel,
.admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.06);
}

.admin-list-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.admin-list-panel .panel-heading {
  margin-bottom: 14px;
}

.admin-list-panel button,
.danger-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

#newDoctor {
  color: var(--mint-dark);
  background: var(--aqua);
  border: 0;
}

.danger-button {
  color: var(--coral);
  background: var(--rose);
  border: 1px solid #fac6c3;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-doctor-list {
  display: grid;
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
}

.admin-doctor-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.admin-doctor-button.active {
  background: var(--aqua);
  border-color: var(--mint);
}

.admin-doctor-button span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 26px);
}

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

.form-grid.compact {
  gap: 10px;
}

.admin-image-preview {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.admin-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: clamp(18px, 4vw, 26px);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  gap: 10px;
}

.admin-toolbar button,
.admin-table button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: var(--aqua);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: var(--paper);
}

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

.admin-table th {
  color: var(--muted);
  background: var(--wash);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.table-pill {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 7px;
  color: var(--mint-dark);
  background: var(--aqua);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.table-pill.complete-good {
  color: #16724f;
  background: #e4f8eb;
}

.table-pill.complete-ok {
  color: #7a5a00;
  background: #fff4c7;
}

.table-pill.complete-low {
  color: #8f251d;
  background: #fff1ef;
}

.admin-section p {
  color: var(--muted);
  line-height: 1.7;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-crm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.request-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 180px;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kanban-column h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
}

.kanban-column h3 span {
  color: var(--mint-dark);
}

.kanban-column > div {
  display: grid;
  gap: 8px;
}

.kanban-card {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.kanban-card.priority-high {
  border-color: #fac6c3;
  background: #fff1ef;
}

.kanban-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.request-crm-summary span,
.request-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--mint-dark);
  background: var(--aqua);
  border: 1px solid #b7e6de;
  border-radius: 8px;
  font-weight: 900;
}

.request-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.request-pill.overdue-pill {
  color: #8f251d;
  background: #fff1ef;
  border-color: #f4c6c1;
}

.request-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-item.priority-high {
  border-color: #f3a7a2;
  background: #fff6f5;
}

.request-item.priority-low {
  background: #f5f7f7;
}

.request-heading,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.request-heading > div {
  display: grid;
  gap: 4px;
}

.request-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.request-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 850;
}

.request-item select,
.request-item textarea,
.request-item input {
  margin-top: 6px;
}

.request-item textarea {
  min-height: 76px;
}

.request-actions {
  justify-content: flex-start;
}

.request-actions .call-button,
.request-actions .whatsapp-button {
  min-height: 38px;
}

.outcome-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outcome-buttons button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.outcome-buttons button:hover {
  background: var(--aqua);
  border-color: var(--mint);
}

.template-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #16724f;
  background: #e4f8eb;
  border: 1px solid #b9e9ca;
  border-radius: 8px;
  font-weight: 900;
}

.request-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.request-timeline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.request-timeline span.active {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.admin-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mobile-contact-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #fff;
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px 22px;
  align-items: center;
  padding: 26px clamp(18px, 5vw, 64px) 90px;
  color: var(--muted);
  background: var(--wash);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

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

.footer-brand strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--mint-dark);
}

.footer-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: #fff !important;
  background: var(--mint);
  border-radius: 8px;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 80px) clamp(18px, 5vw, 40px);
}

.legal-page h1 {
  margin-bottom: 18px;
}

.legal-page h2 {
  margin-top: 26px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

.request-item span,
.request-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.analytics-grid article,
.analytics-card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.analytics-grid span,
.analytics-row span,
.analytics-grid small {
  color: var(--muted);
  line-height: 1.5;
}

.analytics-grid strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}

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

.analytics-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.analytics-card h3 {
  margin-bottom: 0;
}

.analytics-wide {
  background: #fff;
}

.analytics-list {
  display: grid;
  gap: 10px;
}

.analytics-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-row > div,
.analytics-row b {
  position: relative;
  z-index: 1;
}

.analytics-row > div {
  display: grid;
  gap: 3px;
}

.analytics-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  background: var(--mint);
}

.analytics-recommendations {
  display: grid;
  gap: 10px;
}

.analytics-recommendations p {
  margin: 0;
  padding: 12px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .search-panel,
  .content-grid,
  .trust-section,
  .browse-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .specialty-grid,
  .trust-card-grid,
  .wizard-card,
  .symptom-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .quick-searches {
    grid-column: 1;
  }

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

  .analytics-grid,
  .analytics-layout,
  .attention-summary {
    grid-template-columns: 1fr;
  }

  .request-kanban {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .request-controls {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    position: static;
  }

  .admin-list-panel {
    position: static;
  }

  .sidebar {
    order: 2;
    display: none;
  }

  .filter-toggle,
  #closeFilters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .sidebar {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    overflow: auto;
    padding: 16px;
    background: rgba(23, 32, 29, 0.45);
  }

  body.filters-open .sidebar .panel {
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  body.filters-open .care-note {
    display: none;
  }

  .doctor-card {
    grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
  }

  .hospital-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .hospital-card .doctor-action {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doctor-photo {
    width: 100%;
    height: 210px;
  }

  .doctor-action {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    text-align: left;
  }

  .availability {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 78px;
  }

  .insights,
  .trust-cards,
  .specialty-showcase,
  .trust-section,
  .browse-section {
    display: none;
  }

  .admin-body {
    display: block;
  }

  .wp-sidebar {
    position: static;
    width: auto;
  }

  .wp-admin-main {
    margin-left: 0;
  }

  .wp-admin-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

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

  .request-controls {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-height: 0;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: grid;
    gap: 6px;
  }

  .nav-links a {
    padding: 11px 10px;
    border-radius: 8px;
    background: var(--wash);
  }

  .urgent-link {
    width: 46px;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .top-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
    align-items: center;
    gap: 6px;
  }

  .login-button {
    width: 48px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .login-button::before {
    content: attr(data-short-label);
    font-size: 0.72rem;
  }

  .urgent-link::before {
    content: attr(data-short-label);
    font-size: 0.78rem;
  }

  .language-switcher {
    width: auto;
    gap: 0;
  }

  .language-switcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-switcher select {
    width: 62px;
    min-width: 0;
    min-height: 38px;
    padding: 0 4px;
    font-size: 0.8rem;
    font-weight: 900;
  }

  .emergency-banner {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .search-panel {
    gap: 16px;
    padding: 18px 14px 12px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
      url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1200&q=80") center / cover;
  }

  h1 {
    max-width: 12ch;
    margin-bottom: 10px;
    font-size: 2.15rem;
    line-height: 1;
  }

  .search-copy p:last-child {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .primary-link,
  .hero-actions .secondary-link {
    min-height: 42px;
    padding: 0 10px;
    text-align: center;
  }

  .finder {
    gap: 10px;
    padding: 12px;
  }

  .finder input,
  .finder select {
    min-height: 42px;
  }

  .quick-searches {
    gap: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .quick-searches button {
    min-height: 34px;
    padding: 0 9px;
  }

  .wizard-section,
  .feature-band,
  .specialty-showcase,
  .trust-section,
  .trust-cards,
  .browse-section,
  .symptom-section,
  .faq-section {
    padding: 28px 14px;
  }

  .wizard-card {
    padding: 12px;
  }

  .insights {
    grid-template-columns: 1fr;
    margin: 0 14px;
    transform: none;
  }

  .insights article {
    padding: 14px;
  }

  .section-copy h2,
  .trust-section h2 {
    font-size: 1.85rem;
  }

  .steps,
  .specialty-grid,
  .trust-card-grid,
  .symptom-grid,
  .faq-grid {
    gap: 10px;
    margin-top: 18px;
  }

  .steps article,
  .trust-card-grid article,
  .symptom-grid button,
  .faq-grid details,
  .browse-grid article {
    padding: 14px;
  }

  .steps span {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .trust-section img {
    aspect-ratio: 16 / 10;
  }

  .content-grid {
    padding: 20px 14px 34px;
    background: #fff;
  }

  body.filters-open .sidebar {
    padding: 10px;
  }

  body.filters-open .sidebar .panel {
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .panel-heading {
    gap: 8px;
  }

  .panel-heading h2 {
    font-size: 1.05rem;
  }

  .filter-group {
    gap: 9px;
    margin-top: 16px;
  }

  .finder,
  .insights,
  .doctor-action,
  .contact-actions,
  .form-grid,
  .doctor-detail-grid,
  .detail-facts {
    grid-template-columns: 1fr;
  }

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

  .mobile-contact-bar {
    display: grid;
    right: 8px;
    bottom: 8px;
    left: 8px;
    gap: 6px;
    padding: 6px;
  }

  .mobile-contact-bar a {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.8rem;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 14px 88px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-footer nav a,
  .footer-call {
    min-height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .footer-call {
    color: #fff !important;
    background: var(--mint);
    border-color: var(--mint);
  }

  .results-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .results-bar p {
    margin-bottom: 4px;
  }

  .results-bar h2 {
    font-size: 1.12rem;
  }

  .sort-control {
    min-width: 0;
  }

  .filter-toggle {
    width: 100%;
  }

  .doctor-card {
    gap: 0;
    padding: 0;
  }

  .hospital-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .hospital-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .doctor-main h3 {
    font-size: 1.12rem;
  }

  .doctor-action {
    gap: 10px;
    text-align: left;
  }

  .availability {
    justify-self: start;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .actions .book-button,
  .actions .save-button,
  .actions .detail-button {
    min-height: 40px;
  }

  .modal {
    width: calc(100vw - 16px);
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 16px;
  }

  .choice-chips {
    gap: 6px;
  }
}

@media (max-width: 540px) {
  .search-panel {
    padding-top: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  .content-grid {
    padding-top: 24px;
  }

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

  .saved-item {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .doctor-action {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
  }

  .topbar .brand {
    min-width: 0 !important;
  }

  .topbar .brand span:last-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar .nav-links {
    position: absolute !important;
    top: calc(100% + 1px) !important;
    right: 14px !important;
    left: 14px !important;
    display: none !important;
    padding: 10px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow) !important;
  }

  body.menu-open .topbar .nav-links {
    display: grid !important;
    gap: 6px !important;
  }

  .topbar .nav-links a {
    padding: 11px 10px !important;
    border-radius: 8px !important;
    background: var(--wash) !important;
  }

  .topbar .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .topbar .top-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    gap: 6px !important;
  }

  .topbar .language-switcher {
    width: auto !important;
    gap: 0 !important;
  }

  .topbar .language-switcher span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .topbar .language-switcher select {
    width: 62px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 4px !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
  }

  .topbar .login-button {
    width: 48px !important;
    min-height: 38px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .topbar .login-button::before {
    content: attr(data-short-label);
    font-size: 0.72rem;
  }

  .topbar .urgent-link {
    width: 46px !important;
    min-height: 38px !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .topbar .urgent-link::before {
    content: attr(data-short-label);
    font-size: 0.78rem;
  }
}

@media (max-width: 1100px) {
  .topbar .mega-nav {
    max-height: calc(100dvh - 86px) !important;
    overflow: auto !important;
  }

  .topbar .mega-item {
    display: grid !important;
    gap: 6px !important;
  }

  .topbar .mega-trigger {
    width: 100% !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    color: var(--ink) !important;
    background: var(--wash) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    font-size: 0.86rem !important;
    text-align: left !important;
  }

  .topbar .mega-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #fff7f0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .topbar .mega-item.mega-open .mega-menu {
    display: grid !important;
  }

  .topbar .mega-side {
    gap: 4px !important;
    padding-right: 0 !important;
    padding-bottom: 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .topbar .mega-links,
  .topbar .mega-links.three-col {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .topbar .mega-side a,
  .topbar .mega-links a {
    min-height: 38px !important;
    padding: 0 8px !important;
    background: #fff !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
  }
}
