/* ===============================
   Otoemdad — فقط صفحهٔ technicians.html (لیست فنی‌کاران)
   استایل مشترک در global.css
   =============================== */

.tech-list-main {
  padding-top: 10rem;
  padding-bottom: 3.5rem;
}

.tech-list-main--with-map-fab {
  padding-bottom: 5.75rem;
}

/* دکمهٔ فیکس «مشاهده در نقشه» — پایین وسط صفحه */
.service-detail-map-fab {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--oto-secondary);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 28px rgba(11, 60, 93, 0.42),
    0 4px 14px rgba(247, 147, 30, 0.1);
  transform: translateX(-50%);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.service-detail-map-fab__icon {
  flex-shrink: 0;
  font-size: 1.12rem;
  line-height: 1;
}

.service-detail-map-fab:focus-visible {
  outline: 2px solid var(--oto-secondary);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .service-detail-map-fab:hover {
    color: #fff;
    background: #e8850f;
    box-shadow:
      0 12px 32px rgba(247, 147, 30, 0.48),
      0 6px 16px rgba(11, 60, 93, 0.12);
    transform: translateX(-50%) translateY(-2px);
  }
}

/* breadcrumb بوت‌استرپ — هماهنگ با تم صفحه */
.tech-list-main .breadcrumb {
  font-size: 0.88rem;
  --bs-breadcrumb-divider: "›";
}

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

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

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

.tech-list-hero-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--oto-border);
  border-radius: 20px;
  background: #fff;
}

.tech-list-hero-panel h1 {
  margin: 0 0 0.5rem;
  color: var(--oto-secondary);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
}

.tech-list-hero-panel p {
  margin: 0;
  color: var(--oto-text);
  font-size: 0.95rem;
  line-height: 1.85;
}

.tech-list-hero-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tech-list-hero-panel__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.tech-list-hero-panel__map-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.tech-list-hero-panel__map-btn .bi {
  font-size: 1.1rem;
}

