/* ── Custom map info popup (HTML content inside Google Maps infowindow) ── */

.sbny-map-iw {
	position: relative;
	box-sizing: border-box;
	min-width: 220px;
	max-width: 280px;
	width: 100%;
	padding: 12px;
	background: #fcf9f2;
	border-radius: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.45;
	color: #1c1c18;
}

.sbny-map-iw__close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: rgba(27, 54, 93, 0.08);
	color: #1b365d;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.sbny-map-iw__close:hover,
.sbny-map-iw__close:focus {
	background: rgba(27, 54, 93, 0.16);
	color: #002046;
	outline: none;
}

.sbny-map-iw__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}

.sbny-map-iw__title {
	display: block;
	font-family: Marcellus, Georgia, serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	color: #1b365d;
	margin: 0;
	padding: 0 32px 0 0;
	/* Match close button height so nothing sits in an empty band beside it */
	min-height: 28px;
	box-sizing: border-box;
}

.sbny-map-iw__line {
	font-size: 13px;
	color: rgba(28, 28, 24, 0.75);
	margin: 0;
	padding-right: 32px;
	box-sizing: border-box;
	word-break: break-word;
}

.sbny-map-iw__directions {
	display: block;
	align-self: stretch;
	width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
	margin-left: 0;
	margin-right: 0;
	padding: 10px 12px;
	background: #1b365d;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	border-radius: 4px;
	transition: background 0.15s;
}

.sbny-map-iw__directions:hover,
.sbny-map-iw__directions:focus {
	background: #002046;
	color: #fff !important;
}

/* Hide Maps’ default chrome row — our close button is inside .sbny-map-iw */
.sbny-directory #sbny-map .gm-style-iw-chr {
	display: none !important;
}

.sbny-directory #sbny-map .gm-ui-hover-effect {
	display: none !important;
}

/* Let the balloon shrink-wrap content; avoid huge empty strips */
.sbny-directory #sbny-map .gm-style-iw-c {
	padding: 0 !important;
	overflow: visible !important;
}

.sbny-directory #sbny-map .gm-style-iw-d {
	overflow: visible !important;
	max-height: none !important;
}
