/**
 * Hospedus — public styles.
 * Mobile-first, WCAG 2.2 AA friendly (visible focus, sufficient contrast).
 */

/* ---------- Shared ---------- */
.bdw-es-btn {
	display: inline-block;
	padding: 12px 20px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.bdw-es-btn:focus-visible {
	outline: 3px solid var(--hsp-action);
	outline-offset: 2px;
}

.bdw-es-btn-primary {
	background-color: var(--hsp-action);
	color: var(--hsp-surface-raised);
}

.bdw-es-btn-primary:hover:not(:disabled) {
	background-color: var(--hsp-action-hover);
	color: var(--hsp-surface-raised);
}

.bdw-es-btn-primary:disabled {
	background-color: var(--hsp-text-disabled);
	cursor: not-allowed;
}

.bdw-es-btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

.bdw-es-notice {
	padding: 16px;
	border-radius: 6px;
	background-color: var(--hsp-surface-base);
	border-left: 4px solid var(--hsp-text-muted);
	margin: 16px 0;
}

.bdw-es-notice-error {
	background-color: var(--hsp-danger-bg);
	border-left-color: var(--hsp-danger);
}

.bdw-es-notice-success {
	background-color: var(--hsp-success-bg);
	border-left-color: var(--hsp-success);
}

.bdw-es-error {
	color: var(--hsp-danger);
	font-weight: 600;
}

.bdw-es-field {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
}

.bdw-es-field label {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9rem;
}

.bdw-es-field input,
.bdw-es-field select,
.bdw-es-field textarea {
	padding: 10px;
	border: 1px solid var(--hsp-text-disabled);
	border-radius: 6px;
	font-size: 1rem;
}

.bdw-es-field input:focus-visible,
.bdw-es-field textarea:focus-visible {
	outline: 3px solid var(--hsp-action);
	outline-offset: 1px;
}

.bdw-es-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 16px;
}

@media (min-width: 600px) {
	.bdw-es-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

/* Honeypot: visually hidden but available to bots. */
.bdw-es-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Listing page (search hero, filters sidebar, results grid) ----------
   Ported from task/html-models/02-listagem.html, wired to real data. Shared
   helpers still used elsewhere (.bdw-es-suggestions*, .bdw-es-card-reg,
   .bdw-es-notice) are kept; the rest of the old grid/card/search-form rules
   were dropped along with the markup that used them. */

.search-hero {
	background: linear-gradient(180deg, rgba(14, 27, 36, 0.55) 0%, rgba(14, 27, 36, 0.7) 100%),
		linear-gradient(135deg, var(--hsp-primary-700), var(--hsp-primary-900));
	padding: var(--hsp-space-8) var(--hsp-space-4) var(--hsp-space-7);
	text-align: center;
	color: var(--hsp-text-on-inverse);
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.breadcrumb {
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-on-inverse-muted);
	margin-bottom: var(--hsp-space-3);
}

.breadcrumb a {
	color: var(--hsp-text-on-inverse-muted);
}

.search-hero h1 {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-4xl);
	font-weight: 600;
	color: var(--hsp-text-on-inverse);
	margin-bottom: var(--hsp-space-5);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.search-hero .search-bar {
	background: var(--hsp-surface-raised);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-4);
	box-shadow: var(--hsp-shadow-lg);
	max-width: 760px;
	margin: 0 auto;
}

.search-hero .search-form {
	display: flex;
	flex-direction: row;
	gap: var(--hsp-space-3);
	align-items: end;
	flex-wrap: wrap;
}

.search-hero .search-form .form-group {
	flex: 1;
	min-width: 120px;
	margin-bottom: 0;
	text-align: left;
}

.search-hero .search-form .form-input {
	height: 44px;
}

.search-hero .search-form button {
	height: 44px;
	padding-inline: var(--hsp-space-5);
}

.listing-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: var(--hsp-space-5);
	padding: var(--hsp-space-8) var(--hsp-space-4) var(--hsp-space-6);
	max-width: var(--hsp-container);
	margin: 0 auto;
	align-items: start;
}

.filters-sidebar {
	position: sticky;
	top: 80px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.filters-sidebar::-webkit-scrollbar {
	display: none;
}

.filter-group {
	margin-bottom: var(--hsp-space-4);
	border-bottom: 1px solid var(--hsp-border-subtle);
	padding-bottom: var(--hsp-space-4);
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--hsp-space-3);
	cursor: pointer;
}

.filter-title {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	color: var(--hsp-text-primary);
}

.filter-content {
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-sm);
}

.filter-checkbox {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
	margin-bottom: var(--hsp-space-2);
	cursor: pointer;
}

.filter-checkbox input {
	accent-color: var(--hsp-action);
}

.price-range {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
}

.price-range .form-input {
	padding: var(--hsp-space-2);
}

.filter-actions {
	display: flex;
	gap: var(--hsp-space-3);
	margin-top: var(--hsp-space-4);
}

.filter-toggle-btn {
	display: none;
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--hsp-space-3);
	margin-bottom: var(--hsp-space-4);
}

.results-count {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-lg);
	font-weight: 600;
	color: var(--hsp-text-primary);
}

.results-controls {
	display: flex;
	gap: var(--hsp-space-3);
	align-items: center;
}

.sort-select {
	width: auto;
}

.view-toggle {
	display: flex;
	gap: var(--hsp-space-1);
}

.view-toggle button {
	padding: var(--hsp-space-2);
	border: 1px solid var(--hsp-border-subtle);
	background: var(--hsp-surface-raised);
	border-radius: var(--hsp-radius-sm);
	cursor: pointer;
	color: var(--hsp-text-secondary);
}

.view-toggle button.active {
	background: var(--hsp-action);
	color: var(--hsp-on-action);
	border-color: var(--hsp-action);
}

.property-media {
	position: relative;
}

.property-image--empty {
	display: block;
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, var(--hsp-border-subtle), var(--hsp-border-strong));
}

.property-badges {
	position: absolute;
	top: var(--hsp-space-3);
	left: var(--hsp-space-3);
	display: flex;
	gap: var(--hsp-space-2);
}

.property-wishlist {
	position: absolute;
	top: var(--hsp-space-3);
	right: var(--hsp-space-3);
	background: var(--hsp-surface-raised);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--hsp-shadow-sm);
	color: var(--hsp-text-secondary);
}

.property-wishlist[aria-pressed="true"] {
	color: var(--hsp-danger);
}

.property-amenities-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hsp-space-3);
	margin-bottom: var(--hsp-space-3);
	font-size: var(--hsp-text-xs);
	color: var(--hsp-text-secondary);
}

.bdw-es-grid.is-list-view {
	grid-template-columns: 1fr;
}

