/* Hostel360 — Odoo-inspired shell (brand purple, calm neutrals) */
:root {
	--h360-brand: #714b67;
	--h360-brand-hover: #5d3d55;
	--h360-sidebar-bg: #2b2f33;
	--h360-sidebar-bg-top: #353b41;
	--h360-sidebar-bg-bottom: #232629;
	--h360-sidebar-link: rgba(255, 255, 255, 0.78);
	--h360-sidebar-muted: rgba(255, 255, 255, 0.35);
	--h360-sidebar-w-expanded: 184px;
	--h360-sidebar-w-rail: 42px;
	--h360-sidebar-w-mobile: min(280px, 88vw);
	--h360-topbar-h: 3.5rem;
}

.hostel-body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #f5f5f5;
	overflow-x: hidden;
}

.hostel-shell {
	min-height: 100vh;
	min-height: 100dvh;
}

.hostel-brand {
	color: var(--h360-brand);
	font-size: 0.95rem;
	letter-spacing: -0.02em;
}

.hostel-title {
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	max-width: min(28rem, 50vw);
}

.hostel-topbar {
	z-index: 1050;
	position: sticky;
	top: 0;
	padding-top: env(safe-area-inset-top, 0);
	background:
		linear-gradient(180deg, var(--h360-sidebar-bg-top) 0%, var(--h360-sidebar-bg) 42%, var(--h360-sidebar-bg-bottom) 100%);
	border-bottom: none;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.07) inset,
		0 3px 0 rgba(45, 28, 40, 0.18),
		0 8px 22px rgba(15, 23, 42, 0.22);
}

.hostel-topbar__inner {
	min-height: var(--h360-topbar-h);
	padding-block: 0.4rem;
}

.hostel-topbar-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.65rem 0.3rem 0.45rem;
	border-radius: 0.5rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: linear-gradient(165deg, rgba(143, 95, 130, 0.92) 0%, rgba(113, 75, 103, 0.98) 55%, rgba(93, 61, 85, 1) 100%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom-width: 3px;
	border-bottom-color: rgba(45, 28, 40, 0.55);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 3px 0 rgba(45, 28, 40, 0.4),
		0 5px 14px rgba(0, 0, 0, 0.28);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.hostel-topbar-brand:hover,
.hostel-topbar-brand:focus-visible {
	color: #fff;
	background: linear-gradient(165deg, rgba(154, 107, 140, 0.98) 0%, rgba(113, 75, 103, 1) 55%, rgba(93, 61, 85, 1) 100%);
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2) inset,
		0 4px 0 rgba(45, 28, 40, 0.42),
		0 8px 18px rgba(0, 0, 0, 0.32);
}

.hostel-topbar-brand:active {
	transform: translateY(1px);
	border-bottom-width: 2px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.12) inset,
		0 1px 0 rgba(45, 28, 40, 0.35),
		0 3px 10px rgba(0, 0, 0, 0.22);
}

.hostel-topbar-brand__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 0.4rem;
	font-size: 0.9rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom-width: 2px;
	border-bottom-color: rgba(45, 28, 40, 0.28);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 2px 0 rgba(45, 28, 40, 0.2);
}

.hostel-topbar-brand__text {
	font-size: 0.875rem;
	letter-spacing: -0.02em;
}

.hostel-topbar-title {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.15rem;
	padding-left: 0.15rem;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.hostel-topbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.125rem;
	min-height: 2.125rem;
	padding: 0.25rem 0.45rem;
	border: 1px solid transparent;
	border-bottom-width: 2px;
	border-bottom-color: transparent;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--h360-sidebar-link);
	box-shadow: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-bottom-width 0.12s ease, color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.hostel-topbar-btn:hover,
.hostel-topbar-btn:focus-visible {
	color: #fff;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
	border-color: rgba(255, 255, 255, 0.1);
	border-bottom-color: rgba(0, 0, 0, 0.22);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.1) inset,
		0 2px 0 rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
}

.hostel-topbar-btn:active {
	transform: translateY(1px);
	border-bottom-width: 1px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 1px 0 rgba(0, 0, 0, 0.2);
}

.hostel-topbar-btn.active,
.hostel-topbar-user-btn.show,
.hostel-topbar-user-btn[aria-expanded="true"] {
	color: #fff;
	background: linear-gradient(165deg, rgba(143, 95, 130, 0.95) 0%, rgba(113, 75, 103, 0.98) 55%, rgba(93, 61, 85, 1) 100%);
	border-color: rgba(255, 255, 255, 0.14);
	border-bottom-width: 3px;
	border-bottom-color: rgba(45, 28, 40, 0.55);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 3px 0 rgba(45, 28, 40, 0.4),
		0 5px 14px rgba(0, 0, 0, 0.28);
	transform: translateY(-1px);
}

.hostel-topbar .btn-hostel-mini,
.hostel-sidebar-toggle {
	min-width: 2.125rem;
	min-height: 2.125rem;
}

.hostel-sidebar-toggle-icon {
	font-size: 1.125rem;
	line-height: 1;
}

.hostel-topbar-user-btn {
	padding: 0.2rem 0.35rem 0.2rem 0.2rem;
}

.hostel-topbar-user-btn::after {
	margin-inline-start: 0.125rem;
	vertical-align: middle;
	border-top-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 575.98px) {
	.hostel-topbar-title {
		display: none;
	}
}

@media (max-width: 399.98px) {
	.hostel-topbar-brand__text {
		display: none;
	}

	.hostel-topbar-brand {
		padding-inline: 0.35rem;
	}
}

.hostel-mobile-backdrop {
	display: none;
}

@media (max-width: 991.98px) {
	.hostel-mobile-backdrop {
		display: block;
		visibility: hidden;
	}
}

.hostel-body-row {
	min-height: 0;
}

.hostel-page {
	min-height: 0;
	min-width: 0;
}

.hostel-user-dot {
	width: 8px;
	height: 8px;
	background: var(--h360-brand);
	display: inline-block;
}

.hostel-user-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--h360-brand) 0%, var(--h360-brand-hover) 100%);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	text-transform: uppercase;
	user-select: none;
	border-bottom: 2px solid rgba(45, 28, 40, 0.2);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2) inset,
		0 2px 0 rgba(45, 28, 40, 0.12);
}

