/* Frontend — لیست آزمایشگاه‌ها */

.mll-grid {
	display: grid;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.mll-grid--cols-1 { grid-template-columns: 1fr; }
.mll-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mll-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mll-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
	.mll-grid--cols-3,
	.mll-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.mll-grid--cols-2,
	.mll-grid--cols-3,
	.mll-grid--cols-4 {
		grid-template-columns: 1fr;
	}
}

.mll-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mll-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.mll-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	padding: 1.25rem;
	background: #f8fafc;
	border-bottom: 1px solid #eef2f7;
}

.mll-card__logo img {
	max-height: 100px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.mll-card__logo--placeholder {
	color: #94a3b8;
	font-size: 48px;
}

.mll-card__body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mll-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	line-height: 1.4;
}

.mll-card__title a {
	color: inherit;
	text-decoration: none;
}

.mll-card__title a:hover {
	color: #2563eb;
}

.mll-card__location,
.mll-card__address,
.mll-card__phone {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #475569;
}

.mll-card__label {
	font-weight: 600;
	color: #334155;
	margin-left: 0.25rem;
}

.mll-card__phone a {
	color: #2563eb;
	text-decoration: none;
	direction: ltr;
	display: inline-block;
}

.mll-card__desc {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: #64748b;
	flex: 1;
}

.mll-card__desc p:last-child {
	margin-bottom: 0;
}

.mll-card__more {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.mll-card__more:hover {
	text-decoration: underline;
}

.mll-empty {
	text-align: center;
	padding: 2rem;
	color: #64748b;
}

/* Single page */
.mll-single-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.mll-single__header {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.mll-single__logo {
	flex-shrink: 0;
	width: 160px;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #eef2f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mll-single__logo img {
	max-width: 100%;
	max-height: 120px;
	object-fit: contain;
}

.mll-single__title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
}

.mll-single__province,
.mll-single__city,
.mll-single__address,
.mll-single__phone {
	margin: 0.5rem 0;
	line-height: 1.7;
	color: #475569;
}

.mll-single__phone a {
	color: #2563eb;
	text-decoration: none;
	direction: ltr;
	display: inline-block;
}

.mll-single__content h2 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.mll-back {
	margin-top: 2rem;
}

.mll-back a {
	color: #2563eb;
	text-decoration: none;
}

.mll-archive__header {
	margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
	.mll-single__header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}
