/* ===============================
   Otoemdad — فقط technicians-details.html
   استایل مشترک در global.css
   =============================== */

.tech-detail-main {
  --tech-detail-icon-filter: brightness(0) saturate(100%) invert(69%) sepia(55%) saturate(2067%) hue-rotate(342deg)
    brightness(96%) contrast(102%);

  padding-top: 10rem;
  padding-bottom: 3.5rem;
}

.tech-detail-main .breadcrumb {
  font-size: 0.88rem;
  --bs-breadcrumb-divider: "›";
}

.tech-detail-main .breadcrumb-item a {
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tech-detail-main .breadcrumb-item a:hover {
  color: var(--oto-primary);
}

.tech-detail-main .breadcrumb-item.active {
  color: var(--oto-secondary);
  font-weight: 600;
}

.tech-detail-card {
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

/* ردیف پروفایل: در RTL اطلاعات راست، دکمه‌ها چپ؛ بدون grid تا width:100% ردیف را نشکند */
.tech-detail-profile-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 992px) {
  .tech-detail-profile-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .tech-detail-profile__main {
    flex: 1 1 0;
    min-width: 0;
  }

  .tech-detail-profile__actions-wrap {
    flex: 0 0 auto;
  }
}

.tech-detail-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

@media (min-width: 992px) {
  .tech-detail-profile__actions {
    min-width: 280px;
  }
}

.tech-detail-profile__actions .btn-tech-fill,
.tech-detail-profile__actions .btn-tech-outline {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
}

.tech-detail-profile__actions .btn-tech-fill {
  border: 0;
  cursor: pointer;
}

.tech-detail-profile__actions .btn-tech-outline {
  font-weight: 600;
}

.tech-detail-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.tech-detail-profile__avatar {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--oto-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #eee;
}

.tech-detail-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-profile__avatar-dot {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.tech-detail-profile__title {
  margin: 0 0 0.35rem;
  color: var(--oto-secondary);
  font-size: 1.75rem;
  font-weight: 700;
}

.tech-detail-profile__subtitle {
  margin: 0 0 1rem;
  color: #555;
  font-size: 1rem;
}

.tech-detail-profile__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 992px) {
  .tech-detail-profile__top {
    flex-direction: row;
    align-items: flex-start;
  }

  .tech-detail-profile__info {
    text-align: right;
  }
}

.tech-detail-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.tech-detail-stars .bi {
  font-size: 1.1rem;
  color: #fbbf24;
}

.tech-detail-profile__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

.tech-detail-profile__meta-row .bi {
  margin-left: 0.35rem;
  color: var(--oto-primary);
}

.tech-detail-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 600;
}

.tech-detail-badge-online .bi {
  font-size: 1rem;
}

/* آیکن‌های آماری */
.tech-detail-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.tech-detail-stat-card__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.tech-detail-stat-card__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(247, 147, 30, 0.18);
}

.tech-detail-icon-wrap .bi {
  font-size: 1.15rem;
  filter: var(--tech-detail-icon-filter);
}

.tech-detail-stat-card__label {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
  text-align: end;
}

/* درباره */
.tech-detail-section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-about__lead {
  margin: 0 0 1.25rem;
  color: #364153;
  font-size: 1rem;
  line-height: 1.85;
}

.tech-detail-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-subheading .tech-detail-icon-wrap {
  width: 32px;
  height: 32px;
}

.tech-detail-subheading .bi {
  font-size: 1rem;
}

.tech-detail-check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem 1.5rem;
}

@media (min-width: 768px) {
  .tech-detail-check-list--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.tech-detail-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #364153;
}

.tech-detail-check-list .bi-check-lg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1rem;
  filter: var(--tech-detail-icon-filter);
}

.tech-detail-cert-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.tech-detail-cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #364153;
}

.tech-detail-cert-list .bi-file-earmark-text {
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: var(--tech-detail-icon-filter);
}

.tech-detail-coverage {
  margin: 0;
  font-size: 0.9rem;
  color: #364153;
  line-height: 1.7;
}

.tech-detail-coverage .bi-geo-alt-fill {
  margin-left: 0.35rem;
  color: var(--oto-primary);
}

/* نظرات */
.tech-detail-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tech-detail-reviews__rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--oto-secondary);
}

.tech-detail-reviews__rating-summary .bi-star-fill {
  color: #fbbf24;
}

.tech-detail-review {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.tech-detail-review:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.tech-detail-review__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tech-detail-review__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.tech-detail-review__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-review__body {
  flex: 1;
  min-width: 0;
}

.tech-detail-review__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.tech-detail-review__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-review__stars .bi {
  font-size: 0.95rem;
  color: #fbbf24;
}

.tech-detail-review__date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: #6a7282;
  margin-bottom: 0.5rem;
}

.tech-detail-review__text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #364153;
}

.tech-detail-review__reply-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: #ff6900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tech-detail-review__reply-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fff7ed;
}

.tech-detail-review__reply-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tech-detail-review__reply-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--oto-primary);
  flex-shrink: 0;
}

.tech-detail-review__reply-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-review__reply-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tech-detail-review__reply-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.tech-detail-review__reply-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f9fafb;
}

.tech-detail-review__textarea {
  width: 100%;
  min-height: 86px;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9rem;
  resize: vertical;
}

.tech-detail-review__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.tech-detail-btn-muted {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5dc;
  background: #fff;
  color: #364153;
  font-size: 0.88rem;
  cursor: pointer;
}

.tech-detail-btn-send {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 0;
  background: #ff6900;
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ثبت نظر */
.tech-detail-form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #364153;
}