.bdw-es-map-wrap {
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	margin-bottom: var(--hsp-space-5);
}

.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--hsp-space-2);
	margin-top: var(--hsp-space-6);
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	gap: var(--hsp-space-1);
	padding: var(--hsp-space-2) var(--hsp-space-4);
	border: 1px solid var(--hsp-border-subtle);
	background: var(--hsp-surface-raised);
	border-radius: var(--hsp-radius-md);
	font-size: var(--hsp-text-sm);
	text-decoration: none;
	color: var(--hsp-text-primary);
}

.pagination a:hover {
	background: var(--hsp-action-soft);
	text-decoration: none;
}

.pagination span.active {
	background: var(--hsp-action);
	color: var(--hsp-on-action);
	border-color: var(--hsp-action);
}

.empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--hsp-space-8) var(--hsp-space-4);
	color: var(--hsp-text-secondary);
}

.empty-state-icon {
	font-size: 64px;
	margin-bottom: var(--hsp-space-4);
}

/* Loading state for the AJAX-filtered listing (see bdw-fe-theme.js). */
#bdw-es-listing-content[aria-busy="true"] {
	cursor: progress;
}

.skeleton-header .skeleton-line {
	margin: 0;
}

.skeleton-card {
	pointer-events: none;
}

.skeleton-line {
	height: 1em;
	border-radius: var(--hsp-radius-sm);
}

.skeleton-line-count {
	width: 180px;
	height: 1.2em;
}

.skeleton-image {
	width: 100%;
	height: 200px;
}

.skeleton-line-title {
	width: 70%;
	height: 1.25em;
	margin-bottom: var(--hsp-space-2);
}

.skeleton-line-sm {
	width: 45%;
	margin-bottom: var(--hsp-space-3);
}

.skeleton-line-price {
	width: 35%;
	height: 1.5em;
}

@media (max-width: 768px) {
	.listing-layout {
		grid-template-columns: 1fr;
	}

	.filters-sidebar {
		position: fixed;
		inset: 0;
		background: var(--hsp-surface-raised);
		z-index: 1000;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		padding: var(--hsp-space-4);
		max-height: none;
	}

	.filters-sidebar.is-open {
		transform: translateX(0);
	}

	.filter-toggle-btn {
		display: inline-flex;
		position: fixed;
		bottom: var(--hsp-space-4);
		right: var(--hsp-space-4);
		z-index: 100;
	}

	.search-hero .search-form {
		flex-direction: column;
		align-items: stretch;
	}

	.search-hero .search-form .form-group {
		min-width: 100%;
	}

	.results-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.listing-layout {
		grid-template-columns: 200px 1fr;
	}
}

.bdw-es-suggestions-title {
	font-weight: 600;
	margin: 0 0 8px;
}
.bdw-es-suggestions-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.bdw-es-suggestions-list a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--hsp-border-strong);
	text-decoration: none;
	font-size: 14px;
}
.bdw-es-suggestions-list a:hover {
	border-color: currentColor;
}
.bdw-es-widget-suggestions {
	margin-top: 10px;
	font-size: 13px;
}
.bdw-es-widget-suggestions button {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 1px solid var(--hsp-border-strong);
	border-radius: 6px;
	padding: 6px 10px;
	margin-top: 6px;
	cursor: pointer;
	font-size: 13px;
}
.bdw-es-widget-suggestions button:hover {
	border-color: currentColor;
}

.bdw-es-card-reg {
	margin: 0;
	color: var(--hsp-text-muted);
	font-size: 0.78rem;
}

/* ---------- Property header ---------- */
.property-header {
	background: var(--hsp-surface-base);
	padding: var(--hsp-space-4) var(--hsp-space-5);
	border-bottom: 1px solid var(--hsp-border-subtle);
}

/* .breadcrumb's light text (var(--hsp-text-on-inverse-muted)) is tuned for the dark
   .search-hero gradient it also appears in (property-archive.php); on this
   light surface it's unreadable, so give it the same blue as the save/share
   buttons instead. */
.property-header .breadcrumb,
.property-header .breadcrumb a {
	color: var(--hsp-action);
}

.property-header .property-title {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-3xl);
	font-weight: 600;
	margin-bottom: var(--hsp-space-2);
	color: var(--hsp-text-primary);
}

.property-header .property-location {
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-base);
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-3);
}

.property-header .property-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--hsp-space-4);
	margin-bottom: var(--hsp-space-4);
}

.property-header .property-rating {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
	margin-bottom: 0;
	color: var(--hsp-warning);
}

.property-header .property-rating > span:not(.bdw-es-stars) {
	color: var(--hsp-text-primary);
}

.property-header .property-badges {
	position: static;
}

.property-header .property-actions {
	display: flex;
	gap: var(--hsp-space-3);
}

.property-header .property-actions [aria-pressed="true"] .fa-heart {
	color: var(--hsp-danger);
}

@media (max-width: 480px) {
	.property-header .property-title {
		font-size: var(--hsp-text-2xl);
	}

	.property-header .property-actions .btn-label {
		display: none;
	}
}

/* ---------- Property gallery ---------- */
.gallery-section {
	max-width: var(--hsp-container);
	margin: 0 auto;
	padding: var(--hsp-space-6) var(--hsp-space-4);
}

.bdw-es-gallery-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--hsp-space-6);
	align-items: start;
}

.bdw-es-gallery-hero {
	position: relative;
	display: block;
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	cursor: pointer;
}

.bdw-es-gallery-hero img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
}

.bdw-es-gallery-count {
	position: absolute;
	bottom: var(--hsp-space-3);
	right: var(--hsp-space-3);
	display: inline-flex;
	align-items: center;
	gap: var(--hsp-space-2);
	padding: var(--hsp-space-2) var(--hsp-space-3);
	background: rgba(14, 27, 36, 0.72);
	color: var(--hsp-neutral-0);
	border-radius: var(--hsp-radius-full);
	font-size: var(--hsp-text-xs);
	font-weight: 500;
}

.bdw-es-gallery-grid-icon {
	display: inline-grid;
	flex: none;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 2px;
	width: 11px;
	height: 11px;
}

.bdw-es-gallery-grid-icon span {
	background: currentColor;
	border-radius: 1px;
}

.bdw-es-gallery-side {
	position: relative;
}

.bdw-es-gallery-strip {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	grid-auto-flow: column;
	grid-auto-columns: calc(50% - var(--hsp-space-3) / 2);
	gap: var(--hsp-space-3);
	height: 420px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.bdw-es-gallery-strip::-webkit-scrollbar {
	display: none;
}

.bdw-es-gallery-thumb {
	display: block;
	height: 100%;
	border-radius: var(--hsp-radius-md);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	scroll-snap-align: start;
	transition: border-color 0.2s ease;
}

.bdw-es-gallery-thumb:hover,
.bdw-es-gallery-thumb:focus-visible {
	border-color: var(--hsp-action);
}

.bdw-es-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bdw-es-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(14, 27, 36, 0.72);
	color: var(--hsp-neutral-0);
	cursor: pointer;
	z-index: 1;
}

