/**
 * Pelican Units - Booking page (step 1) styles.
 *
 * Covers the size-switcher controls, mobile payment bar,
 * map card, and loading state. Layout and typography for
 * .booking-step-page, .booking-step-unit, .booking-summary-card
 * etc. are provided by the theme.
 */

/* Loading state ----------------------------------------------------------- */
#main_unit_content.is-loading-unit {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* Size switcher controls -------------------------------------------------- */
.booking-step-unit__size-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 64px 64px;
	gap: 16px;
	align-items: center;
}

.booking-step-unit__size-select-wrap {
	position: relative;
	min-height: 64px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	background: #fff;
	padding: 0 28px;
}

.booking-step-unit__size-icon {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	color: #17191c;
	pointer-events: none;
}

.booking-step-unit__size-select {
	grid-column: 2;
	justify-self: center;
	width: auto;
	min-width: 120px;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	background-image: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	box-shadow: none !important;
	font: inherit;
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	color: #17191c;
	text-align: center;
	text-align-last: center;
	padding: 0;
	cursor: pointer;
}

.booking-step-unit__size-select::-ms-expand {
	display: none;
}

.booking-step-unit__size-select,
.booking-step-unit__size-select:hover,
.booking-step-unit__size-select:active,
.booking-step-unit__size-select:focus {
	background: transparent !important;
	background-image: none !important;
	background-position: initial !important;
	background-repeat: initial !important;
}

.booking-step-unit__size-select:focus,
.booking-step-unit__size-select:focus-visible {
	outline: none;
	box-shadow: none !important;
}

.booking-step-unit__size-select-label {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #8f8f8f;
	pointer-events: none;
}

.booking-step-unit__size-select-label::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 16px 16px;
	mask-size: 16px 16px;
	flex: 0 0 auto;
}

.booking-step-unit__qty-btn {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	background: #fff;
	color: #17191c;
	cursor: pointer;
}

.booking-step-unit__qty-btn svg {
	width: 32px;
	height: 32px;
}

.booking-step-unit__qty-btn.is-disabled,
.booking-step-unit__qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Insurance layout overrides --------------------------------------------- */
.booking-step-summary__insurance-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 0;
}

.booking-step-summary__insurance-control--full {
	max-width: none;
	margin-top:10px;
}

/* Insurance warning ------------------------------------------------------ */
.booking-step-summary__insurance-warning {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	font-size: 13px;
	line-height: 1.45;
	color: #92400e;
}

.booking-step-summary__insurance-warning svg {
	flex: 0 0 16px;
	margin-top: 1px;
}

.booking-step-summary__insurance-warning[hidden] {
	display: none;
}

/* Dynamic amounts ------------------------------------------------------- */
.js-booking-dynamic-amount,
[data-booking-dynamic-amount="true"] {
	margin-left: auto;
	white-space: nowrap;
	text-align: right;
}

/* Mobile payment bar ---------------------------------------------------- */
.booking-mobile-payment-bar {
	display: none;
}

/* Help section: inline contact links ------------------------------------ */
.booking-step-help__text a {
	color: #f47b00;
	text-decoration: none;
}

.booking-step-help__text a:hover {
	text-decoration: underline;
}

/* Map card -------------------------------------------------------------- */
.booking-step-unit__map-card {
	overflow: hidden;
	border: 1px solid #e2e2e2;
	border-radius: 24px;
	background: #fff;
}

.booking-step-unit__map-canvas {
	width: 100%;
	height: 360px;
	min-height: 260px;
	background: #f5f5f5;
}

.booking-step-unit__map-canvas img {
	max-width: none;
}

.booking-step-unit__map-canvas iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.booking-step-unit__map-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	background: #fff;
}

.booking-step-unit__map-copy {
	display: grid;
}

.booking-step-unit__map-name {
	font-weight: 800;
	font-size: 24px;
	line-height: 1.1;
	color: #17191c;
}

.booking-step-unit__map-address {
	font-size: 20px;
	line-height: 1.25;
	color: #5f6661;
}

.booking-step-unit__map-contact {
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.4;
}

.booking-step-unit__map-contact a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #f47b00;
	text-decoration: none;
}

.booking-step-unit__map-contact a:hover {
	text-decoration: underline;
}

