/* ── Doctors Page Styles ─────────────────────────────────────────────────── */

.doctors-page { padding: 32px 0 80px; }

/* ═══ Map section ═══ */
.map-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 30px 18px;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06);
}
.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.map-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}
.map-hint { font-size: 13px; color: var(--text-2); margin: 0; }
.map-reset {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.map-reset:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

.map-wrap { position: relative; }
.uz-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
}
.uz-map path {
  fill: #bfd7f8;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .2s ease;
}
.uz-map path:hover { fill: #60a5fa; }
.uz-map path.active { fill: var(--primary); }
.uz-map-capital circle {
  fill: #0d9488;
  stroke: #fff;
  stroke-width: 2;
}
.uz-map-capital .pulse {
  fill: none;
  stroke: #0d9488;
  stroke-width: 2;
  animation: mapPulse 2s ease-out infinite;
  transform-origin: 747.8px 339.4px;
}
@keyframes mapPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.45);
  z-index: 10;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.map-tooltip strong { font-size: 13px; }
.map-tooltip .mt-count { color: #5eead4; font-weight: 700; }

@media (max-width: 600px) {
  .map-section { padding: 18px 16px 12px; border-radius: 18px; }
}

/* ═══ Featured section — premium dark panel ═══ */
.featured-section {
  position: relative;
  margin-bottom: 36px;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #0d9488 130%);
  border-radius: 24px;
  padding: 30px 30px 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px -16px rgba(30, 58, 138, 0.45);
}
.featured-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  pointer-events: none;
}
.featured-section::after {
  content: '';
  position: absolute;
  bottom: -140px; left: 20%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(13,148,136,0.25), transparent 70%);
  pointer-events: none;
}
.featured-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.featured-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.featured-crown {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.55);
}
.featured-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}
.featured-title .featured-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.featured-badge {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}
.featured-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.featured-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.18);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.3);
}

.fc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.fc-avatar {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #0d9488);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0;
  position: relative;
}
.fc-avatar img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; }
.fc-featured-star {
  position: absolute;
  bottom: -5px; right: -5px;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  color: #fff;
}
.fc-featured-star svg { width: 10px; height: 10px; }
.fc-info { flex: 1; min-width: 0; }
.fc-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-rating {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; flex-shrink: 0;
  padding: 3px 9px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 100px;
}
.fc-rating-star { color: #f59e0b; font-size: 11px; line-height: 1; }
.fc-rating-num { font-size: 12.5px; font-weight: 700; color: #92400e; }

.fc-details { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.fc-details span { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.fc-details svg { color: var(--text-3); flex-shrink: 0; }

.fc-clinic {
  font-size: 11.5px; color: var(--text-2);
  background: var(--bg-2); border-radius: 8px;
  padding: 7px 10px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-clinic svg { color: var(--text-3); flex-shrink: 0; }

.fc-actions { display: flex; gap: 8px; }
.fc-btn-call {
  flex: 1; padding: 9px 0;
  background: var(--gradient); color: #fff;
  border: none; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity .15s, box-shadow .15s;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.fc-btn-call:hover { color: #fff; box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.5); }
.fc-btn-more {
  padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: all .15s; font-family: inherit;
}
.fc-btn-more:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-section { padding: 22px 18px; border-radius: 18px; }
  .featured-badge { display: none; }
}

/* ═══ Stats bar ═══ */
.doctors-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 30px;
  margin-bottom: 28px;
  width: fit-content;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}
.dstat { display: flex; align-items: baseline; gap: 7px; }
.dstat-num {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dstat-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.dstat-sep { width: 1px; height: 30px; background: var(--border); }

/* ═══ Filters row ═══ */
.doctors-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.df-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}
.df-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.df-search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.df-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.df-search-input::placeholder { color: var(--text-3); }

.df-select-wrap { position: relative; }
.df-select-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.df-select {
  padding: 11px 38px 11px 36px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23888' stroke-width='2' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .15s, box-shadow .15s;
  min-width: 180px;
}
.df-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.df-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.df-reset:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ═══ Specialty chips ═══ */
.spec-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.spec-chip {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.spec-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.spec-chip.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(37, 99, 235, 0.4);
}

/* ═══ Result info ═══ */
.doctors-result-info {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
  min-height: 20px;
}

/* ═══ Doctors grid ═══ */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ═══ Doctor card ═══ */
.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.doc-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.22);
  transform: translateY(-4px);
}

.doc-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.doc-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.doc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-info { flex: 1; min-width: 0; }
.doc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-spec {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* Rating pill */
.doc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 100px;
}
.doc-rating-stars { color: #f59e0b; font-size: 12px; line-height: 1; }
.doc-rating-num { font-size: 13px; font-weight: 700; color: #92400e; }

/* Details */
.doc-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.doc-detail {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
}
.doc-detail svg { color: var(--text-3); flex-shrink: 0; }
.doc-detail strong { color: var(--text); font-weight: 600; }

/* Description */
.doc-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.doc-card-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--bg-2);
}
.doc-btn-call {
  flex: 1;
  padding: 10px 0;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow .15s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.doc-btn-call:hover { color: #fff; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55); }
.doc-btn-more {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.doc-btn-more:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ═══ Skeleton ═══ */
.doc-skeleton {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  height: 240px;
  overflow: hidden;
  position: relative;
}
.doc-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.8) 50%, transparent 100%);
  animation: shimmer 1.4s infinite;
  background-size: 200% 100%;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.doc-skeleton::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    #f3f4f6 0px, #f3f4f6 14px,
    transparent 14px, transparent 24px
  );
  border-radius: 6px;
}

/* ═══ Empty state ═══ */
.doctors-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-2);
}
.doctors-empty .empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.doctors-empty h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.doctors-empty p { font-size: 14px; margin-bottom: 24px; }

/* ═══ Modal ═══ */
.doc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.doc-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px) scale(.98)} to{opacity:1;transform:none} }
.doc-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all .15s;
}
.doc-modal-close:hover { background: #fee2e2; color: #ef4444; }

.doc-modal-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 18px;
  overflow: hidden;
}
.doc-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-modal-name { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.doc-modal-spec { text-align: center; margin-bottom: 24px; }
.doc-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.doc-modal-item {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px 16px;
}
.doc-modal-item-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 5px; font-weight: 600; }
.doc-modal-item-val { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
.doc-modal-item-val svg { color: var(--primary); flex-shrink: 0; }
.doc-modal-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.doc-modal-actions { display: flex; gap: 10px; }
.doc-modal-actions .doc-btn-call { font-size: 14px; padding: 13px 0; border-radius: 12px; }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .doctors-filters { flex-direction: column; }
  .df-search { max-width: 100%; width: 100%; }
  .df-select-wrap { width: 100%; }
  .df-select { width: 100%; }
  .df-reset { width: 100%; justify-content: center; }
  .doctors-stats { gap: 16px; padding: 14px 20px; flex-wrap: wrap; width: 100%; justify-content: center; }
  .doc-modal { padding: 24px; }
  .doc-modal-grid { grid-template-columns: 1fr; }
}