.hostel-user-avatar--sm {
	width: 1.75rem;
	height: 1.75rem;
	font-size: 0.625rem;
}

.hostel-user-menu-header {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	white-space: normal;
}

.hostel-user-menu-name {
	font-weight: 600;
	color: #0f172a;
	line-height: 1.25;
}

.hostel-sidebar {
	width: 100%;
	flex-shrink: 0;
	background:
		linear-gradient(180deg, var(--h360-sidebar-bg-top) 0%, var(--h360-sidebar-bg) 42%, var(--h360-sidebar-bg-bottom) 100%);
	position: relative;
	z-index: 1010;
	transition: width 0.2s ease, min-width 0.2s ease, box-shadow 0.2s ease;
	box-shadow:
		1px 0 0 rgba(255, 255, 255, 0.07) inset,
		3px 0 0 rgba(45, 28, 40, 0.12),
		6px 0 18px rgba(15, 23, 42, 0.14);
}

@media (min-width: 992px) {
	.hostel-sidebar {
		width: var(--h360-sidebar-w-expanded);
		min-height: calc(100vh - var(--h360-topbar-h));
	}

	.hostel-shell--sidebar-collapsed .hostel-sidebar {
		width: 0 !important;
		min-width: 0;
		box-shadow: none;
		overflow: hidden;
	}

	.hostel-shell--sidebar-collapsed .hostel-sidebar-collapse,
	.hostel-shell--sidebar-collapsed .hostel-sidebar-inner {
		opacity: 0;
		pointer-events: none;
	}
}

@media (min-width: 992px) {
	.hostel-shell--sidebar-rail .hostel-sidebar {
		width: var(--h360-sidebar-w-rail);
	}
}

.hostel-sidebar-panel {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.hostel-sidebar-inner {
	min-height: 0;
	padding: 0.45rem 0.35rem;
}

.hostel-sidebar-section {
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.48);
	padding: 0.55rem 0.55rem 0.15rem;
	margin: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.22);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hostel-sidebar-nav .hostel-nav-dash + .hostel-sidebar-section {
	border-top: 0;
	box-shadow: none;
}

.hostel-sidebar-nav {
	gap: 0.14rem !important;
	font-size: 0.75rem;
	line-height: 1.22;
	padding: 0.35rem !important;
}

.hostel-shell--sidebar-rail .hostel-sidebar-section {
	display: none !important;
}

.hostel-shell--sidebar-rail .hostel-sidebar-label {
	display: none !important;
}

.hostel-shell--sidebar-rail .hostel-nav-link {
	justify-content: center !important;
	gap: 0 !important;
	padding-inline: 0.25rem !important;
	padding-block: 0.38rem !important;
}

.hostel-shell--sidebar-rail .hostel-nav-icon {
	margin-inline: auto;
}