.bdw-es-gallery-nav:hover {
	background: rgba(14, 27, 36, 0.88);
}

.bdw-es-gallery-nav-prev {
	left: var(--hsp-space-2);
}

.bdw-es-gallery-nav-next {
	right: var(--hsp-space-2);
}

@media (min-width: 769px) and (max-width: 1024px) {
	.bdw-es-gallery-layout {
		grid-template-columns: 1fr 300px;
	}
}

@media (max-width: 768px) {
	.bdw-es-gallery-layout {
		grid-template-columns: 1fr;
	}

	.bdw-es-gallery-side {
		display: none;
	}
}

@media (max-width: 600px) {
	.bdw-es-gallery-hero img {
		height: 260px;
	}
}

/* ---------- Lightbox ---------- */
.bdw-es-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(17, 24, 39, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bdw-es-lightbox[hidden] {
	display: none;
}

.bdw-es-lightbox-img {
	max-width: min(92vw, 1100px);
	max-height: 88vh;
	object-fit: contain;
	border-radius: 6px;
}

.bdw-es-lightbox-close,
.bdw-es-lightbox-prev,
.bdw-es-lightbox-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	color: var(--hsp-surface-raised);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
}

.bdw-es-lightbox-close:hover,
.bdw-es-lightbox-prev:hover,
.bdw-es-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.24);
}

.bdw-es-lightbox-close:focus-visible,
.bdw-es-lightbox-prev:focus-visible,
.bdw-es-lightbox-next:focus-visible {
	outline: 3px solid var(--hsp-surface-raised);
	outline-offset: 2px;
}

.bdw-es-lightbox-close {
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	font-size: 24px;
}

.bdw-es-lightbox-prev,
.bdw-es-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 20px;
}

.bdw-es-lightbox-prev {
	left: 16px;
}

.bdw-es-lightbox-next {
	right: 16px;
}

/* ---------- Property details ---------- */
.bdw-es-details {
	margin-top: 32px;
}

.bdw-es-rules {
	list-style: none;
	margin: 0 0 16px -14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.bdw-es-rules li {
	display: inline-flex;
	align-items: center;
	background-color: var(--hsp-surface-base);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.9rem;
}

.bdw-es-rules li i {
	margin-right: 4px;
	color: var(--hsp-text-secondary);
}

.bdw-es-registration {
	color: var(--hsp-text-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
}

/* ---------- Property layout (main content + sticky booking card) ---------- */
.property-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--hsp-space-6);
	max-width: var(--hsp-container);
	margin: 0 auto;
	padding: var(--hsp-space-6) var(--hsp-space-4);
	align-items: start;
}

/* Grid tracks otherwise stretch to fit the intrinsic min-width of their
   content (date inputs, the guest steppers) instead of respecting the
   360px column — this is what was squeezing the main content column. */
.property-layout > * {
	min-width: 0;
}

.property-layout .property-content {
	display: block;
	flex: initial;
	padding: 0;
	max-width: 100%;
}

.content-section {
	margin-bottom: var(--hsp-space-6);
}

.section-heading {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-xl);
	font-weight: 600;
	margin-bottom: var(--hsp-space-4);
	color: var(--hsp-text-primary);
}

.bdw-es-location-heading {
	margin-top: 80px;
}

.info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: var(--hsp-space-4);
	margin: 0 0 var(--hsp-space-4) calc(-1 * var(--hsp-space-4));
}

.info-card {
	background: var(--hsp-surface-base);
	padding: var(--hsp-space-4);
	border-radius: var(--hsp-radius-md);
	text-align: left;
}

.info-card-icon {
	font-size: 24px;
	margin-bottom: var(--hsp-space-2);
	color: var(--hsp-action);
}

.info-card-label {
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-xs);
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-1);
}

.info-card-value {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-lg);
	font-weight: 600;
	color: var(--hsp-text-primary);
}

.property-description {
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-base);
	line-height: 1.6;
	color: var(--hsp-text-secondary);
}

.amenities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--hsp-space-4) var(--hsp-space-5);
	margin-bottom: var(--hsp-space-4);
}

.amenity-item {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-primary);
}

.amenity-item i {
	color: var(--hsp-action);
	width: 1.2em;
	text-align: center;
}

.amenity-category {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-base);
	font-weight: 600;
	margin-bottom: var(--hsp-space-3);
	margin-top: var(--hsp-space-6);
	color: var(--hsp-text-primary);
}

.map-container {
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
}

@media (max-width: 768px) {
	.property-layout {
		grid-template-columns: 1fr;
	}

	.property-layout aside .booking-card {
		position: static;
	}

	.info-cards {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--hsp-space-2);
		margin-left: calc(-1 * var(--hsp-space-2));
	}

	.info-card {
		padding: var(--hsp-space-2);
	}

	.info-card-icon {
		font-size: 20px;
	}

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

@media (min-width: 769px) and (max-width: 1024px) {
	.property-layout {
		grid-template-columns: 1fr 300px;
	}
}

/* ---------- Booking widget ---------- */
.booking-card {
	background: var(--hsp-surface-raised);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
	box-shadow: var(--hsp-shadow-lg);
}

.property-layout aside .booking-card {
	position: sticky;
	top: 80px;
}

.booking-price {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-2xl);
	font-weight: 600;
	color: var(--hsp-action);
	margin-bottom: var(--hsp-space-2);
}

.booking-price span {
	font-size: var(--hsp-text-base);
	color: var(--hsp-text-secondary);
	font-weight: 400;
}

.booking-rating {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
	font-family: var(--hsp-font-ui);
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-4);
	padding-bottom: var(--hsp-space-4);
	border-bottom: 1px solid var(--hsp-border-subtle);
}

.booking-rating .fa-star {
	color: var(--hsp-warning);
}

.bdw-es-widget {
	margin-top: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	max-width: none;
}

