/**
 * کارت تعمیرکاران تعمیر بلد — فرانت‌اند.
 *
 * چیدمان: هر تعمیرکار یک ردیف افقی تمام‌عرض است — عکس، اطلاعات، دکمه‌ها.
 *
 * درباره !important: این استایل داخل قالب ناشناخته (هلو المنتور + استایل‌های
 * سراسری المنتور) تزریق می‌شود و آن‌ها روی a و button رنگ hover سراسری
 * می‌گذارند. برای همین فقط روی خواص تعاملی (background-color، color،
 * border-color، text-decoration) و فقط داخل .tbt-section از !important استفاده
 * شده. بقیه استایل‌ها عادی‌اند.
 */

.tbt.tbt-section {
	--tbt-navy: #0f1c72;
	--tbt-navy-2: #223bc4;
	--tbt-gold: #f8b423;
	--tbt-green: #0f8a4d;
	--tbt-ink: #12141c;
	--tbt-ink-2: #3f465c;
	--tbt-muted: #6b7285;
	--tbt-line: #e4e7f1;
	--tbt-line-2: #d3d8ea;
	--tbt-bg: #ffffff;
	--tbt-soft: #f5f6fb;
	--tbt-radius: 14px;
	--tbt-shadow: 0 1px 2px rgba(15, 28, 114, .05), 0 10px 28px -18px rgba(15, 28, 114, .35);
	--tbt-shadow-hover: 0 2px 6px rgba(15, 28, 114, .08), 0 22px 46px -24px rgba(15, 28, 114, .45);

	box-sizing: border-box;
	display: block;
	color: var(--tbt-ink);
	direction: rtl;
	text-align: right;
	margin: 40px 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.8;
}

.tbt-section *,
.tbt-section *::before,
.tbt-section *::after {
	box-sizing: border-box;
}

/* پاک‌سازی چیزهایی که قالب‌ها معمولاً تحمیل می‌کنند */

.tbt-section ul,
.tbt-section ol,
.tbt-section li {
	list-style: none !important;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.tbt-section li::before,
.tbt-section li::marker {
	content: none;
}

.tbt-section p {
	margin: 0;
}

.tbt-section button {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
}

.tbt-section a {
	box-shadow: none;
	text-decoration: none !important;
}

.tbt-section img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------- سرتیتر */

.tbt-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 20px;
}

.tbt-head-main {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	width: 100%;
}

.tbt-section .tbt-title {
	font-size: clamp(20px, 3vw, 25px);
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	color: var(--tbt-navy);
	letter-spacing: -.02em;
}

.tbt-count {
	display: inline-flex;
	align-items: center;
	background: var(--tbt-soft);
	border: 1px solid var(--tbt-line);
	border-radius: 999px;
	padding: 3px 13px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tbt-muted);
	white-space: nowrap;
}

.tbt-subtitle {
	font-size: 14.5px;
	color: var(--tbt-muted);
	line-height: 1.8;
	width: 100%;
}

/* ------------------------------------------------------------- فیلتر منطقه */

.tbt-filter {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 3px 0 14px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.tbt-filter::-webkit-scrollbar {
	height: 4px;
}

.tbt-filter::-webkit-scrollbar-thumb {
	background: var(--tbt-line-2);
	border-radius: 4px;
}

.tbt-section .tbt-chip-filter {
	flex: 0 0 auto;
	background-color: var(--tbt-bg) !important;
	border: 1px solid var(--tbt-line-2) !important;
	border-radius: 999px;
	padding: 7px 17px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tbt-ink-2) !important;
	cursor: pointer;
	line-height: 1.6;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.tbt-section .tbt-chip-filter:hover,
.tbt-section .tbt-chip-filter:focus {
	background-color: var(--tbt-soft) !important;
	border-color: var(--tbt-navy) !important;
	color: var(--tbt-navy) !important;
}

.tbt-section .tbt-chip-filter.is-active,
.tbt-section .tbt-chip-filter.is-active:hover,
.tbt-section .tbt-chip-filter.is-active:focus {
	background-color: var(--tbt-navy) !important;
	border-color: var(--tbt-navy) !important;
	color: #fff !important;
}

/* ------------------------------------------------------------- فهرست ردیفی */

.tbt-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ------------------------------------------------------------- ردیف تعمیرکار */

.tbt-section .tbt-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"media body"
		"actions actions";
	align-items: start;
	gap: 14px 15px;
	background: var(--tbt-bg);
	border: 1px solid var(--tbt-line);
	border-radius: var(--tbt-radius);
	box-shadow: var(--tbt-shadow);
	padding: 16px;
	transition: box-shadow .2s ease, border-color .2s ease;
}

