/* --- Doctor profile page (v2 brown theme) --- */
.doctor-profile-page {
  --doctor-brown: #783e19;
  --doctor-brown-dark: #6a341e;
  --doctor-brown-light: #f5f0eb;
  --doctor-brown-muted: #9a7b67;
  --doctor-gold: #b8860b;
  --doctor-border: #e8e0d8;
  --doctor-text: #2c1810;
  --doctor-text-muted: #6b5b52;
  --doctor-page-bg: #faf8f5;
}

body.single-doctors .header .popup-with-form.btn.btn__main.btn_in-header {
  display: none !important;
}

.doctor-profile-page .page_head {
  background: var(--doctor-page-bg);
}

.doctor-profile {
  padding: 24px 0 48px;
  background: var(--doctor-page-bg);
}

.doctor-profile__hero-card {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--doctor-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(44, 24, 16, 0.06);
  overflow: hidden;
}

.doctor-profile__hero {
  display: grid;
  grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.doctor-profile__photo-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.doctor-profile__intro {
  min-width: 0;
  max-width: 100%;
}

.doctor-profile__photo {
  border-radius: 16px;
  overflow: hidden;
  background: var(--doctor-brown-light);
  aspect-ratio: 1 / 1;
}

.doctor-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-profile__photo-badge {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--doctor-border);
  border-radius: 10px;
  background: #fff;
  color: var(--doctor-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.doctor-profile__photo-badge-icon {
  display: inline-flex;
  color: var(--doctor-brown);
}

.doctor-profile__name {
  margin: 0 0 6px;
  color: var(--doctor-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.doctor-profile__role {
  margin: 0 0 8px;
  color: var(--doctor-gold);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.doctor-profile__qualifications {
  margin: 0 0 14px;
  color: var(--doctor-text-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doctor-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 12px;
  min-width: 0;
}

.doctor-profile__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--doctor-border);
  border-radius: 10px;
  background: #fff;
}

.doctor-profile__stat-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--doctor-brown);
}

.doctor-profile__stat-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.doctor-profile__stat-text {
  color: var(--doctor-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doctor-profile__excerpt {
  display: none;
  margin: 0;
  color: var(--doctor-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.doctor-profile__hero-consult,
.doctor-profile__booking-mobile {
  display: none;
}

.doctor-profile__consult-card {
  padding: 20px;
  border: 1px solid var(--doctor-border);
  border-radius: 16px;
  background: #fbfaf8;
  box-shadow: 0 8px 32px rgba(44, 24, 16, 0.06);
}

.doctor-profile__consult-head {
  margin-bottom: 16px;
}

.doctor-profile__consult-eyebrow {
  margin: 0 0 6px;
  color: var(--doctor-brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doctor-profile__consult-title {
  margin: 0;
  color: var(--doctor-text);
  font-family: Raleway, Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.doctor-profile__consult-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-profile__consult-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--doctor-text);
  font-size: 14px;
  line-height: 1.45;
}

.doctor-profile__consult-features li + li {
  margin-top: 10px;
}

.doctor-profile__consult-feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--doctor-brown);
}

.doctor-profile__consult-divider {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--doctor-border);
}

.doctor-profile__consult-price {
  margin: 0 0 16px;
  color: var(--doctor-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.doctor-profile__consult-price strong {
  color: var(--doctor-brown-dark);
  font-weight: 700;
}

.doctor-profile__consult-actions {
  display: grid;
  gap: 10px;
}

.doctor-profile__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.doctor-profile__btn--primary {
  border: 1px solid var(--doctor-brown-dark);
  background: var(--doctor-brown-dark);
  color: #fff;
}

.doctor-profile__btn--outline {
  border: 1px solid var(--doctor-brown);
  background: #fff;
  color: var(--doctor-brown-dark);
}

.doctor-profile__btn-arrow {
  display: inline-flex;
  flex: 0 0 auto;
}

  .doctor-profile__issues {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--doctor-border);
    border-radius: 20px;
    background: #fff;
  }

  .doctor-profile__details .doctor-profile__issues {
    margin-bottom: 0;
  }

.doctor-profile__issues-title {
  margin: 0 0 16px;
  color: var(--doctor-text);
  font-size: 18px;
  font-weight: 700;
}

.doctor-profile__issues-title--desktop {
  display: none;
}

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

.doctor-profile__issue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid var(--doctor-border);
  border-radius: 14px;
  background: var(--doctor-page-bg);
  text-align: center;
}

.doctor-profile__issue-icon {
  display: inline-flex;
  color: var(--doctor-brown);
}

.doctor-profile__issue-text {
  color: var(--doctor-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.doctor-profile__details {
  display: grid;
  gap: 20px;
}

.doctor-profile__details-main {
  min-width: 0;
}

.doctor-profile__nav {
  display: none;
}

.doctor-profile__panel {
  border-bottom: 1px solid var(--doctor-border);
  background: #fff;
  padding: 0 20px;
}

.doctor-profile__panel:first-child {
  border-top: 1px solid var(--doctor-border);
  
}

.doctor-profile__accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--doctor-text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.doctor-profile__accordion-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--doctor-text);
  border-bottom: 2px solid var(--doctor-text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.doctor-profile__accordion-toggle.is-open .doctor-profile__accordion-icon {
  transform: rotate(-135deg);
}

.doctor-profile__panel-body {
  display: none;
  padding-bottom: 20px;
}

.doctor-profile__panel.is-active .doctor-profile__panel-body,
.doctor-profile__accordion-toggle.is-open + .doctor-profile__panel-body {
  display: block;
}

.doctor-profile__content {
  color: var(--doctor-text-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

.doctor-profile__content ul,
.doctor-profile__content ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.doctor-profile__faq-item {
  border-top: 1px solid var(--doctor-border);
}

.doctor-profile__faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--doctor-text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.doctor-profile__faq-answer {
  display: none;
  padding-bottom: 14px;
  color: var(--doctor-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.doctor-profile__faq-item.is-open .doctor-profile__faq-answer {
  display: block;
}

.doctor-profile__review-snippet {
  display: none;
}

.doctor-profile__reviews {
  position: relative;
}

.doctor-profile__reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.doctor-profile__reviews-title {
  margin: 0;
  color: var(--doctor-text);
  font-size: 18px;
  font-weight: 700;
}

.doctor-profile__reviews-count {
  margin: 0;
  color: var(--doctor-text-muted);
  font-size: 13px;
}

.doctor-profile__review-card {
  padding: 18px;
  border: 1px solid var(--doctor-border);
  border-radius: 14px;
  background: var(--doctor-page-bg);
}

.doctor-profile__review-text {
  color: var(--doctor-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.doctor-profile__review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.doctor-profile__review-name {
  color: var(--doctor-text);
  font-size: 13px;
  font-weight: 700;
}

.doctor-profile__review-date {
  color: var(--doctor-text-muted);
  font-size: 13px;
}

.doctor-profile-reviews__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.doctor-profile-reviews__prev,
.doctor-profile-reviews__next {
  position: static !important;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--doctor-border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.doctor-profile-reviews__prev::after,
.doctor-profile-reviews__next::after {
  font-family: swiper-icons;
  font-size: 14px;
  color: var(--doctor-brown);
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
}

.doctor-profile-reviews__prev::after {
  content: 'prev';
}

.doctor-profile-reviews__next::after {
  content: 'next';
}

.doctor-profile-page .swiper-button-prev,
.doctor-profile-page .swiper-button-next {
  display: none !important;
}

.doctor-profile__sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--doctor-border);
  background: #fff;
  box-shadow: 0 -4px 20px rgba(44, 24, 16, 0.08);
}

.doctor-profile__sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.doctor-profile__sticky-btn--primary {
  border: 1px solid var(--doctor-brown-dark);
  background: var(--doctor-brown-dark);
  color: #fff;
}

.doctor-profile__float-btn {
  display: none;
}

@media (min-width: 768px) {
  .doctor-profile {
    padding: 32px 0 64px;
  }

  .doctor-profile__hero-card {
    padding: 28px;
  }

  .doctor-profile__name {
    font-size: 30px;
  }

  .doctor-profile__stat-text {
    font-size: 12px;
  }
}

@media (min-width: 992px) {
  .doctor-profile-page {
    padding-bottom: 32px;
  }

  body.single-doctors .header .popup-with-form.btn.btn__main.btn_in-header {
    display: inline-flex !important;
  }

  .doctor-profile__hero {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
  }

  .doctor-profile__photo-wrap {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    max-width: 220px;
  }

  .doctor-profile__intro {
    grid-column: 2;
    grid-row: 1;
  }

  .doctor-profile__stats {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .doctor-profile__excerpt {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
  }

  .doctor-profile__hero-consult {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .doctor-profile__photo {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    height: auto;
  }

  .doctor-profile__photo-badge {
    display: flex;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08);
  }

  .doctor-profile__excerpt {
    display: block;
  }

  .doctor-profile__hero-consult {
    display: block;
  }

  .doctor-profile__booking-mobile {
    display: none;
  }

  .doctor-profile__issues {
    margin-bottom: 24px;
    padding: 24px 28px;
  }

  .doctor-profile__issues-title--desktop {
    display: block;
  }

  .doctor-profile__issues-title--mobile {
    display: none;
  }

  .doctor-profile__issues-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .doctor-profile__details {
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
    padding: 24px 28px;
    border: 1px solid var(--doctor-border);
    border-radius: 20px;
    background: #fff;
  }

  .doctor-profile__issues {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .doctor-profile__issues-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .doctor-profile__issue-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px;
    text-align: left;
  }

  .doctor-profile__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .doctor-profile__nav-btn {
    padding: 10px 16px;
    border: 1px solid var(--doctor-border);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: var(--doctor-page-bg);
    color: var(--doctor-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .doctor-profile__nav-btn.is-active {
    border-color: var(--doctor-brown-dark);
    background: var(--doctor-brown-dark);
    color: #fff;
  }

  .doctor-profile__panel {
    border: 0;
    background: transparent;
  }

  .doctor-profile__panel:first-child {
    border-top: 0;
  }

  .doctor-profile__panel:not(.is-active) {
    display: none;
  }

  .doctor-profile__accordion-toggle {
    display: none;
  }

  .doctor-profile__panel-body {
    display: block;
    padding-bottom: 0;
  }

  .doctor-profile__review-snippet {
    display: block;
    align-self: start;
    padding: 24px;
    border: 1px solid var(--doctor-border);
    border-radius: 16px;
    background: var(--doctor-page-bg);
  }

  .doctor-profile__review-quote {
    display: block;
    margin-bottom: 8px;
    color: var(--doctor-brown);
    font-size: 36px;
    line-height: 1;
  }

  .doctor-profile__review-snippet-text {
    color: var(--doctor-text-muted);
    font-size: 14px;
    line-height: 1.6;
  }

  .doctor-profile__review-snippet-stars {
    margin: 12px 0 8px;
    color: #d4a017;
    font-size: 14px;
    letter-spacing: 2px;
  }

  .doctor-profile__review-snippet-author {
    margin: 0;
    color: var(--doctor-text);
    font-size: 14px;
    font-weight: 700;
  }

  .doctor-profile__sticky-bar {
    display: none;
  }

  .doctor-profile__float-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--doctor-brown-dark);
    box-shadow: 0 8px 24px rgba(106, 52, 30, 0.28);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
}

@media (max-width: 991px) {
  .doctor-profile-page {
    padding-bottom: 72px;
  }

  .doctor-profile__photo-badge {
    display: none !important;
  }

  .doctor-profile__hero {
    grid-template-areas:
      "photo intro"
      "stats stats"
      "excerpt excerpt";
  }

  .doctor-profile__photo-wrap {
    grid-area: photo;
  }

  .doctor-profile__intro {
    grid-area: intro;
  }

  .doctor-profile__stats {
    grid-area: stats;
  }

  .doctor-profile__excerpt {
    grid-area: excerpt;
  }

  .doctor-profile__photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 0;
  }

  .doctor-profile__excerpt {
    display: none !important;
  }

  .doctor-profile__booking-mobile {
    display: block;
    margin-bottom: 20px;
  }

  .doctor-profile__hero-consult {
    display: none;
  }
}
