/*
 * Room Grid Styles
 * Single Column Centered Layout
 */

/* Room Grid Container */
.room-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 60px;
	margin: 80px auto;
	max-width: 1400px;
	padding: 0 40px;
	justify-content: center;
}

@media screen and (max-width: 960px) {
	.room-grid {
		gap: 40px;
		padding: 0 30px;
	}
}

@media screen and (max-width: 768px) {
	.room-grid {
		flex-direction: column;
		gap: 50px;
		margin: 60px auto;
		padding: 0 20px;
	}
}

/* Room Card */
.room-card {
	background: transparent;
	overflow: hidden;
	width: calc(50% - 30px);
	max-width: 650px;
}

@media screen and (max-width: 768px) {
	.room-card {
		width: 100%;
		max-width: 700px;
	}
}

/* Room Image */
.room-card .room-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 944 / 625;
	text-align: center;
}

.room-card .room-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

/* Room Content */
.room-card .room-content {
	padding: 30px 20px;
	text-align: center;
}

.room-card .room-name {
	font-family: 'interstateboldcompressed', Arial, Helvetica, sans-serif;
	font-style: normal;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 32px;
	font-size: 3.2rem;
	line-height: 1.2em;
	color: #002993;
	margin: 0 0 15px 0;
	text-align: center;
}

@media screen and (max-width: 768px) {
	.room-card .room-name {
		font-size: 28px;
		font-size: 2.8rem;
	}
}

.room-card .room-description {
	font-family: 'Austin', Georgia, serif;
	font-size: 16px;
	font-size: 1.6rem;
	line-height: 1.6em;
	color: #002993;
	margin: 0 auto 25px auto;
	padding: 0 20px;
	font-weight: 300;
	font-style: italic;
	text-align: center;
	max-width: 100%;
	word-wrap: break-word;
}

/* Room Buttons */
.room-card .room-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.room-card .btn-view-room,
.room-card .btn-view-gallery,
.room-card .btn-reserve {
	display: inline-block;
	line-height: 40px;
	padding: 0 20px;
	font-size: 20px;
	font-size: 2rem;
	color: #f7f9f2;
	background: #002993;
	border: 2px solid #002993;
	font-family: 'interstateboldcompressed', Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	font-weight: normal;
	letter-spacing: 0.15em;
	text-decoration: none;
	font-style: normal;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	flex: 1;
	min-width: 180px;
	max-width: 250px;
}

.room-card .btn-view-room:hover,
.room-card .btn-view-gallery:hover,
.room-card .btn-reserve:hover {
	background: #f7f9f2;
	color: #002993;
	border: 2px solid #002993;
}

@media screen and (max-width: 768px) {
	.room-card .btn-view-room,
	.room-card .btn-view-gallery,
	.room-card .btn-reserve {
		font-size: 18px;
		font-size: 1.8rem;
		padding: 0 15px;
	}
}

@media screen and (max-width: 480px) {
	.room-card .room-buttons {
		/*flex-direction: column;*/
		gap: 10px;
	}

	.room-card .btn-view-room,
	.room-card .btn-view-gallery,
	.room-card .btn-reserve {
		width: 100%;
	}
}

/* Room Modal - FIXED */
.room-modal {
	display: none !important;
	position: fixed !important;
	z-index: 999999 !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: auto !important;
}

.room-modal.active {
	display: block !important;
}

.room-modal .modal-overlay {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1;
}

