/* Branch cards, featured strip, click-to-load maps (Startseite/Kontakt). */

/* ---- Branch cards ---- */

.royal-branches {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1.25rem;
}

.royal-branchcard {
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(96, 28, 39, 0.14);
	border-top: 4px solid var(--wp--preset--color--gold);
	border-radius: 16px;
	padding: 1.25rem;
	box-shadow: 0 6px 20px rgba(96, 28, 39, 0.07);
}

.royal-branchcard__name {
	margin: 0 0 0.4rem;
	color: var(--wp--preset--color--maroon);
	font-size: var(--wp--preset--font-size--large);
}

.royal-branchcard__status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.royal-branchcard__addr {
	margin: 0 0 0.5rem;
}

.royal-branchcard__phone {
	margin: 0 0 0.75rem;
}

.royal-branchcard__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.royal-branchcard__phone a:hover {
	color: var(--wp--preset--color--amber);
}

.royal-branchcard__phone svg {
	width: 18px;
	height: 18px;
	color: var(--wp--preset--color--gold);
}

.royal-branchcard__hours {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.6rem 0.75rem;
	background: var(--wp--preset--color--cream);
	border-radius: 10px;
	font-size: 0.9375rem;
}

.royal-branchcard__hours li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.1rem 0;
}

.royal-branchcard__hours li span:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--maroon);
}

.royal-branchcard__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

/* Slimmer buttons than the global pill style – still ≥44px tap height. */
.royal-branchcard__actions .royal-btn {
	min-height: 44px;
	padding: 0.4rem 1.15rem;
	font-size: 0.875rem;
}

.royal-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	text-decoration: none;
}

.royal-btn--ghost {
	padding: 0.75rem 1.5rem;
	border-radius: 9999px;
	border: 1.5px solid var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--maroon);
	font-weight: 600;
	transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.royal-btn--ghost:hover {
	background: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--cream);
}

.royal-btn:active {
	transform: scale(0.97);
}

/* ---- Featured strip (Startseite) ---- */

.royal-featured__list {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	padding: 2px 2px 8px;
	margin: 0;
	list-style: none;
	scroll-snap-type: x proximity;
}

.royal-featured__card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	width: 10.5rem;
	flex: none;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--gold);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.royal-featured__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(96, 28, 39, 0.18);
}

.royal-featured__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 6rem;
	object-fit: cover;
	font-size: 2rem;
	background: linear-gradient(135deg, var(--wp--preset--color--gold) 0%, var(--wp--preset--color--amber) 100%);
}

.royal-featured__name {
	padding: 0.5rem 0.75rem 0;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.royal-featured__price {
	padding: 0.15rem 0.75rem 0.6rem;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 0.9375rem;
}

/* ---- Click-to-load maps ---- */

.royal-maps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1.25rem;
}

.royal-map {
	position: relative;
	min-height: 17rem;
	border-radius: 16px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 30%, rgba(235, 194, 63, 0.15), transparent 55%),
		var(--wp--preset--color--cream);
	border: 1px solid rgba(96, 28, 39, 0.14);
}

.royal-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
	padding: 1.25rem;
}

.royal-map__name {
	margin: 0;
}

.royal-map__hint {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(34, 34, 33, 0.6);
	max-width: 24rem;
}

.royal-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Startseite: center the Royal Empfehlung section on desktop. The card
 * strip centers only while it fits (fit-content); once it overflows it
 * scrolls from the left as before, so nothing gets clipped. */
@media (min-width: 782px) {
	.royal-home-featured {
		text-align: center;
	}

	.royal-home-featured .royal-featured__list {
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}

	/* Big, appetizing photo cards on the Startseite. */
	.royal-home-featured .royal-featured__card {
		width: 17rem;
		border-radius: 18px;
	}

	.royal-home-featured .royal-featured__img {
		height: 10.5rem;
		font-size: 3.25rem;
	}

	.royal-home-featured .royal-featured__name {
		font-size: 1.05rem;
		padding: 0.65rem 0.9rem 0;
	}

	.royal-home-featured .royal-featured__price {
		font-size: 1rem;
		padding: 0.2rem 0.9rem 0.75rem;
	}
}

@media (min-width: 1200px) {
	.royal-home-featured .royal-featured__card {
		width: 19rem;
	}

	.royal-home-featured .royal-featured__img {
		height: 12rem;
	}
}

/* ---------------------------------------------------------------------------
 * Desktop (≥1200px) — mobile layout unchanged.
 * ------------------------------------------------------------------------- */

@media (min-width: 1200px) {
	.royal-branches {
		gap: 1.75rem;
	}

	.royal-branchcard {
		padding: 1.75rem;
	}

	.royal-featured__card {
		width: 13.5rem;
	}

	.royal-featured__img {
		height: 7.5rem;
	}

	.royal-maps {
		gap: 1.75rem;
	}

	.royal-map {
		min-height: 22rem;
	}
}
