/* ============================================================
   WooCommerce Hotel & Camp Booking Pro — Frontend
   ============================================================ */

:root {
	--wchb-primary: #0f766e;
	--wchb-primary-dark: #0b5a54;
	--wchb-accent: #f59e0b;
	--wchb-whatsapp: #25d366;
	--wchb-border: #e5e7eb;
	--wchb-bg: #f9fafb;
	--wchb-text: #1f2937;
	--wchb-muted: #6b7280;
	--wchb-radius: 12px;
	--wchb-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

/* ---------- Highlights ---------- */
.wchb-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.wchb-highlight-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #ecfdf5;
	color: var(--wchb-primary-dark);
	border: 1px solid #d1fae5;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
}

.wchb-highlight-badge .wchb-badge-icon {
	color: var(--wchb-primary);
}

/* ---------- Booking form ---------- */
.wchb-booking-wrap {
	margin: 22px 0;
}

.wchb-booking-card {
	background: #fff;
	border: 1px solid var(--wchb-border);
	border-radius: var(--wchb-radius);
	box-shadow: var(--wchb-shadow);
	padding: 22px;
}

.wchb-booking-title {
	margin: 0 0 16px;
	font-size: 1.2rem;
	color: var(--wchb-text);
}

.wchb-field {
	margin-bottom: 14px;
}

.wchb-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--wchb-text);
}

.wchb-form input[type="text"],
.wchb-form input[type="email"],
.wchb-form input[type="tel"],
.wchb-form input[type="date"],
.wchb-form input[type="number"],
.wchb-form textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	box-sizing: border-box;
	background: #fff;
	color: var(--wchb-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wchb-form input:focus,
.wchb-form textarea:focus {
	border-color: var(--wchb-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.wchb-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.wchb-field-grid-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

.wchb-submit-btn {
	width: 100%;
	margin-top: 6px !important;
	padding: 13px 18px !important;
	background: var(--wchb-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.wchb-submit-btn:hover {
	background: var(--wchb-primary-dark) !important;
}

.wchb-submit-btn.is-loading {
	opacity: 0.7;
	cursor: progress;
	pointer-events: none;
}

.wchb-whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding: 12px 18px;
	background: var(--wchb-whatsapp);
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}

.wchb-whatsapp-btn:hover {
	filter: brightness(0.95);
	color: #fff;
}

.wchb-response {
	margin-bottom: 0;
}

.wchb-response.success,
.wchb-response.error {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 0.9rem;
}

.wchb-response.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.wchb-response.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Sticky form on wide screens */
@media (min-width: 992px) {
	.wchb-booking-card {
		position: sticky;
		top: 24px;
	}
}

/* ---------- Loop / archive button ---------- */
.wchb-loop-btn {
	display: inline-block;
	background: var(--wchb-primary) !important;
	color: #fff !important;
}

/* ---------- Amenities grid ---------- */
.wchb-amenities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin: 8px 0;
}

.wchb-amenity-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: var(--wchb-bg);
	border: 1px solid var(--wchb-border);
	border-radius: 10px;
	transition: transform 0.15s, box-shadow 0.15s;
}

.wchb-amenity-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--wchb-shadow);
}

.wchb-amenity-icon {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ecfdf5;
	color: var(--wchb-primary);
	border-radius: 10px;
	font-size: 1.2rem;
}

.wchb-amenity-icon .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.wchb-amenity-meta {
	display: flex;
	flex-direction: column;
}

.wchb-amenity-title {
	font-weight: 600;
	color: var(--wchb-text);
}

.wchb-amenity-desc {
	font-size: 0.82rem;
	color: var(--wchb-muted);
}

/* ---------- Rooms ---------- */
.wchb-rooms-section {
	margin: 30px 0;
}

.wchb-section-title {
	font-size: 1.4rem;
	margin: 0 0 16px;
	color: var(--wchb-text);
}

.wchb-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.wchb-room-card-front {
	background: #fff;
	border: 1px solid var(--wchb-border);
	border-radius: var(--wchb-radius);
	overflow: hidden;
	box-shadow: var(--wchb-shadow);
	display: flex;
	flex-direction: column;
}

.wchb-room-thumb img,
.wchb-room-thumb .wchb-room-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.wchb-room-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wchb-room-name {
	margin: 0;
	font-size: 1.1rem;
	color: var(--wchb-text);
}

.wchb-room-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.wchb-room-guests {
	font-size: 0.85rem;
	color: var(--wchb-muted);
}

.wchb-room-price {
	font-weight: 700;
	color: var(--wchb-primary);
	font-size: 1.05rem;
}

.wchb-room-desc {
	font-size: 0.88rem;
	color: var(--wchb-muted);
	margin: 0;
}

.wchb-room-features {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wchb-room-features li {
	font-size: 0.85rem;
	color: var(--wchb-text);
}

.wchb-room-features i {
	color: var(--wchb-primary);
	margin-right: 6px;
}

/* ---------- Tabs content ---------- */
.wchb-policies .wchb-policy-block {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wchb-border);
}

.wchb-policies .wchb-policy-block:last-child {
	border-bottom: none;
}

.wchb-policy-block h3 {
	margin: 0 0 6px;
	color: var(--wchb-primary-dark);
	font-size: 1.05rem;
}

.wchb-nearby-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wchb-nearby-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--wchb-border);
}

.wchb-nearby-list .dashicons {
	color: var(--wchb-primary);
}

.wchb-faq-item {
	border: 1px solid var(--wchb-border);
	border-radius: 8px;
	margin-bottom: 10px;
	padding: 4px 14px;
}

.wchb-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 10px 0;
	color: var(--wchb-text);
}

.wchb-faq-answer {
	padding: 0 0 12px;
	color: var(--wchb-muted);
}

.wchb-map-embed iframe {
	width: 100%;
	min-height: 360px;
	border: 0;
	border-radius: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.wchb-field-grid,
	.wchb-field-grid-3 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.wchb-booking-card {
		padding: 16px;
	}

	.wchb-amenities-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 420px) {
	.wchb-amenities-grid {
		grid-template-columns: 1fr;
	}
}
