/* Elementor / shared Availability Search Form */
.hb-el-search {
	--hb-control-h: 48px;
	background: #fff;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid #e4e9ed;
	box-shadow: 0 10px 28px rgba(20, 33, 43, 0.08);
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	position: relative;
	z-index: 5;
}

.hb-avail-search {
	--hb-control-h: 48px;
	width: 100%;
}

.hb-avail-search__primary {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: flex-end !important;
	gap: 12px;
	width: 100%;
}

.hb-avail-search--vertical .hb-avail-search__primary {
	flex-direction: column !important;
	align-items: stretch !important;
	flex-wrap: wrap;
}

.hb-el-search--results .hb-avail-search__primary {
	flex-wrap: wrap;
}

.hb-avail-search__field {
	flex: 1 1 0;
	min-width: 0;
	display: flex !important;
	flex-direction: column !important;
	position: relative;
	float: none !important;
	width: auto !important;
	max-width: none !important;
}

.hb-avail-search__field--location,
.hb-avail-search__field--dates {
	flex: 1.4 1 160px;
}

.hb-avail-search__field--guests {
	flex: 0 1 170px;
	min-width: 150px;
}

.hb-avail-search__field--filters {
	flex: 0 1 180px;
	min-width: 160px;
}

.hb-avail-search__primary > .hb-avail-search__btn {
	flex: 0 0 auto;
	align-self: flex-end;
}

.hb-avail-search__label {
	display: block;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #14212b;
	margin: 0 0 6px;
	line-height: 1.3;
}