/* نوار دسته‌ها + Swiper */
.tech-category-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.tech-category-strip__btn {
  display: inline-flex;
  flex-shrink: 0;
  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-category-strip__btn:hover {
  border-color: rgba(247, 147, 30, 0.45);
  color: var(--oto-primary);
}

.tech-category-strip__btn:focus-visible {
  outline: 2px solid var(--oto-secondary);
  outline-offset: 2px;
}

.tech-category-swiper {
  flex: 1;
  min-width: 0;
}

.tech-category-swiper .swiper-slide {
  width: auto;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 76px;
  padding: 0.25rem 0.35rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(247, 147, 30, 0.18);
}

.category-chip__icon img {
  width: 30px;
  height: 30px;
  filter: var(--category-chip-icon-filter);
}

.category-chip__icon .bi {
  font-size: 1.35rem;
  line-height: 1;
  filter: var(--category-chip-icon-filter);
}

.category-chip__label {
  max-width: 92px;
  color: var(--oto-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.category-chip--active .category-chip__label {
  color: var(--oto-primary);
  font-weight: 700;
}

.category-chip--active .category-chip__icon {
  box-shadow: 0 0 0 2px var(--oto-primary);
  background: rgba(247, 147, 30, 0.28);
}

.category-chip:focus-visible {
  border-radius: 12px;
  outline: 2px solid var(--oto-secondary);
  outline-offset: 4px;
}

/* عنوان بخش گرید */
.tech-list-section-title {
  margin: 0 0 1.25rem;
  color: var(--oto-secondary);
  font-size: 1.12rem;
  font-weight: 700;
}

/* کارت فهرست (متفاوت از technician-card صفحهٔ اصلی) */
.tech-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.2rem 1.15rem;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
}

.tech-list-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tech-list-card__intro {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.tech-list-card__name {
  margin: 0;
  color: var(--oto-secondary);
  font-size: 1.05rem;
  font-weight: 600;
}

.tech-list-card__specialty {
  margin: 0.35rem 0 0;
  color: #888;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tech-list-card__avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 2px solid var(--oto-primary);
  border-radius: 50%;
  background: #eee;
}

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

/* حروف اول داخل دایره (در HTML کامنت شده؛ در صورت بازگشت فعال کنید)
.tech-list-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oto-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
*/

.tech-list-card__avatar-dot {
  position: absolute;
  z-index: 1;
  bottom: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.tech-list-card__avatar-dot--online {
  background: #22c55e;
}

.tech-list-card__avatar-dot--busy {
  background: #9ca3af;
}

.tech-list-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-list-card__status {
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tech-list-card__status--ready {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.tech-list-card__status--busy {
  background: rgba(156, 163, 175, 0.22);
  color: #4b5563;
}

.tech-list-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--oto-text);
}

.tech-list-card__rating .bi-star-fill {
  font-size: 0.95rem;
  color: #fbbf24;
}

.tech-list-card__reviews {
  color: #888;
  font-size: 0.8rem;
}

.tech-list-card__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #666;
}

.tech-list-card__location .bi-geo-alt-fill {
  flex-shrink: 0;
  color: var(--oto-primary);
  font-size: 1rem;
}

.tech-list-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.tech-list-card__actions .btn-tech-fill,
.tech-list-card__actions .btn-tech-outline {
  flex: 1 1 calc(50% - 0.25rem);
  text-align: center;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .tech-category-strip__btn:hover {
    background: rgba(247, 147, 30, 0.06);
  }
}

/* سایدبار فیلتر */
.tech-list-layout {
  align-items: flex-start;
}

.tech-list-sidebar {
  position: sticky;
  top: 7.5rem;
}

.tech-list-sidebar__panel {
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid #ededed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 60, 93, 0.06);
}

.tech-list-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.tech-list-sidebar__head-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(247, 147, 30, 0.14);
  color: var(--oto-primary);
  font-size: 1.05rem;
}

.tech-list-sidebar__title {
  margin: 0;
  color: var(--oto-secondary);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.tech-list-sidebar__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tech-list-sidebar__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-list-sidebar__label {
  margin: 0;
  color: var(--oto-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

/* جستجو — آیکون داخل باکس */
.tech-list-sidebar__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fafafa;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-list-sidebar__search:focus-within {
  border-color: rgba(247, 147, 30, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px var(--oto-focus-ring);
}

.tech-list-sidebar__search-icon {
  flex-shrink: 0;
  color: var(--oto-primary);
  font-size: 1rem;
  opacity: 0.85;
}

.tech-list-sidebar__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--oto-text);
  font-size: 0.875rem;
}

.tech-list-sidebar__search-input::placeholder {
  color: #b0b0b0;
}

/* سلکت سفارشی */
.tech-list-sidebar__select-wrap {
  position: relative;
}

.tech-list-sidebar__select {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 2.25rem 0.65rem 0.9rem;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fafafa;
  color: var(--oto-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-list-sidebar__select:focus {
  border-color: rgba(247, 147, 30, 0.55);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px var(--oto-focus-ring);
}

.tech-list-sidebar__select-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--oto-secondary);
  font-size: 0.8rem;
  opacity: 0.65;
}

/* سوییچ سفارشی */
.tech-list-sidebar__block--switch {
  margin: 0.1rem 0;
}

.tech-list-sidebar__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-list-sidebar__switch:has(.tech-list-sidebar__switch-input:checked) {
  border-color: rgba(247, 147, 30, 0.45);
  background: rgba(247, 147, 30, 0.06);
}

.tech-list-sidebar__switch-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--oto-secondary);
  font-size: 0.86rem;
  font-weight: 600;
}

.tech-list-sidebar__switch-dot {
  font-size: 0.45rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.tech-list-sidebar__switch:has(.tech-list-sidebar__switch-input:checked) .tech-list-sidebar__switch-dot {
  color: #22c55e;
}

.tech-list-sidebar__switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tech-list-sidebar__switch-track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background: #d1d5db;
  transition: background-color 0.2s ease;
}

.tech-list-sidebar__switch-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.tech-list-sidebar__switch-input:checked + .tech-list-sidebar__switch-track {
  background: var(--oto-primary);
}

.tech-list-sidebar__switch-input:checked + .tech-list-sidebar__switch-track .tech-list-sidebar__switch-thumb {
  transform: translateX(-20px);
}

.tech-list-sidebar__switch-input:focus-visible + .tech-list-sidebar__switch-track {
  outline: 2px solid var(--oto-primary);
  outline-offset: 2px;
}

/* آکاردئون سفارشی — بدون استایل آبی بوت‌استرپ */
.tech-list-sidebar__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.tech-list-sidebar__accordion-item {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
}

.tech-list-sidebar__accordion-heading {
  margin: 0;
}

.tech-list-sidebar__accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 0;
  background: #fafafa;
  color: var(--oto-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tech-list-sidebar__accordion-btn:not(.collapsed) {
  background: rgba(247, 147, 30, 0.1);
  color: var(--oto-primary);
}

.tech-list-sidebar__accordion-btn:focus-visible {
  outline: 2px solid var(--oto-primary);
  outline-offset: -2px;
}

.tech-list-sidebar__accordion-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--oto-secondary);
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.tech-list-sidebar__accordion-btn:not(.collapsed) .tech-list-sidebar__accordion-chevron {
  transform: rotate(180deg);
  color: var(--oto-primary);
  opacity: 1;
}

.tech-list-sidebar__accordion-body {
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.tech-list-sidebar__options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

/* گزینه‌های چک‌باکس / رادیو */
.tech-filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tech-filter-option:hover {
  background: rgba(247, 147, 30, 0.06);
}

.tech-filter-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tech-filter-option__box {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  font-size: 0.75rem;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.tech-filter-option--radio .tech-filter-option__box {
  border-radius: 50%;
}

.tech-filter-option--radio .tech-filter-option__box .bi {
  font-size: 0.45rem;
}

.tech-filter-option__input:checked + .tech-filter-option__box {
  border-color: var(--oto-primary);
  background: var(--oto-primary);
  color: #fff;
}

.tech-filter-option__input:focus-visible + .tech-filter-option__box {
  outline: 2px solid var(--oto-primary);
  outline-offset: 2px;
}

.tech-filter-option__label {
  flex: 1;
  color: var(--oto-text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.tech-filter-option__input:checked ~ .tech-filter-option__label {
  color: var(--oto-secondary);
  font-weight: 600;
}

/* دکمه اعمال */
.tech-list-sidebar__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9a2e 0%, var(--oto-primary) 55%, #e67a00 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(247, 147, 30, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.tech-list-sidebar__submit:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(247, 147, 30, 0.34);
  color: #fff;
}

.tech-list-sidebar__submit:active {
  transform: translateY(1px);
}

.tech-list-sidebar__submit:focus-visible {
  outline: 2px solid var(--oto-secondary);
  outline-offset: 3px;
}

/* دکمه باز کردن فیلتر — زیر ۹۹۲px */
.tech-list-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(247, 147, 30, 0.35);
  border-radius: 14px;
  background: #fff;
  color: var(--oto-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.06);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.tech-list-filter-toggle .bi {
  color: var(--oto-primary);
  font-size: 1.05rem;
}

.tech-list-filter-toggle:hover {
  border-color: rgba(247, 147, 30, 0.55);
  background: rgba(247, 147, 30, 0.06);
  color: var(--oto-primary);
}

.tech-list-filter-toggle:focus-visible {
  outline: 2px solid var(--oto-primary);
  outline-offset: 2px;
}

/* آف‌کنوس فیلتر */
.tech-filter-offcanvas {
  --bs-offcanvas-width: min(100vw - 1.5rem, 360px);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  border: 0;
  box-shadow: -10px 0 36px rgba(11, 60, 93, 0.14);
}

.tech-filter-offcanvas__header {
  flex-shrink: 0;
  align-items: center;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.tech-filter-offcanvas__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.tech-filter-offcanvas__close:focus {
  box-shadow: 0 0 0 0.2rem var(--oto-focus-ring);
}

.tech-filter-offcanvas__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1rem;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

.tech-filter-offcanvas__footer {
  flex-shrink: 0;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ededed;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(11, 60, 93, 0.08);
}

.tech-filter-offcanvas__footer .tech-list-sidebar__submit {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tech-list-sidebar__accordion-btn:hover {
    background: rgba(247, 147, 30, 0.06);
    color: var(--oto-primary);
  }

  .tech-list-sidebar__submit:hover {
    transform: translateY(-1px);
  }

  .tech-list-filter-toggle:hover {
    box-shadow: 0 6px 18px rgba(247, 147, 30, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {

  .category-chip,
  .tech-category-strip__btn,
  .tech-list-sidebar__search,
  .tech-list-sidebar__select,
  .tech-list-sidebar__switch-track,
  .tech-list-sidebar__switch-thumb,
  .tech-list-sidebar__accordion-btn,
  .tech-list-sidebar__accordion-chevron,
  .tech-filter-option,
  .tech-list-sidebar__submit,
  .tech-list-filter-toggle {
    transition-duration: 0.01ms !important;
  }
}
