/* Camper Availability & Booking - public frontend */

.cab-booking-section {
	--black: #000000;
	--white: #ffffff;
	--dark: #1a1a1a;
	--gray: #555555;
	--light: #f2f2f2;
	--border: #d0d0d0;
	--selected: #1769e0;
	--selected-dark: #0f4fb3;
	--font-head: "Oswald", sans-serif;
	--font-body: "Montserrat", sans-serif;
	--section-pad: 80px 0;
	--radius: 4px;
	--shadow: 0 4px 24px rgba(0,0,0,.12);
	padding: var(--section-pad);
	background: var(--light);
	color: var(--dark);
	font-family: var(--font-body);
	line-height: 1.7;
}

.cab-booking-section *,
.cab-booking-section *::before,
.cab-booking-section *::after {
	box-sizing: border-box;
}

.cab-booking-section .container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.cab-booking-section h2,
.cab-booking-section h3 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .5px;
}

.cab-booking-section h2 {
	font-size: clamp(1.6rem,3vw,2.4rem);
}

.cab-booking-section h3 {
	font-size: 1.25rem;
}

.cab-booking-section .section-title {
	position: relative;
	margin-bottom: 48px;
	text-align: center;
}

.cab-booking-section .section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--black);
}

.cab-booking-section .rezerwacja-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.cab-booking-section .calendar-wrap,
.cab-booking-section .form-wrap {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cab-booking-section .calendar-wrap {
	overflow: hidden;
}

.cab-booking-section .form-wrap {
	padding: 36px;
}

.cab-booking-section .form-wrap h3 {
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--black);
	font-size: 1.3rem;
}

.cab-booking-section .cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	color: var(--white);
	background: var(--black);
}

.cab-booking-section .cal-header h3 {
	font-size: 1rem;
	letter-spacing: 1px;
}

.cab-booking-section .cal-nav-btn {
	padding: 4px 10px;
	color: var(--white);
	background: none;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 1.45rem;
	line-height: 1;
	transition: background .2s;
}

.cab-booking-section .cal-nav-btn:hover {
	background: rgba(255,255,255,.15);
}

.cab-booking-section .cal-body {
	padding: 20px;
}

.cab-booking-section .cal-weekdays,
.cab-booking-section .cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
}

.cab-booking-section .cal-weekdays {
	margin-bottom: 8px;
}

.cab-booking-section .cal-weekdays span {
	padding: 4px 0;
	color: var(--gray);
	font-family: var(--font-head);
	font-size: .7rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.cab-booking-section .cal-days {
	gap: 4px;
}

.cab-booking-section .cal-day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	font: inherit;
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, color .2s, outline-color .2s;
}

.cab-booking-section .cal-day.empty {
	background: none;
	cursor: default;
}

.cab-booking-section .cal-day.available {
	color: var(--dark);
	background: var(--light);
}

.cab-booking-section .cal-day.available:hover {
	color: var(--white);
	background: var(--black);
}

.cab-booking-section .cal-day.reserved {
	color: var(--white);
	background: var(--black);
	font-weight: 700;
}

.cab-booking-section .cal-day.today {
	outline: 2px solid var(--black);
	outline-offset: -2px;
}

.cab-booking-section .cal-day.past {
	opacity: .3;
	cursor: not-allowed;
}

.cab-booking-section .cal-day.selected,
.cab-booking-section .cal-day.in-range {
	color: var(--white);
	background: var(--selected);
	outline-color: var(--selected-dark);
}

.cab-booking-section .cal-day[disabled] {
	cursor: not-allowed;
}

.cab-booking-section .cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 14px 20px;
	border-top: 1px solid var(--border);
}

.cab-booking-section .legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--gray);
	font-size: .8rem;
}

.cab-booking-section .legend-dot {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	flex-shrink: 0;
}

.cab-booking-section .legend-dot.available {
	background: var(--light);
	border: 1px solid var(--border);
}

.cab-booking-section .legend-dot.reserved {
	background: var(--black);
}

.cab-booking-section .legend-dot.selected {
	background: var(--selected);
}

.cab-booking-section .form-group {
	margin-bottom: 18px;
}

.cab-booking-section .form-group label {
	display: block;
	margin-bottom: 6px;
	color: var(--gray);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.cab-booking-section .form-group input,
.cab-booking-section .form-group textarea,
.cab-booking-section .form-group select {
	width: 100%;
	padding: 12px 14px;
	color: var(--dark);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	outline: none;
	font-family: var(--font-body);
	font-size: .95rem;
	transition: border-color .2s;
}

.cab-booking-section .form-group input:focus,
.cab-booking-section .form-group textarea:focus,
.cab-booking-section .form-group select:focus {
	border-color: var(--black);
}

.cab-booking-section .form-group textarea {
	min-height: 90px;
	resize: vertical;
}

.cab-booking-section .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cab-booking-section .form-note,
.cab-booking-section .cab-status {
	color: var(--gray);
	font-size: .78rem;
}

.cab-booking-section .cab-calendar-note {
	padding: 0 20px 20px;
}

.cab-booking-section .cab-status {
	min-height: 1.6em;
	padding: 0 20px 20px;
}

.cab-booking-section .cab-status.is-error {
	color: #8a1f1f;
}

.cab-booking-section .form-success {
	display: none;
	padding: 32px;
	color: var(--dark);
	text-align: center;
}

.cab-booking-section .cab-form-success h3 {
	border-bottom: 0;
	margin-bottom: 10px;
	padding-bottom: 0;
}

.cab-booking-section .cab-form-error {
	margin-top: 16px;
	padding: 12px 14px;
	color: #8a1f1f;
	background: #fff1f1;
	border: 1px solid #f0c7c7;
	border-radius: var(--radius);
	font-size: .9rem;
}

.cab-booking-section .cab-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--gray);
	font-family: var(--font-body);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}

.cab-booking-section .cab-consent input {
	width: auto;
	margin-top: 3px;
}

.cab-booking-section .cab-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cab-booking-section .btn {
	display: inline-block;
	padding: 14px 36px;
	color: var(--white);
	background: var(--black);
	border: 2px solid var(--black);
	border-radius: var(--radius);
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transition: background .25s, color .25s, opacity .25s;
}

.cab-booking-section .btn:hover {
	color: var(--black);
	background: var(--white);
}

.cab-booking-section .btn:disabled {
	opacity: .55;
	cursor: wait;
}

.cab-booking-section .cab-resource-summary p {
	padding: 12px 14px;
	background: var(--light);
	border-radius: var(--radius);
	font-weight: 600;
}

.cab-booking-section .cab-empty {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.cab-booking-section .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cab-booking-section .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .45s ease, transform .45s ease;
}

.cab-booking-section .reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.cab-booking-section .cal-nav-btn:focus-visible,
.cab-booking-section .cal-day:focus-visible,
.cab-booking-section .btn:focus-visible,
.cab-booking-section input:focus-visible,
.cab-booking-section select:focus-visible,
.cab-booking-section textarea:focus-visible {
	outline: 3px solid var(--black);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.cab-booking-section *,
	.cab-booking-section *::before,
	.cab-booking-section *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

@media (max-width: 900px) {
	.cab-booking-section .rezerwacja-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 640px) {
	.cab-booking-section {
		--section-pad: 56px 0;
	}

	.cab-booking-section .form-row {
		grid-template-columns: 1fr;
	}

	.cab-booking-section .form-wrap {
		padding: 24px;
	}

	.cab-booking-section .cal-body {
		padding: 16px;
	}

	.cab-booking-section .cal-day {
		font-size: .8rem;
	}
}
