.rzp-jpm {
	--rzp-active: #7a1731;
	--rzp-inactive: #d7d7d7;
	--rzp-selected: #b98b57;
	--rzp-marker: #7a1731;
	display: grid;
	grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	color: #252525;
	box-sizing: border-box;
}

.rzp-jpm *, .rzp-jpm *::before, .rzp-jpm *::after { box-sizing: border-box; }
.rzp-jpm--panel-left .rzp-jpm__map { order: 2; }
.rzp-jpm--panel-left .rzp-jpm__panel { order: 1; }

.rzp-jpm__map {
	position: sticky;
	top: 24px;
	min-width: 0;
	padding: clamp(10px, 2vw, 22px);
	background: #fbfaf9;
	border: 1px solid #eee9e6;
	border-radius: 22px;
	overflow: visible;
}

.rzp-jpm-svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 680px;
	max-height: none;
	margin-inline: auto;
	overflow: visible;
}

.rzp-jpm-region {
	fill: var(--rzp-active);
	stroke: #fff;
	stroke-width: 4;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill .2s ease, opacity .2s ease, stroke .2s ease;
}

.rzp-jpm-region:hover { opacity: .82; }
.rzp-jpm-region.is-empty { fill: var(--rzp-inactive); }
.rzp-jpm-region.is-selected { fill: var(--rzp-selected); stroke: #fff; stroke-width: 5; }
.rzp-jpm-region:focus, .rzp-jpm-marker:focus { outline: none !important; }
.rzp-jpm-marker { cursor: pointer; }
.rzp-jpm-marker[hidden] { display: none; }

.rzp-jpm-marker circle {
	fill: var(--rzp-marker);
	stroke: #fff;
	stroke-width: 6;
	filter: drop-shadow(0 6px 8px rgb(0 0 0 / 22%));
	transition: transform .2s ease, fill .2s ease;
}

.rzp-jpm-marker:hover circle, .rzp-jpm-marker.is-selected circle { fill: var(--rzp-selected); transform: scale(1.15); }
.rzp-jpm-marker-count { fill: #fff; font: 700 17px/1 Arial, sans-serif; pointer-events: none; }

.rzp-jpm-governorate-label {
	fill: #3e3034;
	stroke: rgb(255 255 255 / 94%);
	stroke-width: 10px;
	stroke-linejoin: round;
	paint-order: stroke fill;
	font: 700 22px/1.15 Arial, sans-serif;
	pointer-events: none;
}

.rzp-jpm-governorate-label.is-selected { fill: var(--rzp-active); font-weight: 900; }
.rzp-jpm__panel { min-width: 0; padding-block: clamp(8px, 2vw, 22px); }
.rzp-jpm__panel-head { padding-block-end: 22px; border-block-end: 1px solid #e5dfdc; }

.rzp-jpm__eyebrow {
	margin: 0 0 8px;
	color: var(--rzp-active);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rzp-jpm__title { margin: 0; color: #211d1e; font-size: clamp(30px, 4vw, 52px); font-weight: 750; line-height: 1.05; }
.rzp-jpm__count { margin: 10px 0 0; color: #716a6c; font-size: 15px; }
.rzp-jpm__search { margin-block: 24px 16px; }
.rzp-jpm__search[hidden] { display: none; }

.rzp-jpm__search input {
	width: 100%;
	min-height: 48px;
	padding: 11px 16px;
	border: 1px solid #d6ceca;
	border-radius: 10px;
	background: #fff;
	color: #252525;
	font: inherit;
}

.rzp-jpm__search input:focus { outline: 3px solid color-mix(in srgb, var(--rzp-active) 22%, transparent); border-color: var(--rzp-active); }
.rzp-jpm__status { min-height: 24px; margin-block: 8px; color: #716a6c; font-size: 14px; }

.rzp-jpm.is-loading .rzp-jpm__status::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-inline-end: 8px;
	border: 2px solid #ddd;
	border-block-start-color: var(--rzp-active);
	border-radius: 50%;
	vertical-align: -2px;
	animation: rzp-jpm-spin .7s linear infinite;
}

@keyframes rzp-jpm-spin { to { transform: rotate(360deg); } }
.rzp-jpm__projects { display: grid; gap: 12px; }

.rzp-jpm-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 16px;
	background: #fff;
	border: 1px solid #e9e4e1;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgb(45 25 32 / 5%);
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rzp-jpm-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--rzp-active) 35%, #e9e4e1);
	box-shadow: 0 12px 30px rgb(45 25 32 / 10%);
}

.rzp-jpm-card:focus { outline: none !important; }
.rzp-jpm-card:focus-visible { border-color: var(--rzp-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rzp-active) 18%, transparent); }

.rzp-jpm-card:not(:has(.rzp-jpm-card__image)) { grid-template-columns: 1fr; }
.rzp-jpm-card__image { display: block; width: 112px; height: 86px; object-fit: cover; border-radius: 9px; }
.rzp-jpm-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.rzp-jpm-card__year, .rzp-jpm-card__description { margin: 6px 0 0; color: #746d6f; font-size: 13px; line-height: 1.55; }

.rzp-jpm__load-more {
	display: block;
	min-height: 46px;
	margin: 20px auto 0;
	padding: 10px 26px;
	border: 1px solid var(--rzp-active);
	border-radius: 999px;
	background: transparent;
	color: var(--rzp-active);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.rzp-jpm__load-more:hover, .rzp-jpm__load-more:focus-visible { background: var(--rzp-active); color: #fff; }
.rzp-jpm__load-more[hidden] { display: none; }
.rzp-jpm__fallback { margin: 20px 0; }

.rzp-jpm-modal[hidden] { display: none !important; }
.rzp-jpm-modal, .rzp-jpm-modal *, .rzp-jpm-modal *::before, .rzp-jpm-modal *::after { box-sizing: border-box; }

.rzp-jpm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.rzp-jpm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(20 12 15 / 72%);
	backdrop-filter: blur(4px);
}

.rzp-jpm-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(220px, .85fr) minmax(300px, 1.15fr);
	width: min(900px, 100%);
	max-height: min(82vh, 760px);
	overflow: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 28px 80px rgb(0 0 0 / 32%);
}

.rzp-jpm-modal__dialog:not(:has(.rzp-jpm-modal__media:not([hidden]))) { grid-template-columns: 1fr; max-width: 680px; }
.rzp-jpm-modal__media { min-height: 310px; background: #eee9e6; }
.rzp-jpm-modal__media[hidden] { display: none; }
.rzp-jpm-modal__image { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }

.rzp-jpm-modal__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(28px, 5vw, 58px);
}

.rzp-jpm-modal__governorate {
	margin: 0 0 10px;
	color: var(--rzp-active);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rzp-jpm-modal__title { margin: 0; color: #211d1e; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; overflow-wrap: anywhere; }
.rzp-jpm-modal__year { margin: 16px 0 0; color: #746d6f; font-weight: 700; }
.rzp-jpm-modal__description { margin: 18px 0 0; color: #5f5759; font-size: 15px; line-height: 1.75; }

.rzp-jpm-modal__close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #211d1e;
	box-shadow: 0 5px 18px rgb(0 0 0 / 14%);
	font: 400 30px/1 Arial, sans-serif;
	cursor: pointer;
}

.rzp-jpm-modal__close:focus { outline: none !important; }
.rzp-jpm-modal__close:hover { background: var(--rzp-active); color: #fff; }
html.rzp-jpm-modal-open { overflow: hidden; }

@media (max-width: 800px) {
	.rzp-jpm { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rzp-jpm__map, .rzp-jpm--panel-left .rzp-jpm__map { position: relative; top: auto; order: 1; }
	.rzp-jpm__panel, .rzp-jpm--panel-left .rzp-jpm__panel { order: 2; }
	.rzp-jpm-svg { width: min(100%, 620px); max-height: none; }
}

@media (max-width: 480px) {
	.rzp-jpm__map { padding: 10px; border-radius: 14px; }
	.rzp-jpm-governorate-label { font-size: 20px; stroke-width: 9px; }
	.rzp-jpm-card { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.rzp-jpm-card__image { width: 82px; height: 76px; }
	.rzp-jpm-modal { padding: 12px; }
	.rzp-jpm-modal__dialog { grid-template-columns: 1fr; max-height: 88vh; border-radius: 16px; }
	.rzp-jpm-modal__media { min-height: 190px; max-height: 240px; }
	.rzp-jpm-modal__image { min-height: 190px; max-height: 240px; }
	.rzp-jpm-modal__content { padding: 30px 22px 26px; }
	.rzp-jpm-modal__close { top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.rzp-jpm *, .rzp-jpm *::before, .rzp-jpm *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