.bdw-es-widget h3 {
	font-size: var(--hsp-text-base);
	margin-top: var(--hsp-space-6);
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-widget-form {
	display: grid;
	/* auto-fit instead of a hard 1fr 1fr: a native date input can't shrink
	   below ~140px, so a fixed 2-column grid overflowed the 300-360px
	   booking card at narrower viewports. This drops to one column
	   whenever there isn't room for two, whatever the card's width. */
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: var(--hsp-space-3) var(--hsp-space-3);
	margin-bottom: var(--hsp-space-3);
}

.bdw-es-widget-form .bdw-es-field {
	min-width: 0;
}

.bdw-es-stepper {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
}

.bdw-es-stepper input {
	width: auto;
	min-width: 0;
	flex: 1;
	text-align: center;
	padding-left: var(--hsp-space-1);
	padding-right: var(--hsp-space-1);
}

.bdw-es-stepper .btn {
	flex-shrink: 0;
	padding: var(--hsp-space-2);
}

/* Fixed min-height avoids layout shift (CLS) while the quote loads. */
.bdw-es-quote {
	min-height: 120px;
	margin: 8px 0 16px;
	padding-bottom: var(--hsp-space-4);
	border-bottom: 1px solid var(--hsp-border-subtle);
}

.booking-guarantees {
	margin-top: var(--hsp-space-4);
	font-size: var(--hsp-text-xs);
	color: var(--hsp-success);
}

.booking-guarantees div {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-2);
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-quote-hint {
	color: var(--hsp-text-secondary);
}

.bdw-es-quote-error {
	color: var(--hsp-danger);
	font-weight: 600;
}

.bdw-es-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--hsp-space-3);
}

.bdw-es-summary-table td {
	padding: var(--hsp-space-2) var(--hsp-space-1);
	border-bottom: 1px solid var(--hsp-border-subtle);
	font-size: var(--hsp-text-sm);
}

.bdw-es-summary-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.bdw-es-summary-total td {
	border-bottom: none;
	padding-top: var(--hsp-space-3);
	border-top: 1px solid var(--hsp-border-subtle);
	font-weight: 700;
	font-size: var(--hsp-text-lg);
	color: var(--hsp-action);
}

/* Mini availability calendar (single month, prev/next through the months
   already fetched in bdw-fe-booking.js) */
.bdw-es-availability {
	margin-top: 12px;
}

.bdw-es-mini-cal {
	width: 100%;
}

.bdw-es-mini-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hsp-space-2);
	margin-bottom: 6px;
}

.bdw-es-mini-cal-title {
	font-weight: 700;
	font-size: 0.9rem;
	text-align: center;
	flex: 1;
}

.bdw-es-mini-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.bdw-es-mini-dow {
	font-size: 0.7rem;
	text-align: center;
	color: var(--hsp-text-muted);
	font-weight: 700;
}

.bdw-es-mini-day {
	font-size: 0.75rem;
	text-align: center;
	padding: 4px 0;
	border-radius: 4px;
	background-color: var(--hsp-success-bg);
	color: var(--hsp-success);
	cursor: help;
}

.bdw-es-mini-unavailable {
	background-color: var(--hsp-danger-bg);
	color: var(--hsp-danger);
	text-decoration: line-through;
}

.bdw-es-mini-past {
	background-color: var(--hsp-surface-base);
	color: var(--hsp-text-disabled);
}

.bdw-es-mini-empty {
	background-color: transparent;
}

/* ---------- Checkout ---------- */
.bdw-es-hold-note {
	background-color: var(--hsp-action-soft);
	border-left: 4px solid var(--hsp-action);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.9rem;
	margin-bottom: 20px;
}

.bdw-es-change-dates {
	margin: 0 0 var(--hsp-space-4);
	padding-bottom: var(--hsp-space-4);
	border-bottom: 1px solid var(--hsp-border-subtle);
	font-size: 0.9rem;
}

.bdw-es-change-dates a {
	color: var(--hsp-action);
	font-weight: 500;
	text-decoration: none;
}

.bdw-es-change-dates a:hover {
	text-decoration: underline;
}

.bdw-es-error:focus {
	outline: 3px solid var(--hsp-danger);
	outline-offset: 2px;
}

.bdw-es-steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--hsp-space-4);
	list-style: none;
	margin: 0 0 var(--hsp-space-6);
	padding: 0;
	counter-reset: bdw-step;
}

.bdw-es-steps li {
	counter-increment: bdw-step;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--hsp-space-2);
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: var(--hsp-text-xs);
	color: var(--hsp-text-secondary);
}

.bdw-es-steps li::before {
	content: counter(bdw-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--hsp-border-subtle);
	background: var(--hsp-surface-raised);
	color: var(--hsp-text-secondary);
	font-weight: 700;
	font-size: var(--hsp-text-sm);
}

.bdw-es-steps li.current {
	color: var(--hsp-action);
	font-weight: 500;
}

.bdw-es-steps li.current::before {
	background: var(--hsp-action);
	border-color: var(--hsp-action);
	color: var(--hsp-surface-raised);
}

.bdw-es-steps li.done::before {
	content: "✓";
	background: var(--hsp-success);
	border-color: var(--hsp-success);
	color: var(--hsp-surface-raised);
}

.bdw-es-checkout-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 900px) {
	.bdw-es-checkout-cols {
		grid-template-columns: 3fr 2fr;
		align-items: start;
	}

	.bdw-es-checkout-summary {
		position: sticky;
		top: 24px;
	}
}

.bdw-es-checkout-form {
	padding: var(--hsp-space-5);
	border-radius: var(--hsp-radius-lg);
	background-color: var(--hsp-surface-raised);
	box-shadow: var(--hsp-shadow-lg);
}

.bdw-es-checkout-form > h2,
.bdw-es-checkout-summary > h2 {
	font-size: var(--hsp-text-xl);
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-checkout-summary {
	padding: var(--hsp-space-5);
	border-radius: var(--hsp-radius-lg);
	background-color: var(--hsp-surface-raised);
	box-shadow: var(--hsp-shadow-lg);
}

.bdw-es-checkout-summary img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: var(--hsp-radius-md);
}

.bdw-es-checkout-summary > h3 {
	font-size: var(--hsp-text-lg);
	margin-top: var(--hsp-space-3);
	margin-bottom: var(--hsp-space-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bdw-es-consent {
	margin: 16px 0;
}

.bdw-es-payment-method {
	margin-bottom: 16px;
}
.bdw-es-payment-method .bdw-es-radio {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-3);
	font-weight: 400;
	margin-top: var(--hsp-space-2);
	padding: var(--hsp-space-3) var(--hsp-space-4);
	border: 2px solid var(--hsp-border-subtle);
	border-radius: var(--hsp-radius-md);
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.bdw-es-payment-method .bdw-es-radio:hover {
	border-color: var(--hsp-action-border);
}
.bdw-es-payment-method .bdw-es-radio:has(input:checked) {
	border-color: var(--hsp-action);
	background: var(--hsp-action-soft);
}

.bdw-es-consent label {
	font-weight: 400;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px;
	align-items: start;
}

.bdw-es-consent label input[type="checkbox"] {
	margin-top: 3px;
}

.bdw-es-consent label a {
	display: inline;
	white-space: normal;
}

.bdw-es-smallprint {
	font-size: 0.78rem;
	color: var(--hsp-text-muted);
	margin-top: 12px;
}

.bdw-es-policy {
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-secondary);
	margin-top: var(--hsp-space-3);
}

.bdw-es-policy strong {
	color: var(--hsp-text-primary);
}

/* ---------- Confirmation ---------- */
.bdw-es-confirmation-hero {
	text-align: center;
	border-left: none;
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-7) var(--hsp-space-4);
	margin-bottom: var(--hsp-space-6);
}

