/* Grille Chambres & Suites - Mon Joli Motel */

.mjm-rooms-grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.mjm-rooms-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.mjm-rooms-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.mjm-room-card {
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mjm-room-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.mjm-room-card__image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e8e8;
}

.mjm-room-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mjm-room-card__image[loading="lazy"] {
	content-visibility: auto;
}

/* Slideshow (quand galerie > 1 image) - Swiper.js */
.mjm-room-card__slideshow.swiper {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.mjm-room-card__slideshow .swiper-slide {
	height: 100%;
}

.mjm-room-card__slideshow .swiper-slide .mjm-room-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Flèches en bas à gauche / droite */
.mjm-room-card__slideshow .swiper-button-prev,
.mjm-room-card__slideshow .swiper-button-next {
	top: auto;
	bottom: 0.5rem;
	width: 36px;
	height: 36px;
	margin: 0;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: #366e81;
	transition: background 0.2s, box-shadow 0.2s;
}

.mjm-room-card__slideshow .swiper-button-prev::after,
.mjm-room-card__slideshow .swiper-button-next::after {
	display: none;
}

.mjm-room-card__slideshow .swiper-button-prev {
	left: 0.5rem;
	right: auto;
}

.mjm-room-card__slideshow .swiper-button-next {
	right: 0.5rem;
	left: auto;
}

.mjm-room-card__slideshow .swiper-button-prev:hover,
.mjm-room-card__slideshow .swiper-button-next:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mjm-room-card__slideshow .swiper-button-prev svg,
.mjm-room-card__slideshow .swiper-button-next svg {
	width: 20px;
	height: 20px;
}
.mjm-room-card .blk-block-title {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex-grow: 0;
	flex-shrink: 0;
	margin-top: 20px;
	padding: 0 0.5rem !important;
	text-align: center;
}
.mjm-room-card__body {
	padding: 0 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
}

.mjm-room-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1e293b;
}

.mjm-room-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #555;
}

.mjm-room-card__excerpt > * {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.mjm-room-card__excerpt > *:last-child {
	margin-bottom: 0;
}

.mjm-room-card__excerpt h2,
.mjm-room-card__excerpt h3,
.mjm-room-card__excerpt h4 {
	color: #366e81;
	font-size: 1rem;
	line-height: 1.25;
}

.mjm-room-card__meta-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin: 0.1rem auto 1rem auto;
}

.mjm-room-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 0;
	font-size: 0.875rem;
	color: #366e81;
	justify-content: flex-start;
	text-align: left;
}

.mjm-room-card__meta-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	line-height: 1.2;
}

.mjm-room-card__meta-icon {
	display: block;
	flex-shrink: 0;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(37%) sepia(29%) saturate(827%) hue-rotate(149deg) brightness(92%) contrast(89%);
}

.mjm-room-card__meta-icon--sea-view {
	color: currentColor;
	filter: none;
}

.mjm-room-card__meta-icon--jetted-tub {
	color: currentColor;
	filter: none;
}

.mjm-room-card__meta-icon--parking-side {
	color: currentColor;
	filter: none;
}

.mjm-room-card__meta-label {
	display: inline-block;
	line-height: 1.2;
	transform: translateY(0.14em);
}

/* Icônes capacité (bonhomme) - même principe que le carrousel */
.mjm-room-card__meta-item--capacity .mjm-rooms-capacity-icons {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
}

.mjm-room-card__meta-item--capacity .mjm-rooms-capacity-text {
	line-height: 1.2;
}

.mjm-room-card__meta-item--capacity .mjm-rooms-capacity-icon {
	width: 1em;
	height: 1em;
	color: currentColor;
}

.mjm-room-card__highlights {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: #444;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mjm-room-card__highlights li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.25rem;
}

.mjm-room-card__highlights li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #366e81;
	font-weight: 600;
}

.mjm-room-card__price {
	font-weight: 600;
	font-size: 1rem;
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.mjm-room-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0;
	justify-content: center;
	align-items: center;
}

.mjm-room-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
	cursor: pointer;
	border: none;
}

.mjm-room-card__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mjm-room-card__btn--primary {
	background: transparent;
	color: #366e81;
	border: 2px solid #366e81;
}

.mjm-room-card__btn--primary:hover {
	background: #366e81;
	color: #fff;
}

.mjm-room-card__btn--secondary {
	background: transparent;
	color: #366e81;
	border: 2px solid #366e81;
}

.mjm-room-card__btn--secondary:hover {
	background: rgba(54, 110, 129, 0.08);
}

/* Placeholder éditeur */
.monjolimotel-rooms-grid-placeholder {
	padding: 1rem;
	border: 1px dashed #ccc;
}
