/* Hotel Booking Manager - Staff Portal (front-end, no wp-admin) */

body.hbm-portal-page,
body.hbm-portal-login-page {
	background: #f4f2ee;
	margin: 0;
	font-family: var(--hbm-font, inherit);
}

/* ---- Login screen ---- */

.hbm-portal-login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: linear-gradient(155deg, #1c222c, var(--hbm-dark-bg, #14181f));
}

.hbm-portal-login-card {
	width: 100%;
	max-width: 400px;
	background: var(--hbm-bg, #fff);
	border-radius: 16px;
	padding: 40px 36px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	text-align: center;
}

.hbm-portal-login-brand {
	margin-bottom: 24px;
}

.hbm-portal-login-brand img {
	max-height: 48px;
	max-width: 200px;
}

.hbm-portal-login-brand-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--hbm-heading, #14181f);
}

.hbm-portal-login-card h1 {
	font-size: 24px;
	margin: 0 0 8px;
	color: var(--hbm-heading, #14181f);
}

.hbm-portal-login-sub {
	font-size: 13px;
	color: var(--hbm-text, #777);
	margin: 0 0 24px;
	line-height: 1.5;
}

.hbm-portal-login-card .hbm-step {
	text-align: left;
}

.hbm-portal-login-card label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
	color: #333;
}

.hbm-portal-login-card .hbm-input {
	margin-bottom: 14px;
}

.hbm-portal-login-card .hbm-recaptcha-wrap {
	margin: 14px 0;
	display: flex;
	justify-content: center;
}

/* ---- Shared portal shell ---- */

.hbm-portal-shell {
	min-height: 100vh;
}

.hbm-portal-topbar {
	background: var(--hbm-dark-bg, #14181f);
	position: sticky;
	top: 0;
	z-index: 100;
}

.hbm-portal-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 32px;
	height: 64px;
}

.hbm-portal-brand {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	flex-shrink: 0;
}

.hbm-portal-brand img {
	max-height: 32px;
	display: block;
}

.hbm-portal-nav {
	display: flex;
	gap: 4px;
	flex: 1;
}

.hbm-portal-nav a {
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}

.hbm-portal-nav a:hover {
	color: #fff;
	background: rgba(255,255,255,0.08);
}

.hbm-portal-nav a.hbm-portal-nav-active {
	color: var(--hbm-primary-contrast, #14181f);
	background: var(--hbm-primary, var(--primary, #d4a656));
}

.hbm-portal-user {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.hbm-portal-user-name {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.hbm-portal-logout {
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	text-decoration: none;
}

.hbm-portal-logout:hover {
	color: #fff;
}

.hbm-portal-body {
	display: block;
}

.hbm-portal-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 24px 60px;
}

.hbm-portal-heading {
	font-size: 24px;
	font-weight: 700;
	color: var(--hbm-heading, #14181f);
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---- Stat cards ---- */

.hbm-portal-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.hbm-portal-card {
	background: var(--hbm-bg, #fff);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	transition: transform 0.15s ease;
}

.hbm-portal-card:hover {
	transform: translateY(-2px);
}

.hbm-portal-card .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: var(--hbm-primary, var(--primary, #d4a656));
	margin-bottom: 6px;
}

.hbm-portal-card-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--hbm-heading, #14181f);
}

.hbm-portal-card-label {
	font-size: 12px;
	color: var(--hbm-text, #777);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.hbm-portal-card-pending {
	background: linear-gradient(135deg, #fff9ec, #fff);
	border: 1px solid #f3dfa3;
}

.hbm-portal-card-revenue .dashicons {
	color: #1a7f3c;
}

/* ---- Grid / panels ---- */

.hbm-portal-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	align-items: start;
}

@media (max-width: 960px) {
	.hbm-portal-grid {
		grid-template-columns: 1fr;
	}
}

.hbm-portal-panel {
	background: var(--hbm-bg, #fff);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hbm-portal-panel h2 {
	margin-top: 0;
	font-size: 16px;
	color: var(--hbm-heading, #14181f);
	border-bottom: 1px solid var(--hbm-border, #f0f0f0);
	padding-bottom: 12px;
}

.hbm-portal-panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--hbm-border, #f0f0f0);
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.hbm-portal-panel-heading h2 {
	margin: 0;
	padding: 0;
	border: none;
}

.hbm-portal-empty {
	color: var(--hbm-text-light, #999);
	font-style: italic;
	font-size: 14px;
}

/* ---- Tables ---- */

.hbm-portal-table-wrap {
	overflow-x: auto;
}

.hbm-portal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.hbm-portal-table th {
	text-align: left;
	padding: 10px 12px;
	color: var(--hbm-text-light, #999);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.4px;
	border-bottom: 2px solid #f0f0f0;
	white-space: nowrap;
}

.hbm-portal-table td {
	padding: 12px;
	border-bottom: 1px solid var(--hbm-border, #f5f5f5);
	white-space: nowrap;
}

.hbm-portal-table tbody tr[onclick] {
	cursor: pointer;
}

.hbm-portal-table tbody tr:hover {
	background: #faf8f4;
}

.hbm-portal-table-actions {
	white-space: nowrap;
}

.hbm-sortable-col {
	color: inherit;
	text-decoration: none;
}

.hbm-sortable-col:hover {
	color: var(--hbm-primary, var(--primary, #d4a656));
}

.hbm-sortable-col-active {
	color: var(--hbm-heading, #14181f);
	font-weight: 700;
}

.hbm-sort-arrow {
	font-size: 11px;
}

.hbm-portal-detail-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 20px;
}

.hbm-portal-detail-table th {
	text-align: left;
	width: 40%;
	padding: 8px 0;
	color: #888;
	font-weight: 500;
	vertical-align: top;
}

.hbm-portal-detail-table td {
	padding: 8px 0;
	color: var(--hbm-heading, #14181f);
	font-weight: 600;
}

.hbm-portal-detail-table select {
	width: 100%;
	max-width: 260px;
	padding: 8px 10px;
	border: 1px solid var(--hbm-border, #e1e1e1);
	border-radius: 8px;
	font-size: 14px;
}

/* ---- Row actions (Confirm/Reject/Manage) ---- */

.hbm-row-action {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	margin-right: 6px;
	white-space: nowrap;
}

.hbm-row-action-confirm { background: var(--hbm-success-bg, #e6f7ec); color: var(--hbm-success-text, #1a7f3c); }
.hbm-row-action-confirm:hover { background: var(--hbm-success-text, #1a7f3c); color: #fff; }
.hbm-row-action-reject { background: var(--hbm-danger-bg, #fdeaea); color: var(--hbm-danger-text, #b32d2e); }
.hbm-row-action-reject:hover { background: var(--hbm-danger-text, #b32d2e); color: #fff; }
.hbm-row-action-manage { background: #f0eee9; color: #4a453d; }
.hbm-row-action-manage:hover { background: var(--hbm-primary, var(--primary, #d4a656)); color: #fff; }

/* ---- Filters / pagination ---- */

.hbm-portal-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.hbm-portal-filters select,
.hbm-portal-filters input[type="date"] {
	padding: 9px 12px;
	border: 1px solid var(--hbm-border, #e1e1e1);
	border-radius: 8px;
	font-size: 13px;
}

.hbm-portal-search {
	padding: 9px 12px;
	border: 1px solid var(--hbm-border, #e1e1e1);
	border-radius: 8px;
	font-size: 13px;
	min-width: 240px;
}

.hbm-portal-filter-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--hbm-text, #777);
}

.hbm-portal-pagination {
	margin-top: 20px;
	display: flex;
	gap: 4px;
}

.hbm-portal-pagination .page-numbers {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 6px;
	background: #f4f2ee;
	color: #4a453d;
	text-decoration: none;
	font-size: 13px;
}

.hbm-portal-pagination .page-numbers.current {
	background: var(--hbm-primary, var(--primary, #d4a656));
	color: #fff;
}

.hbm-portal-pagination .page-numbers:hover:not(.current) {
	background: #e5e1d8;
}

/* ---- Notices ---- */

.hbm-portal-notice {
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 20px;
}

.hbm-portal-notice-success {
	background: #e6f7ec;
	color: #1a7f3c;
}

.hbm-portal-notice-pending {
	background: #fffaf0;
	border: 1px solid #f3dfa3;
	color: #4a453d;
}

.hbm-portal-notice-pending p:first-child {
	margin-top: 0;
}

.hbm-portal-notice-pending p:last-child {
	margin-bottom: 0;
}

/* ---- Activity feed / timeline ---- */

.hbm-portal-activity-feed,
.hbm-portal-activity-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hbm-portal-activity-feed li,
.hbm-portal-activity-timeline li {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hbm-border, #f5f5f5);
	font-size: 13px;
	line-height: 1.5;
}

.hbm-portal-activity-feed li:last-child,
.hbm-portal-activity-timeline li:last-child {
	border-bottom: none;
}

.hbm-portal-activity-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 4px;
	background: #999;
}

.hbm-portal-activity-dot-created { background: #2271b1; }
.hbm-portal-activity-dot-status_changed { background: var(--hbm-primary, var(--primary, #d4a656)); }
.hbm-portal-activity-dot-payment_status_changed { background: #1a7f3c; }

.hbm-portal-activity-time {
	display: block;
	color: var(--hbm-text-light, #999);
	font-size: 11px;
	margin-top: 2px;
}

@media (max-width: 600px) {
	.hbm-portal-topbar-inner {
		gap: 12px;
		padding: 0 14px;
	}
	.hbm-portal-nav {
		gap: 0;
	}
	.hbm-portal-nav a {
		padding: 8px 10px;
		font-size: 13px;
	}
	.hbm-portal-user-name {
		display: none;
	}
	.hbm-portal-container {
		padding: 20px 14px 40px;
	}
}

/* ---- Hotel/Room edit: image + gallery uploader (Hotels/Rooms front-end
   pages) - front-end equivalent of the wp-admin gallery meta box. ---- */

.hbm-portal-uploader-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hbm-portal-uploader-list li {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--hbm-border, #e1e1e1);
}

.hbm-portal-uploader-list img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbm-portal-uploader-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: rgba(0,0,0,0.65);
	color: #fff;
	border-radius: 50%;
	font-size: 13px;
	text-decoration: none;
}

.hbm-portal-uploader-input {
	display: none;
}

/* ---- Simple table-based list pages (Hotels/Rooms/Staff/Coupons),
   sharing the same look as .hbm-portal-table used for Bookings. ---- */

.hbm-portal-page-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

/* Coupons page: save/edit result message + status badges */
.hbm-coupon-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 600;
}
.hbm-coupon-notice-success { background: #e8f6ec; color: #1a7f37; }
.hbm-coupon-notice-error { background: #fdecea; color: #b32d2e; }
.hbm-coupon-status { font-weight: 600; }
.hbm-coupon-status-active { color: #1a7f37; }
.hbm-coupon-status-inactive { color: #8a8378; }
.hbm-coupon-status-expired { color: #b32d2e; }
.hbm-coupon-checks label { display: block; margin-bottom: 6px; }

/* ---- Nearby Places ---- */

.hbm-portal-place-cell {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.hbm-portal-place-thumb {
	width: 56px;
	height: 42px;
	flex: none;
	border-radius: 6px;
	object-fit: cover;
}

.hbm-portal-hint {
	margin: 6px 0 0;
	color: #777;
	font-size: 12px;
}