.bdw-es-confirmation-icon {
	display: block;
	font-size: 56px;
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-notice-success .bdw-es-confirmation-icon {
	color: var(--hsp-success);
}

.bdw-es-confirmation-hero h2 {
	font-size: var(--hsp-text-2xl);
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-notice-success.bdw-es-confirmation-hero h2 {
	color: var(--hsp-success);
}

.bdw-es-confirmation .bdw-es-panel {
	padding: var(--hsp-space-5);
	border-radius: var(--hsp-radius-lg);
	background-color: var(--hsp-surface-raised);
	box-shadow: var(--hsp-shadow-sm);
}

.bdw-es-confirmation-property {
	display: flex;
	gap: var(--hsp-space-4);
	margin-bottom: var(--hsp-space-4);
	padding-bottom: var(--hsp-space-4);
	border-bottom: 1px solid var(--hsp-border-subtle);
}

.bdw-es-confirmation-property img {
	width: 100px;
	height: 75px;
	object-fit: cover;
	border-radius: var(--hsp-radius-md);
	flex-shrink: 0;
}

.bdw-es-confirmation-property > div {
	min-width: 0;
}

.bdw-es-confirmation-property h4 {
	font-size: var(--hsp-text-lg);
	margin-bottom: var(--hsp-space-1);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bdw-es-confirmation-property p {
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-secondary);
}

.bdw-es-confirmation-rating {
	color: var(--hsp-text-secondary);
}

.bdw-es-confirmation-rating .fa-star {
	color: var(--hsp-accent);
}

.bdw-es-confirmation-ref {
	font-size: var(--hsp-text-base);
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-confirmation-section {
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-confirmation > .bdw-es-confirmation-section {
	margin-top: var(--hsp-space-6);
}

.bdw-es-confirmation-label {
	font-weight: 600;
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-secondary);
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-confirmation-heading {
	font-size: var(--hsp-text-lg);
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-confirmation-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.bdw-es-confirmation-timeline::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: var(--hsp-border-subtle);
}

.bdw-es-confirmation-timeline-step {
	position: relative;
	padding-left: var(--hsp-space-6);
	margin-bottom: var(--hsp-space-4);
}

.bdw-es-confirmation-timeline-step::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--hsp-surface-raised);
	border: 2px solid var(--hsp-border-subtle);
}

.bdw-es-confirmation-timeline-step--done::before {
	background: var(--hsp-success);
	border-color: var(--hsp-success);
}

.bdw-es-confirmation-timeline-card {
	background: var(--hsp-surface-base);
	border-radius: var(--hsp-radius-md);
	padding: var(--hsp-space-3) var(--hsp-space-4);
}

.bdw-es-confirmation-timeline-title {
	font-weight: 600;
	margin-bottom: var(--hsp-space-1);
}

.bdw-es-confirmation-timeline-status {
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-secondary);
}

.bdw-es-confirmation-timeline-status .fa-check {
	color: var(--hsp-success);
}

.bdw-es-confirmation-timeline-action {
	display: inline-block;
	margin-top: var(--hsp-space-2);
}

.bdw-es-confirmation-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hsp-space-3);
	margin-top: var(--hsp-space-5);
	margin-bottom: var(--hsp-space-6);
}

