/**
 * بطاقات الاتصال والخريطة.
 * خصائص منطقية (inline-start/end) لتعمل في RTL و LTR بلا ملف منفصل.
 */

.pm-contact {
	--pm-blue: #0088ff;
	--pm-navy: #022554;
	--pm-ink: #10233d;
	--pm-muted: #6b7c93;
	--pm-line: #e3e9f2;
	--pm-soft: #f5f8fc;

	display: grid;
	grid-template-columns: repeat(var(--pm-c-cols, 3), minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 32px;
}

.pm-contact-card {
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 18px;
	box-shadow: 0 2px 10px rgba(2, 37, 84, .04);
	transition: border-color .22s, box-shadow .22s, transform .22s;
}

.pm-contact-card:hover {
	border-color: rgba(0, 136, 255, .35);
	box-shadow: 0 12px 30px rgba(2, 37, 84, .09);
	transform: translateY(-2px);
}

.pm-contact-name {
	margin: 0 0 16px;
	padding: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--pm-navy);
	border-bottom: 1px solid var(--pm-line);
}

.pm-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--pm-ink);
	text-decoration: none;
	transition: color .2s;
}

.pm-contact-row:last-child {
	margin-bottom: 0;
}

a.pm-contact-row:hover {
	color: var(--pm-blue);
}

.pm-contact-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	color: var(--pm-blue);
	background: rgba(0, 136, 255, .1);
	border-radius: 11px;
	transition: color .2s, background .2s;
}

a.pm-contact-row:hover .pm-contact-ico {
	color: #fff;
	background: var(--pm-blue);
}

.pm-contact-ico svg {
	width: 18px;
	height: 18px;
}

.pm-contact-val {
	padding-block-start: 6px;
}

/* الأرقام والبريد تُعرض دائماً يسار-يمين حتى لا يقلبها محرك BiDi */
.pm-contact-num {
	display: inline-block;
	direction: ltr;
	unicode-bidi: isolate;
	font-weight: 600;
	letter-spacing: .2px;
}

.pm-contact-row--static {
	color: var(--pm-muted);
}

/* ------------------------------------------------------------------ */
/* الخريطة                                                             */
/* ------------------------------------------------------------------ */

.pm-map {
	position: relative;
	overflow: hidden;
	border: 1px solid #e3e9f2;
	border-radius: 18px;
	background: #eef2f7;
	box-shadow: 0 2px 10px rgba(2, 37, 84, .04);
}

.pm-map iframe {
	display: block;
	width: 100%;
	height: var(--pm-map-h, 420px);
	border: 0;
	/* خرائط جوجل تفرض واجهة LTR داخل الإطار */
	direction: ltr;
}

.pm-map-open {
	position: absolute;
	inset-block-end: 16px;
	inset-inline-start: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 700;
	color: #022554;
	background: rgba(255, 255, 255, .96);
	border-radius: 100px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(2, 37, 84, .18);
	transition: color .2s, background .2s, transform .15s;
}

.pm-map-open:hover {
	color: #fff;
	background: #0088ff;
	transform: translateY(-1px);
}

.pm-map-open svg {
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------ */
/* وضع الخريطة في صفحة الاتصال                                         */
/* تحاكي تباعد ودجت الخريطة الأصلي كي يظل نموذج المراسلة متراكباً عليها */
/* ------------------------------------------------------------------ */

/* الودجت الأصلي كان يسحب الخريطة لأعلى بـ 100px لتختفي خلف صفّ البطاقات
   القصيرة. بطاقاتنا أطول، فالسحب كان يقطعها — نتركها في مكانها الطبيعي
   ونُبقي التراكب المقصود بين نموذج المراسلة والخريطة (يأتي من القسم التالي). */
.pm-map-section {
	margin-top: 0;
	margin-bottom: 30px;
}

/* ------------------------------------------------------------------ */
/* الاستجابة                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
	.pm-contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pm-contact {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pm-contact-card {
		padding: 20px 18px;
	}

	.pm-map iframe {
		height: min(var(--pm-map-h, 420px), 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pm-contact-card,
	.pm-contact-row,
	.pm-map-open {
		transition-duration: .01ms;
	}
}

/* ------------------------------------------------------------------ */
/* أزرار قنوات التواصل (واتساب / اتصال) في صفحة اتصل بنا              */
/* ------------------------------------------------------------------ */

.pm-channels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 32px;
}

.pm-channel {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	text-decoration: none;
	border-radius: 16px;
	color: #fff;
	transition: transform .18s, box-shadow .18s, filter .18s;
}

.pm-channel:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: #fff;
}

.pm-channel strong {
	font-size: 17px;
	font-weight: 700;
}

.pm-channel span {
	font-size: 14px;
	opacity: .9;
	unicode-bidi: isolate;
}

.pm-channel--wa {
	background: linear-gradient(135deg, #25d366, #128c7e);
	box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}

.pm-channel--tel {
	background: linear-gradient(135deg, #0088ff, #022554);
	box-shadow: 0 8px 22px rgba(0, 136, 255, .3);
}

@media (max-width: 640px) {
	.pm-channels { grid-template-columns: 1fr; gap: 12px; }
}
