/* Hotel & Guest Management System - Public Booking Widget (Phase 13) */

.hm-booking-widget {
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
	color: #1d2327;
}

.hm-booking-dates-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	background: #f6f7f7;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 24px;
}

.hm-booking-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 140px;
}

.hm-booking-field-wide {
	flex-basis: 100%;
}

.hm-booking-field label {
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
}

.hm-booking-field input,
.hm-booking-field textarea {
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 14px;
}

.hm-booking-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	flex: 0 0 auto;
}

.hm-booking-button:hover {
	background: #135e96;
}

.hm-booking-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hm-booking-status {
	margin-bottom: 16px;
	font-size: 14px;
	color: #50575e;
}

.hm-booking-status.hm-status-error {
	color: #a3272a;
}

.hm-booking-rooms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.hm-room-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hm-room-card h4 {
	margin: 0;
	font-size: 16px;
}

.hm-room-card .hm-room-type {
	font-size: 13px;
	color: #646970;
}

.hm-room-card .hm-room-price {
	font-size: 20px;
	font-weight: 700;
	color: #2271b1;
	margin-top: auto;
}

.hm-room-card .hm-room-price small {
	font-size: 12px;
	font-weight: 400;
	color: #646970;
}

.hm-room-card button {
	margin-top: 8px;
	background: #fff;
	border: 1px solid #2271b1;
	color: #2271b1;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.hm-room-card.hm-room-selected button,
.hm-room-card button:hover {
	background: #2271b1;
	color: #fff;
}

.hm-booking-guest-form-wrap {
	background: #f6f7f7;
	padding: 20px;
	border-radius: 10px;
}

.hm-booking-guest-form-wrap form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Honeypot: visually hidden from real visitors, still present in the DOM for bots to fill in. */
.hm-booking-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hm-booking-success {
	background: #d4f4dd;
	color: #1a7a3e;
	padding: 20px;
	border-radius: 10px;
	font-size: 15px;
}

@media (max-width: 600px) {
	.hm-booking-dates-form {
		flex-direction: column;
		align-items: stretch;
	}
}

/* [hotel_my_bookings] widget */
.hm-my-bookings-widget {
	max-width: 100%;
}

.hm-my-bookings-widget form.login p {
	margin-bottom: 12px;
}

.hm-my-bookings-widget form.login label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #50575e;
}

.hm-my-bookings-widget form.login input[type="text"],
.hm-my-bookings-widget form.login input[type="password"] {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 14px;
}

.hm-my-bookings-widget .login-submit input[type="submit"] {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

.hm-my-bookings-forgot {
	margin-top: 10px;
	font-size: 13px;
}

.hm-my-bookings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}

.hm-my-bookings-logout {
	font-size: 13px;
}

.hm-my-bookings-table-wrap {
	overflow-x: auto;
}

.hm-my-bookings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hm-my-bookings-table th,
.hm-my-bookings-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
	white-space: nowrap;
}

.hm-my-bookings-table th {
	font-size: 12px;
	text-transform: uppercase;
	color: #646970;
	border-bottom: 2px solid #ddd;
}

.hm-my-bookings-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: #f0f0f1;
	color: #50575e;
}