@media (min-width: 720px) {
	.tbt-section .tbt-card {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "media body actions";
		align-items: center;
		gap: 20px;
		padding: 18px 20px;
	}
}

.tbt-section .tbt-card:hover {
	box-shadow: var(--tbt-shadow-hover);
	border-color: var(--tbt-line-2);
}

.tbt-section .tbt-card[hidden] {
	display: none;
}

/* عکس و نشان رتبه */

.tbt-media {
	grid-area: media;
	position: relative;
	flex: 0 0 auto;
}

.tbt-section .tbt-avatar {
	display: block;
	width: 68px;
	height: 68px;
	border-radius: 14px;
	object-fit: cover;
	background: var(--tbt-soft);
	border: 1px solid var(--tbt-line);
}

@media (min-width: 720px) {
	.tbt-section .tbt-avatar {
		width: 76px;
		height: 76px;
	}
}

.tbt-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(140deg, var(--tbt-navy), var(--tbt-navy-2));
	color: #fff;
	font-size: 27px;
	font-weight: 800;
	line-height: 1;
	border-color: transparent;
}

.tbt-badge {
	position: absolute;
	inset-block-start: -6px;
	inset-inline-start: -6px;
	min-width: 23px;
	height: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	border: 2px solid #fff;
	background: var(--tbt-muted);
	line-height: 1;
	box-shadow: 0 2px 6px rgba(15, 28, 114, .25);
}

.tbt-badge-1 {
	background: var(--tbt-gold);
	color: #4a3000;
}

.tbt-badge-2 {
	background: #97a1b6;
}

.tbt-badge-3 {
	background: #c98a4b;
}

/* ستون اطلاعات */

.tbt-body {
	grid-area: body;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.tbt-headline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
}

.tbt-section .tbt-name {
	margin: 0;
	padding: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--tbt-ink);
	overflow-wrap: anywhere;
}

.tbt-rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--tbt-muted);
	line-height: 1.6;
	white-space: nowrap;
}

.tbt-rating-value {
	font-weight: 800;
	color: var(--tbt-ink);
}

.tbt-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tbt-green);
	white-space: nowrap;
}

.tbt-verified .tbt-icon {
	width: 15px;
	height: 15px;
}

/* ستاره‌ها */

.tbt-stars {
	display: inline-flex;
	gap: 1px;
	flex: 0 0 auto;
}

.tbt-star {
	width: 15px;
	height: 15px;
	fill: var(--tbt-line-2);
}

.tbt-star.is-filled {
	fill: var(--tbt-gold);
}

/* برچسب تخصص */

.tbt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbt-section .tbt-chip {
	display: inline-flex;
	align-items: center;
	background: var(--tbt-soft);
	border: 1px solid var(--tbt-line);
	border-radius: 7px;
	padding: 3px 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tbt-ink-2);
	line-height: 1.7;
	white-space: nowrap;
}

.tbt-section .tbt-chip-more {
	background: transparent;
	color: var(--tbt-muted);
}

/* خط مناطق و توضیح کوتاه */

.tbt-areas-line {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 12.8px;
	color: var(--tbt-muted);
	line-height: 1.7;
}

.tbt-areas-line .tbt-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	margin-top: 3px;
	opacity: .75;
}

.tbt-excerpt {
	font-size: 13.2px;
	color: var(--tbt-muted);
	line-height: 1.85;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 720px) {
	.tbt-excerpt {
		-webkit-line-clamp: 1;
		line-clamp: 1;
	}
}

/* ستون دکمه‌ها */

.tbt-actions {
	grid-area: actions;
	display: flex;
	gap: 8px;
	align-items: stretch;
}

