/* ==========================================================
   CHIRALA RESORTS
   VENDOR ROOMS
========================================================== */

.crms-vendor-rooms,
.crms-vendor-rooms * {
	box-sizing: border-box;
}

/* ==========================================================
   HEADER
========================================================== */

.crms-vendor-rooms__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 24px;
	padding: 30px;

	background: #ffffff;
	border: 1px solid #e4e7ec;
	border-radius: 20px;
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.crms-vendor-rooms__heading {
	max-width: 680px;
}

.crms-vendor-rooms__eyebrow {
	display: inline-flex;
	align-items: center;

	margin-bottom: 10px;
	padding: 7px 11px;

	background: #ecfdf5;
	border: 1px solid #b7e8df;
	border-radius: 999px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0b5f59;
}

.crms-vendor-rooms__heading h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 760;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #172033;
}

.crms-vendor-rooms__heading p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #667085;
}

.crms-vendor-rooms__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: 46px;
	padding: 12px 18px;

	background: #0f766e;
	border: 1px solid #0f766e;
	border-radius: 11px;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	color: #ffffff;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-vendor-rooms__add span {
	font-size: 19px;
	line-height: 1;
}

.crms-vendor-rooms__add:hover {
	background: #0b5f59;
	border-color: #0b5f59;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 9px 20px rgba(15, 118, 110, 0.22);
}

/* ==========================================================
   SUCCESS NOTICE
========================================================== */

.crms-vendor-rooms__notice {
	display: flex;
	align-items: center;
	gap: 10px;

	margin-bottom: 20px;
	padding: 14px 16px;

	border-radius: 12px;
	font-size: 14px;
	font-weight: 650;
}

.crms-vendor-rooms__notice--success {
	background: #ecfdf5;
	border: 1px solid #a7e4d9;
	color: #0b5f59;
}

.crms-vendor-rooms__notice--success > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;
	flex: 0 0 24px;

	background: #0f766e;
	border-radius: 50%;
	color: #ffffff;
}

/* ==========================================================
   SUMMARY
========================================================== */

.crms-vendor-rooms__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 22px;
}

.crms-vendor-rooms__stat {
	min-height: 112px;
	padding: 20px 22px;

	background: #ffffff;
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.crms-vendor-rooms__stat span {
	display: block;
	margin-bottom: 9px;

	font-size: 13px;
	font-weight: 650;
	color: #667085;
}

.crms-vendor-rooms__stat strong {
	display: block;
	font-size: 30px;
	font-weight: 760;
	line-height: 1;
	color: #0f766e;
}

/* ==========================================================
   ROOM LIST
========================================================== */

.crms-vendor-rooms__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

/* ==========================================================
   ROOM CARD
========================================================== */

.crms-vendor-room-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;

	background: #ffffff;
	border: 1px solid #e4e7ec;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);

	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-vendor-room-card:hover {
	transform: translateY(-3px);
	border-color: #b9ddd7;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

/* Media */

.crms-vendor-room-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eef2f6;
}

.crms-vendor-room-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.crms-vendor-room-card:hover .crms-vendor-room-card__media img {
	transform: scale(1.025);
}

.crms-vendor-room-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	background:
		linear-gradient(135deg, #eef7f5, #f8fafc);
	font-size: 54px;
}

/* Status Badge */

.crms-vendor-room-card__status {
	position: absolute;
	top: 14px;
	left: 14px;

	display: inline-flex;
	align-items: center;
	gap: 7px;

	padding: 8px 11px;

	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	backdrop-filter: blur(8px);

	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #344054;
	box-shadow: 0 7px 18px rgba(15, 23, 42, 0.14);
}

.crms-vendor-room-card__status > span {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: #98a2b3;
}

.crms-vendor-room-card__status.is-available {
	color: #067647;
}

.crms-vendor-room-card__status.is-available > span {
	background: #12b76a;
}

.crms-vendor-room-card__status.is-unavailable {
	color: #b42318;
}

.crms-vendor-room-card__status.is-unavailable > span {
	background: #f04438;
}

/* Content */

.crms-vendor-room-card__content {
	padding: 21px 22px 17px;
}

.crms-vendor-room-card__type {
	display: inline-block;
	margin-bottom: 7px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #0f766e;
}

.crms-vendor-room-card__content h2 {
	margin: 0 0 9px;
	font-size: 21px;
	font-weight: 740;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #172033;
}

.crms-vendor-room-card__resort {
	display: flex;
	align-items: center;
	gap: 7px;

	margin: 0 0 17px;
	font-size: 14px;
	line-height: 1.5;
	color: #667085;
}

.crms-vendor-room-card__resort span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;

	background: #f2f4f7;
	border-radius: 7px;
	color: #475467;
}

/* Meta Chips */

.crms-vendor-room-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.crms-vendor-room-card__meta > span {
	display: inline-flex;
	align-items: center;

	min-height: 34px;
	padding: 7px 10px;

	background: #f8fafc;
	border: 1px solid #e4e7ec;
	border-radius: 9px;

	font-size: 12px;
	font-weight: 650;
	line-height: 1.25;
	color: #475467;
}

/* Actions */

.crms-vendor-room-card__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;

	padding: 15px 22px 20px;
	border-top: 1px solid #eef1f4;
}

.crms-vendor-room-card__edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: 40px;
	padding: 9px 14px;

	background: #ecfdf5;
	border: 1px solid #b8e5dc;
	border-radius: 9px;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #0b5f59;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.crms-vendor-room-card__edit:hover {
	background: #0f766e;
	border-color: #0f766e;
	color: #ffffff;
	transform: translateY(-1px);
}

/* ==========================================================
   EMPTY STATE
========================================================== */

.crms-vendor-rooms__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 360px;
	padding: 45px 24px;

	background: #ffffff;
	border: 1px dashed #cfd6df;
	border-radius: 18px;
	text-align: center;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.crms-vendor-rooms__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 78px;
	height: 78px;
	margin-bottom: 18px;

	background: #ecfdf5;
	border-radius: 22px;
	font-size: 37px;
}

.crms-vendor-rooms__empty h2 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 740;
	color: #172033;
}

.crms-vendor-rooms__empty p {
	max-width: 520px;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.7;
	color: #667085;
}

.crms-vendor-rooms__empty-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: 46px;
	padding: 12px 18px;

	background: #0f766e;
	border: 1px solid #0f766e;
	border-radius: 10px;

	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: #ffffff;
}

.crms-vendor-rooms__empty-button:hover {
	background: #0b5f59;
	border-color: #0b5f59;
	color: #ffffff;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

	.crms-vendor-rooms__list {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.crms-vendor-rooms__header {
		flex-direction: column;
		padding: 22px 20px;
	}

	.crms-vendor-rooms__add {
		width: 100%;
	}

	.crms-vendor-rooms__summary {
		grid-template-columns: 1fr;
	}

	.crms-vendor-room-card__content {
		padding: 18px;
	}

	.crms-vendor-room-card__actions {
		padding: 14px 18px 18px;
	}

	.crms-vendor-room-card__edit {
		width: 100%;
	}
}