/* مودال ارسال درخواست تعمیر (Bootstrap — هم‌راستا با فیگما) */
.tech-detail-repair-modal .modal-dialog-scrollable .modal-content {
  border-radius: 16px;
  /* فرم بین header و body مانع flex مستقیم می‌شد؛ بدون min-height:0 بدنه اسکرول نمی‌گیرد */
  min-height: 0;
}

.tech-detail-repair-modal .modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.tech-detail-repair-modal .modal-dialog-scrollable .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.tech-detail-repair-modal .modal-dialog-scrollable .modal-footer {
  flex-shrink: 0;
}

.tech-detail-repair-modal__header .modal-title {
  color: var(--oto-secondary);
  flex: 1;
  text-align: right;
}

.tech-detail-repair-modal__header {
  gap: 0.75rem;
}

.tech-detail-repair-modal__header .btn-close {
  padding: 0.65rem;
  margin: 0;
  flex-shrink: 0;
}

.tech-detail-repair-modal__tech-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fdf6ee;
  border: 1px solid rgba(247, 147, 30, 0.12);
}

.tech-detail-repair-modal__tech-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oto-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.tech-detail-repair-modal__tech-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-repair-modal__tech-spec {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.45;
}

.tech-detail-repair-modal__upload-label {
  margin-bottom: 0.5rem;
}

.tech-detail-repair-dropzone {
  border: 2px dashed #d1d5dc;
  border-radius: 12px;
  background: #fafafa;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-detail-repair-dropzone:hover,
.tech-detail-repair-dropzone:focus {
  outline: none;
  border-color: rgba(247, 147, 30, 0.55);
  background: #fffaf5;
}

.tech-detail-repair-dropzone:focus-visible {
  border-color: var(--oto-primary);
  box-shadow: 0 0 0 3px var(--oto-focus-ring);
}

.tech-detail-repair-dropzone.is-dragover {
  border-color: var(--oto-primary);
  background: #fff5eb;
  box-shadow: inset 0 0 0 1px rgba(247, 147, 30, 0.2);
}

.tech-detail-repair-dropzone__icon {
  display: block;
  margin: 0 auto 0.65rem;
  font-size: 2.35rem;
  color: var(--oto-primary);
  line-height: 1;
}

.tech-detail-repair-dropzone__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #364153;
}

.tech-detail-repair-files {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-detail-repair-files__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  font-size: 0.82rem;
}

.tech-detail-repair-files__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dc2626;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.tech-detail-repair-files__remove:hover {
  background: rgba(220, 38, 38, 0.08);
}

.tech-detail-repair-files__remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.tech-detail-repair-files__meta {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: #4b5563;
  word-break: break-word;
}

.tech-detail-repair-files__meta-size {
  unicode-bidi: plaintext;
}

.tech-detail-repair-files__icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--oto-primary);
}

.tech-detail-repair-modal__footer {
  justify-content: flex-start;
}

.tech-detail-repair-modal__submit {
  border: 0;
  font-weight: 700;
  min-height: 48px;
}

.tech-detail-repair-modal__cancel {
  font-weight: 600;
  min-height: 48px;
}

.tech-detail-star-input__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
}

.tech-detail-star-input__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  color: #d1d5dc;
  transition: color 0.15s ease, transform 0.12s ease;
}

.tech-detail-star-input__btn .bi {
  font-size: 1.85rem;
}

.tech-detail-star-input__btn.is-active {
  color: #fbbf24;
}

.tech-detail-star-input__btn:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.35);
}

.tech-detail-star-input__btn:active {
  transform: scale(0.92);
}

/* مشابه */
.tech-detail-similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tech-detail-similar-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-similar__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tech-detail-similar-swiper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.tech-detail-similar-swiper__btn:hover {
  border-color: rgba(247, 147, 30, 0.45);
  color: var(--oto-primary);
}

.tech-detail-similar-swiper__btn:focus-visible {
  outline: 2px solid var(--oto-secondary);
  outline-offset: 2px;
}

.tech-detail-similar-swiper__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.tech-detail-similar-swiper {
  overflow: hidden;
}

.tech-detail-similar-swiper .swiper-slide {
  height: auto;
}

.tech-detail-similar-swiper .swiper-slide > .tech-detail-similar-card {
  height: 100%;
}

.tech-detail-similar-swiper__pagination {
  position: static;
  margin-top: 1rem;
}

.tech-detail-similar-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
}

.tech-detail-similar-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--oto-primary);
}

.tech-detail-similar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.tech-detail-similar-card__avatar-wrap {
  position: relative;
  margin-bottom: 0.65rem;
}

.tech-detail-similar-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--oto-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tech-detail-similar-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-similar-card__dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.tech-detail-similar-card__dot--busy {
  background: #9ca3af;
}

.tech-detail-similar-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--oto-secondary);
}

.tech-detail-similar-card__spec {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

.tech-detail-similar-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.tech-detail-similar-card__rating .bi-star-fill {
  color: #fbbf24;
  font-size: 1rem;
}

.tech-detail-similar-card__loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.tech-detail-similar-card__loc .bi {
  color: var(--oto-primary);
  font-size: 0.85rem;
}

.tech-detail-similar-card__status {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.35rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.tech-detail-similar-card__status--ready {
  background: #f0fdf4;
  color: #15803d;
}

.tech-detail-similar-card__status--busy {
  background: #f3f4f6;
  color: #4b5563;
}

.tech-detail-similar-card .btn-tech-fill {
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
  border-radius: 12px;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