@media (min-width: 720px) {
	.tbt-actions {
		flex-direction: column;
		justify-content: center;
		width: 190px;
		flex: 0 0 auto;
	}
}

.tbt-section .tbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border-radius: 10px;
	border: 1px solid transparent !important;
	padding: 11px 15px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .1s ease;
}

.tbt-section .tbt-btn:active {
	transform: scale(.985);
}

.tbt-section .tbt-btn-call,
.tbt-section .tbt-btn-call:visited {
	flex: 1 1 auto;
	background-color: var(--tbt-navy) !important;
	color: #fff !important;
	letter-spacing: .3px;
}

.tbt-section .tbt-btn-call:hover,
.tbt-section .tbt-btn-call:focus {
	background-color: var(--tbt-navy-2) !important;
	color: #fff !important;
}

.tbt-btn-num {
	font-size: 15px;
	font-weight: 800;
}

.tbt-section .tbt-btn-ghost {
	flex: 0 0 auto;
	background-color: var(--tbt-bg) !important;
	border-color: var(--tbt-line-2) !important;
	color: var(--tbt-ink-2) !important;
	font-size: 13.5px;
	padding: 9px 14px;
}

.tbt-section .tbt-btn-ghost:hover,
.tbt-section .tbt-btn-ghost:focus {
	background-color: var(--tbt-soft) !important;
	border-color: var(--tbt-navy) !important;
	color: var(--tbt-navy) !important;
}

.tbt-btn-small {
	padding: 8px 14px;
	font-size: 13.5px;
	border-radius: 9px;
}

.tbt-section .tbt-btn .tbt-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.tbt-icon {
	width: 20px;
	height: 20px;
}

.tbt-section :focus-visible {
	outline: 2px solid var(--tbt-navy);
	outline-offset: 2px;
}

/* ------------------------------------------------------------- بدون نتیجه */

.tbt-no-result {
	margin-top: 14px;
	padding: 18px;
	background: var(--tbt-soft);
	border: 1px dashed var(--tbt-line-2);
	border-radius: 12px;
	font-size: 14px;
	color: var(--tbt-muted);
	text-align: center;
	line-height: 1.9;
}

.tbt-section .tbt-no-result a {
	color: var(--tbt-navy) !important;
	font-weight: 800;
}

/* ------------------------------------------------------------- مودال */

body.tbt-modal-open {
	overflow: hidden;
}

.tbt-modal {
	position: fixed;
	inset: 0;
	z-index: 99999 !important;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	direction: rtl;
	text-align: right;
	font-size: 15px;
	line-height: 1.8;
	color: #12141c;
	box-sizing: border-box;
}

.tbt-modal *,
.tbt-modal *::before,
.tbt-modal *::after {
	box-sizing: border-box;
}

.tbt-modal[hidden] {
	display: none;
}

.tbt-modal ul,
.tbt-modal li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.tbt-modal li::before,
.tbt-modal li::marker {
	content: none;
}

.tbt-modal p {
	margin: 0;
}

.tbt-modal button {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
}

.tbt-modal a {
	text-decoration: none !important;
}

.tbt-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 40, .58);
}

.tbt-modal-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 20px 20px 0 0;
	padding: 22px 18px 18px;
	animation: tbt-slide .22s ease-out;
	box-shadow: 0 -8px 40px rgba(10, 14, 40, .28);
}

@media (min-width: 768px) {
	.tbt-modal {
		align-items: center;
	}

	.tbt-modal-box {
		border-radius: 20px;
		padding: 26px;
	}
}

@keyframes tbt-slide {
	from {
		transform: translateY(18px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.tbt-modal .tbt-modal-close {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50%;
	background-color: #f2f3f8 !important;
	color: #4b5563 !important;
	cursor: pointer;
	transition: background-color .16s ease;
}

.tbt-modal .tbt-modal-close:hover {
	background-color: #e5e7f0 !important;
}

.tbt-modal-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-inline-end: 44px;
	margin-bottom: 16px;
}

.tbt-modal-image {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	object-fit: cover;
	flex: 0 0 auto;
	border: 1px solid #e4e7f1;
}

.tbt-modal .tbt-modal-name {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
}

.tbt-modal-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7285;
}

.tbt-modal-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tbt-modal .tbt-modal-block h4 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #6b7285;
	letter-spacing: .2px;
}

