/* Project Location Map — front-end styles */

.plm-map-wrap {
	position: relative;
	width: 100%;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	background: #f2f5f9;
	box-shadow: 0 1px 0 rgba(20, 30, 50, 0.04), 0 18px 40px -22px rgba(20, 30, 50, 0.28);
}

.plm-map {
	width: 100%;
	min-height: 320px;
}

.plm-map-wrap .leaflet-container {
	background: #f2f5f9;
	font: inherit;
}

/* --- Pin --- */
.plm-pin-wrap {
	background: none;
	border: 0;
}

.plm-pin-shift {
	display: block;
	transition: transform 0.18s ease;
}

.plm-pin {
	display: block;
	filter: drop-shadow(0 4px 4px rgba(20, 30, 50, 0.35));
	transform-origin: 50% 100%;
	transition: transform 0.15s ease;
}

.plm-pin-wrap:hover .plm-pin,
.plm-pin-wrap:focus .plm-pin {
	transform: translateY(-2px) scale(1.08);
}

/* --- Zoom / attribution controls --- */
.plm-map-wrap .leaflet-bar {
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px -8px rgba(20, 30, 50, 0.5);
}

.plm-map-wrap .leaflet-bar a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	color: #3a3f52;
	background: #fff;
	border-bottom: 1px solid #eef0f4;
	font-size: 18px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.plm-map-wrap .leaflet-bar a:hover {
	background: #c6871b;
	color: #fff;
}

.plm-map-wrap .leaflet-bar a:last-child {
	border-bottom: 0;
}

/* --- Detail modal (opens on pin click) --- */
.plm-modal,
.plm-modal *,
.plm-lightbox,
.plm-lightbox * {
	box-sizing: border-box;
}

html.plm-modal-open,
body.plm-modal-open {
	overflow: hidden;
}

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

.plm-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
}

.plm-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(18, 22, 30, 0.62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.plm-modal__panel {
	position: relative;
	width: 100%;
	max-width: 1140px;
	max-height: 90vh;
	overflow-y: auto;
	background: #d3b35d;
	color: #fff;
	border-radius: 16px;
	padding: 52px 56px 54px;
	box-shadow: 0 30px 80px -20px rgba(10, 14, 22, 0.6);
	animation: plm-modal-in 0.22s ease;
}

@keyframes plm-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to   { opacity: 1; transform: none; }
}

.plm-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.2s ease;
}

.plm-modal__close:hover {
	background: rgba(255, 255, 255, 0.32);
	transform: rotate(90deg);
}

.plm-modal__title {
	margin: 4px 44px 30px;
	text-align: center;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.plm-modal__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: 40px;
	align-items: stretch;
}

.plm-modal--no-media .plm-modal__grid {
	grid-template-columns: 1fr;
}

.plm-modal__media {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.15);
	cursor: zoom-in;
}

.plm-modal__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	max-height: 540px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.plm-modal__media:hover .plm-modal__img {
	transform: scale(1.03);
}

.plm-modal__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(18, 22, 30, 0.55);
	color: #fff;
	opacity: 0.85;
	transition: opacity 0.15s ease, background 0.15s ease;
	pointer-events: none;
}

.plm-modal__media:hover .plm-modal__zoom {
	opacity: 1;
	background: rgba(18, 22, 30, 0.72);
}

.plm-modal__city {
	margin: 2px 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.plm-modal__desc {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.7;
	color: #fff;
}

.plm-modal__btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 8px;
	background: #ffffff;
	color: #9a7517 !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plm-modal__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -10px rgba(10, 14, 22, 0.5);
}

/* --- Image lightbox (click the modal image to enlarge) --- */
.plm-lightbox[hidden] {
	display: none;
}

.plm-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.plm-lightbox__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(8, 10, 14, 0.9);
	cursor: zoom-out;
}

.plm-lightbox__img {
	position: relative;
	max-width: 94vw;
	max-height: 92vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: plm-modal-in 0.2s ease;
}

.plm-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
	transition: background 0.15s ease, transform 0.2s ease;
}

.plm-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* --- Responsive --- */
@media (max-width: 760px) {
	.plm-modal { padding: 14px; }
	.plm-modal__panel { padding: 30px 20px 26px; max-height: 92vh; border-radius: 14px; }
	.plm-modal__title { margin: 6px 32px 20px; font-size: 22px; }
	.plm-modal__grid { grid-template-columns: 1fr; gap: 18px; }
	.plm-modal__img { min-height: 180px; max-height: 260px; }
	.plm-modal__desc { font-size: 14.5px; line-height: 1.65; }
}

@media (max-width: 600px) {
	.plm-map-wrap {
		border-radius: 12px;
	}

	.plm-map {
		height: 62vh !important;
		min-height: 360px;
	}
}
