/* Best4Hotels - Frontend Styles */

/* === Room features on product page === */
.b4h-room-features {
	margin: 1em 0;
	padding: 1em;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}
.b4h-feature-list {
	list-style: none;
	padding: 0;
	margin: 0 0 0.5em 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 6px 18px;
}
.b4h-feature-list li {
	font-size: 0.95em;
}
.b4h-amenities {
	margin-top: 0.6em;
	font-size: 0.95em;
}
.b4h-amenities-list {
	list-style: none;
	padding: 0;
	margin: 6px 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.b4h-amenities-list li {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 14px;
	padding: 3px 10px;
	font-size: 0.85em;
}

.b4h-per-night {
	font-size: 0.75em;
	color: #777;
	font-weight: normal;
}

/* === Booking form === */
.b4h-booking-form-wrapper {
	margin: 1.5em 0;
	padding: 1.2em;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.b4h-form-title {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.25em;
}
.b4h-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 1em;
}
.b4h-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9em;
}
.b4h-form-field input,
.b4h-form-field select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}
.b4h-form-field .required {
	color: #c0392b;
}

/* Child age inputs */
.b4h-child-ages-wrapper {
	margin-bottom: 1em;
}
.b4h-child-ages-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.b4h-child-age-item label {
	font-size: 0.85em;
	font-weight: normal;
}
.b4h-child-age-item input {
	width: 70px;
}

/* Addons */
.b4h-addons-wrapper {
	margin: 1em 0;
	padding: 0.8em;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
}
.b4h-addons-wrapper h4 {
	margin: 0 0 0.6em 0;
}
.b4h-addon-item {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	grid-template-rows: auto auto;
	gap: 4px 10px;
	padding: 6px 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	font-weight: normal;
}
.b4h-addon-item:last-child {
	border-bottom: none;
}
.b4h-addon-item input {
	grid-row: 1;
	margin-top: 4px;
}
.b4h-addon-item .b4h-addon-name {
	font-weight: 600;
}
.b4h-addon-item .b4h-addon-price {
	text-align: right;
	font-size: 0.9em;
	color: #555;
}
.b4h-addon-item .b4h-addon-desc {
	grid-column: 2 / 4;
	font-size: 0.85em;
	color: #666;
}

/* Summary */
.b4h-summary-wrapper {
	margin: 1em 0;
	padding: 0.8em 1em;
	background: #f0f7ff;
	border: 1px solid #cfe0f5;
	border-radius: 6px;
}
.b4h-price-breakdown {
	width: 100%;
	border-collapse: collapse;
}
.b4h-price-breakdown td {
	padding: 4px 0;
	border-bottom: 1px solid #e0eaf3;
	font-size: 0.92em;
}
.b4h-price-breakdown td:last-child {
	text-align: right;
}
.b4h-price-breakdown tr.b4h-total td {
	border-top: 2px solid #4a90e2;
	border-bottom: none;
	font-size: 1.05em;
	padding-top: 8px;
}

/* Messages */
.b4h-form-messages {
	margin: 0.6em 0;
}
.b4h-form-messages .b4h-error {
	background: #fdecea;
	color: #b71c1c;
	border: 1px solid #f5c6cb;
	padding: 8px 12px;
	border-radius: 4px;
}
.b4h-form-messages .b4h-success {
	background: #e8f7ed;
	color: #1b5e20;
	border: 1px solid #b6e0c1;
	padding: 8px 12px;
	border-radius: 4px;
}

/* Actions */
.b4h-form-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.b4h-form-actions .button {
	flex: 1 1 auto;
}
.b4h-add-to-cart-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* === Search form === */
.b4h-search-form-wrap {
	margin: 1em 0;
	padding: 1.2em;
	background: #f7f9fb;
	border: 1px solid #d0dae3;
	border-radius: 8px;
}
.b4h-search-title {
	margin-top: 0;
}
.b4h-search-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	align-items: end;
}
.b4h-search-field label {
	display: block;
	font-weight: 600;
	font-size: 0.85em;
	margin-bottom: 4px;
}
.b4h-search-field input,
.b4h-search-field select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #c0c0c0;
	border-radius: 4px;
	box-sizing: border-box;
}
.b4h-search-submit .button {
	width: 100%;
	padding: 10px 14px;
}

/* === Search results === */
.b4h-search-results {
	margin-top: 1.5em;
}
.b4h-search-summary {
	padding: 8px 12px;
	background: #fff8e1;
	border-left: 4px solid #ffc107;
	margin-bottom: 1em;
	font-weight: 600;
}
.b4h-no-results {
	padding: 1em;
	background: #fff8e1;
	border-left: 4px solid #f0b849;
	border-radius: 4px;
}

.b4h-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
.b4h-rooms-grid.b4h-rooms-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.b4h-rooms-grid.b4h-rooms-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.b4h-rooms-grid.b4h-rooms-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
	.b4h-rooms-grid,
	.b4h-rooms-grid.b4h-rooms-grid-cols-2,
	.b4h-rooms-grid.b4h-rooms-grid-cols-3,
	.b4h-rooms-grid.b4h-rooms-grid-cols-4 {
		grid-template-columns: 1fr;
	}
	.b4h-form-row {
		grid-template-columns: 1fr;
	}
}
.b4h-room-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s, box-shadow 0.18s;
}
.b4h-room-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.b4h-room-thumb img {
	width: 100%;
	height: auto;
	display: block;
}
.b4h-room-info {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.b4h-room-name {
	margin: 0;
	font-size: 1.05em;
}
.b4h-room-name a {
	text-decoration: none;
	color: #1d3557;
}
.b4h-room-meta {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.88em;
	color: #666;
}
.b4h-room-meta li {
	display: inline-block;
	margin-right: 10px;
}
.b4h-room-price {
	font-size: 1em;
}
.b4h-room-price strong {
	color: #1b5e20;
}
.b4h-book-now {
	margin-top: auto;
	text-align: center;
}

/* === Checkout custom fields === */
.b4h-checkout-fields {
	margin-top: 1.5em;
	padding: 1em;
	background: #f8f9fb;
	border: 1px solid #dde3ec;
	border-radius: 6px;
}
.b4h-checkout-fields h3 {
	margin-top: 0;
}

/* === Order detail (My Account) === */
.b4h-order-bookings {
	margin-top: 1em;
}