.booking-step-unit__map-contact svg {
	flex-shrink: 0;
}

.booking-step-unit__map-contact-sep {
	color: #ccc;
}

.booking-step-unit__map-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #f47b00;
	flex-shrink: 0;
}

.booking-step-unit__map-cta-label {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.booking-step-unit__map-cta-icon {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f47b00;
	color: #fff;
}

.booking-step-unit__map-cta-icon svg {
	display: block;
}

.booking-step-unit__map-cta:hover,
.booking-step-unit__map-cta:focus {
	text-decoration: none;
	opacity: 0.75;
}

.booking-step-unit__discount-row {
	display: block;
	width: 100%;
	margin-top: -8px;
	margin-bottom: 24px;
}

.booking-step-unit__discount-badge {
    display: block;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	padding: 5px 8px;

	background: #cb3368;
	color: #fff;
	border-radius: 4px;

	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	white-space: nowrap;
	margin-bottom: 2px;
    margin-top: -1px;
}

/* Mobile responsive ----------------------------------------------------- */
@media (max-width: 767px) {
	.booking-step-unit__size-controls {
		grid-template-columns: minmax(0, 1fr) 56px 56px;
		gap: 10px;
	}

	.booking-step-unit__size-select-wrap {
		min-height: 56px;
		grid-template-columns: auto 1fr auto;
		padding: 0 14px;
		gap: 10px;
	}

	.booking-step-unit__size-icon {
		justify-self: start;
	}

	.booking-step-unit__size-select {
		min-width: 88px;
		font-size: 20px;
	}

	.booking-step-unit__size-select-label {
		width: 16px;
		height: 16px;
	}

	.booking-step-unit__qty-btn {
		width: 56px;
		height: 56px;
	}

	/*
	.booking-step-unit__price-wrap {
		display: none;
	}
	 */

	.booking-step-page {
		padding-bottom: 190px;
	}

	.booking-sidebar {
		position: static;
		width: auto;
		max-height: none;
		overflow: visible;
		background: transparent;
		border-radius: inherit;
		box-shadow: none;
		padding: 0;
	}

	.booking-mobile-payment-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		display: block;
		background: #fff;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
	}

	.booking-mobile-payment-bar__inner {
		max-width: 480px;
		margin: 0 auto;
	}

	.booking-mobile-payment-bar__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 14px;
		max-height: 60px;
		overflow: hidden;
		transition: max-height 0.25s ease, margin-bottom 0.25s ease, opacity 0.25s ease;
		opacity: 1;
	}

	.booking-mobile-payment-bar__summary.is-collapsed {
		max-height: 0;
		margin-bottom: 0;
		opacity: 0;
	}

	.booking-mobile-payment-bar__copy {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.booking-mobile-payment-bar__title {
		font-weight: 800;
		font-size: 16px;
		line-height: 1.2;
		color: #17191c;
	}

	.booking-mobile-payment-bar__period {
		font-size: 13px;
		line-height: 1.2;
		color: #5f6661;
	}

	.booking-mobile-payment-bar__total {
		font-weight: 800;
		font-size: 20px;
		line-height: 1.1;
		color: #17191c;
		white-space: nowrap;
	}

	.booking-step-summary-mobile-top__values {
		display: none !important;
	}

	.booking-mobile-payment-bar__button {
		display: block;
		width: 100%;
		border: 0;
		border-radius: 999px;
		background: #f47b00;
		color: #fff !important;
		font-size: 16px !important;
		font-weight: 800;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		padding: 7px 18px 8px 18px;
		min-height: 45px;
	}

	.booking-mobile-payment-bar__button:not(.booking-mobile-payment-bar__button--no-arrow)::after {
		content: "";
		display: inline-block;
		width: 13px;
		height: 13px;
		margin-left: 6px;
		vertical-align: -1px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath fill='%23fff' d='M6.5 0C5.21442 0 3.95772.381218 2.8888 1.09545 1.81988 1.80968.986756 2.82484.494786 4.01256.00281635 5.20028-.125905 6.50721.124899 7.76809.375703 9.02896.994767 10.1872 1.90381 11.0962 2.81285 12.0052 3.97104 12.6243 5.23192 12.8751 6.49279 13.1259 7.79973 12.9972 8.98744 12.5052 10.1752 12.0132 11.1903 11.1801 11.9046 10.1112 12.6188 9.04229 13 7.78558 13 6.5 12.9982 4.77665 12.3128 3.12441 11.0942 1.90582 9.8756.687224 8.22335.00181989 6.5 0ZM9.35375 6.85375L7.35375 8.85375C7.25993 8.94757 7.13268 9.00028 7 9.00028 6.86732 9.00028 6.74007 8.94757 6.64625 8.85375 6.55243 8.75993 6.49972 8.63268 6.49972 8.5 6.49972 8.36732 6.55243 8.24007 6.64625 8.14625L7.79313 7H4C3.86739 7 3.74022 6.94732 3.64645 6.85355 3.55268 6.75979 3.5 6.63261 3.5 6.5 3.5 6.36739 3.55268 6.24021 3.64645 6.14645 3.74022 6.05268 3.86739 6 4 6H7.79313L6.64625 4.85375C6.55243 4.75993 6.49972 4.63268 6.49972 4.5 6.49972 4.36732 6.55243 4.24007 6.64625 4.14625 6.74007 4.05243 6.86732 3.99972 7 3.99972 7.13268 3.99972 7.25993 4.05243 7.35375 4.14625L9.35375 6.14625C9.40024 6.19269 9.43712 6.24783 9.46228 6.30853 9.48744 6.36923 9.5004 6.43429 9.5004 6.5 9.5004 6.56571 9.48744 6.63077 9.46228 6.69147 9.43712 6.75217 9.40024 6.80731 9.35375 6.85375Z'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	.booking-mobile-payment-bar__actions {
		display: flex;
		flex-direction: column;
		gap: 0;
		align-items: center;
	}

	.booking-mobile-payment-bar__actions .booking-mobile-payment-bar__button {
		width: 100%;
	}

	.booking-mobile-payment-bar__reserve-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 100%;
		border: 2px solid #f47b00;
		border-radius: 999px;
		background: transparent;
		color: #f47b00 !important;
		font-size: 16px !important;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		padding: 5px 18px 6px 18px;
		min-height: 45px;
		margin-top: 10px;
	}

	.booking-mobile-payment-bar__reserve-btn svg {
		flex-shrink: 0;
	}

	.booking-step-summary > a,
	.booking-step-summary > button:not(.js-booking-faq-trigger),
	.booking-step-summary__reserve-wrapper {
		display: none !important;
	}

	.booking-step-unit__map-card {
		border-radius: 18px;
	}

	.booking-step-unit__map-canvas {
		height: 260px;
	}

	.booking-step-unit__map-footer {
		padding: 22px 20px;
		gap: 16px;
	}

	.booking-step-unit__map-name {
		font-size: 20px;
	}

	.booking-step-unit__map-address {
		font-size: 16px;
	}

	.booking-step-unit__map-contact {
		font-size: 13px;
	}

	.booking-step-unit__map-cta-icon {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
	}

	.booking-step-summary__note {
		margin-bottom: 0 !important;
	}
	
	.booking-step-page__back-row {
		display:none;
	}

	.booking-mobile-payment-bar__price-wrap {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 5px;
		flex-shrink: 0;
	}

	.booking-mobile-payment-bar .booking-mobile-payment-bar__discount-badge {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		display: inline-block;
		width: fit-content;
		margin: 0;
	}

	.booking-step-unit__discount-row {
		margin-top: -12px;
		margin-bottom: 24px;
	}

	.booking-step-unit__discount-badge {
		align-items: center;
		width: fit-content;
		max-width: 100%;
		padding: 5px 8px;

		background: #cb3368;
		color: #fff;
		border-radius: 4px;

		font-size: 12px;
		line-height: 1.2;
		font-weight: 700;
		white-space: nowrap;
	}
}

/* Fullscreen page loader ------------------------------------------------- */
.pelican-page-loading {
	overflow: hidden !important;
}

.pelican-page-loader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(255 255 255 / 60%);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.pelican-page-loader__spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e5e5e5;
	border-top-color: #f07e02;
	border-radius: 50%;
	animation: pelican-loader-spin 0.7s linear infinite;
}

@keyframes pelican-loader-spin {
	to { transform: rotate(360deg); }
}