.tbt-modal-desc {
	font-size: 14.5px;
	line-height: 2;
	color: #3f465c;
	white-space: pre-line;
}

.tbt-reviews {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tbt-review {
	background: #f5f6fb;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.9;
	color: #3f465c;
}

.tbt-review-stars {
	display: flex;
	gap: 1px;
	margin-bottom: 6px;
}

.tbt-modal-foot {
	position: sticky;
	inset-block-end: -18px;
	display: flex;
	gap: 8px;
	margin-top: 18px;
	padding: 14px 0 4px;
	background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0));
}

.tbt-modal .tbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border-radius: 10px;
	border: 1px solid transparent !important;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	flex: 1 1 auto;
}

.tbt-modal .tbt-btn-call,
.tbt-modal .tbt-btn-call:visited {
	background-color: #0f1c72 !important;
	color: #fff !important;
}

.tbt-modal .tbt-btn-call:hover {
	background-color: #223bc4 !important;
	color: #fff !important;
}

.tbt-modal .tbt-btn-ghost {
	background-color: #fff !important;
	border-color: #d3d8ea !important;
	color: #3f465c !important;
}

.tbt-modal .tbt-btn-ghost:hover {
	background-color: #f5f6fb !important;
	border-color: #0f1c72 !important;
	color: #0f1c72 !important;
}

.tbt-modal .tbt-icon {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
}

.tbt-modal .tbt-chip {
	display: inline-flex;
	align-items: center;
	background: #f5f6fb;
	border: 1px solid #e4e7f1;
	border-radius: 7px;
	padding: 3px 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: #3f465c;
	line-height: 1.7;
}

.tbt-modal .tbt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbt-modal .tbt-stars {
	display: inline-flex;
	gap: 1px;
}

.tbt-modal .tbt-star {
	width: 15px;
	height: 15px;
	fill: #d3d8ea;
}

.tbt-modal .tbt-star.is-filled {
	fill: #f8b423;
}

/* ------------------------------------------------------------- کد رهگیری */

.tbt-lead-box {
	max-width: 440px;
}

.tbt-modal .tbt-lead-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	padding-inline-end: 44px;
}

.tbt-lead-desc {
	margin-bottom: 16px !important;
	font-size: 14px;
	color: #6b7285;
	line-height: 1.9;
}

.tbt-lead-field {
	margin-bottom: 14px;
}

.tbt-lead-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 700;
}

.tbt-modal .tbt-lead-input {
	width: 100%;
	border: 1px solid #d3d8ea;
	border-radius: 11px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	direction: ltr;
	text-align: left;
	background: #fff;
	color: #12141c;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.tbt-modal .tbt-lead-input:focus {
	border-color: #0f1c72;
	box-shadow: 0 0 0 3px rgba(15, 28, 114, .1);
	outline: none;
}

.tbt-lead-error {
	margin-top: 8px !important;
	font-size: 13px;
	color: #dc2626;
	font-weight: 600;
}

.tbt-modal .tbt-lead-submit {
	width: 100%;
}

.tbt-lead-result {
	text-align: center;
	padding: 10px 0;
}

.tbt-lead-code {
	display: inline-block;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 5px;
	direction: ltr;
	background: #f5f6fb;
	border: 2px dashed #d3d8ea;
	border-radius: 14px;
	padding: 14px 26px;
	margin: 8px 0 12px;
	color: #0f1c72;
}

.tbt-lead-note {
	font-size: 13.5px;
	color: #6b7285;
	line-height: 1.9;
}

.tbt-lead-support {
	margin-top: 12px !important;
	font-size: 13px;
	color: #6b7285;
}

.tbt-modal .tbt-lead-support a {
	color: #0f1c72 !important;
	font-weight: 700;
}

/* ------------------------------------------------------------- دسترس‌پذیری */

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

	.tbt-section .tbt-card,
	.tbt-section .tbt-btn,
	.tbt-section .tbt-chip-filter,
	.tbt-modal-box {
		transition: none;
		animation: none;
	}
}
