/* ================================================================
   DAD'S BBQ — Google Map (home page only)
   Завантажується виключно через dadsbbq_home_page_assets()
   ================================================================ */

/* ── Map container ──────────────────────────────────────────────── */
.dbq-contacts__map {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 28px rgba(42, 24, 16, 0.18);
}

.dbq-google-map {
	display: block;
	width: 100%;
	height: 460px;
	background: #f3ece3;
}

@media (max-width: 1023px) {
	.dbq-google-map { height: 400px; }
}

@media (max-width: 600px) {
	.dbq-google-map    { height: 340px; }
	.dbq-contacts__map { overflow: hidden; max-width: 100%; }
}

/* ── Custom SVG pin marker ──────────────────────────────────────── */

.dbq-map-pin {
	cursor: pointer;
	transform-origin: bottom center;
	transition: transform 0.18s ease, filter 0.18s ease;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.dbq-map-pin:hover {
	transform: scale(1.15) translateY(-4px);
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.48));
}

/* ── InfoWindow chrome overrides ────────────────────────────────── */

/* Remove tail/arrow */
.gm-style-iw-tc           { display: none !important; }

/* Outer box */
.gm-style-iw.gm-style-iw-c {
	border-radius: 12px !important;
	box-shadow: 0 6px 24px rgba(42, 24, 16, 0.22) !important;
	padding: 0 !important;
	max-width: 100% !important;
}

/* Scroll container — prevent cut-off */
.gm-style-iw-d {
	overflow: hidden !important;
	padding: 0 !important;
}

/* Chrome row that holds the close button */
.gm-style-iw-chr {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
}

/* ── Close button: dark circle ──────────────────────────────────── */
.gm-ui-hover-effect {
	background: #2a1810 !important;
	border-radius: 50% !important;
	width: 26px !important;
	height: 26px !important;
	top: 10px !important;
	right: 10px !important;
	position: absolute !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 1 !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.gm-ui-hover-effect svg {
	display: block !important;
	pointer-events: none !important;
}

/* ── InfoWindow content ─────────────────────────────────────────── */
.gm-style .dbq-map-info {
	font-family: 'Montserrat', sans-serif;
	min-width: 220px;
	max-width: 268px;
	padding: 20px 18px 16px;
}

.dbq-map-info__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #2a1810;
	margin: 0 0 8px;
	line-height: 1.3;
	padding-right: 24px; /* space for the close button */
}

.dbq-map-info__address {
	font-size: 13px;
	color: #5c3a2a;
	margin: 0 0 3px;
	line-height: 1.45;
}

.dbq-map-info__hours {
	font-size: 13px;
	color: #8a6a54;
	margin: 0 0 0;
	line-height: 1.45;
}

.dbq-map-info__phone {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #2a1810;
	text-decoration: none;
	margin: 12px 0 12px;
	transition: color 0.2s;
}

.dbq-map-info__phone:hover {
	color: #c0432b;
	text-decoration: none;
}

.dbq-map-info__route {
	display: block;
	background: #ffbf00;
	color: #2a1810;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 9px 14px;
	border-radius: 7px;
	text-decoration: none;
	transition: background 0.2s;
}

.dbq-map-info__route:hover {
	background: #e0a800;
	color: #2a1810;
	text-decoration: none;
}

@media (max-width: 450px) {
	.dbq-map-info__route { font-size: 10px; }
}