@media (min-width: 480px) {
	.bdw-es-confirmation-actions {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.bdw-es-confirmation-actions {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bdw-es-confirmation-actions .btn {
	width: 100%;
	text-align: center;
}

.bdw-es-confirmation-support {
	background: var(--hsp-surface-base);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
	margin-bottom: var(--hsp-space-6);
}

.bdw-es-confirmation-help-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hsp-space-4);
}

@media (min-width: 600px) {
	.bdw-es-confirmation-help-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.bdw-es-confirmation-help-card {
	background: var(--hsp-surface-raised);
	border: 1px solid var(--hsp-border-subtle);
	border-radius: var(--hsp-radius-md);
	padding: var(--hsp-space-4);
}

.bdw-es-confirmation-help-card .fa-circle-info {
	color: var(--hsp-action);
	font-size: 20px;
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-confirmation-help-card h4 {
	font-size: var(--hsp-text-base);
	margin-bottom: var(--hsp-space-2);
}

.bdw-es-confirmation-help-card p {
	font-size: var(--hsp-text-sm);
	margin-bottom: var(--hsp-space-1);
}

/* ==========================================================================
   Phase 2 — filters, extras, rate plans, carousel, map, reviews, check-in.
   ========================================================================== */

/* Search filters ---------------------------------------------------------- */
.bdw-es-filters {
        flex-basis: 100%;
        margin-top: 8px;
        border-top: 1px solid var(--hsp-border-subtle);
        padding-top: 8px;
}
.bdw-es-filters-toggle {
        cursor: pointer;
        font-weight: 600;
        color: var(--hsp-text-primary);
}
.bdw-es-filters-body {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-top: 12px;
}
.bdw-es-filter-group {
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 8px;
        padding: 10px 12px;
        margin: 0;
}
.bdw-es-filter-group legend {
        font-weight: 600;
        font-size: 0.9em;
        padding: 0 4px;
}
.bdw-es-filter-check {
        display: block;
        font-size: 0.92em;
        line-height: 1.9;
}
.bdw-es-filter-inline {
        display: block;
        font-size: 0.85em;
        margin-top: 6px;
        color: var(--hsp-text-secondary);
}
.bdw-es-filter-hint {
        font-size: 0.8em;
        color: var(--hsp-text-muted);
        margin: 8px 0 0;
}
.bdw-es-search-currency {
        flex-basis: 100%;
        margin-top: 8px;
}
.bdw-es-currency-note {
        font-size: 0.85em;
        color: var(--hsp-text-muted);
}

/* Rate plans -------------------------------------------------------------- */
.bdw-es-rate-plans,
.bdw-es-extras {
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 10px;
        padding: 14px 16px;
        margin: 0 0 20px;
}
.bdw-es-rate-plans legend,
.bdw-es-extras legend {
        font-weight: 700;
        padding: 0 6px;
}
.bdw-es-rate-plan {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 10px;
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 8px;
        margin-bottom: 8px;
        cursor: pointer;
}
.bdw-es-rate-plan:hover {
        border-color: var(--hsp-action);
}
.bdw-es-rate-plan:has(input:checked) {
        border-color: var(--hsp-action);
        background: var(--hsp-action-soft);
}
.bdw-es-rate-plan-body {
        display: block;
}
.bdw-es-rate-plan-body small {
        display: block;
        color: var(--hsp-text-secondary);
        font-size: 0.85em;
        margin-top: 2px;
}
.bdw-es-rate-plan-policy {
        color: var(--hsp-text-muted) !important;
}

/* Extras ------------------------------------------------------------------ */
.bdw-es-extra {
        padding: 10px 0;
        border-bottom: 1px solid var(--hsp-surface-base);
}
.bdw-es-extra:last-child {
        border-bottom: 0;
}
.bdw-es-extra-head {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
}
.bdw-es-extra-price {
        margin-left: auto;
        font-weight: 600;
}
.bdw-es-extra-required {
        font-size: 0.75em;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        background: var(--hsp-action-soft);
        color: var(--hsp-action-text);
        border-radius: 999px;
        padding: 2px 8px;
}
.bdw-es-extra-desc {
        margin: 4px 0 0;
        font-size: 0.88em;
        color: var(--hsp-text-secondary);
}
.bdw-es-extra-qty-field,
.bdw-es-extra-field {
        display: block;
        margin-top: 8px;
        font-size: 0.88em;
}
.bdw-es-extra-qty-field input,
.bdw-es-extra-field input,
.bdw-es-extra-field select,
.bdw-es-extra-field textarea {
        display: block;
        margin-top: 2px;
}
.bdw-es-extra-stock {
        margin: 6px 0 0;
        font-size: 0.82em;
        color: var(--hsp-warning);
}

/* Coupon ------------------------------------------------------------------ */
.bdw-es-coupon-row {
        display: flex;
        gap: 8px;
        align-items: center;
}
.bdw-es-coupon-row input {
        flex: 1;
        min-width: 0;
}
.bdw-es-coupon-row .bdw-es-btn {
        flex-shrink: 0;
        padding: 10px 16px;
}
.bdw-es-coupon-msg {
        margin: 6px 0 0;
        font-size: 0.88em;
        color: var(--hsp-success);
}
.bdw-es-summary-discount td {
        color: var(--hsp-success);
}

/* Carousel ---------------------------------------------------------------- */
.bdw-es-carousel-wrap {
        margin: 28px 0;
}
.bdw-es-carousel-title {
        margin-bottom: var(--hsp-space-4);
}
.bdw-es-carousel {
        display: flex;
        align-items: stretch;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: thin;
}
.bdw-es-carousel-item {
        flex: 0 0 clamp(240px, 80vw, 320px);
        scroll-snap-align: start;
        /* .property-card's own height:100% needs a definite parent height to
           resolve against; wrapping it in another flex box (which stretches
           its single child by default) is the robust way to get that,
           rather than relying on percentage-height through a plain block. */
        display: flex;
}

/* On the confirmation page the carousel has a fixed, known count (4 cards)
   and the page already has a content-width container — a scroll-snap rail
   sized off vw doesn't need to exist there and is what let cards render at
   uneven widths. A plain grid fills that width evenly instead. */
.bdw-es-confirmation .bdw-es-carousel {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        scroll-snap-type: none;
}
.bdw-es-confirmation .bdw-es-carousel-item {
        flex: none;
        width: auto;
        /* A grid item's default min-width is auto too: without this, whichever
           card has the widest content (e.g. one extra amenity icon) inflates
           just its own column past the other three's equal 1fr share. */
        min-width: 0;
}
@media (max-width: 900px) {
        .bdw-es-confirmation .bdw-es-carousel {
                grid-template-columns: repeat(2, 1fr);
        }
}
@media (max-width: 560px) {
        .bdw-es-confirmation .bdw-es-carousel {
                grid-template-columns: 1fr;
        }
}

/* Map --------------------------------------------------------------------- */
.bdw-es-map {
        border-radius: 10px;
        overflow: hidden;
        z-index: 0;
}
.bdw-es-map-popup img {
        display: block;
        width: 100%;
        max-width: 180px;
        border-radius: 6px;
        margin-bottom: 6px;
}
.bdw-es-map-popup-price {
        display: block;
        font-weight: 600;
        margin-top: 4px;
}

/* Reviews ----------------------------------------------------------------- */
.bdw-es-reviews {
        margin: 32px 0;
}
.bdw-es-reviews-title {
        font-family: var(--hsp-font-brand);
        font-size: var(--hsp-text-xl);
        font-weight: 600;
        color: var(--hsp-text-primary);
        margin-bottom: var(--hsp-space-4);
}
.bdw-es-reviews-aggregate {
        font-size: 0.8em;
        font-weight: 400;
        margin-left: 10px;
        color: var(--hsp-text-secondary);
}
.bdw-es-stars {
        color: var(--hsp-warning);
        letter-spacing: 1px;
}
.bdw-es-reviews-breakdown {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        margin: 0 0 24px;
}
.bdw-es-reviews-breakdown-label {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        font-size: 0.9em;
}
.bdw-es-reviews-breakdown-label span:first-child {
        color: var(--hsp-text-secondary);
}
.bdw-es-reviews-breakdown-bar {
        height: 4px;
        background: var(--hsp-surface-placeholder);
        border-radius: 2px;
        overflow: hidden;
}
.bdw-es-reviews-breakdown-bar div {
        height: 100%;
        background: var(--hsp-action);
        border-radius: 2px;
}
.bdw-es-reviews-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 16px;
}
.bdw-es-review {
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 10px;
        padding: 14px 16px;
}
.bdw-es-review-head {
        display: flex;
        gap: 10px;
        align-items: baseline;
        flex-wrap: wrap;
}
.bdw-es-review-date {
        font-size: 0.82em;
        color: var(--hsp-text-muted);
        margin-left: auto;
}
.bdw-es-review-heading {
        font-weight: 600;
        margin: 8px 0 4px;
}
.bdw-es-review-categories {
        list-style: none;
        margin: 10px 0 0;
        padding: 0;
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        font-size: 0.82em;
        color: var(--hsp-text-secondary);
}
.bdw-es-review-reply {
        margin-top: 10px;
        padding: 10px 12px;
        background: var(--hsp-surface-base);
        border-radius: 8px;
        font-size: 0.9em;
}
.bdw-es-rating-option,
.bdw-es-rating-option-inline {
        display: inline-flex;
        gap: 4px;
        align-items: center;
        margin-right: 12px;
}
.bdw-es-review-category-field {
        border: 0;
        padding: 6px 0;
        margin: 0;
}

/* Online check-in --------------------------------------------------------- */
.bdw-es-checkin {
        max-width: 900px;
}
.bdw-es-checkin-legal {
        font-size: 0.86em;
        color: var(--hsp-text-secondary);
        background: var(--hsp-surface-base);
        border-left: 3px solid var(--hsp-border-strong);
        padding: 10px 14px;
        border-radius: 4px;
}
.bdw-es-traveler {
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 10px;
        padding: 14px 16px;
        margin-bottom: 16px;
}
.bdw-es-traveler legend {
        font-weight: 700;
        padding: 0 6px;
}
.bdw-es-traveler-badge {
        font-size: 0.72em;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        background: var(--hsp-action-soft);
        color: var(--hsp-action-text);
        border-radius: 999px;
        padding: 2px 8px;
        margin-left: 6px;
}
.bdw-es-field-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
}
.bdw-es-field-grid label {
        display: block;
        font-size: 0.88em;
}
.bdw-es-field-grid label > span {
        display: block;
        margin-bottom: 3px;
        color: var(--hsp-text-secondary);
}
.bdw-es-field-grid input,
.bdw-es-field-grid select,
.bdw-es-field-grid textarea {
        width: 100%;
        box-sizing: border-box;
}
.bdw-es-field-wide {
        grid-column: 1 / -1;
}
.bdw-es-field-hint {
        color: var(--hsp-text-muted);
        font-size: 0.8em;
}
.bdw-es-signature-wrap {
        border: 1px solid var(--hsp-border-subtle);
        border-radius: 10px;
        padding: 14px 16px;
        margin: 16px 0;
}
.bdw-es-signature-pad {
        width: 100%;
        max-width: 600px;
        height: auto;
        border: 1px dashed var(--hsp-text-disabled);
        border-radius: 8px;
        background: var(--hsp-surface-raised);
        touch-action: none;
        cursor: crosshair;
}
.bdw-es-signature-pad[aria-invalid="true"] {
        border-color: var(--hsp-danger);
}
.bdw-es-remove-traveler {
        margin-top: 8px;
}

/* ---------- Print (confirmation page "Print receipt" button) ----------
   Only the booking details card is a receipt; everything else on the page
   (site chrome, status banner, next-steps timeline, share/print buttons,
   help block, recommended properties) is navigation or a call to action
   that means nothing on paper. */
@media print {
	.bdw-fe-header,
	.bdw-fe-footer,
	.bdw-es-confirmation-hero,
	.bdw-es-confirmation-actions,
	.bdw-es-confirmation-support,
	.bdw-es-carousel-wrap,
	.bdw-es-confirmation > .bdw-es-confirmation-section {
		display: none !important;
	}

	/* A receipt, not a brand moment: plain black text, no photo, no star
	   rating, no icons, no rounded "card" — just the facts on paper. */
	.bdw-es-confirmation,
	.bdw-es-confirmation .bdw-es-panel,
	.bdw-es-confirmation h1,
	.bdw-es-confirmation h2,
	.bdw-es-confirmation h3,
	.bdw-es-confirmation h4 {
		font-family: Arial, Helvetica, sans-serif !important;
		color: #000 !important;
	}

	/* The WP page title (h1) above the shortcode content is the site's
	   giant brand heading everywhere else — on a receipt it should read
	   like a plain document header, not a page hero. */
	body:has(.bdw-es-confirmation) .bdw-fe-page__title {
		font-family: Arial, Helvetica, sans-serif !important;
		font-size: 18px !important;
		font-weight: 700 !important;
		color: #000 !important;
		margin-bottom: 12px !important;
	}

	.bdw-es-confirmation .bdw-es-panel {
		box-shadow: none;
		border: 1px solid #000;
		border-radius: 0;
	}

	.bdw-es-confirmation-property img,
	.bdw-es-confirmation-rating,
	.bdw-es-confirmation-card i {
		display: none !important;
	}

	.bdw-es-confirmation-ref,
	.bdw-es-confirmation-label {
		color: #000 !important;
	}

	.bdw-es-summary-total td {
		color: #000 !important;
	}
}

/* ---------- Experience page ---------- */
/* A different composition from the property page on purpose: two columns
   only for the fold that needs a persistent price (gallery + heading next
   to the price card), full width for everything else. See
   experience-single.php's file docblock. */

.experience-breadcrumb {
	max-width: var(--hsp-container);
	margin: 0 auto;
	padding: var(--hsp-space-4) var(--hsp-space-4) 0;
}

.experience-top {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: var(--hsp-space-6);
	max-width: var(--hsp-container);
	margin: 0 auto;
	padding: var(--hsp-space-4) var(--hsp-space-4) var(--hsp-space-6);
	/* Deliberately no align-items:start: the aside needs to stretch to the
	   left column's full height so its price card has room to travel and
	   stick, instead of being pinned flush against a short parent. */
}

.experience-top > * {
	min-width: 0;
}

.experience-top__main .section-heading {
	margin-top: var(--hsp-space-2);
	margin-bottom: var(--hsp-space-5);
}

.experience-price-card {
	position: sticky;
	top: 80px;
	margin-top: var(--hsp-space-6);
	box-shadow: none;
}

.experience-body {
	max-width: var(--hsp-container);
	margin: 0 auto;
	padding: 0 var(--hsp-space-4) var(--hsp-space-6);
}

.experience-wide-section {
	max-width: var(--hsp-measure);
}

.experience-wide-section--host,
.experience-wide-section--stats {
	max-width: none;
}

 */
.experience-top__aside {
	padding: 0 var(--hsp-space-5);
}

.experience-price-card {
	padding-left: 0;
	padding-right: 0;
}

/* Compact experience price card: 10px internal padding and
   smaller items so the content fits the fixed box without
   changing the box size. */
.experience-price-card .bdw-fe-experience-widget {
	padding: 20px;
}

.experience-price-card .booking-price {
	font-size: var(--hsp-text-xl);
	margin-bottom: var(--hsp-space-2);
}

.experience-price-card .booking-price span {
	font-size: var(--hsp-text-sm);
}

.experience-price-card__host {
	padding: var(--hsp-space-2) 0;
	margin: var(--hsp-space-1) 0;
	gap: var(--hsp-space-2);
	font-size: var(--hsp-text-xs);
}

.experience-price-card__host-photo {
	width: 28px;
	height: 28px;
}

.experience-price-card .bdw-es-btn {
	padding: var(--hsp-space-2) var(--hsp-space-3);
}

.experience-price-card .bdw-es-smallprint {
	font-size: 11px;
	margin-top: var(--hsp-space-1);
	margin-bottom: 0;
}

.experience-price-card .booking-guarantees {
	margin-top: var(--hsp-space-2);
}


.experience-summary__actions {
	display: flex;
	justify-content: flex-start;
	gap: var(--hsp-space-2);
	margin: 0 0 var(--hsp-space-4);
}

.experience-summary__category {
	margin-bottom: var(--hsp-space-2);
}

.experience-summary__title {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-2xl);
	font-weight: 600;
	color: var(--hsp-text-primary);
	margin: 0 0 var(--hsp-space-2);
}

