﻿/* Doctor profile — new-design layout */

.dp-page { min-height: 100vh; background: var(--bg); }

.dp-alert {
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 8px;
}
.dp-alert--success { border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; }
.dp-alert--error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }

.dp-backbar {
  background: #fff; border-bottom: 1px solid var(--border);
}
.dp-backbar .dl-container { padding-top: 12px; padding-bottom: 12px; }
.dp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--muted-fg); transition: color 0.15s;
}
.dp-back:hover { color: var(--fg); }
.dp-back svg { width: 15px; height: 15px; }

.dp-hero {
  background: #fff; border-bottom: 1px solid var(--border);
}
.dp-hero .dl-container { padding-top: 32px; padding-bottom: 32px; }
.dp-hero__inner {
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
.dp-hero__photo-wrap { position: relative; flex-shrink: 0; }
.dp-hero__photo {
  width: 144px; height: 192px; border-radius: 16px; object-fit: cover; object-position: top;
  box-shadow: var(--shadow-lg); background: var(--muted);
}
.dp-hero__avail {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow); white-space: nowrap;
  font-size: 10px; font-weight: 700; color: var(--primary);
}
.dp-hero__avail-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--primary);
}

.dp-hero__main { flex: 1; min-width: 0; width: 100%; }
.dp-hero__badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  padding: 4px 10px; border-radius: 999px; background: rgba(14,168,130,0.1); color: var(--primary);
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
}
.dp-hero__badge svg { width: 10px; height: 10px; }
.dp-hero__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-hero__name-row h1 { font-size: clamp(1.4rem, 3vw, 1.875rem); font-weight: 900; line-height: 1.2; }
.dp-fav {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: #9ca3af;
  transition: background 0.15s;
}
.dp-fav:hover { background: var(--muted); }
.dp-fav svg { width: 15px; height: 15px; }
.dp-fav svg.is-fav { fill: #ef4444; color: #ef4444; }

.dp-hero__title { margin-top: 4px; color: var(--muted-fg); font-weight: 600; }
.dp-hero__qual { margin-top: 2px; font-size: 13px; color: var(--muted-fg); }

.dp-hero__stats {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(14,168,130,0.12);
}
.dp-hero__stat-val { font-size: 20px; font-weight: 900; line-height: 1.2; }
.dp-hero__stat-lbl { font-size: 12px; font-weight: 600; color: var(--muted-fg); margin-top: 2px; }
.dp-hero__star {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  vertical-align: middle;
}
.dp-hero__star svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  color: inherit;
}

.dp-hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px;
  font-size: 12px; color: var(--muted-fg);
}
.dp-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.dp-hero__meta svg { width: 12px; height: 12px; flex-shrink: 0; }

