.hrb-wrap {
	--hrb-bg: #ffffff;
	--hrb-text: #1a1d1f;
	--hrb-available: #10b981;
	--hrb-booked: #e11d48;
	--hrb-pending: #f59e0b;
	--hrb-bar: #5a58f2;
	--hrb-bar-hover: #4846d9;
	--hrb-selected: #5a58f2;
	--hrb-muted: #6f767e;
	--hrb-line: rgba(15, 23, 42, 0.1);
	--hrb-radius: 14px;
	position: relative;
	color: var(--hrb-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	margin: 0;
	width: 100%;
	max-width: 560px;
	-webkit-font-smoothing: antialiased;
}

.hrb-wrap *,
.hrb-wrap *::before,
.hrb-wrap *::after {
	box-sizing: border-box;
}

.hrb-booking {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	transition: opacity 0.2s ease;
}

.hrb-wrap.is-loading {
	opacity: 0;
	min-height: 0;
	overflow: hidden;
}

.hrb-wrap.is-ready {
	opacity: 1;
}

.hrb-date-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: stretch;
}

.hrb-booking-title {
	display: none;
}

.hrb-date-sep {
	display: none;
}

.hrb-wrap.hrb-booking .hrb-date-field,
.hrb-wrap .hrb-date-field,
button.hrb-date-field {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
	min-height: 58px !important;
	padding: 12px 16px !important;
	margin: 0 !important;
	border: 1.5px solid var(--hrb-field-border, #fff) !important;
	border-color: var(--hrb-field-border, #fff) !important;
	border-radius: var(--hrb-field-radius, 4px) !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--hrb-field-text, #fff) !important;
	font-family: var(--hrb-field-font-family, inherit) !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.hrb-wrap.hrb-booking .hrb-date-field:hover,
.hrb-wrap.hrb-booking .hrb-date-field:focus,
.hrb-wrap.hrb-booking .hrb-date-field.is-active,
.hrb-wrap.hrb-booking .hrb-date-field[aria-expanded="true"],
.hrb-wrap .hrb-date-field:hover,
.hrb-wrap .hrb-date-field:focus,
.hrb-wrap .hrb-date-field.is-active,
.hrb-wrap .hrb-date-field[aria-expanded="true"],
button.hrb-date-field:hover,
button.hrb-date-field:focus,
button.hrb-date-field.is-active,
button.hrb-date-field[aria-expanded="true"] {
	background: transparent !important;
	background-color: transparent !important;
	border-color: var(--hrb-field-hover-border, var(--hrb-field-border, #fff)) !important;
	color: var(--hrb-field-hover-text, var(--hrb-field-text, #fff)) !important;
	box-shadow: none !important;
	transform: none;
}

.hrb-wrap .hrb-date-field__icon,
.hrb-wrap .hrb-date-field__text,
.hrb-wrap .hrb-date-field__hint,
.hrb-wrap .hrb-date-field__value {
	color: inherit !important;
}

.hrb-wrap .hrb-date-field__icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: calc(var(--hrb-field-icon-size, 22px) + 14px) !important;
	height: calc(var(--hrb-field-icon-size, 22px) + 14px) !important;
	flex: 0 0 auto !important;
	order: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid currentColor !important;
	border-radius: 4px !important;
	background: rgba(255, 255, 255, 0.08) !important;
	line-height: 0 !important;
	opacity: 1;
}

.hrb-wrap .hrb-date-field__icon svg {
	display: block !important;
	width: var(--hrb-field-icon-size, 22px) !important;
	height: var(--hrb-field-icon-size, 22px) !important;
	fill: currentColor !important;
	color: inherit !important;
}

.hrb-wrap .hrb-date-field__icon svg path {
	fill: currentColor !important;
	stroke: none !important;
	color: inherit !important;
}

.hrb-wrap .hrb-date-field__text {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 2px !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	line-height: 1.2 !important;
}

.hrb-wrap .hrb-date-field__hint {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: calc(var(--hrb-field-font-size, 15px) - 3px) !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	opacity: 0.78;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 100%;
}

.hrb-wrap .hrb-date-field__value {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
	width: 100% !important;
	flex: none !important;
	font-size: var(--hrb-field-font-size, 15px) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	text-align: left !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	background: transparent !important;
	opacity: 1;
}

.hrb-wrap .hrb-date-field__value.is-placeholder {
	display: block !important;
	opacity: 0.72;
	font-weight: 500 !important;
}

.hrb-wrap .hrb-date-field.has-value .hrb-date-field__hint {
	opacity: 0.7;
}

.hrb-wrap .hrb-date-field.has-value .hrb-date-field__value {
	opacity: 1;
	font-weight: 700 !important;
}

.hrb-picker {
	position: absolute;
	z-index: 40;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	min-width: min(100%, 380px);
	padding: 16px;
	background: var(--hrb-bg);
	border: 1px solid var(--hrb-line);
	border-radius: var(--hrb-radius, 14px);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -18px rgba(15, 23, 42, 0.28);
}

/* Elementor popup: keep calendar usable above modal layers */
.elementor-popup-modal .hrb-wrap,
.elementor-location-popup .hrb-wrap {
	overflow: visible;
	position: relative;
	z-index: 2;
}

.elementor-popup-modal .hrb-picker,
.elementor-location-popup .hrb-picker {
	z-index: 100050;
}

.elementor-popup-modal .dialog-message,
.elementor-popup-modal .dialog-widget-content,
.elementor-popup-modal .elementor-section,
.elementor-popup-modal .elementor-container,
.elementor-popup-modal .elementor-widget-wrap,
.elementor-popup-modal .elementor-element {
	overflow: visible !important;
}

.hrb-picker[hidden] {
	display: none !important;
}

.hrb-picker__hint {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: color-mix(in srgb, #5a58f2 8%, #f8fafc);
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	border: 1px solid color-mix(in srgb, #5a58f2 14%, transparent);
}

.hrb-picker__hint:empty {
	display: none;
}

.hrb-calendar.is-loading {
	min-height: 180px;
	opacity: 0.45;
	pointer-events: none;
}

.hrb-calendar.is-ready {
	opacity: 1;
}

.hrb-calendar__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.7rem;
}

.hrb-calendar__nav h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1a1d1f;
}

.hrb-nav-group {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.hrb-wrap .hrb-nav,
.hrb-booking .hrb-nav,
button.hrb-nav {
	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;
	margin: 0 !important;
	border: 1px solid rgba(15, 23, 42, 0.1) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	color: #64748b !important;
	padding: 0 !important;
	line-height: 0 !important;
	opacity: 1;
	overflow: hidden;
	appearance: none;
	-webkit-appearance: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hrb-wrap .hrb-nav svg,
.hrb-booking .hrb-nav svg,
button.hrb-nav svg {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin: 0;
}

.hrb-wrap .hrb-nav:hover,
.hrb-booking .hrb-nav:hover,
button.hrb-nav:hover {
	opacity: 1;
	color: #5a58f2 !important;
	border-color: color-mix(in srgb, #5a58f2 30%, transparent) !important;
	background: color-mix(in srgb, #5a58f2 10%, white) !important;
}

.hrb-calendar__weekdays,
.hrb-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.hrb-calendar__weekdays {
	margin-bottom: 0.25rem;
	color: #333;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.hrb-calendar__weekdays span {
	padding: 0.2rem 0;
}

.hrb-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border: 0;
	border-radius: 10px;
	padding: 0;
	background: #f1f5f9;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.hrb-day.is-free {
	background: color-mix(in srgb, var(--hrb-available, #10b981) 88%, white);
	color: #fff;
}

.hrb-day.is-empty {
	background: transparent;
	cursor: default;
	pointer-events: none;
	min-height: 38px;
}

.hrb-day__num,
.hrb-day__price {
	display: none;
}

.hrb-day.is-free:hover:not(:disabled):not(.is-start):not(.is-end):not(.is-in-range) {
	filter: brightness(0.92);
}

.hrb-day.is-past {
	opacity: 0.35;
	cursor: not-allowed;
	filter: grayscale(0.15);
}

.hrb-day.is-booked,
.hrb-day.is-blocked {
	background: var(--hrb-booked, #c23061) !important;
	color: #fff !important;
	cursor: not-allowed;
}

.hrb-day.is-pending:not(.is-booked):not(.is-blocked) {
	background: var(--hrb-pending, #ca8e46) !important;
	color: #fff !important;
	cursor: not-allowed;
}

.hrb-day.is-changeover {
	background: var(--hrb-available, #6bbf59);
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
}

.hrb-day.is-changeover::before,
.hrb-day.is-changeover.is-pending-split::before,
.hrb-day.is-start::before,
.hrb-day.is-end::before,
.hrb-day.is-in-range::before,
.hrb-day.is-preview::before {
	display: none;
}

.hrb-day.is-changeover .hrb-day__num,
.hrb-day.is-changeover {
	color: #fff;
	z-index: 1;
}

.hrb-day.is-start,
.hrb-day.is-end,
.hrb-day.is-in-range,
.hrb-day.is-preview {
	background: var(--hrb-selected, #4a90d9);
	color: #fff;
}

.hrb-day.is-free:hover:not(:disabled):not(.is-start):not(.is-end):not(.is-in-range),
.hrb-day.is-changeover:hover:not(:disabled):not(.is-start):not(.is-end) {
	filter: brightness(0.92);
}

.hrb-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
	align-items: center;
	margin: 0.75rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid var(--hrb-line);
	font-size: 0.75rem;
	color: #444;
}

.hrb-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.hrb-legend__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 6px;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.hrb-legend__swatch.is-free {
	background: var(--hrb-available, #6bbf59);
	color: #fff;
	box-shadow: none;
}

.hrb-legend__swatch.is-booked {
	background: var(--hrb-booked, #c23061);
	color: #fff;
}

.hrb-legend__swatch.is-pending {
	background: var(--hrb-pending, #ca8e46);
	color: #fff;
}

.hrb-summary {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	font-size: var(--hrb-summary-font-size, 15px);
	font-family: var(--hrb-summary-font-family, inherit);
	color: var(--hrb-summary-text, #fff) !important;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hrb-summary__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hrb-summary__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border: 0;
	border-radius: 0;
	color: inherit;
	opacity: 1;
}

.hrb-wrap[data-summary-icon-border="yes"] .hrb-summary__icon {
	width: 28px;
	height: 28px;
	flex-basis: 28px;
	border: 1px solid currentColor;
	border-radius: 50%;
}

.hrb-summary__icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.hrb-wrap[data-summary-icon-border="yes"] .hrb-summary__icon svg {
	width: 14px;
	height: 14px;
}

.hrb-summary__text {
	min-width: 0;
}

.hrb-summary strong {
	color: var(--hrb-summary-strong, #fff) !important;
	font-weight: 700;
}

.hrb-summary[hidden] {
	display: none;
}

.hrb-btn-locked,
.hrb-btn-locked .elementor-button,
.elementor-button.hrb-btn-locked,
a.hrb-btn-locked {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

.hrb-btn-ready,
.hrb-btn-ready .elementor-button,
.elementor-button.hrb-btn-ready,
a.hrb-btn-ready {
	opacity: 1 !important;
	cursor: pointer !important;
	pointer-events: auto;
}

.hrb-wrap.hrb-search {
	max-width: 720px;
}

.hrb-results {
	margin-top: 18px;
}

.hrb-results[hidden] {
	display: none !important;
}

.hrb-results__status {
	margin: 0;
	padding: 14px 0;
	color: var(--hrb-summary-text, #fff);
	font-size: var(--hrb-summary-font-size, 15px);
	font-family: var(--hrb-summary-font-family, inherit);
}

.hrb-results__status.is-error {
	color: #ffb4b4;
}

.hrb-results__header {
	margin: 0 0 12px;
	color: var(--hrb-summary-text, #fff);
	font-size: var(--hrb-summary-font-size, 15px);
	font-family: var(--hrb-summary-font-family, inherit);
}

.hrb-results__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.hrb-room-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	align-items: stretch;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--hrb-summary-text, #fff);
	backdrop-filter: blur(6px);
}

.hrb-room-card.is-unavailable {
	opacity: 0.62;
}

.hrb-room-card__media {
	overflow: hidden;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
	min-height: 88px;
}

.hrb-room-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 88px;
}

.hrb-room-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hrb-room-card__title {
	margin: 0;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.hrb-room-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.92em;
	opacity: 0.85;
}

.hrb-room-card__total {
	margin: 0;
	font-size: 0.95em;
}

.hrb-room-card__total strong {
	font-weight: 700;
}

.hrb-room-card__total.is-unavailable {
	opacity: 0.8;
}

.hrb-room-card__actions {
	margin-top: auto;
	padding-top: 4px;
}

.hrb-room-card__book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--hrb-bar, #5a58f2);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px -12px rgba(90, 88, 242, 0.85);
	transition: background 0.2s ease, transform 0.15s ease;
}

.hrb-room-card__book:hover,
.hrb-room-card__book:focus {
	background: var(--hrb-bar-hover, #4846d9);
	border-color: transparent;
	color: #fff;
	outline: none;
}

.hrb-room-card__book:disabled {
	opacity: 0.55;
	cursor: wait;
}

.hrb-room-card__link {
	color: inherit;
	text-decoration: underline;
	font-size: 0.92em;
}

@media (max-width: 560px) {
	.hrb-wrap {
		max-width: 100%;
	}

	.hrb-date-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.hrb-picker {
		left: 0;
		right: 0;
		min-width: 0;
	}

	.hrb-room-card {
		grid-template-columns: 1fr;
	}

	.hrb-room-card__media {
		min-height: 140px;
	}

	.hrb-room-card__media img {
		min-height: 140px;
	}

	.hrb-day {
		min-height: 34px;
		font-size: 0.85rem;
	}
}