.experience-summary__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-4);
	margin-bottom: var(--hsp-space-4);
}

.experience-summary__description {
	margin-bottom: var(--hsp-space-5);
}

.experience-summary__block {
	margin-bottom: var(--hsp-space-5);
}

.summary-label {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	color: var(--hsp-text-primary);
	margin: 0 0 var(--hsp-space-2);
}

.summary-text {
	color: var(--hsp-text-secondary);
	font-size: var(--hsp-text-sm);
	line-height: 1.6;
	margin: 0;
}

.summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--hsp-text-secondary);
	font-size: var(--hsp-text-sm);
	line-height: 1.9;
}

.experience-gallery__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 6px;
	aspect-ratio: 16 / 10;
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	margin-bottom: var(--hsp-space-6);
}

.experience-gallery__grid--count-1 {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.experience-gallery__grid--count-2,
.experience-gallery__grid--count-3 {
	grid-template-rows: 1fr;
}

.experience-gallery__grid--count-3 .experience-gallery__photo:first-child {
	grid-row: 1 / 3;
}

.experience-gallery__grid--count-3 {
	grid-template-rows: 1fr 1fr;
}

.experience-gallery__photo {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--hsp-surface-sunken);
}

.experience-gallery__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.experience-gallery__photo:hover img {
	transform: scale(1.03);
}

