/**
 * Single creche page styles.
 */

main.single-creche {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

/* Hero */
.creche-hero {
	padding: 2rem 0;
	max-width: var(--wp--style--global--wide-size, 1230px);
	margin: 0 auto;
}

.creche-hero__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--wp--preset--color--primary);
	margin: 0.5rem 0;
}

.creche-hero__city {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--text-muted);
}

.creche-hero__city a {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.creche-hero__city a:hover {
	text-decoration: underline;
}

.creche-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	margin: 1rem 0;
}

.creche-hero__back:hover {
	color: var(--wp--preset--color--secondary);
}

/* Content layout */
.creche-content {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 3rem;
	max-width: var(--wp--style--global--wide-size, 1230px);
	margin: 0;
}

@media (max-width: 1024px) {
	.creche-content {
		grid-template-columns: 1fr;
		padding: 0;
	}
}

/* Presentation */
.creche-discover__title {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary);
	font-size: 2.125rem;
	font-weight: 700;
	margin-top: 0;
}

.creche-discover__text {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
	font-weight: 400;
}

/* Sidebar */
.creche-sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--gray);
	border-radius: 1rem;
	padding: 1.5rem;
}

/* Mobile fixed CTA — hidden on desktop */
.creche-mobile-cta {
	display: none;
}

@media (max-width: 768px) {
	.creche-sidebar {
		position: relative;
		top: unset;
		max-width: 100%;
	}

	/* Hide sidebar CTA on mobile */
	.creche-sidebar .creche-sidebar__cta {
		display: none !important;
	}

	/* Fixed CTA bar at the bottom */
	.creche-mobile-cta {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 100;
		background: var(--wp--preset--color--white, #fff);
		padding: 0.75rem 1rem;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
	}

	.creche-mobile-cta__link {
		display: block;
		text-align: center;
		padding: 0.875rem 1.5rem;
		background: var(--wp--preset--color--primary, #2c4a7c);
		color: var(--wp--preset--color--white, #fff) !important;
		border-radius: 60px;
		font-family: var(--wp--preset--font-family--body);
		font-weight: 600;
		font-size: 1rem;
		text-decoration: none;
	}

	.creche-mobile-cta__link:hover {
		background: var(--wp--preset--color--secondary, #e05a6d);
	}

	.creche-nearby__title,
	.creche-cout__title,
	.creche-presentation__title,
	.creche-characteristics__title,
	.creche-discover__title {
		font-size: 1.5rem;
	}
}

.creche-sidebar__title {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary);
	font-size: 1.25rem;
	font-weight: 700;
}

.creche-nearby__card .creche-nearby__infotitle {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary);
	font-size: 1.25rem;
	font-weight: 700;
}

.creche-sidebar__map {
	margin: -1.5rem -1.5rem 1rem;
}

.creche-sidebar__map img {
	width: 90%;
	height: 180px;
	object-fit: cover;
	display: block;
	border-radius: 1rem;
	margin: 5%;
	margin-bottom: 0;
	border: 2px solid var(--wp--preset--color--gray);
	border-radius: 1rem;
}

.creche-sidebar__info {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.creche-sidebar__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	font-size: 1rem;
	font-weight: 400;
	color: var(--wp--preset--color--text);
}

.creche-sidebar__item .icon {
	color: var(--wp--preset--color--secondary);
	flex-shrink: 0;
	margin-top: 0.15rem;
	font-size: 2rem;
}

.creche-sidebar__cta {
	display: block;
	text-align: center;
	padding: 0.1875rem 1.125rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white) !important;
	border-radius: 60px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5625rem;
	text-decoration: none;
	margin-top: 1rem;
}

.creche-sidebar__cta:hover {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white) !important;
}

.creche-help {
	margin: 3rem 0;
}

/* Characteristics */
.creche-nearby__title,
.creche-cout__title,
.creche-presentation__title,
.creche-characteristics__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 2.125rem;
	font-weight: 700;
	margin-top: 0rem;
}

.creche-nearby__label,
.creche-cout__label,
.creche-presentation__label,
.creche-characteristics__label {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0rem;
	color: var(--wp--preset--color--gray-dark);
	margin-bottom: 0.5rem;
}

.creche-cout__text,
.creche-presentation__text,
.creche-characteristics__text {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--grey);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5625rem;
}

.creche-characteristics__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0;
}

.creche-tag {
	display: inline-block;
	padding: 0.375rem 1rem;
	font-size: 0.8125rem;
	border-radius: 20px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
}

/* Map */
.creche-map {
	margin: 2rem 0;
	border-radius: 12px;
	overflow: hidden;
}

.creche-map__canvas {
	min-height: 315px;
	width: 100%;
	border-radius: 12px;
}

/* Image slider */
.creche-images {
	margin: 2.5rem auto;
	width: min(800px, 85vw);
}

.creche-images--slider {
	height: 530px;
}

.creche-images__slide {
	border-radius: 12px;
	overflow: hidden;
}

.creche-images__slide img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

@media (max-width: 768px) {
	.creche-images--slider {
		height: auto;
		padding-bottom: 4rem;
	}

	.creche-images__slide img {
		height: 280px;
	}
}

/* Slick arrows */
.creche-images .slick-prev,
.creche-images .slick-next {
	z-index: 1;
	top: calc(100% - 30px);
	width: 40px;
	height: 40px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 50%;
}

.creche-images .slick-prev:before,
.creche-images .slick-next:before {
	font-family: "icon" !important;
	color: var(--wp--preset--color--primary);
	font-size: 18px;
}

.creche-images .slick-prev:before {
	content: "\e915";
}

.creche-images .slick-next:before {
	content: "\e916";
}

.creche-images .slick-prev:hover,
.creche-images .slick-next:hover {
	background: var(--wp--preset--color--primary);
}

.creche-images .slick-prev:hover:before,
.creche-images .slick-next:hover:before {
	color: var(--wp--preset--color--white);
}

.creche-images .slick-prev {
	left: 0;
}

.creche-images .slick-next {
	right: 0;
}

/* Slick dots */
.creche-images .slick-dots {
	bottom: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.creche-images .slick-dots li {
	margin: 0;
}

.creche-images .slick-dots li button:before {
	font-size: 10px;
	color: var(--wp--preset--color--primary);
	opacity: 0.4;
}

.creche-images .slick-dots li.slick-active button:before {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

/* Nearby creches */
.creche-nearby {
	max-width: var(--wp--style--global--wide-size, 1230px);
	margin: 3rem auto;
	padding: 0;
}

.creche-nearby__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.creche-nearby__card {
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--gray);
}

.creche-nearby__image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.creche-nearby__info {
	padding: 1rem;
}

div.creche-nearby__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
}

.creche-nearby__hours,
.creche-nearby__places,
.creche-nearby__type {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-muted);
	margin: 0.25rem 0;
}

.creche-nearby__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.creche-nearby__link,
.creche-nearby__cta {
	font-size: 0.8125rem;
	padding: 0.375rem 1rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 60px;
	text-decoration: none;
	font-weight: 700;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.creche-nearby__link {
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--white);
}
