/* ============================================================
 * PalasGo — embedded map styles
 *
 * The map heights are passed in via inline custom properties on the
 * .palasgo-map wrapper, so each placement can have its own size without
 * needing extra classes.
 * ============================================================ */

.palasgo-map {
	margin: 16px 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f6f8;
}

.palasgo-map__canvas {
	width: 100%;
	height: var( --palasgo-map-h, 360px );
	background: #e8edf2;
	position: relative;
}

@media ( max-width: 768px ) {
	.palasgo-map__canvas {
		height: var( --palasgo-map-h-mobile, 280px );
	}
}

/* Noscript fallback link */
.palasgo-map__noscript {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
}

/* Action buttons row below the map */
.palasgo-map__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px;
	background: #fff;
	border-top: 1px solid #ececec;
}

.palasgo-map__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	min-height: 44px;       /* Apple HIG touch-target minimum */
	box-sizing: border-box;
	flex: 1 1 200px;
	justify-content: center;
	transition: transform 0.05s ease, box-shadow 0.15s ease;
}

.palasgo-map__btn:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.palasgo-map__btn:active {
	transform: translateY(1px);
}

.palasgo-map__btn--primary {
	background: var( --palasgo-map-brand, #1976d2 );
	color: var( --palasgo-map-btn-text, #ffffff );
}

.palasgo-map__btn--secondary {
	background: #f4f4f4;
	color: #1a1a1a;
	border: 1px solid #d4d4d4;
}

.palasgo-map__btn--apple {
	/* Subtle — Apple Maps is the secondary action */
	background: #1a1a1a;
	color: #ffffff;
	border: none;
}

/* Marker — Leaflet wraps our SVG in a positioned container; this just
   removes the default white background it adds to divIcons. */
.palasgo-map__marker {
	background: transparent !important;
	border: none !important;
}

/* Popup */
.palasgo-map__popup {
	font-size: 14px;
	line-height: 1.5;
	min-width: 160px;
}

.palasgo-map__popup-address {
	color: #1a1a1a;
	margin-bottom: 6px;
}

.palasgo-map__popup-link {
	color: var( --palasgo-map-brand, #1976d2 );
	font-weight: 600;
	text-decoration: none;
}

.palasgo-map__popup-link:hover {
	text-decoration: underline;
}

/* Hide print noise — the map is interactive, no point printing it */
@media print {
	.palasgo-map__canvas { display: none; }
	.palasgo-map__actions { border-top: none; padding: 0; }
}