.experience-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-family: var(--hsp-font-brand);
	font-weight: 600;
}

@media (max-width: 768px) {
	.experience-top {
		grid-template-columns: 1fr;
	}

	.experience-price-card {
		position: static;
	}

	.experience-gallery__grid {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.experience-top {
		grid-template-columns: 1fr 300px;
	}
}

.experience-price-card__host {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-3);
	padding: var(--hsp-space-4) 0;
	margin: var(--hsp-space-2) 0;
	border-top: 1px solid var(--hsp-border-subtle);
	border-bottom: 1px solid var(--hsp-border-subtle);
	font-size: var(--hsp-text-sm);
	color: var(--hsp-text-primary);
}

.experience-price-card__host-photo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.experience-price-card__host-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hsp-surface-base);
	color: var(--hsp-text-muted);
}

.itinerary-list {
	list-style: none;
	margin: var(--hsp-space-5) 0 0;
	padding: 0;
}

.itinerary-step {
	display: flex;
	gap: var(--hsp-space-4);
	padding-bottom: var(--hsp-space-5);
	margin-bottom: var(--hsp-space-5);
	border-bottom: 1px solid var(--hsp-border-subtle);
}

.itinerary-step:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.itinerary-step__index {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hsp-surface-base);
	color: var(--hsp-action);
	font-family: var(--hsp-font-brand);
	font-weight: 600;
}

.itinerary-step__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.itinerary-step__title {
	font-family: var(--hsp-font-brand);
	color: var(--hsp-text-primary);
}

.itinerary-step__description {
	color: var(--hsp-text-secondary);
	line-height: 1.6;
}

.meeting-point {
	display: flex;
	gap: var(--hsp-space-3);
	align-items: flex-start;
}

/* Full-width placement (experience-info.php) gets the padded card look;
   the narrow price-card sidebar this used to live in did not have room
   for it, so the bare .meeting-point above stays available for that
   context if it's ever reused there again. */
.meeting-point--card {
	gap: var(--hsp-space-4);
	background: var(--hsp-surface-base);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
}

.meeting-point__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hsp-surface-base);
	color: var(--hsp-action);
	font-size: 13px;
}

.meeting-point--card .meeting-point__icon {
	width: 40px;
	height: 40px;
	background: var(--hsp-surface-raised);
	font-size: 18px;
}

.meeting-point__address {
	font-family: var(--hsp-font-brand);
	font-weight: 600;
	color: var(--hsp-text-primary);
	margin-bottom: 2px;
}

.requirement-list {
	list-style: none;
	margin: 0 0 var(--hsp-space-4);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--hsp-space-2);
}

.requirement-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--hsp-space-2);
	color: var(--hsp-text-secondary);
	font-size: var(--hsp-text-sm);
}

.requirement-list li i {
	color: var(--hsp-action);
	margin-top: 3px;
}

.host-card {
	display: flex;
	gap: var(--hsp-space-4);
	align-items: center;
}

.host-card__photo {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.host-card__photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hsp-surface-raised);
	color: var(--hsp-text-muted);
	font-size: 22px;
}

.host-card__name {
	display: block;
	font-family: var(--hsp-font-brand);
	color: var(--hsp-text-primary);
	margin-bottom: 4px;
}

.host-card__bio {
	color: var(--hsp-text-secondary);
	font-size: var(--hsp-text-sm);
	line-height: 1.6;
	margin: 0;
}

.experience-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--hsp-space-5);
}

.experience-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.experience-stat__icon {
	color: var(--hsp-action);
	font-size: 18px;
	margin-bottom: 2px;
}

.experience-stat__label {
	font-size: var(--hsp-text-xs);
	color: var(--hsp-text-secondary);
}

.experience-stat__value {
	font-family: var(--hsp-font-brand);
	font-size: var(--hsp-text-base);
	font-weight: 600;
	color: var(--hsp-text-primary);
}

.experience-stat__value--strong {
	font-size: var(--hsp-text-lg);
}

.bdw-fe-experience-widget .booking-price {
	margin-bottom: var(--hsp-space-4);
}

.bdw-fe-experience-widget .bdw-es-smallprint {
	color: var(--hsp-text-muted);
	font-size: var(--hsp-text-xs);
	margin-top: var(--hsp-space-2);
	text-align: center;
}

/* The teaser card is designed for the homepage grid, whose parent supplies
   the image's aspect-ratio sizing (bdw-fe-theme.css); reused in a carousel
   item here, it needs that same sizing repeated against its own parent. */
.bdw-es-carousel-item .property-teaser-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.bdw-es-carousel-item .property-teaser-card:hover .property-teaser-card__image {
	transform: scale(1.03);
}

.property-teaser-card__meta {
	display: block;
	font-size: var(--hsp-text-xs);
	color: var(--hsp-text-muted);
	margin-bottom: 2px;
}