.hm-my-bookings-status-confirmed,
.hm-my-bookings-status-checked-in { background: #d4f4dd; color: #1a7a3e; }
.hm-my-bookings-status-checked-out { background: #e3e9f7; color: #2c4b8f; }
.hm-my-bookings-status-pending { background: #fff2cc; color: #8a6d00; }
.hm-my-bookings-status-cancelled,
.hm-my-bookings-status-no-show { background: #fbe1e1; color: #a3272a; }

/* [hotel_rooms] list */
.hm-rooms-dates { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 24px; }
.hm-rooms-dates-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.hm-rooms-dates-field label { font-size: 13px; font-weight: 600; }
.hm-rooms-dates-field input { width: 100%; padding: 10px 12px; border: 1px solid #c3c4c7; border-radius: 8px; min-height: 44px; box-sizing: border-box; }
.hm-rooms-dates-btn { padding: 0 22px; min-height: 44px; border-radius: 8px; border: 0; background: #000; color: #fff; font-weight: 600; cursor: pointer; }
.hm-rooms-grid { display: grid; gap: var(--hm-gap, 20px); grid-template-columns: repeat(var(--hm-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1024px) { .hm-rooms-grid { grid-template-columns: repeat(var(--hm-cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 640px)  { .hm-rooms-grid { grid-template-columns: repeat(var(--hm-cols-m, 1), minmax(0, 1fr)); } }
.hm-rc { background: #fff; border: 1px solid #d9d9d9; border-radius: 12px; padding: 10px 10px 16px; display: flex; flex-direction: column; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hm-rc-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; }
.hm-rc-noimage { background: #f0f0f1; }
.hm-rc-title { margin: 14px 8px 4px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.hm-rc-type { font-size: 16px; font-weight: 600; margin: 0 8px 8px; }
.hm-rc-line { display: flex; justify-content: center; align-items: flex-start; gap: 8px; font-size: 14px; margin: 0 8px 8px; text-align: left; }
.hm-rc-line svg, .hm-rc-meta svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.hm-rc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; margin: 0 8px 8px; }
.hm-rc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hm-rc-amen { font-size: 15px; font-weight: 600; margin: 0 8px 8px; }
.hm-rc-price { font-size: 18px; font-weight: 700; margin: 4px 8px 10px; }
.hm-rc-price small { font-size: 12px; font-weight: 400; opacity: .7; }
.hm-rc-btn { display: block; margin: auto 6px 0; padding: 14px 16px; background: var(--hm-btn, #000); color: #fff !important; border-radius: 999px; font-weight: 600; text-decoration: none; text-align: center; }
.hm-rc-btn:hover { opacity: .85; }
.hm-rooms-empty { padding: 20px; background: #f6f7f7; border-radius: 8px; }

/* Booking page opened from the room list: chosen room + guest form only */
.hm-booking-summary { display: flex; gap: 18px; align-items: stretch; background: #fff; border: 1px solid #d9d9d9; border-radius: 12px; padding: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hm-booking-summary img { width: 220px; max-width: 40%; object-fit: cover; border-radius: 10px; flex: none; }
.hm-summary-body { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; }
.hm-summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.hm-summary-body h3 { margin: 0; font-size: 22px; }
.hm-summary-sub { font-size: 14px; opacity: .8; }
.hm-summary-dates { font-weight: 600; margin-top: 6px; }
.hm-summary-price { font-size: 15px; }
.hm-summary-change { align-self: flex-start; margin-top: 8px; background: none; border: 0; padding: 0; color: #2271b1; text-decoration: underline; cursor: pointer; font-size: 14px; }
.hm-summary-mode .hm-booking-rooms,
.hm-summary-mode .hm-f-dates,
.hm-summary-mode .hm-f-check { display: none !important; }
@media (max-width: 560px) { .hm-booking-summary { flex-direction: column; } .hm-booking-summary img { width: 100%; max-width: 100%; max-height: 200px; } }

/* [hotel_room_detail] */
.hm-rd { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hm-rd-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.hm-rd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hm-rd-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; width: 84px; height: 64px; }
.hm-rd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-rd-thumb.is-active { border-color: #000; }
.hm-rd-title { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.hm-rd-sub { font-size: 15px; opacity: .8; margin-bottom: 4px; }
.hm-rd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hm-rd-facts span { background: #f1f1f1; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.hm-rd-price { font-size: 26px; font-weight: 700; margin: 6px 0 16px; }
.hm-rd-price small { font-size: 14px; font-weight: 400; opacity: .7; }
.hm-rd-dates { margin-bottom: 14px; }
.hm-rd-avail { padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 12px; }
.hm-rd-ok { background: #e7f6ec; color: #116b34; }
.hm-rd-no { background: #fdeaea; color: #a12626; }
.hm-rd-book { margin: 0; }
.hm-rd-body { grid-column: 1 / -1; }
.hm-rd-body h3 { margin: 18px 0 10px; font-size: 20px; }
.hm-rd-amenities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-rd-amenities li { border: 1px solid #d9d9d9; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.hm-rooms-card .hm-rc-title a, .hm-rc-title a { color: inherit; text-decoration: none; }
.hm-rc-imglink { display: block; }
@media (max-width: 820px) { .hm-rd { grid-template-columns: 1fr; gap: 20px; } .hm-rd-title { font-size: 24px; } }

/* Customer dashboard (v1.37.0) */
.hm-dash { max-width: 900px; margin: 0 auto; }
.hm-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.hm-dash-head h3 { margin: 0 0 2px; }
.hm-dash-sub { margin: 0; color: #666; font-size: 14px; }
.hm-dash-notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.hm-dash-notice-success { background: #e3f6e8; color: #1a7a3e; }
.hm-dash-notice-error { background: #fbe1e1; color: #a3272a; }
.hm-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.hm-dash-stat { background: #f6f7f9; border-radius: 12px; padding: 14px; text-align: center; }
.hm-dash-stat-num { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hm-dash-stat-label { display: block; font-size: 13px; color: #666; margin-top: 2px; }
.hm-dash-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e3e5e8; margin-bottom: 16px; flex-wrap: wrap; }
.hm-dash-tab { padding: 9px 14px; text-decoration: none; color: #555; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; }
.hm-dash-tab.is-active { color: #000; border-bottom-color: #000; }
.hm-dash-tab-count { background: #eceef1; border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.hm-dash-empty { color: #666; padding: 14px 0; }
.hm-dash-card { display: flex; gap: 16px; border: 1px solid #e3e5e8; border-radius: 14px; padding: 14px; margin-bottom: 16px; background: #fff; }
.hm-dash-card-photo { flex: 0 0 170px; min-height: 150px; border-radius: 10px; background: #e9ebee center / cover no-repeat; }
.hm-dash-card-body { flex: 1; min-width: 0; }
.hm-dash-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hm-dash-card h4 { margin: 0; font-size: 18px; }
.hm-dash-prop { margin: 2px 0 0; color: #666; font-size: 14px; }
.hm-dash-dates { margin: 10px 0 6px; font-weight: 600; }
.hm-dash-nights { font-weight: 400; color: #666; }
.hm-dash-money { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #555; }
.hm-dash-money strong { color: #111; }
.hm-dash-due { color: #a3272a !important; }
.hm-dash-code { margin: 6px 0 10px; font-size: 12px; color: #888; }
.hm-dash-pending { background: #fff2cc; color: #8a6d00; padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 10px; }
.hm-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hm-dash-btn { display: inline-block; padding: 8px 16px; border-radius: 22px; border: 1px solid #111; background: #fff; color: #111; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.hm-dash-btn:hover { background: #f1f1f1; color: #111; }
.hm-dash-btn-primary { background: #000; color: #fff; }
.hm-dash-btn-primary:hover { background: #222; color: #fff; }
.hm-dash-btn-danger { background: #a3272a; border-color: #a3272a; color: #fff; }
.hm-dash-btn-danger:hover { background: #8a1f22; color: #fff; }
.hm-dash-details { margin-top: 8px; border-top: 1px solid #eceef1; padding-top: 8px; }
.hm-dash-details > summary, .hm-dash-profile > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.hm-dash-details-body { font-size: 14px; padding-top: 6px; }
.hm-dash-details-body p { margin: 4px 0; }
.hm-dash-payments { margin: 4px 0 0 18px; padding: 0; }
.hm-dash-form { display: grid; gap: 10px; padding-top: 10px; max-width: 420px; }
.hm-dash-form label { display: block; font-size: 14px; font-weight: 600; }
.hm-dash-form input, .hm-dash-form textarea { width: 100%; box-sizing: border-box; margin-top: 4px; }
.hm-dash-hint { font-size: 13px; color: #666; margin: 0; }
.hm-dash-profile { border: 1px solid #e3e5e8; border-radius: 14px; padding: 14px; margin-top: 10px; }
@media (max-width: 640px) {
	.hm-dash-card { flex-direction: column; }
	.hm-dash-card-photo { flex-basis: auto; min-height: 170px; width: 100%; }
	.hm-dash-stats { grid-template-columns: 1fr; }
}