.dp-hero__cta {
  display: none; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0;
}
.dp-hero__fee { text-align: right; }
.dp-hero__fee p { font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.dp-hero__fee strong { display: block; font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1.2; }

.dp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: calc(0.875rem + 4px); /* new-design rounded-xl */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
.dp-btn--primary { background: var(--primary); color: #fff; }
.dp-btn--primary:hover { opacity: 0.9; }
.dp-btn--block { width: 100%; padding-left: 12px; padding-right: 12px; }

.dp-tabs {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.dp-tabs__row {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.dp-tabs__btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: calc(0.875rem + 4px); /* new-design rounded-xl */
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  font-weight: 700;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
}
.dp-tabs__btn:hover { background: var(--muted); }
.dp-tabs__btn.is-active { background: var(--primary); color: #fff; }

.dp-body { padding-top: 32px; padding-bottom: 48px; }
.dp-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: stretch;
}
.dp-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.dp-side { min-width: 0; }

.dp-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  scroll-margin-top: 140px;
}
.dp-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.dp-card__text { font-size: 14px; color: var(--muted-fg); line-height: 1.7; }

.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dp-chip {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--muted); color: var(--muted-fg);
}

.dp-spec-list { display: flex; flex-direction: column; gap: 14px; }
.dp-spec-item__name { font-size: 14px; font-weight: 700; }
.dp-spec-item__desc { font-size: 13px; color: var(--muted-fg); margin-top: 4px; line-height: 1.6; }

.dp-pill-accent {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 6px 12px; border-radius: 999px; background: rgba(14,168,130,0.1); color: var(--primary);
  font-size: 12px; font-weight: 700;
}
.dp-pill-accent svg { width: 10px; height: 10px; }

.dp-proc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.dp-proc-row:last-child { border-bottom: none; padding-bottom: 0; }
.dp-proc-row:first-of-type { padding-top: 0; }
.dp-proc-row span { font-weight: 600; }
.dp-proc-row strong { font-weight: 900; color: var(--primary); white-space: nowrap; }

.dp-bullets { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dp-bullets li {
  list-style: none; position: relative; padding-left: 14px;
  font-size: 12px; font-weight: 500; color: var(--muted-fg);
}
.dp-bullets li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
}

.dp-edu { display: flex; gap: 12px; margin-bottom: 16px; }
.dp-edu:last-child { margin-bottom: 0; }
.dp-edu__icon {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(14,168,130,0.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dp-edu__icon svg { width: 16px; height: 16px; }
.dp-edu__degree { font-size: 14px; font-weight: 700; }
.dp-edu__meta { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }

.dp-review {
  border: 1px solid rgba(14,168,130,0.12); border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.dp-review:last-of-type { margin-bottom: 0; }
.dp-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dp-review__avatar {
  width: 36px; height: 36px; border-radius: 999px; background: rgba(14,168,130,0.15);
  color: var(--primary); font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.dp-review__name { font-size: 14px; font-weight: 700; }
.dp-review__date { font-size: 12px; color: var(--muted-fg); }
.dp-review__title { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.dp-review__text { font-size: 14px; color: var(--muted-fg); line-height: 1.7; }
.dp-review__empty { font-size: 14px; color: var(--muted-fg); margin-bottom: 8px; }
.dp-review-success {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
  background: #ecfdf5; color: #047857; font-size: 13px; font-weight: 600;
}
.dp-review-form {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(14,168,130,0.12);
}
.dp-review-form h4 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.dp-review-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.dp-review-form__field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.dp-review-form__field--full { grid-column: 1 / -1; }
.dp-review-form__field input,
.dp-review-form__field select,
.dp-review-form__field textarea {
  width: 100%; border: 1px solid rgba(14,168,130,0.2); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--fg); background: #fff;
}
.dp-review-form__field input:focus,
.dp-review-form__field select:focus,
.dp-review-form__field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,168,130,0.12);
}
.dp-review-form__error { color: #dc2626; font-size: 12px; font-weight: 600; }
.dp-review-form__actions { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .dp-review-form__grid { grid-template-columns: 1fr; }
}

.dp-book__next { font-size: 14px; color: var(--muted-fg); margin-bottom: 16px; }
.dp-book__next span { font-weight: 700; color: var(--primary); }

.dp-cal { margin-bottom: 16px; }
.dp-cal__label {
  font-size: 12px; font-weight: 700; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.dp-cal__box {
  border: 1px solid var(--border);
  border-radius: calc(0.875rem + 4px); /* new-design rounded-xl */
  overflow: hidden;
  font-size: 0.875rem;
}
.dp-cal__nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: rgba(14,168,130,0.05);
}
.dp-cal__nav span { font-size: 0.75rem; font-weight: 700; }
.dp-cal__nav button {
  display: inline-flex; color: var(--primary); padding: 4px; border-radius: 0.875rem;
}
.dp-cal__nav button:hover { background: rgba(14,168,130,0.1); }
.dp-cal__nav svg { width: 16px; height: 16px; }

.dp-cal__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); padding: 4px 4px 0;
}
.dp-cal__weekdays div {
  text-align: center; font-size: 9px; font-weight: 700; color: var(--muted-fg); padding: 4px 0;
}
.dp-cal__days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 8px 8px;
}
.dp-cal__cell {
  height: 28px; display: flex; align-items: center; justify-content: center;
}
.dp-cal__cell button {
  width: 28px; height: 28px;
  border-radius: 0.875rem; /* new-design rounded-lg */
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg); transition: background 0.15s, color 0.15s;
}
.dp-cal__cell button:hover:not(:disabled):not(.is-selected) { background: rgba(14,168,130,0.1); }
.dp-cal__cell button.is-selected { background: var(--primary); color: #fff; }
.dp-cal__cell button.is-disabled,
.dp-cal__cell button:disabled { color: #d1d5db; cursor: default; }

.dp-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px;
}
.dp-slots button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 0.875rem; /* new-design rounded-lg */
  border: 1px solid #e5e7eb; color: var(--fg); transition: all 0.15s;
  background: #fff;
}
.dp-slots button:hover:not(:disabled):not(.is-selected) {
  border-color: rgba(14,168,130,0.45);
  background: rgba(14,168,130,0.06);
}
.dp-slots button.is-selected {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.dp-slots button.is-past,
.dp-slots button.is-past:disabled {
  color: #9ca3af;
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: default;
}
.dp-slots button.is-booked,
.dp-slots button.is-booked:disabled {
  color: #dc2626;
  background-color: #fef2f2;
  background-image: var(--dl-slot-stripes);
  border-color: #fecaca;
  cursor: not-allowed;
}
.dp-slots button.is-past .dp-slot__time,
.dp-slots button.is-booked .dp-slot__time {
  text-decoration: line-through;
}
.dp-slots__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted-fg);
}
.dp-slots__legend-swatch {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid #fecaca;
  background-color: #fef2f2;
  background-image: var(--dl-slot-stripes);
}
.dp-times { margin-top: 14px; }
.dp-times__empty {
  margin-top: 8px; font-size: 12px; color: var(--muted-fg);
}
.dp-times__selected {
  margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--primary);
}
.dp-btn:disabled {
  opacity: 0.55; cursor: not-allowed;
}

.dp-book__insurance {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.dp-insurance-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-insurance-tag {
  font-size: 10px; font-weight: 600; padding: 4px 8px;
  border-radius: 0.375rem; /* new-design rounded-md */
  background: var(--muted); color: var(--fg);
}

.dp-book__clinic {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.dp-book__clinic-name { font-size: 14px; font-weight: 700; }
.dp-book__clinic-city { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }

@media (min-width: 640px) {
  .dp-hero__inner { flex-direction: row; }
  .dp-hero__photo { width: 176px; height: 224px; }
}

@media (min-width: 1024px) {
  .dp-hero__cta { display: flex; }
  .dp-grid { grid-template-columns: 2fr 1fr; }
  .dp-side { height: 100%; }
  .dp-book {
    position: sticky;
    top: 128px;
    z-index: 20;
  }
}
