/* Gran Castillo de Pedraza Essentials · Cómo llegar
 * Tarjeta de lugar: mapa, dirección con pin, botones de ruta y notas con
 * líneas finas, en el mismo lenguaje que el bloque de horario.
 */

.gcpe-loc {
	--gcpe-loc-ink: #0c5475;
	--gcpe-loc-ink-deep: #07415a;
	--gcpe-loc-muted: #5f7480;
	--gcpe-loc-text: #1b2b33;
	--gcpe-loc-accent: #f7d547;
	--gcpe-loc-icon: #009ad8;
	--gcpe-loc-line: #d9e4ea;
	--gcpe-loc-surface: #ffffff;
	--gcpe-loc-ok: #1f7a4d;
	--gcpe-loc-ease: cubic-bezier(0.16, 1, 0.3, 1);

	color: var(--gcpe-loc-text);
	font-family: "Montserrat", sans-serif;
}

.gcpe-loc *,
.gcpe-loc *::before,
.gcpe-loc *::after {
	box-sizing: border-box;
}

.gcpe-loc--framed {
	overflow: hidden;
	border: 1px solid var(--gcpe-loc-line);
	border-radius: 16px;
	background: var(--gcpe-loc-surface);
	box-shadow: 0 1px 2px rgba(0, 40, 60, 0.04), 0 8px 24px rgba(0, 40, 60, 0.06);
}

.gcpe-loc__svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* Mapa */
.gcpe-loc__map {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #e8eff3;
	overflow: hidden;
}

.gcpe-loc:not(.gcpe-loc--framed) .gcpe-loc__map {
	border-radius: 12px;
}

.gcpe-loc__map iframe,
.gcpe-loc__map .cmplz-placeholder-element,
.gcpe-loc__map > div {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Cuerpo */
.gcpe-loc__body {
	padding: 24px;
}

.gcpe-loc:not(.gcpe-loc--framed) .gcpe-loc__body {
	padding: 20px 0 0;
}

.gcpe-loc__place {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
}

.gcpe-loc__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gcpe-loc-accent);
	color: var(--gcpe-loc-ink);
}

.gcpe-loc__pin .gcpe-loc__svg {
	width: 20px;
	height: 20px;
}

.gcpe-loc .gcpe-loc__address {
	display: grid;
	gap: 2px;
	margin: 0;
	font-style: normal;
}

.gcpe-loc__street {
	color: var(--gcpe-loc-ink);
	font-family: "League Spartan", sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.gcpe-loc__city {
	color: var(--gcpe-loc-muted);
	font-size: 15px;
	line-height: 1.4;
}

.gcpe-loc .gcpe-loc__qr {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.gcpe-loc__qr img {
	display: block;
	width: 76px;
	height: 76px;
	max-width: none;
	padding: 5px;
	border: 1px solid var(--gcpe-loc-line);
	border-radius: 10px;
	background: #fff;
}

.gcpe-loc .gcpe-loc__qr figcaption {
	font-style: normal;
	max-width: 118px;
	color: var(--gcpe-loc-muted);
	font-size: 12px;
	line-height: 1.35;
}

/* Botones */
.gcpe-loc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-top: 20px;
}

.gcpe-loc .gcpe-loc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--gcpe-loc-ink);
	border-radius: 8px;
	font-family: "League Spartan", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.gcpe-loc .gcpe-loc__btn--primary {
	background: var(--gcpe-loc-ink);
	color: #fff;
}

/* !important en el color: ninguna regla "a:hover" del tema debe dejar el texto invisible */
.gcpe-loc .gcpe-loc__btn--primary:hover {
	border-color: var(--gcpe-loc-ink-deep);
	background: var(--gcpe-loc-ink-deep);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(0, 40, 60, 0.18);
}

.gcpe-loc .gcpe-loc__btn--outline {
	background: transparent;
	color: var(--gcpe-loc-ink);
}

.gcpe-loc .gcpe-loc__btn--outline:hover {
	background: var(--gcpe-loc-ink);
	color: #fff !important;
}

.gcpe-loc .gcpe-loc__copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--gcpe-loc-ink);
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 5px;
	cursor: pointer;
	box-shadow: none;
	transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.gcpe-loc .gcpe-loc__copy:hover,
.gcpe-loc .gcpe-loc__copy:focus {
	background: transparent;
	color: var(--gcpe-loc-ink) !important;
	text-decoration-color: currentColor;
}

.gcpe-loc__svg--done {
	display: none;
}

.gcpe-loc .gcpe-loc__copy.is-done {
	color: var(--gcpe-loc-ok) !important;
}

.gcpe-loc__copy.is-done .gcpe-loc__svg--copy {
	display: none;
}

.gcpe-loc__copy.is-done .gcpe-loc__svg--done {
	display: block;
}

.gcpe-loc__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gcpe-loc a:focus-visible,
.gcpe-loc button:focus-visible {
	outline: 2px solid var(--gcpe-loc-icon);
	outline-offset: 3px;
}

/* Notas */
.gcpe-loc .gcpe-loc__notes {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--gcpe-loc-line);
}

.gcpe-loc .gcpe-loc__note {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--gcpe-loc-line);
	font-size: 15px;
	line-height: 1.5;
}

.gcpe-loc .gcpe-loc__note:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.gcpe-loc__note-icon {
	color: var(--gcpe-loc-icon);
	padding-top: 1px;
}

.gcpe-loc__note-icon .gcpe-loc__svg {
	width: 20px;
	height: 20px;
}

/* Igualar altura con la columna de al lado (solo en ordenador, columnas lado a
   lado): el widget ocupa todo el alto y el mapa absorbe la diferencia. */
@media (min-width: 1025px) {
	.elementor-widget-gcpe-location:has(.gcpe-loc--fill) {
		flex-grow: 1;
		align-self: stretch;
	}

	.elementor-widget-gcpe-location:has(.gcpe-loc--fill) > .elementor-widget-container {
		height: 100%;
	}

	.gcpe-loc--fill {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.gcpe-loc--fill .gcpe-loc__map {
		flex: 1 1 auto;
		min-height: 180px;
		aspect-ratio: auto;
	}

	.gcpe-loc--fill .gcpe-loc__body {
		flex: 0 0 auto;
	}
}

/* QR solo donde tiene sentido: en ordenador, para pasar la ruta al móvil */
@media (max-width: 1024px) {
	.gcpe-loc .gcpe-loc__qr {
		display: none;
	}

	.gcpe-loc__place {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.gcpe-loc__body {
		padding: 20px;
	}

	.gcpe-loc__map {
		aspect-ratio: 4 / 3;
	}

	.gcpe-loc__street {
		font-size: 19px;
	}

	.gcpe-loc__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gcpe-loc .gcpe-loc__btn {
		padding: 0 12px;
	}

	.gcpe-loc .gcpe-loc__copy {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 380px) {
	.gcpe-loc__actions {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gcpe-loc *,
	.gcpe-loc *::before,
	.gcpe-loc *::after {
		transition-duration: 1ms !important;
	}
}
