.tn-booking-modal[hidden] {
	display: none !important;
}

.tn-booking-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.tn-booking-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
	overflow: hidden;
}

.tn-booking-modal__header {
	padding: 24px 24px 0;
}

.tn-booking-modal__title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.25;
}

.tn-booking-modal__body {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 24px;
}

.tn-booking-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.08);
	color: #0f172a;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tn-booking-modal__close:hover,
.tn-booking-modal__close:focus-visible {
	background: rgba(15, 23, 42, 0.16);
	transform: scale(1.05);
}

.tn-booking-modal__close:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 2px;
}

.tn-booking-modal__footer {
	padding: 16px 24px 24px;
	background: #fff;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.tn-booking-modal-open {
	overflow: hidden;
	padding-right: var(--tn-modal-scrollbar-compensation, 0px);
}

.tn-booking-modal .tn-search-form {
	box-shadow: none;
	border-radius: 0;
}

.tn-booking-modal .tn-search-results {
	padding-bottom: 8px;
}

.tn-booking-modal .tn-search-form__summary {
	flex-wrap: wrap;
	gap: 16px;
}

.tn-booking-modal .tn-search-summary__item {
	flex: 1 1 calc(33.333% - 16px);
	max-width: calc(33.333% - 16px);
}

.tn-booking-modal .tn-search-summary__divider {
	display: none;
}

.tn-booking-modal .tn-search-summary__value {
	white-space: normal;
	word-break: break-word;
}

@media (max-width: 1024px) {
	.tn-booking-modal {
		padding: 16px;
	}

	.tn-booking-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 32px);
		border-radius: 12px;
	}

	.tn-booking-modal .tn-search-summary__item {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.tn-booking-modal .tn-search-summary__divider {
		display: block;
	}
}

@media (max-width: 640px) {
	.tn-booking-modal {
		padding: 0;
		align-items: stretch;
	}

	.tn-booking-modal__dialog {
		border-radius: 0;
		min-height: 100vh;
		max-height: none;
	}

	.tn-booking-modal__header {
		padding: 20px 20px 0;
	}

	.tn-booking-modal__body {
		padding: 20px;
	}
}
