.room-list {
	width: 100%;
}

.room-list__title {
	margin: 0 0 28px;
}

.room-list__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 28px;
}

.room-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #dedede;
	border-radius: 10px;
	background: #fff;
}

.room-gallery {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f3f3f3;
}

.room-gallery__slides {
	width: 100%;
	height: 100%;
}

.room-gallery__slide {
	width: 100%;
	height: 100%;
	margin: 0;
}

.room-gallery__slide[hidden] {
	display: none !important;
}

.room-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.room-gallery__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	text-align: center;
}

.room-gallery__button {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.room-gallery__button--previous {
	left: 12px;
}

.room-gallery__button--next {
	right: 12px;
}

.room-gallery__count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.room-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.room-card__title {
	margin: 0 0 18px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}

.room-card__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__feature {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
}

.room-card__feature-icon {
	display: inline-flex;
	flex: 0 0 20px;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.room-card__feature-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.room-card__feature-name {
	min-width: 0;
}

.room-card__actions {
	margin-top: auto;
	padding-top: 24px;
}

.room-card__book {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.room-card__book:hover,
.room-card__book:focus {
	color: #fff;
	opacity: 0.9;
	transform: translateY(-1px);
}

.room-card__book--disabled {
	cursor: not-allowed;
	opacity: 0.45;
	transform: none;
}

@media (max-width: 1024px) {
	.room-list__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.room-list__items {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.room-card__features {
		grid-template-columns: 1fr;
	}
}