.room-modal .modal-content {
	position: fixed !important;
	background: #fffef9;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	animation: modalFadeIn 0.3s ease;
	z-index: 2;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media screen and (max-width: 768px) {
	.room-modal .modal-content {
		width: 100%;
		height: 100%;
	}
}

/* Close Button - FIXED */
.room-modal .modal-close {
	position: fixed !important;
	top: 130px;
	right: 30px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	z-index: 9999999;
	transition: all 0.3s ease;
	background: #002993;
	width: 60px;
	height: 60px;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	border: 2px solid #002993;
}

.room-modal .modal-close:hover {
	background: #fff;
	color: #002993;
}

@media screen and (max-width: 768px) {
	.room-modal .modal-close {
		top: 55px;
		right: 15px;
		font-size: 30px;
		width: 50px;
		height: 50px;
	}
	.room-modal .gallery_wrapper {
		overflow: hidden;
		box-sizing: border-box;
	}
	.room-modal .gallery {
		width: 100%;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		overflow: hidden;
	}
	.room-modal .gallery .owl-stage-outer {
		overflow: hidden !important;
		width: 100%;
		box-sizing: border-box;
	}
	.room-modal .gallery .owl-stage {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		width: 100%;
	}
	.room-modal .gallery .owl-item {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
		max-width: 100%;
	}
	.room-modal .gallery .slide {
		width: 100%;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		max-width: 100%;
	}
	.room-modal .gallery .slide .image {
		width: 100%;
		margin: 0;
		padding: 0;
		overflow: hidden;
		box-sizing: border-box;
	}
}

/* Modal Body */
.room-modal .modal-body {
	padding: 0;
	background: #fffef9;
	display: flex;
	min-height: 100vh;
	height: 100vh;
	width: 100%;
	overflow: hidden;
}

@media screen and (max-width: 960px) {
	.room-modal .modal-body {
		flex-direction: column;
		height: auto;
		overflow: visible;
		margin-top:100px !important;
	}
}

.room-modal .modal-room-name {
	font-family: 'interstateboldcompressed', Arial, Helvetica, sans-serif;
	font-style: normal;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 42px;
	font-size: 4.2rem;
	line-height: 1.2em;
	color: #002993;
	text-align: center;
	margin: 0 0 30px 0;
}

@media screen and (max-width: 768px) {
	.room-modal .modal-room-name {
		font-size: 32px;
		font-size: 3.2rem;
	}
}

/* Modal Gallery */
.room-modal .gallery_wrapper {
	flex: 0 0 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	width: 50% !important;
	max-width: 50% !important;
	min-width: 50% !important;
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	overflow: hidden !important;
	box-sizing: border-box;
}

@media screen and (min-width: 961px) {
	.room-modal .gallery_wrapper {
		overflow: hidden !important;
	}
	.room-modal .gallery {
		overflow: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.room-modal .gallery .owl-stage-outer {
		overflow: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.room-modal .gallery .owl-stage {
		margin-left: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-right: 0 !important;
	}
	.room-modal .gallery .owl-item {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.room-modal .gallery .slide {
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}
	.room-modal .gallery .slide .image {
		overflow: hidden !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.room-modal .gallery .slide .image img {
		display: block;
		margin: 0 auto;
	}
}

@media screen and (max-width: 960px) {
	.room-modal .gallery_wrapper {
		position: relative;
		flex: 1;
		min-height: 50vh;
		height: auto;
		padding: 20px 0;
		width: 100% !important;
		max-width: 100% !important;
		min-width: auto !important;
		overflow: hidden !important;
		box-sizing: border-box;
	}
	.room-modal .gallery {
		overflow: hidden;
		box-sizing: border-box;
	}
	.room-modal .gallery .owl-stage-outer {
		overflow: hidden !important;
		box-sizing: border-box;
	}
	.room-modal .gallery .owl-stage {
		box-sizing: border-box;
	}
	.room-modal .gallery .owl-item {
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}
	.room-modal .gallery .slide {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
	.room-modal .gallery .slide .image {
		overflow: hidden;
		box-sizing: border-box;
	}
}

.room-modal .gallery_wrapper.covered .cover {
	display: none;
}

.room-modal .gallery_wrapper .gallery {
	width: 100%;
	max-width: 100%;
	position: relative;
	box-sizing: border-box;
	overflow: hidden !important;
}

.room-modal .gallery.owl-carousel {
	display: block;
	overflow: hidden !important;
	box-sizing: border-box;
}

.room-modal .gallery .owl-stage-outer {
	position: relative;
	overflow: hidden !important;
	box-sizing: border-box;
}

.room-modal .gallery .owl-stage {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.room-modal .gallery .owl-item {
	position: relative;
	min-height: 1px;
	float: left;
	backface-visibility: hidden;
	tap-highlight-color: transparent;
	touch-action: manipulation;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100%;
}

.room-modal .gallery .slide {
	width: 100%;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100%;
	overflow: hidden;
}

.room-modal .gallery .slide .image {
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.room-modal .gallery .slide .image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 56vh;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

@media screen and (max-width: 960px) {
	.room-modal .gallery .slide .image img {
		max-height: 35vh;
	}
}

.room-modal .gallery .caption {
	font-size: 16px;
	font-size: 1.6rem;
	font-style: italic;
	font-weight: 300;
	margin: 15px 0 0 0;
	color: #666;
	text-align: center;
}

/* Owl Carousel Navigation in Modal */
.room-modal .gallery_wrapper .owl-nav {
	position: relative;
	text-align: center;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 40px;
}

.room-modal .owl-prev,
.room-modal .owl-next {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	font-size: 30px !important;
	color: #002993 !important;
	cursor: pointer;
	z-index: 100;
	background: transparent !important;
	width: auto;
	height: auto;
	border-radius: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: none !important;
	padding: 0;
}

@media screen and (max-width: 768px) {
	.room-modal .owl-prev,
	.room-modal .owl-next {
		font-size: 24px !important;
	}

	.room-modal .gallery_wrapper .owl-nav {
		gap: 30px;
		margin-top: 15px;
	}
}

/* Modal Text Content */
.room-modal .modal-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 80px 180px 60px 60px;
	overflow-y: auto;
	height: 100vh;
	margin-left: 50%;
	width: 50%;
	max-width: 50%;
	min-width: 50%;
	box-sizing: border-box;
}

@media screen and (max-width: 960px) {
	.room-modal .modal-text {
		padding: 40px 30px;
		gap: 30px;
		margin-left: 0;
		width: 100%;
		max-width: 100%;
		min-width: auto;
		height: auto;
	}
}

@media screen and (max-width: 768px) {
	.room-modal .modal-text {
		padding: 30px 20px;
	}
}

.room-modal .modal-sidebar {
	font-family: 'Austin', Georgia, serif;
	font-size: 18px;
	font-size: 1.8rem;
	line-height: 1.8em;
	color: #333;
}

.room-modal .modal-sidebar .topstar,
.room-modal .modal-sidebar .bottomstar {
	text-align: center;
	color: #002993;
}

.room-modal .modal-sidebar .pdf {
	display: inline-block;
	font-family: 'Austin', Georgia, serif;
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 600;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	padding: 10px 20px;
	border: 1px solid #002993;
	color: #002993;
	text-decoration: none;
	margin-top: 10px;
	transition: all 0.3s ease;
}

.room-modal .modal-sidebar .pdf:hover {
	background: #002993;
	color: #fff;
}

.room-modal .modal-description {
	font-family: 'Austin', Georgia, serif;
	font-size: 18px;
	font-size: 1.8rem;
	line-height: 1.8em;
	color: #333;
	font-weight: 300;
}

.room-modal .modal-description p {
	margin: 0 0 15px 0;
}

.room-modal .modal-description p:last-child {
	margin-bottom: 0;
}

.room-modal .modal-description h2 {
	font-family: 'interstateboldcompressed', Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-size: 2.4rem;
	color: #002993;
	margin: 20px 0 10px 0;
}

/* Gallery-only modal (centered slider, no sidebar) */
.gallery-only-modal .modal-body {
	justify-content: center;
	align-items: center;
}

.gallery-only-modal .gallery-centered {
	position: relative;
	flex: none;
	width: 80% !important;
	max-width: 80% !important;
	min-width: auto !important;
	height: auto;
	left: auto;
	top: auto;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
}

.gallery-only-modal .gallery-centered .gallery .slide .image img {
	max-height: 75vh;
}

@media screen and (max-width: 960px) {
	.gallery-only-modal .gallery-centered {
		width: 100% !important;
		max-width: 100% !important;
		padding: 20px 0;
	}
	.gallery-only-modal .gallery-centered .gallery .slide .image img {
		max-height: 50vh;
	}
}
