/*
 * Mapa de ubicación — Plaza Relox
 *
 * Styles only the nodes this plugin creates plus Leaflet's own chrome inside
 * .relox-map. It does not restyle any Elementor global class.
 */

.relox-map {
	position: relative;
	width: 100%;
	height: 520px;
	border: 1px solid rgba(36, 31, 26, 0.14);
	border-radius: 3px;
	background: #f6efe4;
	overflow: hidden;
}

/* the still image stays in the markup as the no-JS fallback */
.relox-map-fallback {
	display: none !important;
}

.relox-map .leaflet-container {
	width: 100%;
	height: 100%;
	background: #f6efe4;
	font-family: "Jost", system-ui, sans-serif;
}

/* Positron is already muted; this only nudges it toward the warm palette.
   If the tile provider is ever switched to a colourful style, drop
   saturate() further here rather than changing the provider. */
.relox-map .leaflet-tile-pane {
	filter: saturate(0.92) brightness(1.02);
}

/* ── marker ──────────────────────────────────────────────────────────── */

.relox-pin {
	display: block;
	color: #c96a45;
}

.relox-pin svg {
	display: block;
	width: 34px;
	height: 44px;
	filter: drop-shadow(0 4px 8px rgba(6, 47, 41, 0.28));
}

/* ── popup ───────────────────────────────────────────────────────────── */

.relox-map .leaflet-popup-content-wrapper {
	padding: 0;
	border: 1px solid rgba(36, 31, 26, 0.16);
	border-radius: 3px;
	background: #ffffff;
	box-shadow: 0 14px 34px rgba(6, 47, 41, 0.16);
}

.relox-map .leaflet-popup-content {
	width: auto !important;
	min-width: 190px;
	margin: 0;
	padding: 15px 18px 14px;
	line-height: 1.5;
}

.relox-map .leaflet-popup-tip {
	background: #ffffff;
	border: 1px solid rgba(36, 31, 26, 0.16);
}

.relox-map .leaflet-popup-close-button {
	width: 26px;
	height: 26px;
	padding: 4px 0 0;
	color: #5a5148;
	font-size: 17px;
}

.relox-map .leaflet-popup-close-button:hover {
	color: #241f1a;
	background: transparent;
}

.relox-pop__name {
	margin: 0 0 3px;
	padding-right: 16px;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.15;
	color: #241f1a;
}

.relox-pop__addr {
	margin: 0;
	font-size: 13px;
	color: #5a5148;
}

/* ── leaflet chrome, brought into the palette ────────────────────────── */

.relox-map .leaflet-control-zoom {
	border: 1px solid rgba(36, 31, 26, 0.16);
	border-radius: 3px;
	box-shadow: none;
	overflow: hidden;
}

.relox-map .leaflet-control-zoom a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	border: 0;
	background: #ffffff;
	color: #241f1a;
	font-size: 19px;
	font-weight: 300;
}

.relox-map .leaflet-control-zoom a + a {
	border-top: 1px solid rgba(36, 31, 26, 0.12);
}

.relox-map .leaflet-control-zoom a:hover,
.relox-map .leaflet-control-zoom a:focus {
	background: #f6efe4;
	color: #241f1a;
}

.relox-map .leaflet-control-zoom a.leaflet-disabled {
	background: #ffffff;
	color: rgba(90, 81, 72, 0.3);
}

.relox-map .leaflet-control-attribution {
	padding: 2px 7px;
	background: rgba(255, 255, 255, 0.86);
	font-family: "Jost", system-ui, sans-serif;
	font-size: 10.5px;
	color: #5a5148;
}

.relox-map .leaflet-control-attribution a {
	color: #5a5148;
	text-decoration: underline;
}

.relox-map .leaflet-control-attribution a:hover {
	color: #241f1a;
}

/* ── "click to interact" veil ────────────────────────────────────────── */

.relox-map__veil {
	position: absolute;
	inset: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background-color: transparent;
	color: #241f1a;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.18s ease;
}

/*
 * The theme paints every <button> with its own blue on :hover and :focus
 * (button:focus { background: var(--ast-global-color-1) }). This veil covers
 * the whole map, so without its own states the map disappears behind a solid
 * blue panel. button:focus is (0,1,1), so these need (0,2,0) to win.
 */

.relox-map__veil:hover,
.relox-map__veil:focus,
.relox-map__veil:focus-visible {
	background-color: rgba(36, 31, 26, 0.07);
	color: #241f1a;
	border: 0;
	box-shadow: none;
}

.relox-map__veil:active {
	background-color: rgba(36, 31, 26, 0.11);
	color: #241f1a;
	border: 0;
	box-shadow: none;
}

.relox-map__veil span {
	padding: 9px 16px;
	border: 1px solid rgba(36, 31, 26, 0.16);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #241f1a;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.relox-map__veil:hover span,
.relox-map__veil:focus-visible span {
	opacity: 1;
}

.relox-map__veil:focus-visible {
	outline: 2px solid #0a4b41;
	outline-offset: -2px;
}

.relox-map--live .relox-map__veil {
	display: none;
}

/* ── the two link buttons sit under the map ──────────────────────────── */

@media (max-width: 1024px) {
	.relox-map {
		height: 440px;
	}
}

@media (max-width: 767px) {
	.relox-map {
		height: 340px;
	}

	.relox-map__veil span {
		opacity: 1;
	}
}
