/* WD Property Booking Suite — Frontend Styles */

:root {
	--wd-pb-primary: #2271b1;
	--wd-pb-accent: #d63638;
	--wd-pb-text: #1e1e1e;
	--wd-pb-btn-text: #ffffff;
}

.wd-pb-btn {
	display: inline-block;
	border: none;
	border-radius: 6px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s ease;
}
.wd-pb-btn:hover { opacity: .9; }
.wd-pb-btn:disabled { opacity: .5; cursor: not-allowed; }
.wd-pb-btn-primary { background: var(--wd-pb-primary); color: var(--wd-pb-btn-text); }

/* Filter bar */
.wd-pb-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.wd-pb-filter-bar .wd-pb-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.wd-pb-filter-bar label { font-size: 12px; font-weight: 600; color: var(--wd-pb-text); text-transform: uppercase; letter-spacing: .03em; }
.wd-pb-filter-bar select,
.wd-pb-filter-bar input[type="text"] {
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 14px;
}
.wd-pb-field-submit { flex: 0 0 auto; }

/* Archive grid */
.wd-pb-archive-header { margin-bottom: 28px; }
.wd-pb-archive-header h1 { margin-bottom: 16px; }
.wd-pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wd-pb-card { display: block; text-decoration: none; color: inherit; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.wd-pb-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.wd-pb-card-thumb { position: relative; aspect-ratio: 4/3; background: #f2f2f2; overflow: hidden; }
.wd-pb-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-pb-card-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#eee,#ddd); }
.wd-pb-card-badge, .wd-pb-type-badge { position: absolute; top: 10px; left: 10px; background: var(--wd-pb-primary); color: var(--wd-pb-btn-text); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.wd-pb-type-badge { position: static; display: inline-block; margin-bottom: 8px; }
.wd-pb-card-body { padding: 14px 16px; }
.wd-pb-card-title { margin: 0 0 6px; font-size: 17px; }
.wd-pb-card-excerpt { margin: 0 0 10px; font-size: 13px; color: #666; }
.wd-pb-card-price { font-weight: 700; color: var(--wd-pb-primary); }
.wd-pb-card-price span { font-weight: 400; color: #888; }
.wd-pb-no-results { padding: 40px 0; text-align: center; color: #666; }

/* Single page */
.wd-pb-single-header { margin-bottom: 18px; }
.wd-pb-single-title { margin: 4px 0 0; font-size: 32px; }
.wd-pb-single-gallery { margin-bottom: 28px; }
.wd-pb-gallery-main-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }
.wd-pb-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.wd-pb-gallery-thumb { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .7; }
.wd-pb-gallery-thumb:hover { opacity: 1; }

.wd-pb-single-body { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 782px) { .wd-pb-single-body { grid-template-columns: 1fr; } }

.wd-pb-section { margin-bottom: 32px; }
.wd-pb-facilities-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.wd-pb-facilities-list li { padding: 8px 12px; background: #f7f7f7; border-radius: 6px; font-size: 14px; }
.wd-pb-facilities-list li::before { content: "✓ "; color: var(--wd-pb-primary); font-weight: 700; }

.wd-pb-calendar { border: 1px solid #ececec; border-radius: 10px; padding: 16px; }
.wd-pb-calendar-legend { font-size: 13px; color: #666; }
.wd-pb-legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: middle; }
.wd-pb-legend-swatch:first-child { margin-left: 0; }
.wd-pb-legend-available { background: #e5f5ea; border: 1px solid #8fd19e; }
.wd-pb-legend-booked { background: #fde8e8; border: 1px solid var(--wd-pb-accent); }
.wd-pb-cal-month { margin-bottom: 18px; }
.wd-pb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.wd-pb-cal-dow { font-size: 11px; text-align: center; color: #999; font-weight: 600; }
.wd-pb-cal-day { text-align: center; font-size: 12px; padding: 8px 0; border-radius: 6px; background: #e5f5ea; }
.wd-pb-cal-day.wd-pb-cal-empty { background: transparent; }
.wd-pb-cal-day.wd-pb-cal-booked { background: #fde8e8; color: var(--wd-pb-accent); text-decoration: line-through; }
.wd-pb-cal-day.wd-pb-cal-past { background: #f2f2f2; color: #bbb; }

/* Booking box */
.wd-pb-booking-box { position: sticky; top: 20px; border: 1px solid #ececec; border-radius: 12px; padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.wd-pb-price-row { margin-bottom: 16px; }
.wd-pb-price-amount { font-size: 26px; font-weight: 700; color: var(--wd-pb-primary); }
.wd-pb-price-unit { color: #888; font-size: 14px; }
.wd-pb-booking-box .wd-pb-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.wd-pb-booking-box label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.wd-pb-booking-box input[type="text"] { padding: 10px 12px; border: 1px solid #d5d5d5; border-radius: 6px; width: 100%; box-sizing: border-box; }
.wd-pb-availability-msg { font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.wd-pb-availability-msg.wd-pb-msg-error { color: var(--wd-pb-accent); }
.wd-pb-availability-msg.wd-pb-msg-ok { color: #2a8a4a; }
.wd-pb-summary { border-top: 1px solid #eee; margin: 14px 0; padding-top: 14px; }
.wd-pb-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.wd-pb-summary-total { font-weight: 700; font-size: 16px; }
.wd-pb-book-now { width: 100%; }

.ui-datepicker { z-index: 9999 !important; font-size: 13px; }
