.dhb-rooms {
	display: grid;
	gap: 24px;
}

.dhb-rooms--columns-1 {
	grid-template-columns: 1fr;
}

.dhb-rooms--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dhb-rooms--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dhb-rooms--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dhb-room-card {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.dhb-room-card__image .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
}

.dhb-room-card__content {
	padding: 16px;
}

.dhb-room-card__title {
	margin: 0 0 8px;
}

.dhb-room-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.dhb-room-features > li {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid #d8dee5;
	border-radius: 8px;
	background: #f8fafc;
	color: #1f2937;
	font-size: 0.925rem;
	line-height: 1.3;
}

.dhb-room-single {
	width: 100%;
}

.dhb-room-single__container {
	box-sizing: border-box;
	width: min(100% - 32px, 1200px);
	margin: 0 auto;
	padding: 40px 0;
}

.dhb-room-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
	gap: 40px;
	align-items: start;
}

.dhb-room-single__media,
.dhb-room-content {
	min-width: 0;
}

.dhb-room-gallery {
	width: 100%;
}

.dhb-room-gallery__main {
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #eef2f6;
}

.dhb-room-gallery__main-image {
	display: block;
	width: 100%;
	height: min(50vw, 600px);
	max-height: 600px;
	min-height: 320px;
	object-fit: cover;
}

.dhb-room-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.dhb-room-gallery__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: #eef2f6;
	outline: 0;
}

.dhb-room-gallery__thumb:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2271b1;
}

.dhb-room-gallery__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 160ms ease;
}

.dhb-room-gallery__thumb:focus .dhb-room-gallery__thumb-image,
.dhb-room-gallery__thumb:hover .dhb-room-gallery__thumb-image {
	transform: scale(1.04);
}

.dhb-room-content {
	color: #111827;
}

.dhb-room-title {
	margin: 0;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.12;
}

.dhb-room-detail-content {
	margin-top: 22px;
	color: #4b5563;
	font-size: 1.05rem;
	line-height: 1.7;
}

.dhb-room-detail-content > :first-child {
	margin-top: 0;
}

.dhb-room-detail-content > :last-child {
	margin-bottom: 0;
}

.dhb-room-detail-content h1,
.dhb-room-detail-content h2,
.dhb-room-detail-content h3,
.dhb-room-detail-content h4,
.dhb-room-detail-content h5,
.dhb-room-detail-content h6 {
	margin: 1.4em 0 0.55em;
	color: #111827;
	line-height: 1.25;
}

.dhb-room-detail-content p {
	margin: 0 0 1em;
}

.dhb-room-detail-content ul,
.dhb-room-detail-content ol {
	margin: 0 0 1.1em 1.25em;
	padding: 0;
}

.dhb-room-detail-content li + li {
	margin-top: 0.35em;
}

.dhb-room-detail-content a {
	color: #0f5e9c;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.dhb-room-detail-content a:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

.dhb-room-detail-content img {
	max-width: 100%;
	height: auto;
}

.dhb-room-detail-content figure {
	max-width: 100%;
	margin: 1.35em 0;
}

.dhb-room-detail-content .alignleft {
	float: left;
	margin: 0.35em 1.25em 1em 0;
}

.dhb-room-detail-content .alignright {
	float: right;
	margin: 0.35em 0 1em 1.25em;
}

.dhb-room-detail-content .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.dhb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(3, 7, 18, 0.88);
	box-sizing: border-box;
}

.dhb-lightbox.is-open {
	display: flex;
}

.dhb-lightbox__dialog {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(100%, 1100px);
	height: min(100%, 820px);
	max-height: calc(100vh - 48px);
	outline: 0;
}

.dhb-lightbox__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	color: #fff;
}

.dhb-lightbox__counter {
	font-size: 0.95rem;
	line-height: 1.4;
}

.dhb-lightbox__close,
.dhb-lightbox__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.dhb-lightbox__close:focus-visible,
.dhb-lightbox__arrow:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.dhb-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.dhb-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dhb-lightbox__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.dhb-lightbox__arrow--prev {
	left: 12px;
}

.dhb-lightbox__arrow--next {
	right: 12px;
}

@media (max-width: 782px) {
	.dhb-rooms,
	.dhb-rooms--columns-2,
	.dhb-rooms--columns-3,
	.dhb-rooms--columns-4 {
		grid-template-columns: 1fr;
	}

	.dhb-room-single__container {
		width: min(100% - 24px, 1200px);
		padding: 24px 0;
	}

	.dhb-room-single__layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.dhb-room-gallery__main-image {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.dhb-room-gallery__thumbs {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	}

	.dhb-room-detail-content .alignleft,
	.dhb-room-detail-content .alignright {
		float: none;
		margin: 1em 0;
	}

	.dhb-lightbox {
		padding: 14px;
	}

	.dhb-lightbox__dialog {
		height: 100%;
		max-height: calc(100vh - 28px);
	}

	.dhb-lightbox__image {
		max-height: calc(100vh - 126px);
	}

	.dhb-lightbox__arrow {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}

	.dhb-lightbox__arrow--prev {
		left: 4px;
	}

	.dhb-lightbox__arrow--next {
		right: 4px;
	}
}
