/* Doctors listing (Nano-style filters + cards), TruScan green. */

.docs-page {
  --docs-green: #2d661b;
  --docs-green-dark: #245416;
  --docs-green-soft: #eef6e6;
  --docs-green-border: #7dae68;
  --docs-ink: #1f1f1f;
  --docs-muted: #6b7280;
  --docs-line: #e5e7eb;
  background: #fff;
}

.docs-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

@media (min-width: 992px) {
  .docs-wrap {
    padding: 40px 16px 88px;
  }
}

.docs-intro {
  margin: 0 0 32px;
  padding: 20px 16px 22px;
  border: 1px solid var(--docs-green-border);
  border-radius: 12px;
}

@media (min-width: 768px) {
  .docs-intro {
    padding: 24px 24px 26px;
  }
}

.docs-intro h1 {
  margin: 0 0 8px;
  color: var(--docs-green);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.docs-intro__lead {
  margin: 0 0 16px;
  color: var(--docs-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.docs-intro__copy {
  margin: 0;
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.8;
}

.docs-intro__more[hidden] {
  display: none;
}

.docs-intro__toggle {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--docs-green);
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.docs-intro__toggle:hover,
.docs-intro__toggle:focus-visible {
  color: var(--docs-green-dark);
}

@media (min-width: 768px) {
  .docs-intro h1 {
    font-size: 32px;
  }

  .docs-intro__lead {
    font-size: 24px;
  }

  .docs-intro__copy {
    font-size: 18px;
  }
}

.docs-mobile-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.docs-mobile-filters button {
  flex: 1 1 auto;
  padding: 8px 16px;
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
}

.docs-mobile-filters button:hover,
.docs-mobile-filters button:focus-visible {
  border-color: var(--docs-green);
  color: var(--docs-green);
}

@media (min-width: 992px) {
  .docs-mobile-filters {
    display: none;
  }
}

.docs-search {
  margin-bottom: 24px;
}

.docs-search input {
  width: 100%;
  max-width: 384px;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}

.docs-search input:focus {
  outline: none;
  border-color: var(--docs-green);
  box-shadow: 0 0 0 2px rgba(45, 102, 27, 0.18);
}

.docs-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.docs-sidebar {
  display: none;
  width: 256px;
  flex: 0 0 256px;
}

@media (min-width: 992px) {
  .docs-sidebar {
    display: block;
  }
}

.docs-filter {
  margin-bottom: 40px;
}

.docs-filter h2 {
  margin: 0 0 16px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-filter__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.docs-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--docs-green);
  border-radius: 4px;
  cursor: pointer;
}

.docs-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.docs-empty {
  margin: 24px 0;
  color: var(--docs-muted);
  font-size: 15px;
  text-align: center;
}

.docs-empty[hidden] {
  display: none;
}

.docs-card {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--docs-line);
  border-radius: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.docs-card:hover {
  border-color: #c5ddb8;
  box-shadow: 0 12px 28px rgba(28, 52, 16, 0.1);
}

.docs-card[hidden] {
  display: none !important;
}

.docs-card__photo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.docs-card__photo-frame {
  width: 144px;
  height: 144px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.docs-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.docs-card__info {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.docs-card__name {
  display: inline-block;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.docs-card__name:hover,
.docs-card__name:focus-visible {
  color: var(--docs-green);
}

.docs-card__dept {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--docs-green-soft);
  color: var(--docs-green);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.docs-card__qual,
.docs-card__role,
.docs-card__loc {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.docs-card__role,
.docs-card__loc {
  color: #374151;
  font-weight: 500;
}

.docs-card__reg {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.docs-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.docs-card__actions a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.docs-card__actions a:first-child {
  background: var(--docs-green);
  color: #fff;
}

.docs-card__actions a:first-child:hover,
.docs-card__actions a:first-child:focus-visible {
  background: var(--docs-green-dark);
  color: #fff;
}

.docs-card__actions a:last-child {
  border: 1px solid var(--docs-green);
  background: #fff;
  color: var(--docs-green);
}

.docs-card__actions a:last-child:hover,
.docs-card__actions a:last-child:focus-visible {
  background: var(--docs-green-soft);
}

@media (min-width: 640px) {
  .docs-card {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding: 24px;
  }

  .docs-card__photo {
    display: block;
  }

  .docs-card__info {
    text-align: left;
  }

  .docs-card__name {
    font-size: 18px;
  }

  .docs-card__actions {
    width: 176px;
    flex: 0 0 176px;
  }
}

.docs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
}

.docs-overlay[hidden] {
  display: none !important;
}

.docs-overlay__sheet {
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-radius: 24px 24px 0 0;
}

.docs-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.docs-overlay__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.docs-overlay__close {
  padding: 0;
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.docs-overlay .docs-filter {
  margin-bottom: 32px;
}

.docs-overlay .docs-check {
  gap: 12px;
}

.docs-overlay__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.docs-overlay__actions button {
  flex: 1 1 50%;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.docs-overlay__reset {
  border: 1px solid var(--docs-green);
  background: #fff;
  color: var(--docs-green);
}

.docs-overlay__apply {
  border: 0;
  background: var(--docs-green);
  color: #fff;
}

body.docs-overlay-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .docs-overlay {
    display: none !important;
  }
}