/* Liste de cartes (accueil) */
.mbg-cards {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.mbg-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ececec);
	display: flex;
	flex-direction: column;
}

.mbg-card__media {
	aspect-ratio: 3 / 2;
	display: block;
	overflow: hidden;
}

.mbg-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	width: 100%;
}

.mbg-card:hover .mbg-card__media img {
	transform: scale(1.04);
}

.mbg-card__title {
	font-size: var(--wp--preset--font-size--large, 1.5rem);
	margin: 1rem 1rem 0.25rem;
}

.mbg-card__title a {
	color: inherit;
	text-decoration: none;
}

.mbg-card .wp-block-button {
	margin: auto 1rem 1rem;
}

/* Caractéristiques : pastille ronde + icône au-dessus de la valeur (comme l'ancien site) */
.mbg-specs {
	color: #555;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 1rem auto;
	max-width: 32rem;
	padding: 0;
	text-align: center;
}

.mbg-spec {
	align-items: center;
	display: flex;
	flex-direction: column;
	font-size: 0.9rem;
	gap: 0.4rem;
	line-height: 1.25;
}

.mbg-spec__icon {
	background: var(--wp--preset--color--border, #ececec) center / 52% no-repeat;
	border-radius: 50%;
	display: block;
	height: 57px;
	width: 57px;
}

.mbg-spec--surface .mbg-spec__icon {
	background-image: url("icons/surface.svg");
}

.mbg-spec--capacite .mbg-spec__icon {
	background-image: url("icons/capacite.svg");
}

.mbg-spec--chambres .mbg-spec__icon {
	background-image: url("icons/chambres.svg");
}

.mbg-spec--sdb .mbg-spec__icon {
	background-image: url("icons/sdb.svg");
}

/* Dans les cartes : un peu plus petit, 4 colonnes serrées */
.mbg-card .mbg-specs {
	gap: 0.25rem;
	margin: 0.75rem 0.75rem 1rem;
	max-width: none;
}

.mbg-card .mbg-spec {
	font-size: 0.78rem;
}

.mbg-card .mbg-spec__icon {
	height: 48px;
	width: 48px;
}

/* Les trois gîtes en dessin */
.mbg-dessins {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 3.5rem;
	justify-content: center;
	margin: 1.5rem 0;
}

.mbg-dessin {
	margin: 0;
	text-align: center;
}

.mbg-dessin img {
	display: block;
	height: 90px;
	margin: 0 auto 0.5rem;
	width: auto;
}

.mbg-dessin figcaption {
	color: var(--wp--preset--color--primary, #135461);
	font-family: var(--wp--preset--font-family--bree, inherit);
	font-size: 1.25rem;
}

/* Calendrier Google à la demande (accueil et pages gîte) */
.mbg-gcal iframe {
	border: 1px solid #777;
	display: block;
	height: 400px;
	width: 100%;
}

.mbg-gcal__ph {
	align-items: center;
	background: var(--wp--preset--color--surface, #f6f6f6);
	border: 1px solid var(--wp--preset--color--border, #ececec);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	min-height: 220px;
	padding: 1.5rem;
	text-align: center;
}

.mbg-gcal__ph p {
	color: #555;
	font-size: 0.9rem;
	margin: 0;
	max-width: 36rem;
}

.mbg-gcal__ph button {
	cursor: pointer;
}

/* Calendrier Google */
.mbg-calendar iframe {
	border: 1px solid #777;
	height: 400px;
	width: 100%;
}