/* Structural !important only — colors/type/border/spacing are Elementor-editable */
.hb-avail-search__input,
.hb-avail-search__select,
.elementor-widget .hb-avail-search__input,
.elementor-widget .hb-avail-search__select {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	min-height: var(--hb-control-h);
	height: auto;
	padding: 0 14px;
	margin: 0;
	border: 1px solid #e4e9ed;
	border-radius: 10px;
	background-color: #f4f7f8;
	color: #14212b;
	font-size: 15px;
	font-weight: 500;
	line-height: calc(var(--hb-control-h) - 2px);
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	text-shadow: none;
	box-shadow: none;
	outline: none;
	cursor: text;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.hb-avail-search__select,
.elementor-widget .hb-avail-search__select {
	cursor: pointer;
	padding-right: 32px;
	background-image: linear-gradient(45deg, transparent 50%, #5c6b76 50%),
		linear-gradient(135deg, #5c6b76 50%, transparent 50%);
	background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.hb-avail-search__guests-toggle,
.hb-avail-search__filters-toggle,
.elementor-widget .hb-avail-search__guests-toggle,
.elementor-widget .hb-avail-search__filters-toggle {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px;
	width: 100% !important;
	min-height: var(--hb-control-h);
	height: auto;
	padding: 0 14px;
	margin: 0;
	border: 1px solid #e4e9ed;
	border-radius: 10px;
	background-color: #f4f7f8;
	color: #14212b;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	text-shadow: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.hb-avail-search__input:focus,
.hb-avail-search__select:focus,
.hb-avail-search__guests-toggle:focus,
.hb-avail-search__filters-toggle:focus {
	border-color: var(--hb-search-accent, #1f6f5b);
	background-color: #fff;
}

.hb-avail-search__guests-toggle span,
.hb-avail-search__filters-toggle > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.hb-avail-search__filters-count {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	min-width: 22px !important;
	height: 22px !important;
	padding: 0 6px !important;
	border-radius: 999px !important;
	background: var(--hb-search-accent, #1f6f5b) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

/* Structural only with !important — colors/type/spacing/border are Elementor-editable */
.hb-avail-search__btn,
.hb-el-search__btn,
.elementor-widget .hb-avail-search__btn,
.elementor-widget .hb-el-search__btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	min-height: var(--hb-control-h);
	height: auto;
	padding: 0 22px;
	margin: 0;
	border-style: solid;
	border-width: 0;
	border-color: transparent;
	border-radius: 12px;
	background-color: var(--hb-search-accent, #1f6f5b);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.hb-avail-search__btn svg,
.elementor-widget .hb-avail-search__btn svg {
	display: block !important;
	width: 1.15em !important;
	height: 1.15em !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	stroke: currentColor !important;
	fill: none !important;
	position: static !important;
	transform: none !important;
}

.hb-avail-search__btn span,
.elementor-widget .hb-avail-search__btn span {
	display: inline-flex !important;
	align-items: center !important;
	line-height: inherit !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
}

.hb-avail-search__btn:hover,
.hb-el-search__btn:hover {
	background-color: var(--hb-search-accent-hover, #185a4a);
	color: #fff;
}

/* Guests popover */
.hb-avail-search__guests-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	width: min(280px, 90vw);
	padding: 14px;
	background: #fff;
	border: 1px solid #e4e9ed;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(20, 33, 43, 0.14);
}

.hb-avail-search__field--guests.is-open {
	z-index: 50;
}

.hb-avail-search__stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eef2f4;
}

.hb-avail-search__stepper:last-of-type {
	border-bottom: 0;
}

.hb-avail-search__stepper strong {
	display: block;
	font-size: 14px;
}

.hb-avail-search__stepper span {
	font-size: 12px;
	color: #5c6b76;
}

.hb-avail-search__stepper-controls {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Beat Elementor/theme button padding inside the guests popover */
.hb-avail-search__guests-pop .hb-avail-search__stepper-controls button,
.hb-avail-search__guests-pop .hb-avail-search__stepper-controls .hb-icon-btn,
.hb-avail-search__stepper-controls button,
.hb-avail-search__stepper-controls .hb-icon-btn,
.elementor-widget .hb-avail-search__guests-pop button.hb-icon-btn,
.elementor-element .hb-avail-search__guests-pop button[data-hb-guest-step] {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 1px solid #cfd8de !important;
	background: #fff !important;
	color: #5c6b76 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	text-indent: 0 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.hb-avail-search__guests-pop .hb-icon-btn svg,
.hb-avail-search__guests-pop button[data-hb-guest-step] svg,
.hb-avail-search__stepper-controls button svg,
.hb-avail-search__stepper-controls .hb-icon-btn svg,
.elementor-widget .hb-avail-search__guests-pop .hb-icon-btn svg {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	max-width: 14px !important;
	max-height: 14px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	flex: 0 0 14px !important;
	stroke: currentColor !important;
	fill: none !important;
	pointer-events: none !important;
	position: static !important;
	transform: none !important;
}

.hb-avail-search__guests-pop .hb-icon-btn svg path,
.hb-avail-search__stepper-controls .hb-icon-btn svg path,
.elementor-widget .hb-avail-search__guests-pop .hb-icon-btn svg path {
	stroke: currentColor !important;
	fill: none !important;
}

.hb-avail-search__guests-pop .hb-icon-btn:hover,
.hb-avail-search__stepper-controls button:hover,
.hb-avail-search__stepper-controls .hb-icon-btn:hover {
	border-color: var(--hb-search-accent, #1f6f5b) !important;
	color: var(--hb-search-accent, #1f6f5b) !important;
	background: #fff !important;
}

.hb-avail-search__guests-done {
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background: #14212b;
	color: #fff;
	font-weight: 650;
	cursor: pointer;
}

/* Extras / amenities */
.hb-avail-search__extras {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e4e9ed;
}

.hb-avail-search__extras-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-end;
	margin-bottom: 16px;
}

.hb-avail-search__extras-row > .hb-avail-search__field {
	flex: 1 1 140px;
	min-width: 120px;
}

.hb-avail-search__field--price {
	flex: 1 1 180px;
}

.hb-avail-search__price-range {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.hb-avail-search__price-range span {
	flex: 0 0 auto;
	line-height: 1;
	color: #5c6b76;
}

.hb-avail-search__price-range input {
	min-width: 0 !important;
	flex: 1 1 0 !important;
}

.hb-avail-search__check {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	min-height: var(--hb-control-h) !important;
	height: var(--hb-control-h) !important;
	padding: 0 14px !important;
	margin: 0 !important;
	border: 1px solid #e4e9ed !important;
	background: #f4f7f8 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	flex: 0 1 auto;
	white-space: nowrap;
}

.hb-avail-search__check input {
	margin: 0 !important;
	flex: 0 0 auto;
}

.hb-avail-search__amenities {
	margin-top: 4px;
}

.hb-avail-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hb-avail-search__chip {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

.hb-avail-search__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hb-avail-search__chip span {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 36px !important;
	padding: 0 14px !important;
	border-radius: 999px !important;
	border: 1px solid #d7dee3 !important;
	background: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	color: #14212b !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hb-avail-search__chip:hover span {
	border-color: var(--hb-search-accent, #1f6f5b);
}

.hb-avail-search__chip:has(input:checked) span,
.hb-avail-search__chip input:checked + span {
	background: var(--hb-search-accent, #1f6f5b);
	border-color: var(--hb-search-accent, #1f6f5b);
	color: #fff;
}

.hb-avail-search__more-amenities {
	margin-top: 12px;
}

.hb-avail-search__more-amenities summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--hb-search-accent, #1f6f5b);
	margin-bottom: 10px;
}

.hb-avail-search__amenity-group {
	margin-bottom: 14px;
}

.hb-avail-search__amenity-group-title {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5c6b76;
}

/* Shortcode panel uses same markup */
.hb-search-panel .hb-avail-search__primary {
	align-items: stretch;
}

.hb-search-form.hb-avail-search .hb-avail-search__btn {
	margin: 0 !important;
}

.hb-el-search--results,
.hb-search-wrapper--results .hb-search-panel.hb-el-search {
	padding: 20px;
	margin-bottom: 28px;
}

.hb-el-search--results .hb-avail-search__extras.is-open,
.hb-search-wrapper--results .hb-avail-search__extras.is-open {
	display: block;
}

.hb-search-wrapper--results .hb-avail-search__extras[hidden] {
	display: none !important;
}

@media (max-width: 900px) {
	.hb-avail-search__primary {
		flex-wrap: wrap !important;
	}

	.hb-avail-search__field--location,
	.hb-avail-search__field--dates {
		flex: 1 1 calc(50% - 12px);
	}
}

@media (max-width: 720px) {
	.hb-avail-search__primary {
		flex-direction: column !important;
		align-items: stretch !important;
		flex-wrap: wrap !important;
	}

	.hb-avail-search__field,
	.hb-avail-search__field--location,
	.hb-avail-search__field--dates,
	.hb-avail-search__field--guests,
	.hb-avail-search__field--filters {
		flex: 1 1 auto !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	.hb-avail-search__btn,
	.hb-avail-search__primary > .hb-avail-search__btn {
		width: 100%;
	}

	.hb-avail-search__guests-pop {
		left: 0;
		right: 0;
		width: auto;
	}
}

/* Legacy class hooks kept for Elementor selectors */
.hb-el-search__form {
	display: block;
}

.hb-el-search__label {
	display: block;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #14212b;
	margin-bottom: 6px;
}

.hb-el-search__input,
.hb-el-search__select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e4e9ed;
	border-radius: 10px;
	background: #f4f7f8;
	color: #14212b;
	font-size: 15px;
	outline: none;
}

.hb-el-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border: none;
	border-radius: 12px;
	background: var(--hb-search-accent, #1f6f5b);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
