/* ===================== پنل چند هتلی - طراحی لیکویید گلس ===================== */

.hmp-wrap {
	max-width: 900px;
	margin: 24px auto;
	padding: 12px;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	direction: rtl;
}
.hmp-wrap[data-context="admin"],
.hmp-wrap[data-context="admin-settings"] {
	max-width: 100%;
	margin: 20px 0;
}

.hmp-panel {
	position: relative;
	background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(255,255,255,0.35));
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(255,255,255,0.45);
	border-radius: 26px;
	box-shadow: 0 8px 32px rgba(37,99,235,0.16), inset 0 1px 0 rgba(255,255,255,0.4);
	padding: 26px;
	overflow: hidden;
}

.hmp-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hmp-title { font-size: 19px; font-weight: 800; color: #1e3a8a; }

.hmp-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 14px;
	border: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.hmp-btn:hover { transform: translateY(-1px); }
.hmp-btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
.hmp-btn-danger  { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; box-shadow: 0 6px 16px rgba(239,68,68,0.3); }
.hmp-btn-outline { background: rgba(37,99,235,0.08); color: #1d4ed8; border: 1px solid rgba(37,99,235,0.35); }

.hmp-empty { text-align: center; padding: 30px 10px; color: #6b7280; font-size: 14px; }
.hmp-alert { padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; }
.hmp-alert-error { background: rgba(239,68,68,0.15); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }

/* ---------- کارت رزرو ---------- */
.hmp-bookings-list { display: flex; flex-direction: column; gap: 14px; }
.hmp-booking-card {
	background: rgba(255,255,255,0.5);
	border: 1px solid rgba(37,99,235,0.2);
	border-radius: 18px;
	padding: 16px;
	backdrop-filter: blur(6px);
}
.hmp-booking-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.hmp-bs-main { min-width: 160px; }
.hmp-bs-guest { font-weight: 800; color: #1e3a8a; font-size: 14px; }
.hmp-bs-room { font-size: 12px; color: #4b5563; margin-top: 2px; }
.hmp-bs-hotel-label { color: #93c5fd; }
.hmp-bs-dates { font-size: 12px; color: #374151; display: flex; align-items: center; gap: 6px; background: rgba(37,99,235,0.06); padding: 6px 10px; border-radius: 10px; }
.hmp-bs-arrow { color: #93c5fd; }
.hmp-bs-amount { font-size: 13px; font-weight: 700; color: #1e3a8a; }

.hmp-status-badge { font-size: 11px; padding: 5px 12px; border-radius: 999px; background: rgba(37,99,235,0.12); color: #1d4ed8; white-space: nowrap; }
.hmp-status-completed, .hmp-status-processing { background: rgba(34,197,94,0.15); color: #15803d; }
.hmp-status-pending, .hmp-status-on-hold { background: rgba(234,179,8,0.18); color: #92400e; }
.hmp-status-cancelled, .hmp-status-failed, .hmp-status-refunded, .hmp-status-trash { background: rgba(239,68,68,0.15); color: #b91c1c; }

/* ---------- جزئیات رزرو ---------- */
.hmp-booking-details { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(37,99,235,0.25); }
.hmp-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 16px; font-size: 13px; color: #374151; }
.hmp-detail-grid code { background: rgba(37,99,235,0.08); padding: 1px 6px; border-radius: 6px; font-size: 11px; }

.hmp-edit-form { display: flex; flex-direction: column; gap: 12px; }
.hmp-field { display: flex; flex-direction: column; gap: 5px; }
.hmp-field label { font-size: 12px; color: #374151; font-weight: 700; }
.hmp-field input, .hmp-field select {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(37,99,235,0.25);
	background: rgba(255,255,255,0.6);
	font-family: inherit;
	font-size: 13px;
	outline: none;
}
.hmp-field input:focus, .hmp-field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.hmp-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hmp-form-result { font-size: 12px; color: #15803d; }

/* ---------- فرم ورود ---------- */
.hmp-login-card { max-width: 380px; margin: 40px auto; text-align: center; }
.hmp-login-title { color: #1e3a8a; margin-bottom: 16px; font-size: 16px; }
.hmp-login-card input[type=password] {
	width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(37,99,235,0.25);
	background: rgba(255,255,255,0.6); margin-bottom: 12px; font-family: inherit;
}
.hmp-login-card .hmp-btn { width: 100%; }

/* ---------- تنظیمات ادمین ---------- */
.hmp-settings-block { border: 1px solid rgba(37,99,235,0.2); border-radius: 16px; padding: 18px; margin-bottom: 18px; background: rgba(255,255,255,0.4); }
.hmp-settings-block-title { margin: 0 0 14px; color: #1e3a8a; font-size: 15px; }
.hmp-settings-block .hmp-field { margin-bottom: 12px; }
.hmp-shortcode-box { display: inline-block; background: rgba(37,99,235,0.08); padding: 6px 10px; border-radius: 8px; font-size: 12px; direction: ltr; }
.hmp-settings-result { margin-top: 10px; font-size: 13px; color: #15803d; }

/* ---------- تقویم تمام‌صفحه ---------- */
.hmp-calendar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.hmp-calendar-overlay.hmp-open { display: flex; }
.hmp-calendar-inner {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(239,246,255,0.95));
	backdrop-filter: blur(20px);
	border-radius: 24px;
	border: 1px solid rgba(255,255,255,0.6);
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	padding: 26px;
	direction: rtl;
}
.hmp-close-calendar {
	position: absolute; top: 14px; left: 14px;
	width: 34px; height: 34px; border-radius: 50%; border: none;
	background: rgba(37,99,235,0.1); color: #1d4ed8; font-size: 20px; cursor: pointer;
}
.hmp-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hmp-cal-month-label { font-weight: 800; color: #1e3a8a; font-size: 16px; }
.hmp-cal-nav { background: rgba(37,99,235,0.1); border: none; color: #1d4ed8; padding: 8px 14px; border-radius: 10px; font-family: inherit; font-size: 12px; cursor: pointer; font-weight: 700; }

.hmp-calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.hmp-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hmp-cal-day {
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px;
	font-size: 13px;
	color: #374151;
	background: rgba(255,255,255,0.5);
	cursor: default;
}
.hmp-cal-day.hmp-cal-empty { background: transparent; }
.hmp-cal-day.hmp-cal-has-booking {
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.hmp-cal-day.hmp-cal-today { box-shadow: inset 0 0 0 2px #f59e0b; }

.hmp-calendar-day-detail { margin-top: 18px; border-top: 1px dashed rgba(37,99,235,0.25); padding-top: 14px; font-size: 13px; color: #374151; }
.hmp-calendar-day-detail .hmp-cal-booking-item { background: rgba(37,99,235,0.06); border-radius: 10px; padding: 10px; margin-bottom: 8px; }

@media (max-width: 600px) {
	.hmp-booking-summary { flex-direction: column; align-items: flex-start; }
	.hmp-detail-actions .hmp-btn { flex: 1; }
}
