/**
 * Room cards on house pages.
 *
 * Kept separate from location.css so the rest of the frozen location layout
 * remains untouched.
 */

/*
 * location.css targets both the <h2> and its child link because they share
 * .mphb-room-type-title. Keep the card inset on the heading only and remove
 * the duplicated inset from the link.
 */
.mphb_sc_rooms-wrapper h2.mphb-room-type-title.entry-title {
	padding: var(--space-5) var(--card-pad) 0;
}

.mphb_sc_rooms-wrapper h2.mphb-room-type-title.entry-title > a.mphb-room-type-title {
	display: block;
	margin: 0;
	padding: 0;
}

/*
 * MotoPress décale toutes les chambres sauf la première avec margin-top: 4em.
 * Dans la grille des pages maisons, chaque carte doit commencer sur la même
 * ligne et la grille gère elle-même l'espacement.
 */
.pomar-loc-bedrooms .mphb_sc_rooms-wrapper .mphb-room-type,
.pomar-loc-bedrooms .mphb_sc_rooms-wrapper .mphb-room-type:not(:first-of-type) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* A wider CTA reads as a pill instead of a circle, even with the short label. */
.mphb_sc_rooms-wrapper .mphb-book-button {
	min-width: 136px;
	height: 48px;
	padding: 0 var(--space-6);
	font-size: var(--text-sm);
}

@media (max-width: 480px) {
	.mphb_sc_rooms-wrapper .mphb-book-button {
		min-width: 148px;
	}
}