/* Mobile: slide-out drawer */
@media (max-width: 991.98px) {
	.hostel-mobile-backdrop {
		position: fixed;
		inset: 0;
		top: var(--h360-topbar-h);
		z-index: 1070;
		background: rgba(15, 18, 22, 0.45);
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.hostel-shell--mobile-nav-open .hostel-mobile-backdrop {
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
	}

	.hostel-page {
		position: relative;
	}

	.hostel-sidebar {
		position: fixed;
		top: var(--h360-topbar-h);
		left: 0;
		bottom: 0;
		width: var(--h360-sidebar-w-mobile);
		max-width: 100%;
		z-index: 1080;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		transform: translate3d(-105%, 0, 0);
		transition: transform 0.22s ease, box-shadow 0.22s ease, visibility 0.22s ease;
		box-shadow: none;
		padding-bottom: env(safe-area-inset-bottom, 0);
		visibility: hidden;
		pointer-events: none;
	}

	.hostel-shell--mobile-nav-open .hostel-sidebar {
		transform: translate3d(0, 0, 0);
		visibility: visible;
		pointer-events: auto;
		box-shadow:
			1px 0 0 rgba(255, 255, 255, 0.07) inset,
			4px 0 0 rgba(45, 28, 40, 0.15),
			10px 0 28px rgba(0, 0, 0, 0.28),
			18px 0 48px rgba(0, 0, 0, 0.18);
	}

	.hostel-topbar {
		z-index: 1090;
	}

	.hostel-sidebar-toggle {
		min-width: 2.75rem;
		min-height: 2.75rem;
		touch-action: manipulation;
	}

	.hostel-sidebar-inner {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.hostel-nav-link {
		min-height: 2.75rem;
		padding-block: 0.55rem !important;
		font-size: 0.8125rem;
	}

	body.hostel-body--nav-open {
		overflow: hidden;
	}

	.hostel-main.flex-grow-0 {
		flex-basis: auto;
		min-height: 0 !important;
	}
}

@media (min-width: 992px) {
	.hostel-sidebar-inner {
		min-height: calc(100vh - var(--h360-topbar-h));
		overflow-y: auto;
		overflow-x: hidden;
	}
}

.hostel-nav-link {
	color: var(--h360-sidebar-link) !important;
	border-radius: 0.5rem;
	padding: 0.32rem 0.45rem !important;
	display: flex !important;
	align-items: center;
	gap: 0.45rem;
	min-height: 0;
	border: 1px solid transparent;
	border-bottom-width: 2px;
	border-bottom-color: transparent;
	background: transparent;
	box-shadow: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.hostel-nav-link:hover:not(.disabled) {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
	border-color: rgba(255, 255, 255, 0.1);
	border-bottom-color: rgba(0, 0, 0, 0.22);
	color: #fff !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.1) inset,
		0 2px 0 rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
}

.hostel-nav-link:active:not(.disabled) {
	transform: translateY(1px);
	border-bottom-width: 1px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 1px 0 rgba(0, 0, 0, 0.2);
}

.hostel-nav-link.active {
	background: linear-gradient(165deg, rgba(143, 95, 130, 0.95) 0%, rgba(113, 75, 103, 0.98) 55%, rgba(93, 61, 85, 1) 100%);
	border-color: rgba(255, 255, 255, 0.14);
	border-bottom-width: 3px;
	border-bottom-color: rgba(45, 28, 40, 0.55);
	color: #fff !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 3px 0 rgba(45, 28, 40, 0.4),
		0 5px 14px rgba(0, 0, 0, 0.28);
	transform: translateY(-1px);
}

.hostel-nav-link.active:hover:not(.disabled) {
	background: linear-gradient(165deg, rgba(154, 107, 140, 0.98) 0%, rgba(113, 75, 103, 1) 55%, rgba(93, 61, 85, 1) 100%);
	color: #fff !important;
}

.hostel-nav-link.active .hostel-nav-icon {
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
	border-bottom-color: rgba(45, 28, 40, 0.28);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 2px 0 rgba(45, 28, 40, 0.2);
}

.hostel-nav-link.disabled {
	cursor: not-allowed;
	color: var(--h360-sidebar-muted) !important;
	box-shadow: none;
	transform: none;
}

.hostel-nav-icon {
	flex-shrink: 0;
	width: 1.65rem;
	height: 1.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	line-height: 1;
	opacity: 0.92;
	border-radius: 0.4rem;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom-width: 2px;
	border-bottom-color: rgba(0, 0, 0, 0.22);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
	transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.hostel-nav-link:hover:not(.disabled) .hostel-nav-icon {
	background: rgba(255, 255, 255, 0.12);
	border-bottom-color: rgba(0, 0, 0, 0.25);
}

.hostel-nav-icon .bi {
	display: block;
	line-height: 1;
}

.hostel-sidebar-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

.hostel-main {
	min-height: calc(100vh - var(--h360-topbar-h));
}

@media (min-width: 992px) {
	.hostel-main {
		min-height: calc(100vh - var(--h360-topbar-h));
	}
}

.hostel-content {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Page toolbars, filters, action rows */
.hostel-content > .d-flex.justify-content-between,
.hostel-content > .d-flex.flex-wrap.justify-content-between,
.hostel-content .mb-3.d-flex.justify-content-between,
.hostel-content .mb-3.d-flex.flex-wrap {
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center !important;
}

.hostel-content > .d-flex.justify-content-between .btn,
.hostel-content > .d-flex.flex-wrap .btn {
	flex-shrink: 0;
}

/* Tables: horizontal scroll + touch */
.hostel-content .table-responsive {
	-webkit-overflow-scrolling: touch;
}

.hostel-content .table-responsive > .table {
	margin-bottom: 0;
}

@media (max-width: 767.98px) {
	.hostel-content td.text-nowrap,
	.hostel-content th.text-nowrap {
		white-space: normal !important;
	}

	.hostel-content td.text-end.text-nowrap .btn,
	.hostel-content td.text-nowrap .btn {
		margin: 0.125rem;
	}

	.hostel-content .table {
		font-size: 0.8125rem;
	}

	.hostel-content .btn-sm {
		min-height: 2.125rem;
		padding-inline: 0.65rem;
	}
}

/* Forms */
.hostel-summary-card {
	max-width: 520px;
	width: 100%;
}

@media (max-width: 575.98px) {
	.hostel-content .form-control,
	.hostel-content .form-select {
		font-size: 1rem;
	}

	.hostel-content form.row .col-auto {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.hostel-content form.row.align-items-end .col-auto .btn {
		width: 100%;
	}

	.hostel-title {
		font-size: 1.05rem;
		max-width: 38vw;
	}
}

.hostel-page-heading {
	display: none;
}

/* Content area — shell-themed buttons, forms, cards */
.hostel-content .form-text {
	display: none;
}

.hostel-content .card {
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 3px 0 rgba(15, 23, 42, 0.04),
		0 6px 18px rgba(15, 23, 42, 0.06);
}

.hostel-content .card.p-4 {
	padding: 1rem !important;
}

@media (min-width: 768px) {
	.hostel-content .card.p-4 {
		padding: 1.5rem !important;
	}
}

.hostel-content .form-control,
.hostel-content .form-select,
.hostel-content textarea.form-control {
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-bottom-width: 2px;
	border-bottom-color: rgba(15, 23, 42, 0.1);
	border-radius: 0.5rem;
	background: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 2px 6px rgba(15, 23, 42, 0.08),
		0 1px 3px rgba(15, 23, 42, 0.05);
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.hostel-content .form-control:focus,
.hostel-content .form-select:focus,
.hostel-content textarea.form-control:focus {
	border-color: rgba(113, 75, 103, 0.45);
	border-bottom-color: rgba(113, 75, 103, 0.35);
	box-shadow:
		0 0 0 0.2rem rgba(113, 75, 103, 0.14),
		0 3px 10px rgba(15, 23, 42, 0.1),
		0 1px 3px rgba(15, 23, 42, 0.06);
}

.hostel-content .input-group-text {
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-bottom-width: 2px;
	border-bottom-color: rgba(15, 23, 42, 0.1);
	background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
	color: var(--h360-brand);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 2px 5px rgba(15, 23, 42, 0.06);
}

.hostel-content .form-label {
	font-weight: 600;
	color: #334155;
}

.hostel-content .btn:not(.btn-close) {
	border-radius: 0.5rem;
	border-bottom-width: 3px;
	font-weight: 600;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.12) inset,
		0 3px 0 rgba(0, 0, 0, 0.14),
		0 4px 10px rgba(15, 23, 42, 0.1);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-bottom-width 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.hostel-content .btn:not(.btn-close):hover,
.hostel-content .btn:not(.btn-close):focus-visible {
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.14) inset,
		0 4px 0 rgba(0, 0, 0, 0.16),
		0 8px 16px rgba(15, 23, 42, 0.12);
}

.hostel-content .btn:not(.btn-close):active {
	transform: translateY(1px);
	border-bottom-width: 2px !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.08) inset,
		0 1px 0 rgba(0, 0, 0, 0.14),
		0 3px 8px rgba(15, 23, 42, 0.08);
}

.hostel-content .btn-primary,
.hostel-content .btn-hostel-primary {
	background: linear-gradient(165deg, rgba(143, 95, 130, 0.98) 0%, rgba(113, 75, 103, 1) 55%, rgba(93, 61, 85, 1) 100%);
	border-color: rgba(255, 255, 255, 0.12);
	border-bottom-color: rgba(45, 28, 40, 0.55);
	color: #fff;
}

.hostel-content .btn-primary:hover,
.hostel-content .btn-primary:focus-visible,
.hostel-content .btn-hostel-primary:hover,
.hostel-content .btn-hostel-primary:focus-visible {
	background: linear-gradient(165deg, rgba(154, 107, 140, 1) 0%, rgba(113, 75, 103, 1) 55%, rgba(93, 61, 85, 1) 100%);
	border-color: rgba(255, 255, 255, 0.14);
	border-bottom-color: rgba(45, 28, 40, 0.58);
	color: #fff;
}

.hostel-content .btn-outline-primary {
	background: linear-gradient(165deg, var(--h360-sidebar-bg-top) 0%, var(--h360-sidebar-bg) 55%, var(--h360-sidebar-bg-bottom) 100%);
	border-color: rgba(255, 255, 255, 0.1);
	border-bottom-color: rgba(0, 0, 0, 0.28);
	color: rgba(255, 255, 255, 0.92);
}

.hostel-content .btn-outline-primary:hover,
.hostel-content .btn-outline-primary:focus-visible {
	background: linear-gradient(165deg, #3f454c 0%, var(--h360-sidebar-bg-top) 55%, var(--h360-sidebar-bg) 100%);
	border-color: rgba(255, 255, 255, 0.14);
	border-bottom-color: rgba(0, 0, 0, 0.32);
	color: #fff;
}

.hostel-content .btn-secondary,
.hostel-content .btn-outline-secondary {
	background: linear-gradient(165deg, #4b5563 0%, #374151 55%, #1f2937 100%);
	border-color: rgba(255, 255, 255, 0.08);
	border-bottom-color: rgba(0, 0, 0, 0.3);
	color: rgba(255, 255, 255, 0.92);
}

.hostel-content .btn-secondary:hover,
.hostel-content .btn-secondary:focus-visible,
.hostel-content .btn-outline-secondary:hover,
.hostel-content .btn-outline-secondary:focus-visible {
	background: linear-gradient(165deg, #6b7280 0%, #4b5563 55%, #374151 100%);
	border-color: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.hostel-content .btn-success {
	background: linear-gradient(165deg, #10b981 0%, #059669 55%, #047857 100%);
	border-color: rgba(255, 255, 255, 0.12);
	border-bottom-color: rgba(4, 47, 46, 0.45);
	color: #fff;
}

.hostel-content .btn-success:hover,
.hostel-content .btn-success:focus-visible {
	background: linear-gradient(165deg, #34d399 0%, #059669 55%, #047857 100%);
	color: #fff;
}

.hostel-content .btn-danger {
	background: linear-gradient(165deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
	border-color: rgba(255, 255, 255, 0.12);
	border-bottom-color: rgba(91, 28, 28, 0.45);
	color: #fff;
}

.hostel-content .btn-danger:hover,
.hostel-content .btn-danger:focus-visible {
	background: linear-gradient(165deg, #f87171 0%, #dc2626 55%, #b91c1c 100%);
	color: #fff;
}

.hostel-content .btn-warning {
	background: linear-gradient(165deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
	border-color: rgba(255, 255, 255, 0.2);
	border-bottom-color: rgba(120, 53, 15, 0.4);
	color: #1f2937;
}

.hostel-content .btn-warning:hover,
.hostel-content .btn-warning:focus-visible {
	background: linear-gradient(165deg, #fcd34d 0%, #f59e0b 55%, #d97706 100%);
	color: #1f2937;
}

.hostel-content .btn-info {
	background: linear-gradient(165deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
	border-color: rgba(255, 255, 255, 0.14);
	border-bottom-color: rgba(12, 74, 110, 0.45);
	color: #fff;
}

.hostel-content .btn-info:hover,
.hostel-content .btn-info:focus-visible {
	background: linear-gradient(165deg, #7dd3fc 0%, #0ea5e9 55%, #0284c7 100%);
	color: #fff;
}

.hostel-content .btn-outline-danger {
	background: linear-gradient(165deg, #4b5563 0%, #374151 55%, #1f2937 100%);
	border-color: rgba(248, 113, 113, 0.35);
	border-bottom-color: rgba(127, 29, 29, 0.45);
	color: #fecaca;
}

.hostel-content .btn-outline-danger:hover,
.hostel-content .btn-outline-danger:focus-visible {
	background: linear-gradient(165deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
	border-color: rgba(255, 255, 255, 0.12);
	border-bottom-color: rgba(91, 28, 28, 0.45);
	color: #fff;
}

.hostel-content .btn-light {
	background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
	border-color: rgba(15, 23, 42, 0.1);
	border-bottom-color: rgba(15, 23, 42, 0.14);
	color: #334155;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 3px 0 rgba(15, 23, 42, 0.07),
		0 4px 10px rgba(15, 23, 42, 0.06);
}

.hostel-content .btn-light:hover,
.hostel-content .btn-light:focus-visible {
	background: linear-gradient(165deg, #ffffff 0%, #e2e8f0 100%);
	color: #0f172a;
}

.hostel-content .btn-link {
	border: 0;
	border-bottom-width: 0;
	background: transparent;
	box-shadow: none;
	color: var(--h360-brand);
	font-weight: 600;
}

.hostel-content .btn-link:hover,
.hostel-content .btn-link:focus-visible {
	transform: none;
	box-shadow: none;
	color: var(--h360-brand-hover);
}

.hostel-content .btn-link:active {
	transform: none;
	box-shadow: none;
}

.btn-hostel-primary {
	background: var(--h360-brand);
	border-color: var(--h360-brand);
	color: #fff;
}

.btn-hostel-primary:hover {
	background: var(--h360-brand-hover);
	border-color: var(--h360-brand-hover);
	color: #fff;
}

/* Login */
.hostel-login-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(ellipse 80% 60% at 15% 10%, rgba(113, 75, 103, 0.22) 0%, transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 85%, rgba(154, 107, 140, 0.18) 0%, transparent 50%),
		linear-gradient(155deg, #5d3d55 0%, #714b67 28%, #8f5f82 52%, #ede7ec 52%, #f4f0f3 78%, #eef1f6 100%);
}

.hostel-login-page {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
	padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

.hostel-login-main {
	min-height: 0;
	flex: 1 1 auto;
}

.hostel-login-stack {
	width: 100%;
	max-width: 420px;
}

.hostel-login-brand {
	margin-bottom: 1.35rem;
	color: #fff;
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.hostel-login-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	margin-bottom: 0.85rem;
	padding: 0.65rem;
	background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-bottom-width: 4px;
	border-radius: 1.1rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 8px 0 rgba(45, 28, 40, 0.18),
		0 16px 32px rgba(45, 28, 40, 0.22);
}

.hostel-login-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hostel-login-company {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.hostel-login-tagline {
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hostel-login-card {
	position: relative;
	border-radius: 1rem;
	background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-bottom-width: 5px;
	border-bottom-color: rgba(113, 75, 103, 0.35);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 10px 0 rgba(45, 28, 40, 0.1),
		0 22px 48px rgba(15, 23, 42, 0.18);
}

.hostel-login-card__inner {
	padding: 1.5rem 1.35rem 1.35rem;
}

.hostel-login-form .input-group-text {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
	color: var(--h360-brand);
}

.hostel-login-form .form-control {
	border-color: rgba(15, 23, 42, 0.1);
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}

.hostel-login-form .form-control:focus {
	border-color: rgba(113, 75, 103, 0.45);
	box-shadow: 0 0 0 0.2rem rgba(113, 75, 103, 0.15);
}

.hostel-login-submit {
	border-bottom-width: 3px;
	border-bottom-color: rgba(0, 0, 0, 0.12) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2) inset,
		0 4px 0 rgba(45, 28, 40, 0.2),
		0 8px 16px rgba(113, 75, 103, 0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hostel-login-submit:hover {
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2) inset,
		0 5px 0 rgba(45, 28, 40, 0.22),
		0 12px 22px rgba(113, 75, 103, 0.3);
}

.hostel-login-submit:active {
	transform: translateY(2px);
	border-bottom-width: 1px !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.15) inset,
		0 2px 0 rgba(45, 28, 40, 0.15),
		0 4px 10px rgba(113, 75, 103, 0.2);
}

.hostel-login-foot {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	flex-shrink: 0;
	padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	color: rgba(61, 40, 56, 0.88);
	line-height: 1.5;
	font-size: 0.8125rem;
	background: rgba(244, 240, 243, 0.94);
	border-top: 1px solid rgba(93, 61, 85, 0.14);
}

.hostel-login-foot strong {
	color: #5d3d55;
	font-weight: 600;
}

.hostel-settings-logo-preview {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 0.5rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #fff;
	padding: 0.25rem;
}

@media (min-width: 576px) {
	.hostel-login-card__inner {
		padding: 1.75rem 1.65rem 1.5rem;
	}

	.hostel-login-company {
		font-size: 1.65rem;
	}
}

@media (max-width: 575.98px) {
	.hostel-login-body {
		background:
			radial-gradient(ellipse 90% 40% at 50% 0%, rgba(113, 75, 103, 0.35) 0%, transparent 60%),
			linear-gradient(180deg, #5d3d55 0%, #714b67 35%, #ede7ec 35%, #f4f0f3 100%);
	}

	.hostel-login-brand {
		color: #fff;
	}
}

.min-w-0 {
	min-width: 0;
}

a.hostel-report-card {
	display: block;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.hostel-report-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.12) !important;
}

/* Guided workflow UI */
.hostel-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: var(--h360-brand);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.hostel-workflow-steps li {
	line-height: 1.45;
}

.hostel-details-summary {
	cursor: pointer;
	list-style: none;
}

.hostel-details-summary::-webkit-details-marker {
	display: none;
}

details.card > summary.hostel-details-summary {
	border-radius: inherit;
}

.hostel-header-map-btn {
	width: 2.125rem;
	height: 2.125rem;
	padding: 0;
}

.hostel-header-map-btn.active {
	color: #fff;
}

.hostel-map-scene {
	--map-brand: var(--h360-brand);
	--map-brand-soft: rgba(113, 75, 103, 0.12);
	--map-occupied: #059669;
	--map-occupied-soft: #ecfdf5;
	--map-occupied-border: #6ee7b7;
	--map-vacant: #dc2626;
	--map-vacant-soft: #fef2f2;
	--map-vacant-border: #fca5a5;
	--map-wall: #cbd5e1;
	--map-floor: #f8fafc;
	--map-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 0.25rem 0 1rem;
}

/* KPI strip */
.hostel-map-kpi {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	padding: 0.875rem 1rem;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 0.875rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hostel-map-kpi__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.65rem;
	background: var(--map-brand-soft);
	color: var(--map-brand);
	font-size: 1.125rem;
	flex-shrink: 0;
}

.hostel-map-kpi--occupied .hostel-map-kpi__icon {
	background: var(--map-occupied-soft);
	color: var(--map-occupied);
}

.hostel-map-kpi--vacant .hostel-map-kpi__icon {
	background: var(--map-vacant-soft);
	color: var(--map-vacant);
}

.hostel-map-kpi__value {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.1;
	color: #0f172a;
}

.hostel-map-kpi__label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-top: 0.125rem;
}

.hostel-map-legend-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hostel-map-legend-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.hostel-map-legend-pill--occupied {
	background: var(--map-occupied-soft);
	color: #047857;
	border-color: var(--map-occupied-border);
}

.hostel-map-legend-pill--vacant {
	background: var(--map-vacant-soft);
	color: #b91c1c;
	border-color: var(--map-vacant-border);
}

.hostel-map-legend-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
}

.hostel-map-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 3rem 1.5rem;
	background: #fff;
	border-radius: 1rem;
	border: 1px dashed #cbd5e1;
	color: #64748b;
	text-align: center;
}

.hostel-map-empty .bi {
	font-size: 2rem;
	opacity: 0.5;
}

.hostel-map-empty p {
	margin: 0;
	font-size: 0.9375rem;
}

/* Building */
.hostel-building {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
}

.hostel-building__facade {
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 1.25rem;
	box-shadow: var(--map-shadow);
	overflow: hidden;
}

.hostel-building__skyline {
	height: 0.35rem;
	background: linear-gradient(90deg, var(--map-brand), #9a6b8c, var(--map-brand));
}

.hostel-building__banner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	background: linear-gradient(135deg, var(--map-brand) 0%, #5d3d55 100%);
	color: #fff;
}

.hostel-building__banner-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.875rem;
	background: rgba(255, 255, 255, 0.15);
	font-size: 1.5rem;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.hostel-building__eyebrow {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.75;
	margin-bottom: 0.125rem;
}

.hostel-building__name {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: #fff;
}

.hostel-building__floors {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hostel-building__ground {
	height: 0.625rem;
	margin: 0 1.5rem;
	background: linear-gradient(180deg, #94a3b8, #64748b);
	border-radius: 0 0 0.5rem 0.5rem;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* Floor */
.hostel-floor {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	padding: 0.875rem;
	background: var(--map-floor);
	border: 1px solid #e2e8f0;
	border-radius: 0.875rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
	.hostel-floor {
		grid-template-columns: 7.5rem 1fr;
		align-items: start;
	}
}

.hostel-floor__rail {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	background: #fff;
	border-radius: 0.625rem;
	border-left: 4px solid var(--map-brand);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
	.hostel-floor__rail {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		min-height: 100%;
		position: sticky;
		top: 1rem;
	}
}

.hostel-floor__level {
	font-size: 0.875rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.hostel-floor__rooms-count {
	font-size: 0.6875rem;
	font-weight: 600;
	color: #64748b;
}

.hostel-floor__deck {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
	gap: 0.875rem;
}

/* Room */
.hostel-room {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hostel-room__frame {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 10.5rem;
	padding: 0.625rem 0.625rem 1.125rem;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
	border: 2px solid var(--map-wall);
	border-radius: 0.75rem;
	box-shadow:
		0 4px 12px rgba(15, 23, 42, 0.06),
		inset 0 0 0 1px rgba(255, 255, 255, 0.9);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hostel-room:hover .hostel-room__frame {
	box-shadow:
		0 8px 20px rgba(15, 23, 42, 0.1),
		inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.hostel-room__wall--top {
	display: flex;
	justify-content: space-between;
	gap: 0.375rem;
	margin-bottom: 0.375rem;
	padding: 0 0.125rem;
}

.hostel-room__window {
	flex: 1;
	max-width: 2.25rem;
	height: 0.5rem;
	border-radius: 0.15rem;
	background: linear-gradient(180deg, #e0f2fe, #7dd3fc);
	border: 1.5px solid #94a3b8;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hostel-room__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.375rem;
	margin-bottom: 0.5rem;
	padding-bottom: 0.375rem;
	border-bottom: 1px dashed #e2e8f0;
}

.hostel-room__number {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--map-brand);
}

.hostel-room__number .bi {
	font-size: 0.875rem;
	opacity: 0.85;
}

.hostel-room__occ {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.125rem;
	min-width: 3rem;
}

.hostel-room__occ-bar {
	width: 3rem;
	height: 0.25rem;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.hostel-room__occ-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--map-occupied), #34d399);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.hostel-room__occ-text {
	font-size: 0.625rem;
	font-weight: 700;
	color: #64748b;
}

.hostel-room__interior {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-content: flex-start;
	flex: 1;
	padding: 0.25rem 0;
}

.hostel-room__door {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1.75rem;
	height: 0.5rem;
	background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
	border: 2px solid #94a3b8;
	border-bottom: none;
	border-radius: 0.35rem 0.35rem 0 0;
}

.hostel-room__caption {
	margin-top: 0.375rem;
	font-size: 0.625rem;
	font-weight: 600;
	color: #94a3b8;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Bed tile */
.hostel-bed-tile {
	display: flex;
	flex-direction: column;
	width: 6.25rem;
	min-height: 7.5rem;
	padding: 0.5rem;
	border-radius: 0.65rem;
	border: 1.5px solid transparent;
	background: #fff;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	color: inherit;
	overflow: hidden;
}

.hostel-bed-tile--occupied {
	border-color: var(--map-occupied-border);
	background: linear-gradient(180deg, #fff 0%, var(--map-occupied-soft) 100%);
}

.hostel-bed-tile--vacant {
	border-color: var(--map-vacant-border);
	background: linear-gradient(180deg, #fff 0%, var(--map-vacant-soft) 100%);
}

a.hostel-bed-tile--occupied:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(5, 150, 105, 0.15);
	color: inherit;
}

.hostel-bed-tile__graphic {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 0.375rem;
}

.hostel-bed-tile__bed {
	position: relative;
	width: 4.25rem;
	height: 2.75rem;
}

.hostel-bed-tile__head {
	position: absolute;
	top: 0;
	left: 0.5rem;
	right: 0.5rem;
	height: 0.5rem;
	border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
	background: linear-gradient(180deg, #64748b, #475569);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hostel-bed-tile--occupied .hostel-bed-tile__head {
	background: linear-gradient(180deg, #10b981, #059669);
}

.hostel-bed-tile--vacant .hostel-bed-tile__head {
	background: linear-gradient(180deg, #f87171, #dc2626);
}

.hostel-bed-tile__base {
	position: absolute;
	top: 0.45rem;
	left: 0.25rem;
	right: 0.25rem;
	height: 1.5rem;
	border-radius: 0.35rem;
	background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
	border: 1.5px solid #cbd5e1;
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.hostel-bed-tile--occupied .hostel-bed-tile__base {
	background: linear-gradient(180deg, #d1fae5, #a7f3d0);
	border-color: #6ee7b7;
}

.hostel-bed-tile--vacant .hostel-bed-tile__base {
	background: linear-gradient(180deg, #fee2e2, #fecaca);
	border-color: #fca5a5;
}

.hostel-bed-tile__pillow {
	position: absolute;
	top: 0.2rem;
	left: 0.3rem;
	width: 0.9rem;
	height: 0.45rem;
	border-radius: 0.25rem;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.hostel-bed-tile__guest {
	position: absolute;
	top: 0.25rem;
	right: 0.35rem;
	font-size: 0.7rem;
	color: var(--map-occupied);
	line-height: 1;
}

.hostel-bed-tile__badge {
	position: absolute;
	bottom: -0.15rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.1rem 0.4rem;
	font-size: 0.5625rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #64748b;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hostel-bed-tile--occupied .hostel-bed-tile__badge {
	background: var(--map-occupied);
}

.hostel-bed-tile--vacant .hostel-bed-tile__badge {
	background: var(--map-vacant);
}

.hostel-bed-tile__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	min-width: 0;
	text-align: center;
}

.hostel-bed-tile__name {
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 1.7em;
}

.hostel-bed-tile--vacant .hostel-bed-tile__name {
	color: var(--map-vacant);
}

.hostel-bed-tile__due {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: 0.5625rem;
	color: #64748b;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hostel-bed-tile__due strong {
	font-size: 0.6875rem;
	font-weight: 800;
	color: #334155;
	text-transform: none;
	letter-spacing: 0;
}

.hostel-bed-tile__due strong.is-due {
	color: var(--map-vacant);
}

@media (min-width: 992px) {
	.hostel-floor__deck {
		grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	}
}

/* —— Mobile list view (< lg) —— */
.hostel-map-view-hint {
	margin-left: auto;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hostel-map-kpi__text {
	min-width: 0;
}

.hostel-map-kpi__label-short {
	display: none;
}

@media (max-width: 991.98px) {
	.hostel-map-kpi {
		padding: 0.65rem 0.5rem;
		gap: 0.5rem;
	}

	.hostel-map-kpi__icon {
		width: 2rem;
		height: 2rem;
		font-size: 0.9375rem;
	}

	.hostel-map-kpi__value {
		font-size: 1.125rem;
	}

	.hostel-map-kpi__label {
		font-size: 0.5625rem;
	}

	.hostel-map-kpi__label-full {
		display: none;
	}

	.hostel-map-kpi__label-short {
		display: inline;
	}
}

.hostel-map-m {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.hostel-map-m-building__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 0.875rem;
	background: linear-gradient(135deg, var(--map-brand), #5d3d55);
	color: #fff;
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(113, 75, 103, 0.25);
}

.hostel-map-m-building__head .bi {
	font-size: 1.125rem;
	opacity: 0.9;
}

.hostel-map-m-floor {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.hostel-map-m-floor__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.875rem;
	cursor: pointer;
	list-style: none;
	background: #f8fafc;
	border-bottom: 1px solid transparent;
	font-weight: 600;
}

.hostel-map-m-floor__summary::-webkit-details-marker {
	display: none;
}

.hostel-map-m-floor[open] .hostel-map-m-floor__summary {
	border-bottom-color: #e2e8f0;
	background: #fff;
}

.hostel-map-m-floor__name {
	font-size: 0.875rem;
	color: #0f172a;
}

.hostel-map-m-floor__meta {
	font-size: 0.6875rem;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.hostel-map-m-floor__body {
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.hostel-map-m-room {
	border: 1px solid #e2e8f0;
	border-radius: 0.625rem;
	overflow: hidden;
	background: #fafafa;
}

.hostel-map-m-room__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.hostel-map-m-room__title {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--map-brand);
}

.hostel-map-m-room__stat {
	font-size: 0.6875rem;
	font-weight: 700;
	color: #64748b;
}

.hostel-map-m-room__beds {
	display: flex;
	flex-direction: column;
}

.hostel-map-m-bed {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
	color: inherit;
	min-height: 3.25rem;
}

.hostel-map-m-bed:last-child {
	border-bottom: none;
}

.hostel-map-m-bed--occupied {
	border-left: 4px solid var(--map-occupied);
}

.hostel-map-m-bed--vacant {
	border-left: 4px solid var(--map-vacant);
}

a.hostel-map-m-bed--occupied:active {
	background: var(--map-occupied-soft);
}

.hostel-map-m-bed__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	font-size: 1rem;
	flex-shrink: 0;
}

.hostel-map-m-bed--occupied .hostel-map-m-bed__icon {
	background: var(--map-occupied-soft);
	color: var(--map-occupied);
}

.hostel-map-m-bed--vacant .hostel-map-m-bed__icon {
	background: var(--map-vacant-soft);
	color: var(--map-vacant);
}

.hostel-map-m-bed__main {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.hostel-map-m-bed__label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.hostel-map-m-bed__tenant {
	font-size: 0.75rem;
	color: #64748b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hostel-map-m-bed--vacant .hostel-map-m-bed__tenant {
	color: var(--map-vacant);
	font-weight: 600;
}

.hostel-map-m-bed__due {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	flex-shrink: 0;
}

.hostel-map-m-bed__due-label {
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.hostel-map-m-bed__due strong {
	font-size: 0.8125rem;
	font-weight: 800;
	color: #334155;
}

.hostel-map-m-bed__due strong.is-due {
	color: var(--map-vacant);
}

.hostel-map-m-bed__chev {
	font-size: 0.875rem;
	color: #cbd5e1;
}

/* Dashboard KPI tiles */
.hostel-dash-section-title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 0.65rem;
}

.hostel-dash-kpi {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	min-height: 4.25rem;
	padding: 0.65rem 0.75rem;
	background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-bottom-width: 3px;
	border-radius: 0.75rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 4px 0 rgba(15, 23, 42, 0.05),
		0 8px 18px rgba(15, 23, 42, 0.07);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	color: inherit;
}

a.hostel-dash-kpi:hover {
	transform: translateY(-2px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 5px 0 rgba(15, 23, 42, 0.06),
		0 12px 22px rgba(15, 23, 42, 0.1);
	color: inherit;
}

.hostel-dash-kpi__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 0.55rem;
	background: rgba(113, 75, 103, 0.1);
	color: var(--h360-brand);
	font-size: 1rem;
	flex-shrink: 0;
	box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06);
}

.hostel-dash-kpi--success .hostel-dash-kpi__icon {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.hostel-dash-kpi--danger .hostel-dash-kpi__icon {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

.hostel-dash-kpi--warning .hostel-dash-kpi__icon {
	background: rgba(245, 158, 11, 0.14);
	color: #d97706;
}

.hostel-dash-kpi--info .hostel-dash-kpi__icon {
	background: rgba(59, 130, 246, 0.12);
	color: #2563eb;
}

.hostel-dash-kpi--neutral .hostel-dash-kpi__icon {
	background: rgba(100, 116, 139, 0.12);
	color: #475569;
}

.hostel-dash-kpi__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hostel-dash-kpi__value {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.15;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hostel-dash-kpi__label {
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
	margin-top: 0.15rem;
	line-height: 1.25;
}

@media (min-width: 1200px) {
	.hostel-dash-kpi__value {
		font-size: 1.125rem;
	}
}

/* Dashboard quick actions */
.hostel-dash-actions-panel {
	padding: 0.55rem 0.65rem;
	background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 0.75rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 4px 0 rgba(15, 23, 42, 0.04),
		0 8px 18px rgba(15, 23, 42, 0.05);
}

.hostel-dash-action {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.35rem;
	padding: 0.35rem 0.55rem;
	text-align: left;
	text-decoration: none;
	color: #0f172a;
	background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-bottom-width: 3px;
	border-radius: 0.55rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 3px 0 rgba(15, 23, 42, 0.07),
		0 4px 10px rgba(15, 23, 42, 0.05);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-bottom-width 0.12s ease;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	white-space: nowrap;
}

.hostel-dash-action:hover,
.hostel-dash-action:focus-visible {
	transform: translateY(-2px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 5px 0 rgba(15, 23, 42, 0.08),
		0 10px 20px rgba(15, 23, 42, 0.1);
	color: #0f172a;
}

.hostel-dash-action:active {
	transform: translateY(2px);
	border-bottom-width: 2px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 1px 0 rgba(15, 23, 42, 0.08),
		0 3px 8px rgba(15, 23, 42, 0.08);
}

.hostel-dash-action__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0.4rem;
	font-size: 0.8125rem;
	flex-shrink: 0;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.hostel-dash-action__label {
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: none;
	letter-spacing: 0;
	color: #334155;
}

.hostel-dash-action--brand .hostel-dash-action__icon {
	background: rgba(113, 75, 103, 0.14);
	color: var(--h360-brand);
}

.hostel-dash-action--brand {
	border-bottom-color: rgba(113, 75, 103, 0.35);
}

.hostel-dash-action--primary .hostel-dash-action__icon {
	background: rgba(59, 130, 246, 0.14);
	color: #2563eb;
}

.hostel-dash-action--primary {
	border-bottom-color: rgba(37, 99, 235, 0.35);
}

.hostel-dash-action--success .hostel-dash-action__icon {
	background: rgba(16, 185, 129, 0.14);
	color: #059669;
}

.hostel-dash-action--success {
	border-bottom-color: rgba(5, 150, 105, 0.35);
}

.hostel-dash-action--warning .hostel-dash-action__icon {
	background: rgba(245, 158, 11, 0.16);
	color: #d97706;
}

.hostel-dash-action--warning {
	border-bottom-color: rgba(217, 119, 6, 0.35);
}

.hostel-dash-action--info .hostel-dash-action__icon {
	background: rgba(14, 165, 233, 0.14);
	color: #0284c7;
}

.hostel-dash-action--info {
	border-bottom-color: rgba(2, 132, 199, 0.35);
}

.hostel-dash-action--neutral .hostel-dash-action__icon {
	background: rgba(100, 116, 139, 0.14);
	color: #475569;
}

.hostel-dash-action--neutral {
	border-bottom-color: rgba(71, 85, 105, 0.28);
}

/* Dashboard chart cards */
.hostel-dash-chart-card {
	padding: 1rem 1rem 0.85rem;
	background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 0.875rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 5px 0 rgba(15, 23, 42, 0.04),
		0 10px 22px rgba(15, 23, 42, 0.06);
}

.hostel-dash-chart-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
	margin-bottom: 0.65rem;
}

.hostel-dash-chart-card__title {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0f172a;
}

.hostel-dash-chart-card__meta {
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.hostel-dash-chart-wrap {
	position: relative;
	height: 240px;
}

.hostel-dash-chart-wrap--compact {
	height: 220px;
}

@media (min-width: 992px) {
	.hostel-dash-chart-wrap {
		height: 260px;
	}
}

/* Dashboard — mobile */
.hostel-dash-actions-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hostel-dash-action-item {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: 0;
}

@media (min-width: 576px) {
	.hostel-dash-action-item {
		flex: 0 1 auto;
	}
}

@media (max-width: 575.98px) {
	.hostel-dashboard .hostel-dash-section-title {
		font-size: 0.6875rem;
		margin-bottom: 0.5rem;
	}

	.hostel-dashboard .hostel-dash-actions-panel {
		padding: 0.5rem;
		border-radius: 0.65rem;
	}

	.hostel-dashboard .hostel-dash-action {
		min-height: 2.5rem;
		padding: 0.4rem 0.5rem;
		justify-content: flex-start;
		white-space: normal;
	}

	.hostel-dashboard .hostel-dash-action__label {
		font-size: 0.625rem;
		line-height: 1.2;
	}

	.hostel-dashboard .hostel-dash-kpi {
		min-height: 3.65rem;
		padding: 0.5rem 0.55rem;
		gap: 0.5rem;
		border-radius: 0.65rem;
	}

	.hostel-dashboard .hostel-dash-kpi__icon {
		width: 1.85rem;
		height: 1.85rem;
		font-size: 0.875rem;
		border-radius: 0.45rem;
	}

	.hostel-dashboard .hostel-dash-kpi__value {
		font-size: 0.9375rem;
	}

	.hostel-dashboard .hostel-dash-kpi__label {
		font-size: 0.5625rem;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		white-space: normal;
	}

	.hostel-dashboard .hostel-dash-chart-card {
		padding: 0.75rem 0.75rem 0.65rem;
		border-radius: 0.65rem;
	}

	.hostel-dashboard .hostel-dash-chart-card__title {
		font-size: 0.75rem;
	}

	.hostel-dashboard .hostel-dash-chart-wrap {
		height: 210px;
	}

	.hostel-dashboard .hostel-dash-chart-wrap--compact {
		height: 200px;
	}

	.hostel-dashboard .hostel-dash-month-head {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.hostel-dashboard .hostel-dash-month-head .badge {
		font-size: 0.625rem;
	}
}
