/* ─── Layout ──────────────────────────────────────────────────────────── */

.pbp-map-block {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.find-location-map {
	padding-bottom: 100px;
}

/* ─── Search form ─────────────────────────────────────────────────────── */

.pbp-search-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.pbp-search-input {
	flex: 1 1 240px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	outline: none;
	box-sizing: border-box;
}

.pbp-search-input:focus {
	border-color: #3176a5;
	box-shadow: 0 0 0 2px rgba(49, 118, 165, 0.2);
}

.pbp-search-radius {
	height: 44px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
}

.pbp-search-btn {
	height: 44px;
	padding: 0 22px;
	background: #3176a5;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	box-sizing: border-box;
}

.pbp-search-btn:hover {
	background: #255f87;
}

.pbp-search-reset {
	height: 44px;
	padding: 0 18px;
	background: transparent;
	color: #3176a5;
	border: 1px solid #3176a5;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	box-sizing: border-box;
}

.pbp-search-reset:hover {
	background: #3176a5;
	color: #fff;
}

@media screen and (max-width: 767px) {
	.pbp-search-input {
		flex: 1 1 100%;
	}
}

/* ─── Map ─────────────────────────────────────────────────────────────── */

.pbp-map {
	width: 100%;
	height: 480px;
	background: #e5e3df;
}

/* ─── Slider ──────────────────────────────────────────────────────────── */

/*
 * .pbp-slider-wrap clips the slides via overflow:hidden.
 * .pbp-slider uses margin (not padding) so Slick sees a narrower viewport
 * and slides never reach the arrow area.
 * .slick-list overflow:visible lets partially visible slides peek out;
 * .pbp-slider-wrap clips them at the wrapper boundary.
 */
.pbp-slider-wrap {
	position: relative;
	overflow: hidden;
}

.pbp-slider {
	margin: 0 58px;
}

.pbp-slider .slick-list {
	overflow: visible;
}

.pbp-slide {
	width: 240px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	background: #fff;
	transition: box-shadow 0.2s;
}

.pbp-slide:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.pbp-slide img {
	width: auto;
	height: 160px;
	background: #f4f4f4;
	display: block;
	margin: 0 auto;
}

.pbp-slide-no-image {
	width: 100%;
	height: 160px;
	background: #d0cec9;
}

.pbp-slide-title {
	background: #3176a5;
	padding: 0 12px;
	text-align: center;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 85px;
	max-width: 200px;
}

/* Navigation arrows — sit in the 58px margin zone at ±50px from slider edge */
.pbp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border: none;
	background: #3176a5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	padding: 0;
	transition: background 0.2s;
}

.pbp-arrow--prev {
	left: -50px;
}

.pbp-arrow--next {
	right: -50px;
}

.pbp-arrow:hover {
	background: #255f87;
}

.pbp-arrow svg {
	width: 10px;
	height: 14px;
	display: block;
}

.pbp-arrow.slick-disabled {
	opacity: 0.4;
	cursor: default;
}

/* ─── Google Maps infowindow ──────────────────────────────────────────── */

.gm-style .gm-style-iw-c,
.gm-style-iw.gm-style-iw-c {
	padding: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.gm-style-iw.gm-style-iw-c * {
	overflow: hidden !important;
}

.gm-style .gm-style-iw-d,
.gm-style-iw-d {
	overflow: hidden !important;
	padding: 0 !important;
	max-height: 355px !important;
}

/* Close button */
.gm-style-iw-chr {
	position: absolute;
	right: 0;
	background: #fff;
}

.gm-style-iw-chr button {
	width: 30px !important;
	height: 30px !important;
}

.gm-style-iw-chr button span {
	width: 20px !important;
	height: 20px !important;
	margin: 4px 0 0 3px !important;
}

/* Infowindow card */
.pbp-infowindow {
	width: 260px;
	text-align: center;
}

.pbp-infowindow img {
	width: auto;
	height:auto;
	max-width: 100%;
	max-height: 160px;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

.pbp-infowindow__title {
	margin: 0;
	padding: 12px 14px 14px;
	font-size: 1rem;
	font-family: "Outfit", sans-serif;
	font-weight: 500;
	line-height: 1.3;
	color: #1a1a1a;
}

.pbp-btn {
	display: block;
	padding: 0.8em 1em;
	background: #2563eb;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	box-sizing: border-box;
}

.pbp-btn:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
	text-decoration: none;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */

@media only screen and (min-width: 768px) and (max-width: 991px) {
	.pbp-slide-title {
		font-size: 16px;
	}
}

@media screen and (max-width: 767px) {
	.find-location-map {
		padding-bottom: 50px;
	}

	.pbp-slide-title {
		font-size: 17px;
	}
}

@media (max-width: 600px) {
	.pbp-map {
		height: 450px;
	}

	.pbp-slide {
		width: 200px;
	}
}
